Chaosforge Forum

DoomRL => Bug Reports => Topic started by: sauer2 on December 11, 2016, 12:09

Title: [0.9.9.7 Windows 7 64bit] game crashes after def. Spider Mastermind indirectly
Post by: sauer2 on December 11, 2016, 12:09
This was the first time I was about to finish the game. It became clear I didn't have enough health packs left, so I deployed the thermonuclear bomb I conveniently found.
After dying the game told me I had won, but then it crashed with the attached error message.

Afterwards, the save file was corrupted.
Title: Re: [0.9.9.7 Windows 7 64bit] game crashes after def. Spider Mastermind indirectly
Post by: yaflhdztioxo on December 11, 2016, 19:47
Reproduced.  It appears to happen if you die immediately after placing the nuke, or potentially it has to do with the AI's current state.  The bug is clearly in the AI referencing the monster's self property even though the monster no longer exists.

This COULD be solved in the AI with judicious checking of the self.__ptr property but methinks the engine should be keen on NOT continuing the mastermind's AI after it has died.  I'll poke around the engine code later (it's not my specialty but kk is busy).
Title: Re: [0.9.9.7 Windows 7 64bit] game crashes after def. Spider Mastermind indirectly
Post by: sauer2 on December 12, 2016, 00:56
Quote
I'll poke around the engine code later
Thank you, much appretiated.