Updated Construction Drones

by Tubbles

Adds ground based construction robots. A repackage of roy192's fork of the original mod by Klonan. WARNING: Please note that 2.0 support is experimental, use at your own risk!

Content
24 days ago
1.1 - 2.0
43.8K
Logistic network

b Space Platform Error

8 days ago

First off, thanks for porting this, it's one of my favorite mods!

I think the drones are meant to be used with Space Age, so I think this bug report is appropriate.

It occurs when calling up the deconstruction planner on a space platform. Sometimes a drone will actually appear, emanating from the platform hub. It happens too quick for me to tell if the issue is the drone leaving the hub or returning, but the text below seems to indicate it's upon return.
It might be related to calling up the deconstruction planner while sections of the platform are being built, but it is not consistent. I would say that some amount of spamming of construction and deconstruction will eventually trigger the error:

The mod Updated Construction Drones (2.0.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Updated_Construction_Drones::on_ai_command_completed (ID 129)
LuaEntity belongs to surface nauvis (index 1) but a LuaEntity belonging to surface platform-2 (index 3) was expected.
stack traceback:
[C]: in function 'set_command'
...ated_Construction_Drones__/script/construction_drone.lua:1207: in function 'move_to_player'
...ated_Construction_Drones__/script/construction_drone.lua:1898: in function 'process_return_to_player_command'
...ated_Construction_Drones__/script/construction_drone.lua:518: in function 'set_drone_idle'
...ated_Construction_Drones__/script/construction_drone.lua:1167: in function <...ated_Construction_Drones__/script/construction_drone.lua:1135>
(...tail calls...)
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

8 days ago

yep i got this error when i was in another planet .

Error while running event Updated_Construction_Drones::on_ai_command_completed (ID 129)
LuaEntity belongs to surface maraxsis (index 5) but a LuaEntity belonging to surface nauvis (index 1) was expected.
stack traceback:
[C]: in function 'set_command'
...ated_Construction_Drones__/script/construction_drone.lua:1207: in function 'move_to_player'
...ated_Construction_Drones__/script/construction_drone.lua:1898: in function 'process_return_to_player_command'
...ated_Construction_Drones__/script/construction_drone.lua:518: in function 'set_drone_idle'
...ated_Construction_Drones__/script/construction_drone.lua:1167: in function <...ated_Construction_Drones__/script/construction_drone.lua:1135>
(...tail calls...)
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

New response