[2.0.6] Add pipe connection category mask to PipeConnectionDefinition

robot256
Smart Inserter
Smart Inserter
Posts: 1061
Joined: Sun Mar 17, 2019 1:52 am
Contact:

[2.0.6] Add pipe connection category mask to PipeConnectionDefinition

Post by robot256 »

Currently there is no way to read the new connection_category value from LuaFluidboxPrototype's Pipe. I would like to determine via script if two pipes will connect to each other before placing them. One place this could be added is in LuaFluidboxPrototype::pipe_connections, alongside the flow_direction value. Providing it as a binary mask (as shown in the Prototype Explorer) is fine.

(I also submitted this as an F10 suggestion)
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3453
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.6] Add pipe connection category mask to PipeConnectionDefinition

Post by boskid »

2.0.32.
robot256
Smart Inserter
Smart Inserter
Posts: 1061
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.6] Add pipe connection category mask to PipeConnectionDefinition

Post by robot256 »

Thank you! Now I can properly update AutoDeconstruct.
Post Reply

Return to “Implemented mod requests”