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.3K
Mining Blueprints

g Another/Same error in on_tick?

1 year, 9 months ago

The mod Mining patch planner (1.2.10) 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/layouts/compact.lua:388: attempt to index field 'related_underground_belt' (a nil value)
stack traceback:
mining-patch-planner/layouts/compact.lua:388: in function '?'
mining-patch-planner/layouts/base.lua:62: in function 'tick'
mining-patch-planner/control.lua:27: in function <mining-patch-planner/control.lua:17>

Tried

Simple - Worked
Compact - Crash
Super Compact - Crash
Sparse - Worked
Logistics - Worked
Compact Logistics - Worked

Cheers

1 year, 9 months ago
(updated 1 year, 9 months ago)

It's similar, but not exactly it. The GUI shouldn't even allow you to select a belt that doesn't have a related_underground_belt and default to the first available belt that has it.
Could you give me a save file/modlist where it crashes?

Edit:

Reproduced with another mod.

New response