Page 1 of 1

Crashing in Halfling ruins

Posted: Tue Mar 22, 2011 10:58 pm
by mrdvant
So, I went in once at level 10. Got my ass handed to me a few times, then went back out. I'm going in from the Yeek side, by the way. So now, at level 11 I go in and if I do anything at all(move, use an ability, etc) the game instantly crashes. Any ideas?

Re: Crashing in Halfling ruins

Posted: Tue Mar 22, 2011 11:18 pm
by yufra
If the problem is reproducible and you are not getting any Lua errors in the stdout log (not sure which OS you are using) then you can have a look at this page: http://te4.org/wiki/tome4-running-tome-gdb

Basically we need more information. :)

Re: Crashing in Halfling ruins

Posted: Tue Mar 22, 2011 11:29 pm
by mrdvant
I'm using Vista 32 bit. I'll look into the gdb thing and get back.

Re: Crashing in Halfling ruins

Posted: Tue Mar 22, 2011 11:55 pm
by evouga
Is the Windows build compiled with -g? I remember trying to debug a crash a few days ago in MSVC and there didn't appear to be any debugging symbols in the stack trace.

Re: Crashing in Halfling ruins (UPDATED with log)

Posted: Tue Mar 22, 2011 11:56 pm
by mrdvant
From stdout...

AI took for target 3139 Subject Z :: 674 Gleek 10 < 0
============================== TACTICAL AI Subject Z
Subject Z 3139 tactical ai talents can use Infusion: Wild T_INFUSION:_WILD_2 defend
Tactical ai report for Subject Z
============================== TACTICAL AI armoured skeleton warrior
armoured skeleton warrior 2794 tactical ai talents can use Rune: Shielding T_RUNE:_SHIELDING_1 defend
Tactical ai report for armoured skeleton warrior
============================== TACTICAL AI armoured skeleton warrior
armoured skeleton warrior 3095 tactical ai talents can use Rune: Shielding T_RUNE:_SHIELDING_1 defend
Tactical ai report for armoured skeleton warrior
============================== TACTICAL AI armoured skeleton warrior
armoured skeleton warrior 2780 tactical ai talents can use Rune: Manasurge T_RUNE:_MANASURGE_1 mana
Tactical ai report for armoured skeleton warrior
Lua Error: /data/talents/cursed/darkness.lua:70: attempt to index upvalue 'target' (a nil value)
At [C]:-1
At /data/talents/cursed/darkness.lua:70 act
At /engine/GameEnergyBased.lua:73 tick
At /engine/GameTurnBased.lua:44 tick
At /mod/class/Game.lua:635
---------------- Stack Dump ----------------
--------------- Stack Dump Finished ---------------
---------------- Stack Dump ----------------

So it seems to be some problem with Subject Z?

Re: Crashing in Halfling ruins

Posted: Wed Mar 23, 2011 1:47 am
by yufra
Found the bug, and attached a patch, thanks.

Re: Crashing in Halfling ruins

Posted: Wed Mar 23, 2011 2:05 am
by mrdvant
Er..thank you? I have no idea what to do with this though. :p

Re: Crashing in Halfling ruins

Posted: Wed Mar 23, 2011 10:09 am
by darkgod
it's for me, not you ;)

Re: Crashing in Halfling ruins

Posted: Wed Mar 23, 2011 11:36 am
by mrdvant
ohh, good good. I was feeling a bit dumb there for a bit, like everyone knew how to do this but me. :p

Re: Crashing in Halfling ruins

Posted: Wed Mar 23, 2011 5:49 pm
by yufra
Hehe, no worries mrdvant. I can tell you how to apply the patch, but generally speaking you don't want to since it will stop ToME from uploading your character to the website (it just detects that files have changed, so you could be cheating, etc). The bug will be fixed in the next beta, though.

Re: Crashing in Halfling ruins

Posted: Wed Mar 23, 2011 11:44 pm
by mrdvant
So...is this a sometimes bug or all the time? I don't want to go through the effort of getting another yeek strong enough to get there if it's going to happen every time until it's fixed.