Page 1 of 1

[git] Error if entering dream while golem is dead

Posted: Fri Feb 27, 2015 6:28 am
by Stuntofthelitter
Noxius Caldera, as alchemist. If golem is not alive when entering the dream an error occurs followed the game becoming stuck in a loop and generally ruining fun.

Code: Select all

Lua Error: /engine/Level.lua:126: Entity 2346(golem (servant of player)) not present on the level
	At [C]:-1 
	At [C]:-1 error
	At /engine/Level.lua:126 removeEntity
	At /data/zones/dreams/zone.lua:289 enter_dreams
	At /data/zones/dreams/zone.lua:243 on_enter
	At /mod/class/Game.lua:1043 changeLevelReal
	At /mod/class/Game.lua:807 changeLevel
	At /data/zones/noxious-caldera/zone.lua:165 run_dream
	At /data/zones/noxious-caldera/zone.lua:149 on_turn
	At /mod/class/Game.lua:1436 onTurn
	At /engine/GameEnergyBased.lua:88 tick
	At /engine/GameTurnBased.lua:46 tick
	At /mod/class/Game.lua:1255 

Re: [git] Error if entering dream while golem is dead

Posted: Fri Feb 27, 2015 1:27 pm
by 0player
Should've considered that some entities in party may not be on the level. Will fix.