Page 1 of 1

LUA Error After Every Action After Dying On Tempest Peak

Posted: Wed Jan 15, 2014 8:57 pm
by Sanctus57
As a level 16 Alchemist, I died twice on Tempest Peak and after this I was unable to move without getting a LUA error. I submitted the bug report, but wanted to post it here as well. I tried editing the save file under "mod.class.partymember" as was recommended by a thread on steam, but the save file was updated the original version every time I reloaded the character.

My layman's guess is that this bug has something to do with the status effects on my golem, which I was unable to resummon because the "Refit Golem" skill was interrupted by the errors.

Thanks for listening

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Fri Jan 24, 2014 7:57 am
by parcel700
I got same problem on npc.lua 138 line, error in #3 functions parameter "tx" is nil.

My character is ruined in harddisk, not dungeon XD

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Fri Jan 24, 2014 10:49 am
by parcel700
I have same problem and my character also cannot refit it.

Code: Select all

Lua Error: /mod/class/NPC.lua:139: bad argument #3 to 'distance' (number expected, got nil)
	At [C]:-1 
	At [C]:-1 distance
	At /mod/class/NPC.lua:139 lineFOV
	At /engine/interface/ActorProject.lua:68 project
	At /data/timed_effects/magical.lua:855 on_timeout
	At /engine/interface/ActorTemporaryEffects.lua:78 timedEffects
	At /mod/class/NPC.lua:298 timedEffects
	At /mod/class/Actor.lua:476 actBase
	At /engine/GameEnergyBased.lua:116 tickLevel
	At /engine/GameEnergyBased.lua:62 tick
	At /engine/GameTurnBased.lua:46 tick
	At /mod/class/Game.lua:1144 
 ----------------  Stack Dump ----------------
2: table // 805ed8
1: table // 805ed8
--------------- Stack Dump Finished ---------------

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Wed Feb 12, 2014 3:37 am
by Sicnarf
Hi
Same problem here.
Level 16 Alchemist on tempest peak, got killed once, sent myself straight back and now every time I do any action.

LUA error: /mod/class/NPC.lua138: Bad argument

This does not happen on the world map, rod of recall out and lots of ignore errors to get there.

It appears the game thinks my Golem is still alive even though it's very very dead. The golem icon in the top left is there and if I skip enough turns it gains life as it regens. Entering an area that is not the world map just causes the errors to start happening again. Did a Lifesteal (don't know what you call it, new to game) on my golem to try and kill it, reduced it's life to 0% but it still keeps slowing gaining life if I skip enough turns. To be clear, moving to a new level does not have my golem appear beside me. Cannot use golem refit as every turn it is interrupted by the error.

I am using the free version, non steam so far. Is there any way to modify my save to "delete/Kill" my golem?

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Sat Aug 23, 2014 8:41 pm
by Fextina
I'm getting this exact error on steam. Is there any fix for this or workaround?!!!! I can't play, is there a way to kill the golem forcibly?!!

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Sat Dec 20, 2014 10:59 pm
by Tunse80
Same here. Can't play character after dieing on Tempest Peak. Golem icon still visible. Can't summon it back, can walk on world map but getting error as soon as I take a single step in any other map.

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Thu Mar 26, 2015 4:39 am
by Kemayo
Bit late, but: I just ran into this problem. On my very first character, too, so it's been a nice little learning experience.

Near as I can tell it's because my golem was killed, but still has the lightning-burst damage effect from the boss on it while it's dead, which causes some sort of problem in NPC.lua when you try to rez it.

I've fixed it, but all my fixes do involve using the debug console. So, turn that on.

Then open the lua console, and do:

Code: Select all

game.player.alchemy_golem.removeAllEffects(game.player.alchemy_golem)
Nothing will appear to happen, but after you do this you'll be able to revive the golem. So all's well that ends well.

(The tab-completion in the console: was my savior here.)

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Sat Apr 18, 2015 9:53 am
by Hagith
Just got this error the other day as well.

Code: Select all

Lua Error: /mod/class/NPC.lua:153: bad argument #3 to 'distance' (number expected, got nil)
	At [C]:-1 
	At [C]:-1 distance
	At /mod/class/NPC.lua:153 lineFOV
	At /engine/interface/ActorProject.lua:69 project
	At /data/timed_effects/magical.lua:914 on_timeout
	At /engine/interface/ActorTemporaryEffects.lua:83 timedEffects
	At /mod/class/NPC.lua:320 timedEffects
	At /mod/class/Actor.lua:549 actBase
	At /engine/GameEnergyBased.lua:116 tickLevel
	At /engine/GameEnergyBased.lua:62 tick
	At /engine/GameTurnBased.lua:46 tick
	At /mod/class/Game.lua:1255
 ----------------  Stack Dump ----------------
--------------- Stack Dump Finished ---------------

Re: LUA Error After Every Action After Dying On Tempest Peak

Posted: Tue Aug 04, 2015 9:32 am
by Von Krieger
Yup, still a thing and it happened to me as well just now on Tempest Peak. Corrected it via the LUA editor method, as somehow my save had become invalidated anyway.