IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (2) 1 [2]   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 How to lock a cs file?

 VC CLEO
 
JACK JONES  
Posted: Tuesday, Jul 10 2012, 19:08
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



First I want to thank you all for helping me.
QUOTE
Could you post the decompiled code? Or is compiling the problem?

Now I compiled it for VC (unlike the last time when I compiled it for SA) and here it is:
CODE
// This file was decompiled using vicescm.ini published by GtaForums.com on 27.7.07

{$VERSION 2.2.0000}
{$CLEO .cs}

//-------------MAIN---------------
0000:
jump @NONAME_17
hex
A4 03 09 48 41 48 41 00
end

:NONAME_17
Camera.Shake(40)
7@ = 0.0 // floating-point values
$TEMPVAR_Z_COORD -= 0.5 // floating-point values
jump @NONAME_52
hex
A4 03 09 48
end

:NONAME_52
0687:
0689:
068D:
0698:
if
0686:
jf @NONAME_77
hex
D2 06 09 6F
end

:NONAME_77
068E:
0698:
jump @NONAME_17

I had no problems with compiling (95@, 543@, 89@ are also compiled which is unknown to my coding experience).
Problems: Besides the game crashing the code decompils without any error massages but it's not like your decompiled code Bad.boy! - I mean you wrote in a hex block this: "D2 06 09 6F" so I kind of expected 06D2 opcode in a decompiled text but as you can see it isn't there. Other thing is that the opcode names are still vissible - I don't want to see them after decompiling. And yes I understand that my scrypts are not so great as I think but I still want to lock them because they are mine. And if some newby wants to open and edit my cs files then he should talk to me first.

PM
  Top
 

 
Bad.boy!  
Posted: Wednesday, Jul 11 2012, 09:15
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



That code was just an example. The opcodes I use were there to show the result. If you run it, it'll crash. You need to insert hex between your code. And it didn't work out well for VC because the scripts are different than SA. You could try Ashwin's method.
PM
  Top
 

 
JACK JONES  
Posted: Thursday, Jul 12 2012, 09:56
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Thanks I'll try. Can anyone tell me how can I convert easy code to hard code.

This post has been edited by JACK JONES on Thursday, Jul 12 2012, 10:01
PM
  Top
 

 
Link2012  
Posted: Thursday, Jul 12 2012, 16:26
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



What is easy code and hard code? Do you mean low-level and high-level? Ah, high-level is meant to be the "easy code" here tounge.gif

Nothing to tell, just do some code in high-level and decompile, see how it is going to be...

like a simple loop:
CODE
:MyLoop
wait 0
jump @MyLoop

CODE
while true
  wait 0
end


Look at sanny help, there's a doc about the high-level statements.


PMMSN
  Top
 

 
JACK JONES  
Posted: Friday, Jul 13 2012, 09:50
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



SB always decompils this:
CODE
:MyLoop
wait 0
jump @MyLoop

Is there a way I could force SB to decompils from the upper code to this:
CODE
while true
  wait 0
end
PM
  Top
 

 
Ashwin the new boy  
Posted: Friday, Jul 13 2012, 10:45
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



@B.B
<<--- removed --->>

@Topic
making a tutorial about Small tricks that can stop newbie to misuse our Script,
JJ, you know where it will be
Users WebsitePM
  Top
 

 
JACK JONES  
Posted: Friday, Jul 13 2012, 14:38
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Yes I do and thanks.
PM
  Top
 

 
Link2012  
Posted: Monday, Jul 16 2012, 18:02
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



QUOTE
Is there a way I could force SB to decompils from the upper code to this:

No, Sanny don't support high-level decompilation.
PMMSN
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Pages: (2) 1 [2] 

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG