Mining Patch Planner

by rimbas

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

Utilities
3 days ago
1.1 - 2.0
114K
Mining Blueprints

g Crash on 1.6.31

a month ago

When attempting to mine Niobium in Py with a blueprint setup, selecting the ore field crashes.

21435.643 Error MainLoop.cpp:1435: Exception at tick 11822: The mod Mining Patch Planner (1.6.32) 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/mpp/mpp_util.lua:517: attempt to perform arithmetic on field 'x' (a nil value)
stack traceback:
mining-patch-planner/mpp/mpp_util.lua:517: in function 'inserter_hand_locations'
mining-patch-planner/layouts/blueprints.lua:620: in function <mining-patch-planner/layouts/blueprints.lua:608>
(...tail calls...)
mining-patch-planner/control.lua:45: in function <mining-patch-planner/control.lua:32>

Save: https://www.dropbox.com/scl/fi/igg1rcemjrkinxwjw6iar/MPPTest.zip?rlkey=d28h5yt7wsulqgzgcih72s8pw&st=iikax7dh&dl=0

a month ago

Thank you for the reproduction save. Released an update that should fix it.

a month ago

Thanks for the fast response! :)

New response