Author Topic: Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed  (Read 2273 times)

0 Members and 1 Guest are viewing this topic.

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed
We've been beating our heads against this problem on IRC for an hour now.

Here's the error:

Quote
Assert: ss
File: ship.cpp
Line: 16871

kernel32.dll! WaitForSingleObjectEx + 68 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! SCP_DumpStack + 354 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! WinAssert + 194 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ship_subsys_is_fighterbay + 60 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ship_fighterbays_all_destroyed + 108 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ship_get_ship_with_dock_bay + 183 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ai_mission_goal_achievable + 260 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! validate_mission_goals + 128 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ai_process_mission_orders + 102 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ai_frame + 262 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ai_process + 284 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! ship_process_post + 1858 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! obj_move_all_post + 780 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! obj_move_all + 428 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! game_simulation_frame + 1112 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! game_frame + 501 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! game_do_frame + 231 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! game_do_state + 403 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! gameseq_process_events + 232 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! game_main + 782 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! WinMain + 328 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! __tmainCRTStartup + 296 bytes
fs2_open_3_7_1_BP_SSE2-DEBUG.exe! WinMainCRTStartup + 13 bytes
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes

It occurs briefly after the mission transitions into subspace and most of the ships previously present depart via no-warp-effect, but only if before this point the player has gone through a series of events involving docking with a support ship which then ordered to depart (but which quite reliably fails to follow this order...)

Here's the log: http://pastebin.com/z1ShDB8m

Note that it's going through departures (it seems to me) right before it crashes.

I'm continuing debug work on this using some gnarly-ass improvised mission breakpoints to try to isolate the causal factor. So far I can confirm that if the support ship never enters the mission the crash does not seem to occur.
« Last Edit: February 04, 2014, 12:31:23 am by General Battuta »

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Help me solve this CRAZY ERROR!
Let me add details on the support ship stuff: the support ship has its orders cleared then a 101-priority warpout goal added. A second later the maximum concurrent number of support ships in the mission is set to 0. The support ship freezes in place and stops responding to orders - so clearly these have to be related, right, but I can't repro this freezing behavior in a test mission...

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Help me solve this CRAZY ERROR!
Have you tried delaying the maximum number of support ships sexps until after has-departed, rather than one second? That might be confusing it?
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Help me solve this CRAZY ERROR!
After madness and wrath I have chased this bug back to its ****ing lair: alter-ship-flag.

If alter-ship-flag (no subspace drive) (true) (true) (Alpha 1) fires at mission start, support ships lose their subspace drive.

If a support ship is ordered to depart after this, it will freeze and stop accepting all orders.

If there is a ship with a fighterbay nearby, it will apparently think about departing there, but never attempt to.

If all nearby ships with fighterbays then leave the mission, the mission instantly crashes.

If there is no ship with a fighterbay in the mission, you cannot order the support ship to depart.

I HAVE TRACKED DOWN THIS ****ING BUG. Retail assets repro mission attached. Includes all instructions to repro.

[attachment deleted by an evil time traveler]
« Last Edit: February 04, 2014, 12:41:41 am by General Battuta »

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed
Mantised.

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed
Since I made the alter-ship-flag, I'm going to point out that the error isn't its fault but the fault of whoever decided to automatically turn off jump drives on support ships if the player doesn't have one. :p

Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed
I figured it was something like that - nothing personal!

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed
Once more we witness Battuta venture forth to complete a quest of evil bug slaying.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed
Since I made the alter-ship-flag, I'm going to point out that the error isn't its fault but the fault of whoever decided to automatically turn off jump drives on support ships if the player doesn't have one. :p

svn blame~

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Help me solve this CRAZY ERROR! edit: alter-ship-flag is ****ed
I was being tactful. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]