Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

Flitskikker

[IV/EFLC|REL] SCO ToolBox

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

Share this post


Link to post
Share on other sites
sjaak327

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.

Share this post


Link to post
Share on other sites
nkjellman
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Kalvin
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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
ikt

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
nkjellman

Does this work for EFLC?

Share this post


Link to post
Share on other sites
Flitskikker
Does this work for EFLC?

It can open and save its files, yes.

Share this post


Link to post
Share on other sites
Tufu

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

Edited by Tufu

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Tufu

 

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

Share this post


Link to post
Share on other sites
fastman92

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Tufu

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Performer

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

Share this post


Link to post
Share on other sites
mandel99

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

Share this post


Link to post
Share on other sites
Flitskikker

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

Share this post


Link to post
Share on other sites
LostDerp

 

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

Share this post


Link to post
Share on other sites
twisted89

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

Share this post


Link to post
Share on other sites
Flitskikker

 

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.

Share this post


Link to post
Share on other sites
di0nislaw

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

Share this post


Link to post
Share on other sites
di0nislaw

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

user posted image

 

Help please sad.gif

Share this post


Link to post
Share on other sites
di0nislaw

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

Edited by dionisLTU

Share this post


Link to post
Share on other sites
Terreur69
Same error... how to use that compiler scocl ?

read the scol.chm

Share this post


Link to post
Share on other sites
di0nislaw

 

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

Share this post


Link to post
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

×

Important Information

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