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

Bugs that are actually features.
Brotatochip
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Oct 31, 2024 7:41 pm
Contact:

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

Post 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.
Attachments
Pipe Length Incorrect.zip
Example save game. Same as in the video.
(1.84 MiB) Downloaded 12 times
factorio-current.log
Log from this session.
(9.68 KiB) Downloaded 12 times
Factorio 2024.10.31 - 22.16.15.01.mp4
Video of the issue. Notice the pipe lengths.
(12.55 MiB) Downloaded 17 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3456
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
Brotatochip
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Oct 31, 2024 7:41 pm
Contact:

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

Post by Brotatochip »

Interesting. Not how I expected it to work but that makes sense!
Post Reply

Return to “Not a bug”