

Player defeated = game crash
Started By Dutchygamer, Nov 10 2010 20:32
9 replies to this topic
#1
Posted 10 November 2010 - 20:32
I finally been able to fix the AI for my mod, so it uses the new armies (my mod is a TC mod).
Short said, the new AI is based upon America and China, with heavy edits. All the AI for the other armies has been deleted from the SkirmishScripts file. Problem now is: every time a player is defeated, the game crashes. I am not 100% sure if this happens only if there are any other AI players left, or on a 1-on-1 vs 1 AI too.
ReleaseCrashInfo doesn't give me any pointers, only a generic error:
; Reason Uncaught Exception in GameEngine::update
Anyone encountered this before? Anyone knows a fix for this?
Short said, the new AI is based upon America and China, with heavy edits. All the AI for the other armies has been deleted from the SkirmishScripts file. Problem now is: every time a player is defeated, the game crashes. I am not 100% sure if this happens only if there are any other AI players left, or on a 1-on-1 vs 1 AI too.
ReleaseCrashInfo doesn't give me any pointers, only a generic error:
; Reason Uncaught Exception in GameEngine::update
Anyone encountered this before? Anyone knows a fix for this?

#2
Posted 11 November 2010 - 12:06
Is it possible to delete the way that the end game script works? What I mean, is that maybe you have also deleted the stuff that corresponds for ending the game and maybe that's why it's crashing.
#3
Posted 11 November 2010 - 13:56
There are crash reports that log into your system every time the game crashes. go to your My documents -> Generals Zero Hour Data -> Release Crash Info
Check that out and we can get a better understanding about why this happened
Check that out and we can get a better understanding about why this happened

If you want to join my mod team, click here C&C ZH: Forces Unkown
Marine: Oh say can you seeeeeeeeeeeee! By the dawn's early Life!
Commander: No its Light! Not life, how many times do i have to say it Private?
Marine: Uh, sorry sir, i won't fail you this time!
Commander: *whispers to him self* sure you will. Lets take it from the top! One, Two, Three!
Marine: Oh say can you seeeeeeeeeeeee! By the dawn's early Light! O'er the ramparts we watched, were so gallantly creaming.
Commander: No! *Sigh* what am i going to do with you soldier?
#5
Posted 11 November 2010 - 15:43
HawkBlade124, on 11 Nov 2010, 13:56, said:
There are crash reports that log into your system every time the game crashes. go to your My documents -> Generals Zero Hour Data -> Release Crash Info
Check that out and we can get a better understanding about why this happened
Check that out and we can get a better understanding about why this happened
I've said before, these are incredibly generic and usually pretty useless. Best bet Dutchy, is to run the WorldBuilder and see what it throws up in it's crash handler when it launches, if anything at all.
For there can be no death without life.
#6
Posted 11 November 2010 - 17:36
AJ, on 11 Nov 2010, 16:43, said:
HawkBlade124, on 11 Nov 2010, 13:56, said:
There are crash reports that log into your system every time the game crashes. go to your My documents -> Generals Zero Hour Data -> Release Crash Info
Check that out and we can get a better understanding about why this happened
Check that out and we can get a better understanding about why this happened
I've said before, these are incredibly generic and usually pretty useless. Best bet Dutchy, is to run the WorldBuilder and see what it throws up in it's crash handler when it launches, if anything at all.
Well, I get nothing when it launches

The only thing I know I disabled (which may cause this) is the sell-off scripts.
Most likely I'll either find it either this evening, or else this weekend. My guess it's a small thing (as usual with this kind of stuff)...

#7
Posted 11 November 2010 - 19:14
Maybe try adding the default scripts, and deleting the stuff you don't need one by one, so this way you'll see what is causing the bug.
#8
Posted 11 November 2010 - 19:26
Hmm, after testing in a 1-on-1 vs 1 Medium AI, it doesn't crash. This confirms my suspicions it has something to do with the remaining AI players after 1 AI/player is defeated.

#9
Posted 12 November 2010 - 14:09
it's really rare scripts causing the engine crash. it must be something to do with the INI codings.
maybe it's like command button/set error, bad OCL/FX list, or several unknown things like putting chemical suits upgrade to pilots.
since WB is not always dependable, you can run the INI Checker so you might got something.
maybe it's like command button/set error, bad OCL/FX list, or several unknown things like putting chemical suits upgrade to pilots.
since WB is not always dependable, you can run the INI Checker so you might got something.

NProject Mod -- Recolonize -- Tidal Wars
#10
Posted 12 November 2010 - 17:22
I ain't 100% sure, but re-enabling the Sell-Off scripts seems to fixed the problem. I tested against 2 Medium AI, and when one sold off his stuff, the game didn't crash. As said, I ain't sure yet, as this may be a coincidence.

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users