Warp Drive Machine


You are in relative control of a spacecraft equipped with a warp drive that distorts the shape of the space-time continuum and may travel at speeds greater than that of light by many orders of magnitude. Jump from planet to planet and extract most resources you can to rebuild you ship. Each planet is unique with its own challenges, and you can stay limited time on it, until spaceship warps toward another world.

Overhaul
2 days ago
1.1
1.60K

g Mining Drones integration

a month ago

Hi! Personally I haven't tried your mod, but a couple of times a got feature request to add compatibility for MD2R with your mod.

Because of similar requests, I already added compatibility with Warptorio2 which seems quite similar. Actually, it required small amount of changes, mainly to make special entities (like invisible walls, power connectors, mining drones themselves) ignored during platforms teleportations using special W2 remote interface function. Here is the diff on GitHub. Then the teleportation event is handled (not the event from W2, but special parameters set of on_built_entity game event) to clean old entities; and I hope this event will be simply reused with your mod, so that only blacklisting is required. Meanwhile, I found no similar possibility in the source code of WDM.

So here is a question: do you plan to add a similar remote interfaces (blacklisting some entities from teleporting them, and maybe subscription to teleportation events) for other mods to integrate? IMHO, such functionality is an important step for any overhaul mod to grow mature :)

a month ago

And yeah, forgot to mention a link to Mining Drones 2 in case you haven't seen it: https://mods.factorio.com/mod/Mining_Drones_Remastered

a month ago

Hi friend.
Take a look on the event https://lua-api.factorio.com/latest/events.html#on_entity_cloned
There your mod can handle everything about your own mod. Exactly what you asked here. Destroy old invisible entitties while creating the new required ones on the new cloned area.
You could write a single solution for all cloning mods, like W2 or WDM. I think there is no need to handle each mod separately. I've made this on many mods of my own, when Pyrofire inventeda that crazy warp machine, with cloning entities on other surfaces... =)
Or is there any impossibility on your side ? We can discuss this further if necessary

a month ago

Well, this event is already used to properly delete additional invisible entities of cloned source. But, taking into account players feedback, I suppose that WDM creates clones of these invisible entities before they got deleted, and because of being created by external code, these new invisible instances get not managed by the code of my mod. Therefore, cloning blacklisting by entity names list, like in W2, still seems to be needed :)

a month ago
(updated a month ago)

I use surface.clone_brush, that clones everything in an area... There is no filter on that
The game engine raises defines.events.on_entity_cloned for each entity, and then defines.events.on_area_cloned is raised. Thats why each mod should define what to do when it happens

New response