Page 1 of 1

[b35] Crash when trying to confuse Subject Z

Posted: Fri Nov 25, 2011 1:11 pm
by dpt
I was playing an Anorithil in b35. When I got to the Subject Z/Wayist fight, the first thing I did was to cast 'Mind Blast'. I promptly got a crash, with this message:


Lua Error: /data/talents/psionic/focus.lua:39: attempt to compare number with nil
At [C]:-1 __lt
At /data/talents/psionic/focus.lua:39 val
At /mod/ai//tactical.lua:121 runAI
At /mod/ai//tactical.lua:399 doAI
At /mod/class/NPC.lua:47 act
At /engine/GameEnergyBased.lua:118 tickLevel
At /engine/GameEnergyBased.lua:62 tick
At /engine/GameTurnBased.lua:44 tick
At /mod/class/Game.lua:926
---------------- Stack Dump ----------------
2: table // b096fd98
1: table // b096fd98
--------------- Stack Dump Finished ---------------

Re: [b35] Crash when trying to confuse Subject Z

Posted: Fri Nov 25, 2011 1:59 pm
by dpt
Actually, I've been getting this crash even when I don't use Mind Blast; it's some other error. It's really annoying, though.

Re: [b35] Crash when trying to confuse Subject Z

Posted: Fri Nov 25, 2011 2:18 pm
by dpt
Further update: I fixed this by adding the line

Code: Select all

                local gem_level = getGemLevel(self)
at line 39 of data/talents/psionic/focus.lua.