Targeted Fast Replace

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 149
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Targeted Fast Replace

Post by PennyJim »

I currently have a pretty bad bug in the mod Wide Containers. I previously tried 'fixing' one of the causes with a bug report: 130389
But it's been understandably deemed "not a bug".

Because the actual root of my issue was the LuaSurface::create_entity fast replace replacing both the marked-for-deconstruction entity and the ghost I was actually targeting.
The proposed solution of LuaEntity::order_upgrade is more limited than fast replace is, making it not feasible for my specific use case of cross-type replacing.

I am requesting that we get a LuaEntity::fast_replace or maybe add an argument of `fast_replace_target` to the create_entity params so it very specifically targets one entity in its fast replacing instead of multiple that might be overlapping.
curiosity
Filter Inserter
Filter Inserter
Posts: 697
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Targeted Fast Replace

Post by curiosity »

Post Reply

Return to “Modding interface requests”