Mining patch planner

by rimbas

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

Utilities
17 days ago
1.1
62.2K
Mining Blueprints

b Krastorio 2 Crash

5 months ago

Crash while playing with Krastorio 2 (and other possibly unrelated mods). I was cleaning up excess miners so I didn't have to craft more, and I was redoing a patch of coal.
Here's a save. Just deconstruct the entire patch where I'm standing and use the planner as it is to try to reproduce the issue.
https://drive.google.com/file/d/1g3HeqTG9VYXhNQbIj5L7Te_lNVmqpdAX/view?usp=sharing

The mod Mining patch planner (1.5.7) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event mining-patch-planner::on_tick (ID 0)
mining-patch-planner/render_util.lua:45: attempt to perform arithmetic on field 'x1' (a nil value)
stack traceback:
mining-patch-planner/render_util.lua:45: in function 'draw_belt_lane'
mining-patch-planner/layouts/simple.lua:1089: in function '_display_lane_filling'
mining-patch-planner/layouts/simple.lua:1112: in function <mining-patch-planner/layouts/simple.lua:1107>
(...tail calls...)
mining-patch-planner/control.lua:31: in function <mining-patch-planner/control.lua:23>

5 months ago

Thanks for the crash report and save file. Released an update that fixes the crash.

5 months ago

Thank you for such a fantastic mod, and for keeping it working.

New response