Construction Drones deprecated

by Klonan

Adds ground based personal construction robots.

Content
3 years ago
0.17 - 1.0
352
Logistic network

g Compatibility issue: Drones not deconstructing trees marked through order_deconstruction()

4 years ago

Hi! I was playing with Construction Drones and my Tree Cleaner mod (https://mods.factorio.com/mod/TreeCleaner), and I noticed that the construction drones are not deploying to pick up trees marked for deconstruction by the TC mod, but they do when the player marks the tree for deconstruction through the Deconstruction Planner or when pasting a blueprint. Am I missing a trigger for your mod's drones, or not using the LUA API properly? It's my first mod, so any advice is welcome.

The significant three lines of code are here (https://github.com/gepandz/tree-cleaner/blob/master/control.lua#L11-L13); I'm using order_deconstruction(game.forces["player"]), which may not be the right way to go about it and still feels kinda hack-y. I'd appreciate any advice you can give, as I'm sure I'm just missing something (probably something basic... ;) ). Thanks!

-- GPS

4 years ago

The game event doesn't give any force if its done by script, so my mod doesn't know who should deconstruct it

New response