Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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. Forum Support

    3. Suggestions

GTA SA crash when I try to tune vehicles in game


Foxo Mattia
 Share

Recommended Posts

Foxo Mattia

Every time i enter a transfender it crashes the game. Thanks to SCRLOG i know that it's because of a script called "carmod". "last command: 00023719&1: [06E5] GET_AVAILABLE_VEHICLE_MOD

I have even deleted every car modification even tho they weren't major (car wash and open trunks) and it still doesn't work. I have big gangster installed too so maybe it's that. Anyways I'll leave the crash log here, please someone atleast respond. In this forum i had no answers from anybody so far IN TWO different posts.

 

 

script carmod
 Local variables dump:
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 3084 3084
********************************************

00001410&0: [00D6] IF 0
00001414&0: [0256] IS_PLAYER_PLAYING 0    // TRUE
00001419&1: [004D] GOTO_IF_FALSE -13936
00001426&1: [00D6] IF 0
00001430&0: [0038] g2332(0) == 0    // TRUE
00001437&1: [004D] GOTO_IF_FALSE -13929
00001444&1: [00D6] IF 0
00001448&0: [0018] g10082(0) > 0    // FALSE
00001455&0: [004D] GOTO_IF_FALSE -1542
00001542&0: [00D6] IF 0
00001546&0: [00DF] IS_CHAR_IN_ANY_CAR 1    // TRUE
00001551&1: [004D] GOTO_IF_FALSE -13929
00001558&1: [03C0] STORE_CAR_CHAR_IS_IN_NO_SAVE 1 -> 1025
00001566&1: [00D6] IF 0
00001570&0: [0038] g10082(0) == 0    // TRUE
00001577&1: [004D] GOTO_IF_FALSE -3943
00001584&1: [00D6] IF 22
00001588&0: [0103] LOCATE_STOPPED_CHAR_IN_CAR_3D 1 1042.01 -1019.93 31.127 4.0 4.0 2.0 1    // TRUE
00001625&1: [0103] LOCATE_STOPPED_CHAR_IN_CAR_3D 1 -1935.53 247.029 33.561 4.0 4.0 2.0 1    // FALSE
00001662&1: [0103] LOCATE_STOPPED_CHAR_IN_CAR_3D 1 2387.07 1050.51 9.812 4.0 4.0 2.0 1    // FALSE
00001699&1: [004D] GOTO_IF_FALSE -2548
00001706&1: [03C0] STORE_CAR_CHAR_IS_IN_NO_SAVE 1 -> 1025
00001714&1: [00D6] IF 0
00001718&0: [0448] IS_CHAR_SITTING_IN_CAR 1 1025    // TRUE
00001726&1: [004D] GOTO_IF_FALSE -2521
00001733&1: [00D6] IF 3
00001737&1: [84C8] NOT IS_CHAR_IN_FLYING_VEHICLE 1    // TRUE
00001742&1: [84A7] NOT IS_CHAR_IN_ANY_BOAT 1    // TRUE
00001747&1: [8969] NOT IS_BIG_VEHICLE 1025    // TRUE
00001752&1: [8975] NOT IS_EMERGENCY_SERVICES_VEHICLE 1025    // TRUE
00001757&1: [004D] GOTO_IF_FALSE -2466
00001764&1: [0050] GOSUB -23687
00023687&1: [0004] g2515(12) = 0
00023694&1: [0004] g10481(0) = 0
00023701&1: [00D6] IF 0
00023705&0: [001A] 16 g2515(0) >    // TRUE
00023712&1: [004D] GOTO_IF_FALSE -23781
00023719&1: [06E5] GET_AVAILABLE_VEHICLE_MOD 1025 0 -> 1005
00023738&1: [00D6] IF 0
00023742&0: [8038] NOT g10465(1005) == -1    // TRUE
00023753&1: [004D] GOTO_IF_FALSE -23767
00023760&1: [0008] g10481(0) += 1
00023767&1: [0008] g2515(0) += 1
00023774&1: [0002] GOTO -23701
00023701&1: [00D6] IF 0
00023705&0: [001A] 16 g2515(1) >    // TRUE
00023712&1: [004D] GOTO_IF_FALSE -23781
00023719&1: [06E5] GET_AVAILABLE_VEHICLE_MOD 1025 0 -> 1005
00023738&1: [00D6] IF 0
00023742&0: [8038] NOT g10466(1005) == -1    // TRUE
00023753&1: [004D] GOTO_IF_FALSE -23767
00023760&1: [0008] g10481(1) += 1
00023767&1: [0008] g2515(1) += 1
00023774&1: [0002] GOTO -23701
00023701&1: [00D6] IF 0
00023705&0: [001A] 16 g2515(2) >    // TRUE
00023712&1: [004D] GOTO_IF_FALSE -23781
00023719&1: [06E5] GET_AVAILABLE_VEHICLE_MOD 1025 0 -> 1005
00023738&1: [00D6] IF 0
00023742&0: [8038] NOT g10467(1005) == -1    // TRUE
00023753&1: [004D] GOTO_IF_FALSE -23767
00023760&1: [0008] g10481(2) += 1
00023767&1: [0008] g2515(2) += 1
00023774&1: [0002] GOTO -23701
00023701&1: [00D6] IF 0
00023705&0: [001A] 16 g2515(3) >    // TRUE
00023712&1: [004D] GOTO_IF_FALSE -23781
00023719&1: [06E5] GET_AVAILABLE_VEHICLE_MOD 1025 1047233823

 

 

