Quantcast

Jump to content

» «
Photo

Incorrect jump instruction 20504 found at 20504

58 replies to this topic
H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#1

Posted 27 April 2014 - 01:58 AM

Incorrect jump instruction 20504 found at 20504

how to overcome?


Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#2

Posted 27 April 2014 - 06:45 AM

if you get this error on Decompiling a Script,

It's because of that Author has Locked the Script (encrypt)

& we can't help you to go through his Privacy,

you may try "IGNOR_UNKNOWN" option in sanny builder & then try to De-compile,

 

if you get something like this on Compiling, It may be because of you start the Script with a Lable & make a jump to it,

 

Tell us more about it,

like which script, when did you get this error, etc


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#3

Posted 28 April 2014 - 05:31 AM

I've tried "IGNOR_UNKNOWN" but it will still appear as


Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#4

Posted 28 April 2014 - 12:41 PM

I know only 3 types of Problems while De-compiling, Which Comes When

1# you try to open a cs file of different game than you have selected game from bottom-Right corner of SB,

2# your author have used an opcode which your SB .INI file don't have

3# you are trying to open a script whose Author don't want you to do. Like he may wrote some invalid bytes, which don't come in the way of Execution but decompiling.

Make sure which of them you are dealing with.

if it's 3rd one, It is like a Challenge then,

try opening the Script by a Hex editor, & remove the Bytes which you think are responsible, but you need to Be experienced & must know what are you doing.

or if the Script is Locked using a Function method, like a Corrupted Script, which is Fixed during game play using a Function as a key,

Leave the Script then,

 

And i asked to give more information !!!

give me a link to that script or mod,


Deji
  • Deji

    Coding like a Rockstar!

  • Feroci
  • Joined: 24 Dec 2007
  • None
  • Contribution Award [Mods]

#5

Posted 28 April 2014 - 08:10 PM

The incorrect jump instruction totally prevents SB from decompiling it. It's performed by a simple 3 bytes of hex at the end of the file:

02 00 01

 

This causes SB to read "GOTO @" but instead of an offset, the end of the file is encountered and it handles it 'inelegantly', so the script can't be opened. You can simply open a hex-editor and remove the last 3 byte sequences (look for those 3 bytes) and it should decompile as expected.


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#6

Posted 05 May 2014 - 04:07 AM

The incorrect jump instruction totally prevents SB from decompiling it. It's performed by a simple 3 bytes of hex at the end of the file:

02 00 01

This causes SB to read "GOTO @" but instead of an offset, the end of the file is encountered and it handles it 'inelegantly', so the script can't be opened. You can simply open a hex-editor and remove the last 3 byte sequences (look for those 3 bytes) and it should decompile as expected.

before in compeli

:NONAME1
thread "" 
end_thread 
hex
02 00 01

 

after in
:NONAME1
thread "" 
end_thread 
jump @NONAME1_1096154201 

 

 

why still can be opened


Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#7

Posted 05 May 2014 - 04:52 AM

The script having a Jump to a place which doesn't exist in Script may be,

 

Give us The script So that we could have a look & tell you the exact answer after finding it,

But i am tired of saying that,


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#8

Posted 05 May 2014 - 08:02 AM

I have lost the script


Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#9

Posted 05 May 2014 - 08:23 AM

ha ha ha, :lol:

how are you getting the Error then ???


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#10

Posted 05 May 2014 - 09:41 AM

is there any way that the script can not be edited


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#11

Posted 05 May 2014 - 03:07 PM

bandicam%202014-05-05%2021-47-28-062.jpgbandicam%202014-05-05%2021-47-37-703.jpgbandicam%202014-05-05%2021-47-37-703.jpgbandicam%202014-05-05%2021-47-47-375.jpg

 

I want to edit the camera but I get in trouble

 

link mod

https://googledrive....Dubstep Gun.zip


Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#12

Posted 05 May 2014 - 03:39 PM Edited by Ashwin the new boy, 05 May 2014 - 03:43 PM.

The Author have made many efforts to Keep it Safe, :lol: but only from De-compiling though

So, you want to know how to do this or just want it fixed ?

 

