Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

[IV/EFLC|REL] SCO ToolBox


Flitskikker
 Share

Recommended Posts

Flitskikker
W00t! my first ever script! simple, but i'm proud of myself biggrin.gif

from Taxi, to Banshee!

[...]

biggrin.gif

Nice! biggrin.gif

Appearantly encoding did it? smile.gif

Link to comment
Share on other sites

Well I simply copied the natives from the dll I got from OinkOink. I guess you could use them both to resolve the name, the correct one should then be matched.

Link to comment
Share on other sites

W00t! my first ever script! simple, but i'm proud of myself biggrin.gif

from Taxi, to Banshee!

user posted image

biggrin.gif

Now Roman did not tell a lie when he said he had a sports car.

Link to comment
Share on other sites

EncryptedReality

Lol.... come to think of it , it's the same Banshee from the Brucies's mission cutscene "No.1" , only difference is it had a yellow stripe instead of gray.

Link to comment
Share on other sites

W00t! my first ever script! simple, but i'm proud of myself biggrin.gif

from Taxi, to Banshee!

[...]

biggrin.gif

Nice! biggrin.gif

Appearantly encoding did it? smile.gif

Yup smile.gif

thanks for the help flitskikker!

Link to comment
Share on other sites

Flitskikker
W00t! my first ever script! simple, but i'm proud of myself biggrin.gif

from Taxi, to Banshee!

[...]

biggrin.gif

Nice! biggrin.gif

Appearantly encoding did it? smile.gif

Yup smile.gif

thanks for the help flitskikker!

Okay, no problem.

I will explicitly mention to save it encoded to make it work in GTA in the ReadMe for the following version. smile.gif

Link to comment
Share on other sites

Sorry to be bugging you all, but, could anyone upload the sco file for this particular mission? It's the second of Yusufs missions.

 

I need to get to know how the helicopters work devil.gif

Edited by ikt
Link to comment
Share on other sites

Flitskikker
Sorry to be bugging you all, but, could anyone upload the sco file for this particular mission? It's the second of Yusufs missions.

 

I need to get to know how the helicopters work devil.gif

You have them now smile.gif

Link to comment
Share on other sites

Flitskikker
Does this work for EFLC?

It can open and save its files, yes.

Link to comment
Share on other sites

Why isn't this program released as open source if you're directly using code from SparkIV, which is GPL?

Edited by Tufu
Link to comment
Share on other sites

Flitskikker
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.

Link to comment
Share on other sites

 

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.

Edited by Tufu
Link to comment
Share on other sites

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."

Edited by fastman92
Link to comment
Share on other sites

Flitskikker

 

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:

 

PushS 1000CallNative WAIT 1 0

 

 

 

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.

Link to comment
Share on other sites

Did you build this based on the specification listed on GTA IV Modding Wiki? I may have uncovered an error. According to SparkIV source, StrCat, StrCatI and IntToStr are all 2 bytes each, OpenIV and SparkIV will represent them normally with "16" appended to it.

Edited by Tufu
Link to comment
Share on other sites

Flitskikker
Did you build this based on the specification listed on GTA IV Modding Wiki? I may have uncovered an error. According to SparkIV source, StrCat, StrCatI and IntToStr are all 2 bytes each, OpenIV and SparkIV will represent them normally with "16" appended to it.

Yes, I based it on that.

However, it decompiles and compiles the huge main.sco without binary differences (except float values), so I don't know if it's an error.

Link to comment
Share on other sites

Its very bad. Open IV has more "high level Opcodes" as SCO Tool Box. But you cant compile it.

 

So with OpenIV you see more code, and with sco tool box you see less code but you can compile.... sigh.gif

Link to comment
Share on other sites

Hi, i open the roman1.sco in advanced mode and game version 1.0.7.0, do not modify anything, save as SCO file (encoded), replace over OpenIV and game Crash when game loading....

Link to comment
Share on other sites

  • 3 months later...

Since SCOCL is released, I've made the current version (1.2.7) available with the source code.

 

Hope you like it and find it useful. smile.gif

Link to comment
Share on other sites

 

Since SCOCL is released, I've made the current version (1.2.7) available with the source code.

 

Hope you like it and find it useful. smile.gif

Thank you biggrin.gif. Yey you fixed the bug where it would corrupt scripts.

Edited by LostDerp
Link to comment
Share on other sites

 

Thank you . Yey you fixed the bug where it would corrupt scripts.

Which bug would that have been?

 

 

Any chance you could modify this to work with the xbox sco's?

I've never looked into XBOX SCO files, so I'm afraid I can't help you with that.

Link to comment
Share on other sites

  • 4 weeks later...

Ow yeah i made ranked coop match "Hangman's Noose" better. Now just go and select level and get MAX 32000 $(MINIMUM IS 29000$) in one match . I Will try with others too. IF YOU WANT YOUR MODDED MONEY, YOU MUST BE HOSTER, or it WILL NOT work I wanted to make more money like 500 000 but Compiler gets error. It says that it's too much or something...

Edited by dionisLTU
Link to comment
Share on other sites

I'm trying to make more money, but i got this

user posted image

 

Help please sad.gif

Link to comment
Share on other sites

Same error... how to use that compiler scocl ?

Edited by dionisLTU
Link to comment
Share on other sites

 

Same error... how to use that compiler scocl ?

read the scol.chm

I still don't get it confused.gif

 

 

Please don't suggest hacks that abuse the MP leaderboards.

Edited by Girish
Link to comment
Share on other sites

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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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