|
 |
|
|
|
|
|
GTA Modification Forums
How to lock a cs file? VC CLEO
 |
|
 |
| |
Bad.boy!  |
|
SA modder

Group: Members
Joined: Jun 20, 2010


|
Didn't notice, and I just digged trough my old post and came up with a good example: | QUOTE | | QUOTE (oksa8 @ Thursday, Jun 7 2012, 22:26) | Actually, I would encourage people NOT to lock their scripts, it allows others to take a look and learn from it. And even if you lock your script, it can still be stolen.
But, there's one simple way, and it's simple to by-pass. Just add new label somewhere, some random hex-code in there and compile. But remember, there should NOT be any jumps to that label, otherwise it'll crash. |
Not some random hex, you have to fool Sanny Builder.
Here is an example:
| CODE | {$CLEO .cs}
0000:
:START jump @ACTUAL_CODE
hex A4 03 09 48 41 48 41 00 end
:ACTUAL_CODE // Random opcodes to show the result 0003: shake_camera 40 0007: 7@ = 0.0 000D: $TEMPVAR_Z_COORD -= 0.5 jump @START |
It will decompile in this:
| CODE | {$CLEO .cs}
//-------------MAIN--------------- 0000: NOP 0002: jump @HAHA_17 03A4: name_thread 'HAHA' 0728: NOP 0300: unsupported_in_sa 0007: 0.0 = 512@(284@,6i) 0000: NOP 023F: unsupported_in_sa hex 00 01 FE FF FF FF |
But the best thing to do is to report the mod stealers and keep your files open. Looking at examples can help people. |
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Ashwin the new boy  |
Posted: Tuesday, Jul 10 2012, 14:46
|
I am The Most Confused Person

Group: Members
Joined: Nov 14, 2010


|
first thing is Script can't be Locked, they can only be encrypted so that Game can understand it but not the Decompiler, Secondly, no matter How hard a Modder try t encrypt his Code, others can still Read it after Spending a little to MORE time, Let me Share some info Here is my first script that i had Tried to LOCK (U KNO WT I MIN) http://ashwin.dmon.com/external/BLOWALL.csit simply Change 'BIGBANG' to 'BLOWALL' (VC Cheat) & Explode all vehicles Except your spend some Minutes by Decompiling, tell me if u like the Trick & want to know PM me if you already know,
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Bad.boy!  |
Posted: Tuesday, Jul 10 2012, 17:54
|
SA modder

Group: Members
Joined: Jun 20, 2010


|
@Wesser I won't do that if I were you. Encrypting a cleo file is overkill. If someone wants to copy and publish it on another site, they will. If someone wants to edit it a bit to make it look like they made it, they won't get past the corrupt hex. Also if you give someone the possibility to easily lock their mods, they will. Even for the most simple mods they'll encrypt it. In that way no one can learn from mods anymore. And how did you want to do it anyway, it'll take one asi per mod/author. Or you do it in one asi, so that you have to write the password somewhere. @Ashwin | QUOTE | | QUOTE | | I tried badboy version and decompiled well, I think badboy have some mistake, because 01BB opcode exist |
What do you mean - I don't see that opcode in his post? |
If he can't see opcodes in hex, it'll be impossible to make your script. And he asked how to lock it, not how to unlock it. @JACK JONES | QUOTE | | I compiled that code you gave me but still nothing (I had to change the local variables because the SB didn't wanna compile the number higher then 33). |
Could you post the decompiled code? Or is compiling the problem? @People who are still reading This is a spoiler! Don't scroll down if your planning to decompile Ashwin's code. (scroll down fast)0000: 05DF: write_memory 6849967 size 1 value 88 virtual_protect 0 05DF: write_memory 6849968 size 1 value 92 virtual_protect 0 05DF: write_memory 6849969 size 1 value 103 virtual_protect 0 05DF: write_memory 6849970 size 1 value 69 virtual_protect 0 :NONAME_92 0001: wait 0 ms 00D6: if 00E0: player $PLAYER_CHAR driving 004D: jump_if_false @NONAME_92 03C1: 0@ = player $PLAYER_CHAR car :NONAME_120 00D6: if 00E0: player $PLAYER_CHAR driving 004D: jump_if_false @NONAME_181 0001: wait 0 ms 00D6: if 05EE: key_pressed 76 004D: jump_if_false @NONAME_120 03F5: set_vehicle 0@ apply_damage_rules 0 0001: wait 5000 ms 03F5: set_vehicle 0@ apply_damage_rules 1 0002: jump @NONAME_120 :NONAME_181 01C3: remove_references_to_car 0@ // Like turning a car into any random car 0002: jump @NONAME_92 END
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(2) [1] 2
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|