Transport Drones


Adds transport drones and transport depots

Content
5 months ago
2.0
8.30K
Transportation Logistics Logistic network Storage

g Error

8 months ago

Error while running event Transport_Drones_Meglinge_Fork::on_entity_died (ID 4)
LuaForce doesn't contain key kill_count_statistics.
stack traceback:
[C]: in function 'index'
...nsport_Drones_Meglinge_Fork
/script/transport_drone.lua:743: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

8 months ago

Replace the problematic lines with this:
entity.force.get_kill_count_statistics(entity.surface).on_flow("transport-drone-1", 1)
event.force.get_kill_count_statistics(entity.surface).on_flow("transport-drone-1", -1)

8 months ago

Hello thanks for helping us Hromon, i would need a little more help please what problematic line i tried to search on transport_drone.lua but found nothing corresponding to "on_entity_died" or "entity.force.get"

Thanks

8 months ago

Okay i found some in script folder then transport_drone.lua i'm putting the line you said instead of the one written there, thanks i hope it works!

8 months ago

Hello thanks for helping me , it worked

Thanks

New response