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 Crash with SE Core

8 months ago

https://imgur.com/UxCKwEq

When I put a blueprint on ore deposits where there is some part of the core (you can't build on it), it crashes on confirmation. Since it can't create a blueprint on the core until it is blown up to become solid.

Error while running event mining-patch-planner::on_tick (ID 0)
__mining-patch-planner__/layouts/simple.lua:1095: attempt to index field '?' (a nil value)
stack traceback:
    __mining-patch-planner__/layouts/simple.lua:1095: 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>
8 months ago

Could you give me a savefile where it crashes?

8 months ago

Thanks. Released an update that fixes it. It wasn't the SE Core that was causing it to crash. Those are properly ignored internally even if it shows they're selected when using the planner over an ore deposit.

New response