Repair Turret

by Klonan

Adds Repair Turrets

Content
24 days ago
0.17 - 2.0
100K
Combat Logistic network

b Crash report - force placement if removing turret

19 days ago

When force placing (SHFT+CTRL) anything (blueprint) that causes a repair turret to be removed while using creative mod with instant blueprint and instant deconstruct on (may also apply generally without creative mod - not had a chance to check):

4515.724 Error MainLoop.cpp:1429: Exception at tick 7525989: The mod Repair Turret (2.0.2) 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:294: assertion failed!
stack traceback:
[C]: in function 'assert'
Repair_Turret/script/repair_turret.lua:294: in function 'is_valid_for_entity'
Repair_Turret/script/repair_turret.lua:443: in function 'find_nearby_turrets'
Repair_Turret/script/repair_turret.lua:982: in function 'check_ghost'
Repair_Turret/script/repair_turret.lua:1001: in function 'check_ghost_check_queue'
Repair_Turret/script/repair_turret.lua:1035: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>
4515.724 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod Repair Turret (2.0.2) 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:294: assertion failed!
stack traceback:
[C]: in function 'assert'
Repair_Turret/script/repair_turret.lua:294: in function 'is_valid_for_entity'
Repair_Turret/script/repair_turret.lua:443: in function 'find_nearby_turrets'
Repair_Turret/script/repair_turret.lua:982: in function 'check_ghost'
Repair_Turret/script/repair_turret.lua:1001: in function 'check_ghost_check_queue'
Repair_Turret/script/repair_turret.lua:1035: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>"
4515.726 Info ServerMultiplayerManager.cpp:808: updateTick(7525989) changing state from(InGame) to(Failed)
4515.735 Quitting: multiplayer error.
4515.735 Info GlobalContext.cpp:746: Deleting active scenario.

New response