P.U.M.P.

by Xcone

P.U.M.P. (Prevent Unwanted Manual Pump-placement) adds a selection-tool with which you can select oil wells, and then plans the layout of pumpjacks and pipes for you.

Utilities
6 days ago
0.18 - 2.0
53.0K
Mining Fluids Blueprints

Changelog

Version: 2.1.8
Date: 2024-12-03
  Features:
    - New pipe-planner is now the default. See notes of 2.1.4 and 2.1.5 for more info how it's different then the original.
    - Continue with partial pipe-plan if a resource couldn't be connectected (new planner only). Print a warning with coord to the player where the unplanned resource is. 
    - Added setting to still use the original planner. Note: If you have problems with the new planner, or prefer the layout of the original planner, you can use the original planner for a while. The old planner will be removed at some point, though. So leave a message on the mod-portal so I can improve the new planner before the old one is removed.
Version: 2.1.7
Date: 2024-12-03
  Fixes:
    - Fix error caused by partially cleaned up code. (the part that wasn't removed didnt like that another part was removed ... )
Version: 2.1.6
Date: 2024-12-02
  Changes:
    - Interface with ModuleInserterEx instead of ModuleInserter
Version: 2.1.5
Date: 2024-12-02
  Changes:
    - Improved desicion-making for the new planner for where to put the branches and how extractors connect to them.
    - Added A* fallback routine to the new planner in case an extractor cannot neatly connect to a branch.
    - Post-planning pipe bury routine can now bury more of a pipe that has an up-front-planned pipe in it.
Version: 2.1.4
Date: 2024-11-26
  Features:
    - Added picker for which cover tile to use on meltable tiles. Option is only visible on surfaces where meltable tiles are applicable (Aquilo).
    - Experimental new pipe-planner. It's rewritten to be able to plan underground pipes up-front, and thus being better suited for planning larger/dense fields where the original planning would fail.
    - Added setting to enable the new planner (disabled by default, until its better tested and more refined)
Version: 2.1.3
Date: 2024-11-23
  Features:
    - Entities are only deconstructed if they collide with the structures being placed. This makes it less likely to unnecessarily deconstruct entities from other mods; kindly provided by https://github.com/randomflyingtaco
    - Russian localisation file updated; kindly provided by https://github.com/Astorin
Version: 2.1.2
Date: 2024-11-19
  Features:
    - Added dropdown to pick how long a stretch of straight pipes need to be before it's being buried.
  Fixes:
    - Higher res icons the fix blur (needed after Factorio update 2.0.18 increased the button sizes).
Version: 2.1.1
Date: 2024-11-12
  Features:
    - Build positions are tested if a default_cover_tile applies. If so, the tile is planned as well. This means landfill on water, foundation on lava, and ice-platform on ammonia.
    - Build positions are tested if they're meltable. If so, "concrete" is planned as well. ("concrete" is currently hardcoded, and might not work well together with some serious overhaul mods.)
  Fixes:
    - Undo now also includes the (planned) deconstructed entities.
Version: 2.1.0
Date: 2024-10-31
  Features:
    - Added drop-down to select in which quality to build the pumps, pipes and power-poles. 
    - Planning of power-poles takes the increased ranges of higher-quality power poles into account.
    - Russian localisation file updated; kindly provided by https://github.com/Astorin
Version: 2.0.1
Date: 2024-10-11
  Features:
    - Target Factorio 2.0
Version: 2.0.0
Date: 2024-10-08
  Features:
    - Target Factorio 1.2 (which will be 2.0 soon)
    - Update to Factorio API changes for 2.0 and Space Age
Version: 1.3.4
Date: 2024-02-04
  Changes:
    - Take the actual player force into account, instead of using the default force "player".
Version: 1.3.3
Date: 2023-08-08
  Features:
    - Added hotkey support, kindly provided by https://github.com/iamtimsson
    - H.O.T.K.E.Y. (Hold On - That Kills Efficiency, Yo!)
  Credits:
    - To _codegreen, sharparam and fgardt on the factorio Discord, for assisting iamtimsson.
Version: 1.3.2
Date: 2023-03-17
  Fixes:
    - Fixed total game freeze, adding a limit to how far the search area for the next power-pole can grow and aborts when it exceeds the limit.
    - Fixed being unable to place a 2x2 power-pole (substation) in a very small selection by extending the outer-trim of the selection by 1 additional cell.
    - Fixed a nil-error when attempting to call the function 'find_oilwells'.
Version: 1.3.1
Date: 2023-03-05  
  Features:
    - Russian localisation file updated; kindly provided by https://github.com/Astorin
Version: 1.3.0
Date: 2023-03-05
  Features:
    - Added cancel button to close the menu without building anything.
    - Added capturing on_gui_closed (ESC) to cancel the menu.
    - Added mod-setting to always show the menu each time P.U.M.P. is used. When disabled, it'll only show on request (holding shift) or when new options are available. It's enabled by default.
    - Added checkbox for the mod-setting on the menu as well.
  Fixes:
    - The date in the changelog for the 1.2.1 release had a wrong value, which is now corrected.
Version: 1.2.1
Date: 2023-03-03
  Fixes:
    - Remove debug output
Version: 1.2.0
Date: 2023-03-03
  Features:
    - Added placing ghosts for electric poles.
    - Added extra option to skip placing ghosts electric poles, in case manual placement is preferred.
  Changes:
    - Swapped order of change-log (newest on top, consistent with most other mods)
Version: 1.1.6
Date: 2023-02-13  
  Features:
    - Russian localisation file; kindly provided by https://github.com/Astorin
Version: 1.1.5
Date: 2023-02-11  
  Changes:
    - Perform a 'raise_script_built' event for the ghosts placed by P.U.M.P.
Version: 1.1.4
Date: 2023-02-11
  Changes:
    - Added check that potential extractors have an output-fluidbox. This allows other mods to add solid-resources to the P.U.M.P. selection tool that are turned liquid by their specific extractors; while keeping the risk of attaching to a (for instance) sulfuric acid input to a minimum.
Version: 1.1.3
Date: 2021-10-16
  Fixes:
    - Fixed issue of occasionally a pump not being connected, due to it plan being overwritten by another pump connecting to the same pipe segment.
Version: 1.1.2
Date: 2021-04-28
  Changes:
    - Dialog only shows pipes that have a matching pipe-to-ground (based on vanilla naming; by adding '-to-ground' to the pipe name)
Version: 1.1.1
Date: 2021-01-29
  Fixes:
    - Fixed changelog not visible in game due to wrong formatting.
    - Fixed warning showing up in the logs for icon-mipmaps.
Version: 1.1.0
Date: 2021-01-24
  Features:
    - Check research requirements for extractors and pipes before offering them in the selection menu.
    - Added setting to ignore the research requirements for extractors and pipes.
  Changes:
    - Removed the tech requirement for the P.U.M.P. shortcut, which has become obsolete due to the added features.
Version: 1.0.2
Date: 2021-01-21
  Features:
    - Added pipe-selection to the selection menu.
  Fixes:
    - Fix crash when an extractor larger then 3x3 is used.  
    - Tiles are no longer being removed. They were unintentionally being removed as well when clearing the area of trees and rocks.
Version: 1.0.1
Date: 2021-01-02
  Features:
    - Factorio 1.1.6 compatibility.
  Fixes:
    - Tiles are no longer being removed. They were unintentionally being removed as well when clearing the area of trees and rocks.
Version: 1.0.0
Date: 2020-12-01
  Features:
    - Factorio 1.1 compatibility.
    - Ignore/deconstruct trees and rocks.
Version: 0.1.10
Date: 2020-09-19
  Fixes:
    - Fixed issue where tunnel would not always be placed for 2 parallel pipes without space in between.
Version: 0.1.9
Date: 2020-09-16
  Features:
    - Added menu to select miner for the resource you've selected. 
    - The menu remembers the selection that was made and won't show until new options are available.
    - The menu won't show if there's only 1 option available.
    - The menu can be forcefully shown, regardless of above conditions, using the alternative selection. This is activated with the same keybinding as 'Select for cancel deconstruction', default=Shift+LeftMouse.
Version: 0.1.8
Date: 2020-08-31
  Fixes:
    - Fix issue where a tunnel could be planned 1 too long, resulting in the exit of the pump meeting with the side of an underground pipe.
    - Fix out-of-bounds obstruction checking, leading to crash.
Version: 0.1.7
Date: 2020-08-29
  Fixes:
    - Disabled shortcut now has a P.U.M.P. icon instead of a blueprint icon.
    - Added values for item name and sorting.
Version: 0.1.6
Date: 2020-05-04
  Fixes:
    - Check if setting to interface with Module Inserter exists.
Version: 0.1.5
Date: 2020-05-04
  Features:
    - If 'Module Inserter' is installed, retrieve and apply module configuration for the entities placed by P.U.M.P.. If 'Module Inserter' is not installed, no modules are added.
    - Add setting to enable/disable the usage of 'Module Inserter'. If 'Module Inserter' is not installed, the setting is hidden. It's enabled by default.
Version: 0.1.4
Date: 2020-05-02
  Changes:
    - Improve behavior for very small selections.
  Features:
    - Add support for any liquid resource for which a suitable miner is available. If there's multiple miner types available for the same resource, the one Factorio returns first is picked. Rectangular shaped miners are excluded due to limitations in the planner routine.
    - Retrieve miner's pipe output position and size from its prototype. If there are mutliple output resources, or multiple outputs for the same resource, the ones Factorio returns first are picked.
Version: 0.1.3
Date: 2020-04-27
  Fixes:
    - Miscalutation in underground pipe distance.
Version: 0.1.2
Date: 2020-04-27
  Changes:
    - Start underground pipe directly from pump output when possible.
Version: 0.1.1
Date: 2020-04-24
  Fixes:
    - Bug when detection to place multiple underground pipes for a longer distance failed, and would instead place the remaining distance above ground.
Version: 0.1.0
Date: 2020-04-20
  Features:
    - P.U.M.P. selection tool available for the shurtcut bar.
    - For all oil wells within a selection, ghosts for pumpjacks and the pipes connecting the pumpjacks will be placed.
    - Underground pipes will be used as much as possible.