---------------------

Can't wait for your Reply, It will be 10PM soon,

Lets Explain it,

So that if you come after 1hr or more, you will get both


Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#13

Posted 05 May 2014 - 03:57 PM Edited by Ashwin the new boy, 05 May 2014 - 04:36 PM.

I opened it in sannybuider (sa mode) with "IGNORE" option,

i saw this as you

jump @NONAME_11 
0100:   actor "" in_sphere in_car 
0006:  // Note: the incorrect math opcode was used here
hex
 80 3E
end
0103:   actor stopped_in_car 

then i opened the script with Hex editor, (HXD)

which shows me

02 00 01 F5 FF FF FF 00 01 0E FF 06 00 03 20 00

Here, "02 00" represents the Jump opcode ID & "F5 FF FF FF" is offset of script to jump at,

so opcode becomes "0002: jump @0xA"

or you can say, 10 in decimal form, (0xFF - 0xF5)

So, this will make the Game to jump & start reading from 11th byte,

so it will start reading from "06 00 03 20 00"

 

Actually,

"00 01 0E FF" are the initials of a opcode having lots of Perimeters,

0100:   actor $PLAYER_ACTOR in_sphere 1793.068 -1904.254 12.3989 radius 4.0 4.0 4.0 sphere 1 in_car

it is used because, Sannybuilder, read the opcode ID of this one,

& try to decompile the script by taking the rest of Bytes as it's perimeter,

so it messed up the rest of script,

 

So,

i Changes it to "00 00 00 00"

02 00 01 F5 FF FF FF 00 00 00 00 06 00 03 20 00

Now sannybuilder Decompiles it like this

jump @NONAME_11 
0000: NOP 
0000: NOP 

:NONAME_11
32@ = 0 

:NONAME_18
   not 32@ >= 1700 
jf @NONAME_203 
wait 0 
06B2: destroy_searchlight 20@ 

I hope you understand what i tried to explain above,

There are still many things Like this in rest of the script,

try to do this your self,

if you still don't get it, Me and Some Higher Skill Modders are Always here to Help,

 

-------------------------------------

the Author have used that fake opcode many Time, just replace it with 00 each time,

Also, he have Inserted many Fake Jumps too,

So find those jumps & change them to "F5" to make it easy,

i really want you to try yourself,

otherwise,

i am done with it,you can ask for it in next reply,


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#14

Posted 06 May 2014 - 12:55 AM

The Author have made many efforts to Keep it Safe, :lol: but only from De-compiling though

So, you want to know how to do this or just want it fixed ?

 

---------------------

Can't wait for your Reply, It will be 10PM soon,

Lets Explain it,

So that if you come after 1hr or more, you will get both

how to do it and how to correct it


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#15

Posted 06 May 2014 - 01:01 AM Edited by HAF HAF, 06 May 2014 - 01:02 AM.

I opened it in sannybuider (sa mode) with "IGNORE" option,

i saw this as you

jump @NONAME_11 
0100:   actor "" in_sphere in_car 
0006:  // Note: the incorrect math opcode was used here
hex
 80 3E
end
0103:   actor stopped_in_car 

then i opened the script with Hex editor, (HXD)

which shows me

02 00 01 F5 FF FF FF 00 01 0E FF 06 00 03 20 00

Here, "02 00" represents the Jump opcode ID & "F5 FF FF FF" is offset of script to jump at,

so opcode becomes "0002: jump @0xA"

or you can say, 10 in decimal form, (0xFF - 0xF5)

So, this will make the Game to jump & start reading from 11th byte,

so it will start reading from "06 00 03 20 00"

 

Actually,

"00 01 0E FF" are the initials of a opcode having lots of Perimeters,

0100:   actor $PLAYER_ACTOR in_sphere 1793.068 -1904.254 12.3989 radius 4.0 4.0 4.0 sphere 1 in_car

it is used because, Sannybuilder, read the opcode ID of this one,

& try to decompile the script by taking the rest of Bytes as it's perimeter,

so it messed up the rest of script,

 

So,

i Changes it to "00 00 00 00"

