Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: CommanderDJ on August 31, 2010, 04:22:22 am

Title: Assertion error redalert.cpp and crash
Post by: CommanderDJ on August 31, 2010, 04:22:22 am
Hey all,
I was running a mission which I was using to test out some weird AI behaviour I was seeing: basically, a fighter's engines were disabled, and his goal was set to guard the player. When his engines were re-enabled (with the repair-subsystem SEXP), he would fly off in a random direction into the void unceasingly instead of guarding the player. Anyway, that's not relevant to this. I was trying to load this mission and my game crashed. I ran a debug build and got this error right as the loading bar completed:

Code: [Select]
Assert: Briefing->stages[0].new_text
File: redalert.cpp
Line: 351

<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! SCP_DumpStack + 354 bytes
<no module>! WinAssert + 208 bytes
<no module>! red_alert_init + 445 bytes
<no module>! game_enter_state + 681 bytes
<no module>! gameseq_set_state + 310 bytes
<no module>! game_process_event + 301 bytes
<no module>! gameseq_process_events + 152 bytes
<no module>! game_main + 782 bytes
<no module>! WinMain + 330 bytes
<no module>! __tmainCRTStartup + 358 bytes
<no module>! WinMainCRTStartup + 15 bytes
<no module>! RegisterWaitForInputIdle + 73 bytes

Right after, my game crashed.

my command line is C:\Games\FreeSpace2\fs2_open_3_6_12d_INF_SSE2.exe -mod mediavps_3612 -spec -glow -env -mipmap -nomotiondebris -missile_lighting -normal -3dshockwave -dualscanlines -targetinfo -orbradar -rearm_timer -ship_choice_3d -3dwarp -warp_flash -snd_preload -voicer -post_process  -no_emissive_light

And I've attached a fs2_open.log file. Is this an error on my end?

[attachment deleted by ninja]
Title: Re: Assertion error redalert.cpp and crash
Post by: The E on August 31, 2010, 04:43:03 am
The problem is on your end. Make sure that the mission's briefing is set up correctly. It seems as if you have one or more briefing stages, Which as far as I can tell is not allowed in a red-alert mission.
Title: Re: Assertion error redalert.cpp and crash
Post by: CommanderDJ on August 31, 2010, 04:52:51 am
Ah, right, yes, that fixed the problem. Thanks for like the billionth time, The E!

Hey, since I've got a thread here already, can I now request help with that AI weirdness I talked about in my first post? Or should that go in the modding or FREDding boards?
Title: Re: Assertion error redalert.cpp and crash
Post by: The E on August 31, 2010, 04:56:46 am
That one sounds like a genuine AI bug to me. Post a bug report at the SCP Mantis (http://scp.indiegames.us/mantis/), and attach a mission that shows that bug in effect (Using only retail or mediavps assets, if possible).
Title: Re: Assertion error redalert.cpp and crash
Post by: CommanderDJ on August 31, 2010, 05:02:24 am
Will do. Thanks for your help! You're quite awesome.