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

Things that already exist in the current mod API
protocol_1903
Fast Inserter
Fast Inserter
Posts: 215
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.
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
curiosity
Filter Inserter
Filter Inserter
Posts: 635
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”