Jump to content


Player defeated = game crash


9 replies to this topic

#1 Dutchygamer

    Shyborg Commander

  • Member Test
  • 1899 posts
  • Projects: Frontline Chaos creator and leader, Invasion Confirmed co-leader

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?
Posted Image

#2 Failure

    Professional

  • Project Team
  • 302 posts
  • Projects: None

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 HawkBlade124

    Amateur

  • Member
  • 116 posts
  • Projects: C&C Generals Zero Hour: Forces Unknown

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
Posted Image

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?

#4 Failure

    Professional

  • Project Team
  • 302 posts
  • Projects: None

Posted 11 November 2010 - 14:53

 Dutchygamer, on 10 Nov 2010, 21:32, said:

(...)
ReleaseCrashInfo doesn't give me any pointers, only a generic error:
; Reason Uncaught Exception in GameEngine::update
(...)

Well.

#5 Libains

    Light up life.

  • Gold Member
  • 4950 posts

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

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 Dutchygamer

    Shyborg Commander

  • Member Test
  • 1899 posts
  • Projects: Frontline Chaos creator and leader, Invasion Confirmed co-leader

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

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 :D
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)...
Posted Image

#7 Failure

    Professional

  • Project Team
  • 302 posts
  • Projects: None

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 Dutchygamer

    Shyborg Commander

  • Member Test
  • 1899 posts
  • Projects: Frontline Chaos creator and leader, Invasion Confirmed co-leader

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.
Posted Image

#9 n5p29

    Lurker

  • Project Leader
  • 1417 posts
  • Projects: NProject Mod, Recolonize, Tidal Wars

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.

#10 Dutchygamer

    Shyborg Commander

  • Member Test
  • 1899 posts
  • Projects: Frontline Chaos creator and leader, Invasion Confirmed co-leader

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.
Posted Image



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users