Mining Patch Planner

by rimbas

Adds a planner that designs a mining drill layout for a resource patch.

Utilities
5 days ago
1.1 - 2.0
95.9K
Mining Blueprints

b Using planner on Oil patches crashes the game

4 months ago

Now that I'm on the roll, here is another bug: Game crashed after trying to use the planner on oil patches.

I know it's not intended for that but still wanted to see if at least I can get the pumps placed automatically :D
And how magical it could be if it could automatically connect all the pumps with pipes ;)

Or at least it should not crash the game ...

4 months ago

I'm gonna have to ask you to give me a modlist or a savefile for a repro case on that. Pumpjacks shouldn't be selectable in the planner. Did you put one in a blueprint?

For oil patches there's Well Planner or P.U.M.P..

4 months ago

It seem to handle the built-in layouts with error message.
But I used the blueprint template which crashed the game.
And I don't have any pumpjacks in the blueprint (of course it can't do anything ...)

Thanks for the tip about other mods that can handle Pumps :D

4 months ago

Here is the error message in case it can help:

Error while running event mining-patch-planner::on_player_selected_area (ID 51)
mining-patch-planner/algorithm.lua:223: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
mining-patch-planner/algorithm.lua:223: in function 'on_player_selected_area'
mining-patch-planner/control.lua:115: in function <mining-patch-planner/control.lua:99>

New response