Logistic Carts

by dorfl

Carts (mini cars) carry items around a network of painted paths.

Content
3 years ago
0.16 - 1.1
1.91K
Logistics

g missing event: on_entity_cloned

5 years ago

https://lua-api.factorio.com/latest/events.html#on_entity_cloned

https://mods.factorio.com/mod/warptorio2/faq

Warptorio then uses LuaSurface.clone_entities from the current_planet.surface to the new_planet.surface
Each new entity created this way has defines.events.on_entity_cloned raised for it.
In this event you need to simply update your internal caching and duplicate everything to the new entity so the 2 are identical, but on a different surface.
Cloning does not typically happen in normal play, but to test it without mods, you can use the Clone feature in /editor.

5 years ago

Thanks for the report. While cloning would be great to support, it needs more time for debugging than I have available right now.

New response