Cause of crashing when loading a saved game, isolated?
Posted: Tue Jan 06, 2009 2:31 am
Several missions (The Siege of Kanai, Dragon's Eye etc) crash with an access violation every time a saved game is loaded (at least for me...). Both of these, and likely several others, have a combination of functions that are likely the culprit.
The problem looks like this:
Set temppoint = (Center of (Playable map area))
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from temppoint to a radius of 512.00
Custom script: call RemoveLocation(udg_temppoint)
Inserting this into the initialization of a simple map will make it crash every time the saved game is loaded. Perhaps upon loading, the visibility modifier is recreated using its specified variable, except that in this case that variable has already been removed by RemoveLocation.
It could probably be fixed by giving each visibility modifier its own point variable that is never removed.
The problem looks like this:
Set temppoint = (Center of (Playable map area))
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from temppoint to a radius of 512.00
Custom script: call RemoveLocation(udg_temppoint)
Inserting this into the initialization of a simple map will make it crash every time the saved game is loaded. Perhaps upon loading, the visibility modifier is recreated using its specified variable, except that in this case that variable has already been removed by RemoveLocation.
It could probably be fixed by giving each visibility modifier its own point variable that is never removed.