Jump to content

Cleo script custom opcode not registered


Recommended Posts

MORNING
Quote

 

{$CLEO .cs}

0000: NOP

:BOSS_MAIN

thread 'BOSS'

wait 0

// Constants

const

    FLY_KEY = 70 // F key

    LASER_KEY = 76 // L key

    FREEZE_KEY = 71 // G key

    PUNCH_KEY = 80 // P key

    AURA_KEY = 65 // A key

end

// Variables

0@ = 0 // Fly mode toggle

1@ = 0 // Laser toggle

2@ = 0 // Aura object ID

while true

    if 0256: player $PLAYER_CHAR defined

    then

        // Flying Ability

        if 0AB0: key_pressed FLY_KEY

        then

            if 0@ == 0

            then

                0@ = 1

                01B6: set_actor $PLAYER_ACTOR flying 1

                01C9: set_actor $PLAYER_ACTOR max_speed 1.5 // Increased movement speed

                0392: make_actor $PLAYER_ACTOR fireproof 1

                0A0D: show_text_highpriority "Flight Mode On!" time 1000

            else

                0@ = 0

                01B6: set_actor $PLAYER_ACTOR flying 0

                01C9: set_actor $PLAYER_ACTOR max_speed 1.0 // Normal speed

                0392: make_actor $PLAYER_ACTOR fireproof 0

                0A0D: show_text_highpriority "Flight Mode Off!" time 1000

            end

            wait 1000

        end

        // Laser Eyes

        if 0AB0: key_pressed LASER_KEY

        then

            0AB5: store_actor $PLAYER_ACTOR position_to 6@ 7@ 8@

            06BC: create_explosion 9 at 6@ 7@ 8@

            09E5: damage_nearby_peds 6@ 7@ 8@ radius 5.0 damage 1000 // Burns everything nearby

            0AAB: play_sound 1132 at 6@ 7@ 8@

            wait 2000

        end

        // Freeze Breath

        if 0AB0: key_pressed FREEZE_KEY

        then

            05E2: AS_actor $PLAYER_ACTOR perform_animation "SPRAYCAN_FIRE" IFP_file "PED" 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1

            0AB5: store_actor $PLAYER_ACTOR position_to 18@ 19@ 20@

            06BC: create_explosion 8 at 18@ 19@ 20@

            09E6: freeze_nearby_peds 18@ 19@ 20@ radius 7.0 time 10 // Freezes everything

            0AAB: play_sound 1137 at 18@ 19@ 20@

            wait 3000

        end

        // Mega Punch

        if 0AB0: key_pressed PUNCH_KEY

        then

            05E2: AS_actor $PLAYER_ACTOR perform_animation "FIGHT_C_1" IFP_file "PED" 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1

            06BC: create_explosion 7 at_actor $PLAYER_ACTOR

            09E5: damage_nearby_peds 0.0 0.0 0.0 radius 6.0 damage 5000 // High knockback and damage

            0AAB: play_sound 1130 at 0.0 0.0 0.0

            wait 5000

        end

        // Aura Effect

        if 0AB0: key_pressed AURA_KEY

        then

            0AB5: store_actor $PLAYER_ACTOR position_to 28@ 29@ 30@

            2@ = 0907: create_object 18632 at 28@ 29@ 30@

            0946: set_object_scale 2@ to 2.0

            09E5: damage_nearby_peds 28@ 29@ 30@ radius 8.0 damage 9999 // Destroys everything

            wait 30000

            0908: destroy_object 2@

        end

    end

    wait 0

end

