[Fixed for V0.42] Stepping on lava crashes game

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.
Post Reply
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

[Fixed for V0.42] Stepping on lava crashes game

Post by TheMormegil »

When I walk on the lava in Dark Portal the game crashes with no diagnostic info.
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

That's how bad it kills you! :lol:

Seriously, though, to provide a bit more information, the lava is nothing but a damage tile set to an obscene value.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

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).
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

Oops, I forgot about that. That's there so you can't throw an item onto the lava. (Which would make you unable to get it, which could make the game unsolvable)

I am starting to not believe that you can't decompile dungeons. :wink:
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

He never said it couldn't be done, in fact he keeps asking for saved games etc...he just saifd we can't do it :)
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

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 :roll:
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

Post by TheMormegil »

I have decompiled an rtc.
(And no, I don't want a medal)
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

TheMormegil wrote:I have decompiled an rtc.
(And no, I don't want a medal)
Recently?

0.34's editor could load in .RTC files, though it didn't do it perfectly. Past that, though, I don't think so.
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

Post by TheMormegil »

No, not recently.
As you guessed, I loaded the .rtc into the editor then saved as a .txt
After weeding out some errors I had a compilable text file.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Ahh, right - that's OK then (and presumably even though it compiled, it will not have been the same as the original RTC file because a load of information would have been missing - like the graphics and sounds for starters!).
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

Post by TheMormegil »

Apart from the graphics and sounds it was the same IIRC. As it goes, I did have the graphics and sounds because the author released them with the RTC file. I don't think I played the recompiled version far (just to see if it worked).
Is the rtc file format much different now?
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Well 0.35 had all the new attack methods onwards and the new relays and actions and was pretty much when George went insane....so...yes :)
Post Reply