MagmaMcFry / Factorissimo2

Factorissimo2, a Factorio mod that adds factory buildings to the game
https://mods.factorio.com/mod/Factorissimo2
MIT License
65 stars 40 forks source link

Why does factorissimo not support cloning? #47

Closed PyroFire232 closed 5 years ago

PyroFire232 commented 5 years ago

https://mods.factorio.com/mod/Factorissimo2/discussion/5d4c969c3fac7d000d283949

Hi, this has compatability issues with my mod and it's on you.

https://mods.factorio.com/mod/warptorio2/discussion/5d4c69100f9321000c7830d5

Basically, this mod, warptorio, teleports all structures and machines and such on a small platform between randomized factorio surfaces periodically. It does this through the use of cloning.

Basically, you just need to hook the event https://lua-api.factorio.com/latest/events.html#on_entity_cloned and update your warehouse data accordingly to the destination entity (probably destroying the old one in the process just for cleanliness?)

Please & thankyou.

MagmaMcFry commented 5 years ago

Fixed as of v2.3.7.