Page 1 of 1
[Fixed for V0.42] Stepping on lava crashes game
Posted: Sun Aug 06, 2006 4:10 pm
by TheMormegil
When I walk on the lava in Dark Portal the game crashes with no diagnostic info.
Posted: Sun Aug 06, 2006 6:05 pm
by Sophia
That's how bad it kills you!
Seriously, though, to provide a bit more information, the lava is nothing but a damage tile set to an obscene value.
Posted: Sun Aug 06, 2006 6:37 pm
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).
Posted: Mon Aug 07, 2006 6:08 am
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.

Posted: Mon Aug 07, 2006 8:02 am
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 :)
Posted: Mon Aug 07, 2006 10:19 am
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

Posted: Mon Aug 07, 2006 10:44 pm
by TheMormegil
I have decompiled an rtc.
(And no, I don't want a medal)
Posted: Mon Aug 07, 2006 11:16 pm
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.
Posted: Tue Aug 08, 2006 12:02 am
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.
Posted: Tue Aug 08, 2006 12:28 am
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!).
Posted: Tue Aug 08, 2006 11:26 pm
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?
Posted: Tue Aug 08, 2006 11:34 pm
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 :)