P.U.M.P.

by Xcone

Oil, sulfuric acid, and other liquid-resource fields are a fun challenge at first, but can become quite a chore to setup after a while. P.U.M.P. (Prevent Unwanted Manual Pump-placement) takes out the chore of making outposts. It's a selection tool with which you can select liquid resources and it then proceeds to plan the layout of pumpjacks and pipes for you.

Utilities
10 days ago
0.18 - 2.1
104K
Mining Fluids Blueprints

b Using P.U.M.P with Carna's Molybdenum miners cases server crash

a month ago

When using PUMP to plan an oil vein with planet Carna's (https://mods.factorio.com/mod/carna) Molybdenum miners, the server instantly quits and reboots.

Error while running event pump::on_gui_click (ID 1)
pump/planner-assistant.lua:279: Unexpected uneven number of tunnel pieces
stack traceback:
[C]: in function 'error'
pump/planner-assistant.lua:279: in function 'take_series_of_pipes'
pump/planner-assistant.lua:454: in function 'action'
pump/plib.lua:443: in function 'each'
pump/planner-assistant.lua:452: in function 'create_tunnels_between_joints'
pump/plumber-pro.lua:918: in function 'bury_pipes'
pump/plumber-pro.lua:1032: in function 'plan_plumbing_pro'
pump/control.lua:159: in function 'resume_process_selected_area_with_this_mod'
pump/control.lua:28: in function <pump/control.lua:23>"

a month ago

Hi,

Sorry, can't take a look right now, as I'm on holiday. I'll be back in a couple of weeks.

In the meantime, can you provide a save file, and a description to point me to the problematic field? Then when I'm back, I can try to reproduce it and hopefully fix it.

10 days ago

Hi, I'm back from holiday now. Any chance still for a save file for me to reproduce the issue with?
I can't do much without it.

10 days ago
(updated 10 days ago)

I've given Carna a try by myself. I didn't get the error you did, but I could clearly see P.U.M.P. doing to odd things with that miner selected. I wouldn't be surprised if the weird things I saw can in some other cases also lead to the error you posted.

Until this point, P.U.M.P. always assumed the output to face the same direction as the pump itself. So a north-facing pump is assumed to also output to the north. The Molybdenum miners do not actually comply with that. They output to the east if the miner faces north. (note, that the yellow arrow in-game seems to point west, rather then north).

I've fixed it in version 2.2.7, by comparing the facing-direction with the output direction and perform some offsets based on that. Seems to work well enough and I expect the error you reported to be fixed now, too.

I also noticed that the Molybdenum miners have another fluid box for lubrication. At this point P.U.M.P. only attempts to connect the first output-only fluid-box it can find in the miner. So the lubrication pipes are not being connected. Supporting that is not going to be easy change either, as the code is really not suited for multiple fluid-boxes. So while your error is (probably) fixed, I don't think P.U.M.P. will be ideal when using Molybdenum miners 🙁.
I'll keep this limitation in mind; perhaps I'll think of a good way to deal with this with future changes.

6 days ago

Issue seems to be fixed! I'm able to plot oil fields using Molybdenum miners now.

Since Molybdenum miners have a resource drain modifier, we've been using them on other planets. So even if PUMP doesn't work for Carna itself, it's still useful to have support on other planets. The deposits on Carna are sparse enough I don't think there's ever a need to use PUMP there, so I think the lubricant input restriction is fine.

New response