Allow to create item-proxy-requests on entity-ghost

Things that already exist in the current mod API
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 401
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Allow to create item-proxy-requests on entity-ghost

Post by protocol_1903 »

Currently, if you attempt to create an item-proxy-request on an entity-ghost it will crash the game, stating that the target entity must have health. I would rather it create a ghost proxy-request (like those created from placing blueprints with modules, train fuel, etc.) instead of crashing. Alternatively, if this is already a feature and I'm doing it wrong, please let me know.

The use case for this is trains. I'm working on a mod to have trains request fuel when created, but as soon as a train is created it will be switched to automatic mode IF there is not a fuel request. If so, it would wait for the fuel, then switch to auto. Which is great, except I can't create the fuel request until after the entity has been created, but then it's already in auto mode, so i need to make it manual, then turn it back to auto... A lot of work to get it to stay put.
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
curiosity
Filter Inserter
Filter Inserter
Posts: 712
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Allow to create item-proxy-requests on entity-ghost

Post by curiosity »

It's part of the ghost itself.
Post Reply

Return to “Already exists”