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.

v1 and v2 SASCM differences


ceedj
 Share

Recommended Posts

I'm having a problem where a number of users are reporting random crashes with the SA Studios mod that I can't seem to replicate, so I'm wondering if this might be a script issue, since the hook I use (op9080's) injects itself into the SCM at runtime. Just curious if anyone else here thinks this might be the problem; I'm gathering the v2 SCM is only different in the size (removed HC) and the number of global vars used. What I'm thinking, since Ped1 on certain systems isn't working, but Ped2 and Ped3 are, that the variable I'm using for Ped1 might already be in use by the new script. Any thoughts?

 

While I'm at it, is there any easy way to get a list of variables used by the game, in a varibales.ini format? For example, we know that 2 is PLAYER_CHAR and 3 is PLAYER_ACTOR, and there are a number of others known. Just want to find out what the rest are, since I have to assign my globals like so:

 

G PLAYER_CHAR(2), PLAYER_ACTOR(3), Ped1(4), Ped2(5), etc...

 

 

Any thoughts on this?

 

Thankie. inlove.gif

Edited by ceedj

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

Sadly, even the variables for $PLAYER_CHAR and more are different from v1 to v2. As for the differences in main.scm's, there are quite a few.

 

It MAY define a different amount of space for global vars. I don't actually know because I've only just found out that my copy of the v2 files are inaccurate. (Anybody got a working link to these files?)

 

The second section defines two more objects: the 2 different 2 player pickups.

 

The third section defines more missions. Six I THINK (again, cannot verify specifics).

 

The sixth section in v1 code says DEFINE UNKNOWN3 574 whereas v2 says 569.

 

v2 never uses 03B7 whereas v1 uses it twice just before the end loop of the MAIN thread. This is the largest disruptor in terms of compatibility as the difference it makes in offsets WILL effect global addressing found in script.img.

 

Beyond that, the differences will be in script.img. Which normally wouldn't be important since externals are called by name and not offset. However, they have global addresses in them too, which will now be shifted.

 

I don't know if this answers your question at all, but that's the best I can do without the files in front of me confused.gif

Link to comment
Share on other sites

No, it's rather helpful in that my hypothesis makes even more sense now; I'll have to ask my users if they are using a downgrader - it certainly explains why "I'm" not getting any crashes, having a complete v1.0 game and all. So thanks for the info.

 

If anyone else has any tech data on the scm differences they'd like to share, please feel free to post it here. I'd like to keep this topic open for a while as I troubleshoot this.

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

Something about variables.

 

v2 doesn't use four variables that v1 do. These are: $1213, $1214, $1215, $1216

 

In v1 they are used here:

 

:GFSEX_113280494: get_joystick 0 data_X1_Y1_X2_Y2_to $1213 $1214 $1215 $1216 //integer 008F: [email protected] = integer_to_float $1214 [email protected] /= 128.0 // floating-point values 

 

 

Another global variables are used same. Highest variable for both games is $10947, so the var space is same too.

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.