Exception in Prison (CSB - v0.17)

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Exception in Prison (CSB - v0.17)

Post 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.....
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

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

Post 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....
User avatar
Gambit37
Should eat more pies
Posts: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

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

Post 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.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

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

Post 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...
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

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

Post by George Gilbert »

Fixed for V0.18
Post Reply