Page 1 of 1

[b42] Imortal Rare Naga + Lua error crash

Posted: Wed Aug 22, 2012 9:27 am
by Dervic
A rare Naga in High Peak 2, wouldn't go below 0 hp even though it still suffered damage.
I think (but I'm not sure) the cause was that I stripped Unstoppable from her using Corrupted Negation.
I have a working save but the first move will always result in a LUA error spam:

Code: Select all


Lua Error: /mod/ai//tactical.lua:187: attempt to perform arithmetic on field 'life' (a nil value)
	At [C]:-1 __mul
	At /mod/ai//tactical.lua:187 runAI
	At /mod/ai//tactical.lua:403 doAI
	At /mod/class/NPC.lua:47 act
	At /engine/GameEnergyBased.lua:131 tickLevel
	At /engine/GameEnergyBased.lua:62 tick
	At /engine/GameTurnBased.lua:46 tick
	At /mod/class/Game.lua:995 
 ----------------  Stack Dump ----------------
2: table // 1b35e78
1: table // 1b35e78
--------------- Stack Dump Finished ---------------
[SPELL] friendly fire chance	100
Lua Error: /mod/ai//tactical.lua:187: attempt to perform arithmetic on field 'life' (a nil value)

Re: [b42] Imortal Rare Naga + Lua error crash

Posted: Wed Aug 22, 2012 9:57 am
by Dervic
Edit: My hypothesis, was wrong... the Naga was a Marauder/ArchMage and I still have no idea why this happened. I edited the savefile to give her ["life"]=1 and kept going anyway.

Re: [b42] Imortal Rare Naga + Lua error crash

Posted: Wed Aug 22, 2012 9:30 pm
by darkgod
I'll take the save please :)