Link to comment
Share on other sites

00023719&1: [06E5] GET_AVAILABLE_VEHICLE_MOD 1025 1047233823

 

1047233823 looks way out of range for this field. I'm not too familiar with this process, but I'm expecting a value between 0 and 16, and this looks most like a float (0.23). It could be that something has corrupted your global variables, with $10453 having an unexpected value. Options:

 

If you can write your own cleo scripts, try setting global vars $10449 through $10464 to 0.

The SASE v1.00 save editor has a script tool that can read and modify global vars.

Upload your save to GTASnP.com, post the link here, and I'll take a look at these variables.

Link to comment
Share on other sites

Foxo Mattia
3 hours ago, OrionSR said:
00023719&1: [06E5] GET_AVAILABLE_VEHICLE_MOD 1025 1047233823

 

1047233823 looks way out of range for this field. I'm not too familiar with this process, but I'm expecting a value between 0 and 16, and this looks most like a float (0.23). It could be that something has corrupted your global variables, with $10453 having an unexpected value. Options:

 

If you can write your own cleo scripts, try setting global vars $10449 through $10464 to 0.

The SASE v1.00 save editor has a script tool that can read and modify global vars.

Upload your save to GTASnP.com, post the link here, and I'll take a look at these variables.

Thanks for the reply, a couple of things:

GTASnP could not determine my save file." Error! · Could not determine game type." I don't get why since it's the 1.0 US version.

Also i noticed how even on the unmodded downgraded gta sa it always crashes for this car tuning feature. With the save editor I have issues where it says it isn't a gta sa save file.  So I really dont't know what to do. I have a CD 2.0 version of GTA SA tho, can I do something with it to fix my GTA?

I have to mention I tried to install the Nodep and TM files in GTA's directory and it still crashes.

Link to comment
Share on other sites

15 hours ago, Foxo Mattia said:

Every time i enter a transfender it crashes the game. it's because of a script called "carmod".

do you run a modified carmod script?

do you play with modified main.scm?

or a cleo script that have effect to vehicles?

 

did you modify any data file? carmods.dat? handling.cfg? vehicles.ide? shopping.dat? veh_mods.ide?

 

Quote

I have even deleted every car modification

did you modify gta3.img?

or did you install the car modifications via modloader?

did you install any car modification by auto installer?

 

Quote

I tried to install the Nodep and TM files

are you sure that you need _noDEP.asi?

why don't you deactivate DEP manually

 

can you play the game without asi files?

without modloader.asi,  without TuningMod.asi? and without cleo.asi?

just keep SilentPatchSA.asi

if yes, then try it and test if it still crash at transfender

 

I also recommand:

don't install game on standard directory, install it instead on another drive/partition, but not on drive c

or or at least on C:\Games\GTASA instead in program folder

 

don't use other save files, start new game and make your own savegames (as long as game crashs at transfender)

 

 

 

Edited by ZAZ
Link to comment
Share on other sites

Foxo Mattia
4 hours ago, ZAZ said:

do you run a modified carmod script?

do you play with modified main.scm?

or a cleo script that have effect to vehicles?

 

did you modify any data file? carmods.dat? handling.cfg? vehicles.ide? shopping.dat? veh_mods.ide?

No carmod, I play with a modified main.scm and i tried to have a normal one but the results are the same.

I had a couple of scripts for vehicles, the only one I have installed is TaxiRide right now.

 

I have a modified Shopping.dat from the "added removed clothes" mod. The rest I haven't touched.

 

4 hours ago, ZAZ said:

did you modify gta3.img?

or did you install the car modifications via modloader?

did you install any car modification by auto installer?

I have a couple mods that add monsters like Leatherface, Yeti etc in GTA3.img VIA modloader. Most of the mods I have are Via modloader.

