Page 1 of 1

[2.0.13] Pipe Length Calculation Incorrect When Connecting Pipes in Corner

Posted: Fri Nov 01, 2024 2:29 am
by Brotatochip
The pipe length calculation is incorrect when connecting two separate pipe networks in a corner. Example, make a pipe in a straight line a handful of tiles (length X). At the first blank tile after, start making a separate pipe going perpendicular to the first (length Y). Finally, connect the two with one single pipe. Instead of getting the new length of X+Y+1, it appears to take the longer pipe plus 1. Can be chained together to get stupid long pipes well under the limit. Does the same thing with underground pipes. Does not work if the two pipe sections are in a straight line, must be turning a corner.

Noticed it by dragging an underground pipe for a while. When I needed to turn to go a different direction, I continued with the underground pipes before coming back to add in the above ground pipe connecting them.

Re: [2.0.13] Pipe Length Calculation Incorrect When Connecting Pipes in Corner

Posted: Tue Nov 05, 2024 4:36 am
by boskid
Thanks for the report. There are no bugs here. When pipeline extent was being introduced, a decision was made it will be measured as higher dimention of the axis aligned bounding box. In first part you are showing 2 segments of size 3x1 and 1x3 (which have extent of 3) and after connecting a bounding box becomes 4x4 (so extent increases to 4). This is to simplify the computation of the extent size and make it slightly more forgiving for modular blueprints as the primary thing the pipeline extents are trying to guard against is having one super long cross continental pipeline.

Re: [2.0.13] Pipe Length Calculation Incorrect When Connecting Pipes in Corner

Posted: Wed Nov 13, 2024 2:22 am
by Brotatochip
Interesting. Not how I expected it to work but that makes sense!