Page 1 of 1

[RC4] Lua error loop in Dark Crypt

Posted: Sat Dec 29, 2012 12:01 pm
by Waladil
While this did occur in the Dark Crypt, I don't think it's to do with the old Dark Portal errors.

Anyway, I was playing as a Yeek Necromancer, just turned Lich. After climbing down the stairs, I had a nasty battle with the cultists in which I:

Summoned undead (twice)
Summoned Mindslayer allies
Mind-controlled a cultist.

AFTER the battle had completed, I got a lua error. I then rested, and started getting a loop of lua errors, which eventually stopped, replacing with my screen alternating between black and normal, and being uncontrollable. It was at this point I used the task manager to quit out of the game.

What I think happened is one of the Mindslayers failed to leave after he was supposed to (since he was still around after I'd fully rested.) I tried to check his description to verify, but that ended up causing more errors.

These two errors were in my game log. The first one was repeated maybe 8 times or so, the second more like 30 or 40 times.
Lua Error: /mod/class/Actor.lua:4257: bad argument #1 to 'distance' (number expected, got nil)
At [C]:-1
At [C]:-1 distance
At /mod/class/Actor.lua:4257 hasLOS
At /mod/class/Grid.lua:143 check
At /engine/Map.lua:703 checkEntity
At /mod/class/Tooltip.lua:36 check
At /mod/class/Tooltip.lua:53 getTooltipAtMap
At /engine/Tooltip.lua:269 displayAtMap
At /engine/interface/GameTargeting.lua:65 targetDisplayTooltip
At /mod/class/Game.lua:1227
Lua Error: /engine/utils.lua:1751: bad argument #1 to 'line_base' (number expected, got nil)
At [C]:-1
At [C]:-1 line_base
At /engine/utils.lua:1751 lineFOV
At /engine/Target.lua:112 display
At /mod/class/Game.lua:1154 displayMap
At /mod/class/uiset/Minimalist.lua:1887 display
At /mod/class/Game.lua:1208

Re: [RC4] Lua error loop in Dark Crypt

Posted: Sun Dec 30, 2012 6:55 pm
by PowerWyrm
I got the same error as a necromancer while doing the Limmir quest. Maybe has something to do with the minions, as I had a lich minion doing all sort of things. There was also an Uruivellas leaving some AOE effect active way after being killed. Error message was:
Lua Error: /mod/class/NPC.lua:188: bad argument #3 to 'distance' (number expected, got nil)
At [C]:-1
At [C]:-1 distance
At /mod/class/NPC.lua:188
At [C]:-1 calc_default_fov
At /engine/interface/ActorFOV.lua:71 computeFOV
At /mod/class/NPC.lua:79 doFOV
At /mod/class/NPC.lua:57 act
At /engine/GameEnergyBased.lua:131 tickLevel
At /engine/GameEnergyBased.lua:62 tick
At /engine/GameTurnBased.lua:46 tick
At /mod/class/Game.lua:1041

Re: [RC4] Lua error loop in Dark Crypt

Posted: Sun Dec 30, 2012 10:53 pm
by Akaji
I wonder if this is related to http://forums.te4.org/viewtopic.php?f=42&t=36000 - that's the same file and line number as the error I received when starting Limmir's defense quest. I was playing a Solipsist with the thought-forged warrior summon, though dismissing it did nothing to help the error.

Re: [RC4] Lua error loop in Dark Crypt

Posted: Mon Dec 31, 2012 2:20 pm
by PowerWyrm
This seems to be fixed in 1.0, so upgrade ASAP if you're still using RC4.