Page 1 of 1

1.0.5e - NPC casting a Fire spell (?)

Posted: Sun Oct 20, 2013 3:52 am
by Doctornull
Some annoying NPC cast Freeze, then Inferno on me, and then I think he tried to cast Flame... Lua errors spammed my screen, the NPC kept casting (since the bug meant it took him no time I guess?), and then I died.

Full log here:

http://pastebin.com/YMdT5DpF

Re: 1.0.5e - NPC casting a Fire spell (?)

Posted: Sat Nov 02, 2013 10:16 am
by Doctornull
Still happening in 1.0.5g (seems to be when an NPC has Wildfire):

Code: Select all

*p 25: Uniform: 5: 1406 time_factor
[LOG]	#UID:1867:0#Aethyn(YOU) hits Swarming horror for #aaaaaa#216 physical#LAST# damage.
[LOG]	#{bold}##UID:1867:0#Aethyn(YOU) killed Swarming horror!#{normal}#
[LOG]	
[LOG]	Resting starts...
[LOG]	#00ff00##UID:494:0#Talent Manathrust is ready to use.
[LOG]	#00ff00##UID:997:0#Talent Mindlash is ready to use.
[LOG]	Rested for 12 turns (stop reason: all resources and life at maximum).
[LOG]	
AI took for target	90437	boiling horror	::	1867	Aethyn	81	<	100
[SPELL] friendly fire chance	100
[LOG]	Boiling horror casts Flame.
[SPELL CRIT %]	4
New GL Shader program 28
*p 28: Uniform: 0: 8B5E tex
*p 28: Uniform: 1: 1406 tick
*p 28: Uniform: 2: 1406 time_factor
Adding entity	90523	after	90437
stack traceback:
	[C]: in function 'error'
	/engine/interface/ActorTalents.lua:152: in function </engine/interface/ActorTalents.lua:134>
Lua Error: /engine/interface/ActorTalents.lua:174: /engine/interface/ActorTalents.lua:152: /data/talents/spells/fire.lua:59: bad argument #1 to 'pairs' (table expected, got string)
stack traceback:
	[C]: in function 'pairs'
	/data/talents/spells/fire.lua:59: in function </data/talents/spells/fire.lua:39>
	[C]: in function 'xpcall'
	/engine/interface/ActorTalents.lua:147: in function </engine/interface/ActorTalents.lua:134>
	At [C]:-1 
	At [C]:-1 error
	At /engine/interface/ActorTalents.lua:174 useTalent
	At /mod/ai//tactical.lua:382 runAI
	At /mod/ai//tactical.lua:408 doAI
	At /mod/class/NPC.lua:61 act
	At /engine/GameEnergyBased.lua:126 tickLevel
	At /engine/GameEnergyBased.lua:62 tick
	At /engine/GameTurnBased.lua:46 tick
	At /mod/class/Game.lua:1127 
 ----------------  Stack Dump ----------------
4: table // 1e95ea0
3: 1.43722e+09
2: table // 1e95ea0
1: 1.43722e+09
--------------- Stack Dump Finished ---------------

Re: 1.0.5e - NPC casting a Fire spell (?)

Posted: Sat Nov 02, 2013 11:10 am
by darkgod
fixed