[2.0.6] Add pipe connection category mask to PipeConnectionDefinition

robot256
Smart Inserter
Smart Inserter
Posts: 1237
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)
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4030
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: 1237
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.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Post Reply

Return to “Implemented mod requests”