Make source/target inventories of inserters writeable
Posted: Wed Aug 01, 2018 11:39 pm
Currently, inserters always figure out by themselves which inventory they interact with, if multiple are possible.
The current behavoir allows us to manipulate this through build order. Consider the following setup: The car is positioned in such a way that all four inserters are able to interact with it, but two of them would prefer the beacons if they had the choice.
We can "trick" them into choosing the car anyway by placing the beacons after the car and after the inserters.
It's currently rather tedious to correct the link between inserters and inventories, especially on if you need to check multiple thousands. Note that this is only one example of many: similar interactions happen for belt vs car, assembler vs car, etc., too.
It would be nice if I could write some lua script that does that for me.
This is especially important since the new editor clone tool does not copy this link, which can again be at least fixed by a helper script/mod.
I'm not sure on whether or not any entity should be allowed, or only ones that are actually reachable, but I'd say either is fine, so please implement whatever is easier
The current behavoir allows us to manipulate this through build order. Consider the following setup: The car is positioned in such a way that all four inserters are able to interact with it, but two of them would prefer the beacons if they had the choice.
We can "trick" them into choosing the car anyway by placing the beacons after the car and after the inserters.
It's currently rather tedious to correct the link between inserters and inventories, especially on if you need to check multiple thousands. Note that this is only one example of many: similar interactions happen for belt vs car, assembler vs car, etc., too.
It would be nice if I could write some lua script that does that for me.
This is especially important since the new editor clone tool does not copy this link, which can again be at least fixed by a helper script/mod.
I'm not sure on whether or not any entity should be allowed, or only ones that are actually reachable, but I'd say either is fine, so please implement whatever is easier