[1.5.5] lua errors with ActorLife.lua - help please....!
Posted: Sun Jul 16, 2017 4:51 am
I have overwirtten ActorLife.lua in an addon I'm developing, with only minor changes, namely, adding some print functions. that's all.
But it now triggers on the world map endless lua errors:
any idea why this is happening?
But it now triggers on the world map endless lua errors:
Code: Select all
Lua Error: /mod/class/WorldNPC.lua:190: attempt to index field 'ActorLife' (a nil value)
At [C]:-1 __index
At /mod/class/WorldNPC.lua:190 die
At /mod/class/WorldNPC.lua:141 attack
At /mod/class/interface/ActorLife.lua:42 check
At [string "return function(self, x, y, what, ...) local ..."]:1 checkAllEntities
At /engine/interface/ActorAI.lua:64 aiCanPass
At /engine/interface/ActorAI.lua:86 runAI
At /mod/ai//worldnpcs.lua:85 doAI
At /mod/class/WorldNPC.lua:155 act
At /engine/GameEnergyBased.lua:129 tickLevel
At /engine/GameEnergyBased.lua:64 tick
At /engine/GameTurnBased.lua:51 tick
At /mod/class/Game.lua:1386