Repair Turret

by Klonan

Adds Repair Turrets

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

b Crash when deconstructing something with no chest to put that something into.

4 years ago

Just got the construction upgrade. No logistic system chests constructed anywhere in my base yet. Used the deconstruction planner to clear out some rocks near my wall (expecting my TinyStart bots to take care of it) and the turret tried. (Reloading the autosave and dropping a storage chest right next to a turret then trying again prevents the crash). Here's the error:

21526.579 Error MainLoop.cpp:1202: Exception at tick 2210926: The mod Repair Turret (0.4.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Repair_Turret::on_tick (ID 0)
Repair_Turret/script/repair_turret.lua:698: bad argument #3 of 3 to 'select_drop_point' (table expected, got nil)
stack traceback:
[C]: in function 'select_drop_point'
Repair_Turret/script/repair_turret.lua:698: in function 'deconstruct_entity'
Repair_Turret/script/repair_turret.lua:763: in function 'update_turret'
Repair_Turret/script/repair_turret.lua:845: in function 'check_turret_update'
Repair_Turret/script/repair_turret.lua:948: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

4 years ago

Ok I think i fixed it

New response