Pipe Draw

by miodec

Draw-to-place L-shaped pipes with automatic undergrounds. R to place an anchor, F to flip, Right-click to remove.

Utilities
6 days ago
2.0 - 2.1
75
Logistics

Changelog

Version: 2.0.0
  Major Features:
    - Update to Factorio 2.1, reworked with the new selection events in Factorio 2.1.22, like Belt Draw 3.
    - Super forced drawing (CTRL + SHIFT + drag by default): instead of stopping an underground before an obstacle, the obstacle is marked for deconstruction and the pipe-to-ground is built there. Existing pipes and pipe-to-grounds count as obstacles too, so they get replaced rather than joined.
  Features:
    - Blueprint drawing (shift, map view, and out of reach with the setting below on) and super forced drawing use a blue preview, so it's clear that ghosts will be placed.
    - Blueprint drawing places landfill or foundation under pipes over water.
    - One undo reverts a whole drawing, and redo puts it back.
    - New setting "Underground spacing": "Longest first" makes each underground pair as long as it can be, the last one gets what's left. "Even" splits a straight stretch into as few pairs as it needs, all about as long.
    - New setting "Build ghosts out of reach", off by default. Off, parts of a drawing out of reach are left out and their preview is faded. On, they are built as ghosts with the blue preview and get landfill over water like blueprint drawing. Either way the preview follows you as you walk.
    - Finishing a drawing on an existing pipe joins it, going past it goes under it instead.
    - Finishing a drawing on its own earlier underground puts a pipe there and joins it, instead of crossing under.
    - Starting a drawing on a pipe-to-ground, it goes along the pipe-to-ground first.
    - A drawing stops at the last tile that connects, so it never builds pipes that can't connect to the rest of it. The part after is shown in red, like going across a pipe-to-ground it started on.
    - A drawing that doesn't connect, or goes on past something it can't go under, plays the error sound and says where it stops. Starting or stopping on something in the way is fine.
    - Starting a drawing on a tank, pump or other building with fluid connections, the pipe has to leave through one of them. Missing them, starting or finishing, plays the error sound and says the pipe doesn't connect to it. Buildings without fluid connections can be drawn from and to.
    - Blueprint drawing builds over trees and rocks, marking them for removal like a blueprint does. Inventory drawing never marks anything.
    - Proper multiplayer support: every player draws and sees their own preview independently.
  Changes:
    - Pipe Draw follows your selection controls. If you swapped left and right click, rebind "Select for blueprint" and "Reverse select" in the controls menu.
    - Removed the "Swap left and right click" setting, rebinding the selection controls replaces it.
    - Holding the tool no longer raises your build distance, out of reach parts follow the setting above instead.
    - Pipes are built under vehicles and characters instead of being left out.
    - The preview and sounds are only for the player drawing.
    - Rework parts of the source code structure
    - Performance improvements
  Bugfixes:
    - Fix undo going through a drawing one pipe at a time once the undo history is full.
    - Fix the drawing not going under an obstacle right where an underground would come up at its full length, leaving a gap.
Version: 1.0.0
  Info:
    - Initial release