I only used modloader, no auto installer.

4 hours ago, ZAZ said:

are you sure that you need _noDEP.asi?

why don't you deactivate DEP manually

 

can you play the game without asi files?

without modloader.asi,  without TuningMod.asi? and without cleo.asi?

just keep SilentPatchSA.asi

if yes, then try it and test if it still crash at transfender

 

I also recommand:

don't install game on standard directory, install it instead on another drive/partition, but not on drive c

or or at least on C:\Games\GTASA instead in program folder

 

don't use other save files, start new game and make your own savegames (as long as game crashs at transfender)

Just deactivated DEP and it doesn't change anything, I will have to try without modloader etc but if it works it's really not worth playing tbh

I have the game installed on another disk drive and not on C.

Link to comment
Share on other sites

Foxo Mattia
1 hour ago, ZAZ said:

Did you make a backup copy of the whole game installation?

 

1 hour ago, ZAZ said:

Did you make a backup copy of the whole game installation?

I did yeah, i've been thinking of just playing the game the way it is tho. The only problem is the Cesar Vialpando mission and well, the car tuning feature. I have a mod where you can skip missions tho so i can just skip that one. I will have one last try by trying to take the main files from the normal downgraded version (unmodded) and even the Steam version but it's probably just a waste of time. Thanks again for the help tho.

Link to comment
Share on other sites

Can you find another host for your save file? I'd like to take a look at something before you give up completely.

Link to comment
Share on other sites

Foxo Mattia
58 minutes ago, OrionSR said:

Can you find another host for your save file? I'd like to take a look at something before you give up completely.

Not really an expert on this but i'll look for it

Is it okay If i upload it on mediafire?

Edited by Foxo Mattia
Link to comment
Share on other sites

GTASAsf3_2.b

 

I found the corruption I was expecting, and a little more in the same general area. Rename this save to your preferred slot and see if it works any better for you.

 

$10441 = 0 // was  0.008, $car_colour1_change_mods

$10442 = 0 // was 100, $car_colour2_change_mods

$10443 = 0 // was 100, $flag_no_of_car_colours

$10452 = 0 // was 0.23, $car_mod_number[3]

$10453 = 0 // was 522, $car_mod_number[4]

 

Clue? - 522 is the model ID for the NRG500.

 

Link to comment
Share on other sites

Foxo Mattia

 

33 minutes ago, OrionSR said:

$10441 = 0 // was  0.008, $car_colour1_change_mods

$10442 = 0 // was 100, $car_colour2_change_mods

$10443 = 0 // was 100, $flag_no_of_car_colours

$10452 = 0 // was 0.23, $car_mod_number[3]

$10453 = 0 // was 522, $car_mod_number[4]

 

The game crashes now unfortunately, is there a way to fix those codes so that I can try on a fresh new game?

 

Link to comment
Share on other sites

1 hour ago, Foxo Mattia said:

The game crashes now unfortunately

Do you mean the game crashes on startup, instead of crashing in a mod garage?

 

It could be that the game is crashing because the corrupting script isn't finding the data I tweaked. A crash log might identify the problematic script.

 

I was worried that a buggy script might corrupt the data again before you could get to the mod garage.

 

Due to modifications from FLA, my template was only able to parse your save through most of the pickup pool, but the good data I could read suggests that you are using standard v1 scripts. These global variables should always be 0 on a new game. I haven't looked at what the car colors variables are doing, but as far as I can tell, the car_mod_number array is never modified. These values have always been 0 on every save I've looked at.

 

 

Edited by OrionSR
Link to comment
Share on other sites

Foxo Mattia
26 minutes ago, OrionSR said:

Do you mean the game crashes on startup, instead of crashing in a mod garage?

Yes it crashed on startup but dumb on my part I didn't see actually why with crashlog.. For some reason it crashed because of some cleo script (Anim Play Junior_Djjr) I had installed. Removed it and it's all good, mission cesar vialpando works and so does the mod garage. Also want to ask you how you tweaked the data. I am no expert on this stuff so I would like to know if there is somewhere where I can read and learn about that. I wanna Thank you and ZAZ for the help, have a good one :  )

Edited by Foxo Mattia
Link to comment
Share on other sites

Global variables are very easy to change with cleo scripts. ZAZ has published some great tutorials on Cleo Scripting. Since I couldn't load your FLA save, I used a hex editor to make the changes, which is fairly complicated business.

 

But the real trick here is knowing what needs to be changed. I've been hunting bugs in SA save files for a very long time so I was able to recognize an out of range parameter and make a lucky guess about the problem. 

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.