Page 1 of 1

[not a bug, ignore] Lua bug on cloning Steamtech npc

Posted: Fri Oct 25, 2019 6:10 pm
by gachatar
EDIT: Oops, I was using 1.0.4 Embers of Rage addon. Bug is gone after updating to 1.0.5

This is a bit of a conjecture, but the problem is probably trying to create a copy of an NPC which has the steam generator implant active.
It happens on both Inner Demons spawn and also with dream clones inside Dreamscape. The clones never manage to spawn in either case (or despawn immediately?).

I saved the talents of the NPC causing the bug, hope it helps:
https://i.imgur.com/pxu5AOo.jpg

Log 1 with inner demons spawn:

Code: Select all

Lua Error: /data/gfx/particles/steam_generator_fumes.lua:25: attempt to perform arithmetic on global 'x' (a nil value)
	At [C]:-1 __mul
	At /data/gfx/particles/steam_generator_fumes.lua:25 f
	At /engine/Particles.lua:71 loaded
	At /engine/Particles.lua:50 cloned
	At /engine/class.lua:331 cloneCustomRecurs
	At /engine/class.lua:319 cloneCustomRecurs
	At /engine/class.lua:323 cloneCustomRecurs
	At /engine/class.lua:351 cloneCustom
	At /engine/Actor.lua:94 cloneActor
	At /mod/class/Actor.lua:2922 cloneActor
	At /data/talents/psionic/nightmare.lua:115 summon_inner_demons
	At /data/timed_effects/mental.lua:1633 on_timeout
	At /engine/interface/ActorTemporaryEffects.lua:93 timedEffects
	At /mod/class/NPC.lua:302 timedEffects
	At /mod/class/Actor.lua:607 actBase
	At /engine/GameEnergyBased.lua:119 tickLevel
	At /engine/GameEnergyBased.lua:64 tick
	At /engine/GameTurnBased.lua:51 tick
	At /mod/class/Game.lua:1523 
Log 2 with Dreamscape clones spawn:

Code: Select all

Lua Error: /data/gfx/particles/steam_generator_fumes.lua:25: attempt to perform arithmetic on global 'x' (a nil value)
	At [C]:-1 __mul
	At /data/gfx/particles/steam_generator_fumes.lua:25 f
	At /engine/Particles.lua:71 loaded
	At /engine/Particles.lua:50 cloned
	At /engine/class.lua:331 cloneCustomRecurs
	At /engine/class.lua:319 cloneCustomRecurs
	At /engine/class.lua:323 cloneCustomRecurs
	At /engine/class.lua:351 cloneCustom
	At /engine/Actor.lua:94 cloneActor
	At /mod/class/Actor.lua:2922 cloneActor
	At /data/timed_effects/other.lua:2061 on_timeout
	At /engine/interface/ActorTemporaryEffects.lua:93 timedEffects
	At /mod/class/Actor.lua:607 actBase
	At /mod/class/Player.lua:363 actBase
	At /engine/GameEnergyBased.lua:119 tickLevel
	At /engine/GameEnergyBased.lua:64 tick
	At /engine/GameTurnBased.lua:51 tick
	At /mod/class/Game.lua:1523