|
 |
|
|
|
|
|
GTA Modification Forums
[IV/EFLC|REL] SCO ToolBox Decode, encode and edit SCO files.
 |
|
 |
| |
Tufu  |
Posted: Wednesday, Jul 13 2011, 06:25
|
Player Hater

Group: Members
Joined: Dec 16, 2010

|
| QUOTE (flitskikker @ Tuesday, Jul 12 2011, 22:38) | | QUOTE (Tufu @ Tuesday, Jul 12 2011, 20:33) | | Why isn't this program released as open source if you're directly using code from SparkIV, which is GPL? |
Only the AES key finding (if it was up to me I would just have hardcoded the key, but that's appearantly illegal) and AES decrypting code were "taken from" SparkIV, but undergone the necessary changes to make it compatible with this tool's requirements. This is mentioned in the about dialog. The compiling/decompiling part are completely written by myself. |
Oh I see. Do you know how to use the try and catch opcodes, and if you do - do you know how they behave? I have not been able to find any of their usage, an example may help and do you think they'll be able to catch native call related errors? My assumption is they will Also, I noticed that Push is used in a hex manner, is there any way to override this to decimal? It can be frustrating because WAIT takes a milliseconds argument (large int) which is usually decimal. This post has been edited by Tufu on Wednesday, Jul 13 2011, 08:59
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
flitskikker  |
Posted: Wednesday, Jul 13 2011, 12:04
|
The Forums Frog

Group: Members
Joined: Nov 25, 2006



|
| QUOTE (Tufu @ Wednesday, Jul 13 2011, 06:25) | | QUOTE (flitskikker @ Tuesday, Jul 12 2011, 22:38) | | QUOTE (Tufu @ Tuesday, Jul 12 2011, 20:33) | | Why isn't this program released as open source if you're directly using code from SparkIV, which is GPL? |
Only the AES key finding (if it was up to me I would just have hardcoded the key, but that's appearantly illegal) and AES decrypting code were "taken from" SparkIV, but undergone the necessary changes to make it compatible with this tool's requirements. This is mentioned in the about dialog. The compiling/decompiling part are completely written by myself. |
Oh I see. Do you know how to use the try and catch opcodes, and if you do - do you know how they behave? I have not been able to find any of their usage, an example may help and do you think they'll be able to catch native call related errors? My assumption is they will
Also, I noticed that Push is used in a hex manner, is there any way to override this to decimal? It can be frustrating because WAIT takes a milliseconds argument (large int) which is usually decimal. |
I don't know about the try-catch, unfortunately. I will look into making Push as a decimal, for now you could use PushS (up to 65536) or PushF for float values; for example: | CODE | PushS 1000 CallNative WAIT 1 0 |
| QUOTE | There shouldn`t be push and call native function, but parameters should be included as function parameters, in line of calling. It should be compiled to pushes back. I`ve been scripting SCM a lot and know its simple hex structure, but never scripted SCO in GTA IV. But "SCO ToolBox is designed for decoding, encoding and low level editing of SCO files." |
I classify that as High Level editing. It would not be that hard to compile high level code; decompiling SCO's to high level seems a lot harder to realise.
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
twisted89  |
|
Player Hater

Group: Members
Joined: May 16, 2008

|
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(5) 1 2 [3] 4 5
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.
| |
 |
|
 |
|
|
|
|