02 00 01 F5 FF FF FF 00 00 00 00 06 00 03 20 00

Now sannybuilder Decompiles it like this

jump @NONAME_11 
0000: NOP 
0000: NOP 

:NONAME_11
32@ = 0 

:NONAME_18
   not 32@ >= 1700 
jf @NONAME_203 
wait 0 
06B2: destroy_searchlight 20@ 

I hope you understand what i tried to explain above,

There are still many things Like this in rest of the script,

try to do this your self,

if you still don't get it, Me and Some Higher Skill Modders are Always here to Help,

 

-------------------------------------

the Author have used that fake opcode many Time, just replace it with 00 each time,

Also, he have Inserted many Fake Jumps too,

So find those jumps & change them to "F5" to make it easy,

i really want you to try yourself,

otherwise,

i am done with it,you can ask for it in next reply,

Can you give me the script, I would like to learn


Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#16

Posted 06 May 2014 - 01:48 AM Edited by Ashwin the new boy, 06 May 2014 - 01:52 AM.

This is what i have Got after Fixing,,, It should Work Fine,pls try & tell me...

IDK how to work with this MYMedia thing.... So here it is

Spoiler

H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#17

Posted 06 May 2014 - 02:05 AM

bandicam%202014-05-06%2008-53-44-843.jpg

 

how to read


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#18

Posted 06 May 2014 - 02:33 AM Edited by HAF HAF, 06 May 2014 - 02:46 AM.

I change it like this because the script was nothing wrong
how not to be edited
thank you for your help

Spoiler

Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#19

Posted 06 May 2014 - 03:01 AM

"how to read"

the Hex are written on left side,

& ASCII value is on right Side,

read Hex & see what you can make of it,

------------------------------------------

So the script Worked fine, Cool

"how not to be edited"
AHH WHAT ?


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#20

Posted 06 May 2014 - 03:19 AM Edited by HAF HAF, 06 May 2014 - 03:22 AM.

how to do it all?
I was confused when opening a hex editor


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#21

Posted 07 May 2014 - 11:11 AM Edited by fastman92, 05 July 2014 - 03:55 PM.

Deleted.

H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#22

Posted 07 May 2014 - 12:11 PM

You say it's hard to open?

Now try this script: https://www.mediafir...3o17akbr1to3q7m

Kill player, script by fastman92
 

Description: this script kills a player when you type a cheat code "KILL".

Requirement: CLEO4 library.

Version: 1.0

Author: fastman92
Date updated: 07-05-2014

how How to do it ??

please let me know


bandicam%202014-05-07%2019-08-14-468.jpg
how do you do it??

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#23

Posted 07 May 2014 - 12:16 PM Edited by fastman92, 07 May 2014 - 12:31 PM.

I have my own tool made in C++ for that.
Written in my spare time.

Sorry HAF HAF, I didn't make a tool for GTA SA Android CLEO library.

H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#24

Posted 07 May 2014 - 03:20 PM

I have my own tool made in C++ for that.
Written in my spare time.

Sorry HAF HAF, I didn't make a tool for GTA SA Android CLEO library.

I want to learn to make a script that is difficult for editors like you

Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#25

Posted 07 May 2014 - 04:12 PM

That's Funny,

Bcuz People like those rarely Need to read someone's script,

other then that, they understand each & every byte of Opcodes & script,

unlocking them rarely become a problem,

----------

But i love to give a try to Unlock them,

specially when it comes from FM92 :lol:


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#26

Posted 07 May 2014 - 07:26 PM Edited by fastman92, 07 May 2014 - 08:31 PM.

I have my own tool made in C++ for that.
Written in my spare time.

Sorry HAF HAF, I didn't make a tool for GTA SA Android CLEO library.

I want to learn to make a script that is difficult for editors like you

Security through obscurity.

It will be better if you release scripts as open-source anyway.

H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#27

Posted 07 May 2014 - 11:43 PM Edited by HAF HAF, 07 May 2014 - 11:48 PM.

is there any one who would teach me?? 
I do not want my artificial script was stolen because I made ​​it with some difficulty
I do not have a teacher, but I can make the script even though it is simple and easily stolen

Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#28