"""

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi i made a cleo script using chat gpt and installed latest cleo version and when I tried the script in the game this error showed and chat gpt couldn't solve it 

Custom opcode [247B] not registered! Called in script Boss.Abilities.cs at offset {0} - 247B previously called opcode [0001] script suspended 

Can someone help ?

Edited by MORNING
The code
Link to comment
https://gtaforums.com/topic/1001418-cleo-script-custom-opcode-not-registered/
Share on other sites

OrionSR

A common problem with ChatGTP is that when it doesn't know something it will make up an answer that seems convincing. Of the opcode IDs I reviewed in your script, only two will do what they say, 0256 and 0AB0.

13 hours ago, MORNING said:

Yeah he does that always , so will deepseek solve this or what ?

Bullsh*t, read tutorials and learn scripting

 

How will chat gpt or deepseek test the script ingame?

Oh ok, they write the script and you test it

I bet that doesn't make fun

 

 

Edited by ZAZ
MORNING

Where ?

10 minutes ago, ZAZ said:

Bullsh*t, read tutorials and learn scripting

 

How will chat gpt or deepseek test the script ingame?

Oh ok, they write the script and you test it

I bet that doesn't make fun

 

 

Yeah they write it and I test it and each time I get error, and as OrionSR said  chat gpt convince me that solved the problem and he doesn't even changed a word in the code

6 hours ago, MORNING said:

I don't know how to code

That's normal. We all started at point zero.

When you visit a town the first time, then you don't know where is what. 

When stay there for longer time, you go here and go there, do this and do that. And after a while you know much more about the town.

 

Quote

will I have problems learning Cleo programming?

I don't know.

Important is:

You have to want it. 

You have to enjoy it. 

You have to be able to find relevant information on your own.

 

 

Edited by ZAZ
MORNING
Posted (edited)
4 hours ago, ZAZ said:

That's normal. We all started at point zero..

When you visit a town the first time, then you don't know where is what. When stay there for longer time, you go here and go there, do this and do that. And after a while you know much more about the town.

I don't know.

Important is:

You must want to do it

You must have fun when you do it

You must be able to find relevant informations by yourself

Deepseek generated me a big code for a weapon I asked , learning cleo scripting will take so so long to just check if he wrote it right or not , is there a documentation or something to send it to him so he can learn?

Edited by MORNING
Another GTA Fan

"Teach a man to fish and he can feed himself for a lifetime."

 

Cleo scripting can be a really fun and rewarding experience, and knowing how to do it would mean never needing to rely on bullsh*t AI. The fact people even use AI to make cleo scripts for them is... sorry to say: asinine.

 

If I can do it, anyone can. You don't need to learn everything; Start with something simple as I did, and then over time you learn more and more and push your limits. Whether it's following a tutorial, reading the SannyBuilder docs or simply reverse-engineering other peoples scripts to get an idea of how they work and how you can put yours together.

 

Never hurts to ask for help, I literally recently asked for help myself, but using AI to solve your problems is sh*tty.

 

Just like how AI steals artwork, it steals peoples passion to learn and create.

MORNING
Posted (edited)
31 minutes ago, Another GTA Fan said:

"Teach a man to fish and he can feed himself for a lifetime."

 

Cleo scripting can be a really fun and rewarding experience, and knowing how to do it would mean never needing to rely on bullsh*t AI. The fact people even use AI to make cleo scripts for them is... sorry to say: asinine.

 

If I can do it, anyone can. You don't need to learn everything; Start with something simple as I did, and then over time you learn more and more and push your limits. Whether it's following a tutorial, reading the SannyBuilder docs or simply reverse-engineering other peoples scripts to get an idea of how they work and how you can put yours together.

 

Never hurts to ask for help, I literally recently asked for help myself, but using AI to solve your problems is sh*tty.

 

Just like how AI steals artwork, it steals peoples passion to learn and create.

I know the fish thing and I learned a bit samp scripting but cleo is different and I reverse engineered a super man script but the main thing here is my pc is currently broken and I rely on one of my friends pc and i came here for help fixing the script to test but suddenly everyone is a philosopher and other thing is the weapons and other things I want are advanced and require a big coding knowledge generally and cleo scripting specifically so if relying on Ai is no way to work and can never generate correct and accurate scripts so I may try to learn but I really hope that Ai can do the job because as I said the things I want are advanced and may rely on the other weapon , for example a weapon that can return the attacks it receives back

Edited by MORNING

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.