[Fixed for V0.42] Stepping on lava crashes game
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- TheMormegil
- Adept
- Posts: 213
- Joined: Thu Apr 10, 2003 10:23 am
- Location: Wales
[Fixed for V0.42] Stepping on lava crashes game
When I walk on the lava in Dark Portal the game crashes with no diagnostic info.
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
Fixed for V0.42
Sophia - it's more than just a damage tile! What was happening was that the damage tile kills the party, the party drops their items on the tile which then activate a trigger that's also on the lava - that trigger tries to create an item in the hand of a party member...but there are no party members (which then causes the crash).
Sophia - it's more than just a damage tile! What was happening was that the damage tile kills the party, the party drops their items on the tile which then activate a trigger that's also on the lava - that trigger tries to create an item in the hand of a party member...but there are no party members (which then causes the crash).
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
I can't decompile dungeons - what I can do though is stop execution of a dungeon in a debugger and have a look at all the variables.
In this particular case, it was even easier than that - just catch the crash the in the debugger and have a look at the stack which looked something like
GetPartyMember()
CreateItemInHand()
ActivateTrigger()
DropMemberItems()
KillMember()
DamageMember()
ActivateTrigger()
CheckPartyTile()
MoveParty()
KeyPress()
WinMain()
Bit of a give away really
In this particular case, it was even easier than that - just catch the crash the in the debugger and have a look at the stack which looked something like
GetPartyMember()
CreateItemInHand()
ActivateTrigger()
DropMemberItems()
KillMember()
DamageMember()
ActivateTrigger()
CheckPartyTile()
MoveParty()
KeyPress()
WinMain()
Bit of a give away really
- TheMormegil
- Adept
- Posts: 213
- Joined: Thu Apr 10, 2003 10:23 am
- Location: Wales
- TheMormegil
- Adept
- Posts: 213
- Joined: Thu Apr 10, 2003 10:23 am
- Location: Wales
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
- TheMormegil
- Adept
- Posts: 213
- Joined: Thu Apr 10, 2003 10:23 am
- Location: Wales