Posted 08 May 2014 - 03:00 AM Edited by Ashwin.Star, 08 May 2014 - 03:01 AM.

@HAF

Pls don't feel bad, the Locking of script Work like this,

The Basic/easy/small scripts are not worthy of Locking, as anyone can make them & only beginners use them for Learning Purpose,

 

If a script is Unbelievable & Worthy enough to be Locked,

then the person Must be very Great who created Such Script,

Hence, if he is that great, He also know the Weakness of Sannybuilder, & may Lock it Perfectly,

but only a Selfish Man will do it,

& if something like that Happened, Each of us(Modder) will try best to Unlock it,

so, now or then, it will be unlocked one day,

Sorry to Say, That is All

-------------------------

 

@FM92

now Don't tell me i am Not Close enough :lol:

0002: jump @FASTMN_199  // a Jump to Function, which Solve this Mess & created this small script (U know where) 
 
:FASTMN_7
0000: NOP 
 
:FASTMN_9
0001: wait 0 ms 
00D6: if 
0ADC:   test_cheat "KILL" 
004D: jump_if_false @FASTMN_84 
0AD1: show_formatted_text_highpriority "Player is now dead! Script by fastman92" time 2000  
0762: AS_actor $PLAYER_ACTOR dies 
 
:FASTMN_84
0002: jump @FASTMN_9 
0000: NOP 
0000: NOP 
0003: shake_camera 50 
03A4: name_thread '@!{_//_'        //------ This was Really {Cool}
0662: printstring "fastman92" 
 
:FASTMN_123              // now this is what we say Memory wasting, OR to Make Confuse
0001: wait 0 ms 
00D6: if 
00DF:   actor $PLAYER_ACTOR driving 
004D: jump_if_false @FASTMN_123 
03C0: 0@ = actor $PLAYER_ACTOR car 
0002: jump @FASTMN_123 

What do you say hun !!


H.A.F
  • H.A.F

    Square Civilian

  • Members
  • Joined: 10 Oct 2013
  • Indonesia

#29

Posted 08 May 2014 - 04:57 AM

I want to create a hoax in my script code


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#30

Posted 08 May 2014 - 05:19 AM

@HAF
Pls don't feel bad, the Locking of script Work like this,
The Basic/easy/small scripts are not worthy of Locking, as anyone can make them & only beginners use them for Learning Purpose,
 
If a script is Unbelievable & Worthy enough to be Locked,
then the person Must be very Great who created Such Script,
Hence, if he is that great, He also know the Weakness of Sannybuilder, & may Lock it Perfectly,
but only a Selfish Man will do it,
& if something like that Happened, Each of us(Modder) will try best to Unlock it,
so, now or then, it will be unlocked one day,
Sorry to Say, That is All
-------------------------
 
@FM92
now Don't tell me i am Not Close enough :lol:


0002: jump @FASTMN_199  // a Jump to Function, which Solve this Mess & created this small script (U know where) 
 
:FASTMN_7
0000: NOP 
 
:FASTMN_9
0001: wait 0 ms 
00D6: if 
0ADC:   test_cheat "KILL" 
004D: jump_if_false @FASTMN_84 
0AD1: show_formatted_text_highpriority "Player is now dead! Script by fastman92" time 2000  
0762: AS_actor $PLAYER_ACTOR dies 
 
:FASTMN_84
0002: jump @FASTMN_9 
0000: NOP 
0000: NOP 
0003: shake_camera 50 
03A4: name_thread '@!{_//_'        //------ This was Really {Cool}
0662: printstring "fastman92" 
 
:FASTMN_123              // now this is what we say Memory wasting, OR to Make Confuse
0001: wait 0 ms 
00D6: if 
00DF:   actor $PLAYER_ACTOR driving 
004D: jump_if_false @FASTMN_123 
03C0: 0@ = actor $PLAYER_ACTOR car 
0002: jump @FASTMN_123 
What do you say hun !!


Congratulations. You got it right.
You see, it's only possible to unlock it by advanced SCM scripters and that's the purpose.
Anything what was made by human, may also be reversed engineered.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users