GTAmodding / III.VC.SA.LimitAdjuster

MIT License
196 stars 25 forks source link

[SA] Crash 0x00493B2C in the Black Project mission #72

Open SuN9196 opened 4 weeks ago

SuN9196 commented 4 weeks ago

Hi, I discovered a crash 0x00493B2C in GTA SA which I think is related to Open Limit Adjuster and searchlights. This crash happens in the Black Project mission if I start a new game or load a save during the mission. It must have something to do with the area 69 searchlights. I discovered this problem when I was trying to do this mission without being detected by the military, so I loaded the save to try again, and the game crashed. My GTA version is 1.0 US Retail and only has Silent's ASI Loader, Open Limit Adjuster and CrashInfo installed. The curious thing is that in the CrashInfo mod it says that the problem is caused by a cleo mod, but I don't have any cleo mod, not even the cleo library. Maybe this crash could happen in more missions, but I haven't tested it. This crash seems to be quite specific, as I couldn't find anything about it on the internet. In the Open Limit Adjuster, the "ScriptSearchLights" line is at the default value, 1024. To fix this crash, should I change this value or is there nothing to do with it? I'll put the full log:

GTA SA 1.0.0.0 US Unhandled exception at 0x00493B2C in gta_sa.exe (+0x93b2c): 0xC0000005: Access violation reading location 0x00000014. Register dump: EAX: 0x00000002 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x018F5B40
EDI: 0x00000000 ESI: 0x0199AFF4 EBP: 0x76928650 EIP: 0x00493B2C
ESP: 0x0177FD00 EFL: 0x00210297 CS: 0x00000023 SS: 0x0000002B
GS: 0x0000002B FS: 0x00000053 ES: 0x0000002B DS: 0x0000002B

Stack dump:
    0x0177FD00:  00000000 00B7D0B8 76928650 00000000 00000007 00000000
    0x0177FD18:  00B7D0B8 76928650 00000000 00000000 00000000 00A90AB0
    0x0177FD30:  00000010 00000000 00000040 427C0000 00000014 00000000
    0x0177FD48:  41A00000 427C0000 00000003 76928650 004655FE 00000000
    0x0177FD60:  00B7D0B8 76928650 00000000 00B7D0B8 0046A067 00000000
    0x0177FD78:  00B7D0B8 76928650 00000000 00000003 00B7D0B8 0156561A
    0x0177FD90:  00A49960 0053BE92 00000001 00000001 00000000 0053C6E0
    0x0177FDA8:  00000000 00000001 FFFFFFFF 00748E4D 764C0D00 00000000
    0x0177FDC0:  0177FF70 002D8000 008F0000 420555EA 018F1DD8 00000008
    0x0177FDD8:  00000100 00000008 00000102 44000000 43C00000 00000000
    base: 0x01580000   top: 0x0177FD00   bottom: 0x01780000

Backtrace (may be wrong):
    =>0x00493B2C CTheScripts::processSearchlights+0x13c in gta_sa.exe (+0x93b2c) (0x0177FD54) 
      0x004655FE CUpsideDownCarCheck__process+0x1e in gta_sa.exe (+0x655fe) (0x0177FD6C) 
      0x0046A067 _ZN11CTheScripts7ProcessEv+0x67 in gta_sa.exe (+0x6a067) (0x0177FD88) 
      0x0156561A sub_1565610+0xa in gta_sa.exe (+0x116561a) (0x0177FD90) 
      0x0053BE92 ReInitGameObjectVariables__5CGameFv+0x1a2 in gta_sa.exe (+0x13be92) (0x0177FDA0) 
      0x0053C6E0 _ZN5CGame24InitialiseWhenRestartingEv+0x60 in gta_sa.exe (+0x13c6e0) 
ubeogesh commented 4 days ago

I have this too. Workaround - comment out the ScriptSearchLights line in the III.VC.SA.LimitAdjuster.ini (i.e. put a # before it)