Repair Turret

by Klonan

Adds Repair Turrets

Content
27 days ago
0.17 - 2.0
101K
Combat Logistic network

g Error loading a map

4 years ago

Hi, I was using version 0.2.1, when update to 0.2.4, I couldn't load my save game.

Error while running event Repair_Turret::on_configuration_changed
LuaEntity API call when LuaEntity was invalid.
stack traceback:
Repair_Turret/script/repair_turret.lua:35: in function 'add_to_repair_queue'
Repair_Turret/script/repair_turret.lua:533: in function 'on_configuration_changed'
core/lualib/event_handler.lua:82: in function <core/lualib/event_handler.lua:79>
stack traceback:
[C]: in function 'index'
__Repair_Turret
/script/repair_turret.lua:35: in function 'add_to_repair_queue'
Repair_Turret/script/repair_turret.lua:533: in function 'on_configuration_changed'
core/lualib/event_handler.lua:82: in function <core/lualib/event_handler.lua:79>

I've temporarly fixed it adding on repair_turret.lua line 34:
if not entity.valid then return end

Save if you need

4 years ago

ok I pushed a fix, thank for the report

New response