Page 1 of 1

Exception in Prison (CSB - v0.17)

Posted: Wed Mar 13, 2002 9:41 pm
by Gambit37
I was messing about in the CSB prison trying to grab some characters to play test the game. I had selected Mantia, Petal and the secret Kazai and was sleeping to regain health before going back through the lower level and dealing with the remaining rock piles.

I went downstairs, DES VEN'd the first rock pile blocking my way - no problem. On doing the same thing to the next one in line, the game crashed. Here's the dump:

RTC.MonsterMove(int 3212, char 10, char 15, char 11);
RTC.UpdateItemMonster(int 3212, int 1046, char 10, char 15, char 11);
RTC.UpdateItem(int 3212, char 10, char 15, char 11);
RTC.UpdateDungeon();
RTC.DoFrame(int 50);
RTC.WinMain();

Do you also need the associated SAV and RTC files? Note that I tried this again after re-starting from the save game, and there were no problems.....

Re: Exception in Prison (CSB - v0.17)

Posted: Thu Mar 14, 2002 11:23 am
by George Gilbert
Curious - I'll have a look at that...

I have a nasty suspicion that this is the crash that I have been trying to nail down for ages (i.e. some problem with the collision detection). I guess that it's trying to move the rock pile out of the way and tests against the spell which is no longer there (as it's turned into a cloud).

Hmmm....

Re: Exception in Prison (CSB - v0.17)

Posted: Fri Mar 15, 2002 1:38 am
by Gambit37
The second rock pile was a tile away - not on the same tile as the rockpile that died. So it couldn't have moved into the poison cloud created by des ven. However, maybe it moved into the dust cloud left by the dying rockpile - I'm not sure.

Re: Exception in Prison (CSB - v0.17)

Posted: Fri Mar 15, 2002 10:20 am
by George Gilbert
Well I've found *A* bug in the monster movement code, whether it's *the* bug is another matter though ;-)

There was an obscure path whereby it would crash when a monster tried to move in one direction, found that that direction was blocked, tried to move in another direction and then died as a result of that move (e.g. walked into a fireball or des-ven cloud).

If it was this then it would explain why we only saw this crash in the middle of fights with lots of monsters and lots of spells flying about and even then, only very rarely...

I'll put the fix into V0.18 and we'll have to see if it still crashes...

Re: Exception in Prison (CSB - v0.17)

Posted: Mon Mar 18, 2002 10:38 am
by George Gilbert
Fixed for V0.18