As in title, I'd like to know which pipe connections are enabled and which are disabled when looking at a LuaCraftingMachine. As for where I can access that function, or what it's called, or what kind of data it returns I have no preference. From my completely out of the picture and not knowing perspective it would seem easier to return a list of enabled PipeConnections from a LuaFluidBox when polled, or add a flag to PipeConnection to indicate status.
I would like to use this to detect which connections are enabled so that I can connect to them with my mod parallel piping. Currently theres no way to know, not even if the entity has them always on, so I have to just guess that they're enabled and draw the connection anyway. Unless I'm being silly and there's already a method of detecting if they're on, in which case I apologize for taking time out of your day to respond to me and I'll write up a documentation improvement request anyway.
Some way of obtaining which pipe connections are enabled/disabled on a crafting machine
- protocol_1903
- Filter Inserter

- Posts: 470
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Some way of obtaining which pipe connections are enabled/disabled on a crafting machine
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
https://mods.factorio.com/user/protocol_1903
- protocol_1903
- Filter Inserter

- Posts: 470
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: Some way of obtaining which pipe connections are enabled/disabled on a crafting machine
Does that only return in-use pipe connections? Or does it also return disabled connections.
Rather, does this also include pipe connections that are enabled, even if not connected to anything.
Rather, does this also include pipe connections that are enabled, even if not connected to anything.
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
https://mods.factorio.com/user/protocol_1903
