Mining Patch Planner

by rimbas

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

Utilities
6 days ago
1.1 - 2.0
115K
Mining Blueprints

b Crash with 1.6.30

2 months ago

Trying to migrate a large 1.1 save to 2.0 (can't really attach that here), got this:

The mod Mining Patch Planner (1.6.30) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event mining-patch-planner::on_player_changed_surface (ID 55)
__mining-patch-planner__/algorithm.lua:411: attempt to index local 'renderObject' (a number value)
stack traceback:
    __mining-patch-planner__/algorithm.lua:411: in function 'on_gui_close'
    __mining-patch-planner__/control.lua:262: in function <__mining-patch-planner__/control.lua:230>

Happened while trying to open a compakt circuit chip (which changes the surface to the one that contains the logic)

2 months ago

I couldn't reproduce the exact case but released and update that should fix it when loading a save from Factorio 1.1 with updated mod (1.6.32).

Your crash might be an edge case that I can't really fix without a repro save. It's a bit of a hassle but you can fix it by disabling MPP, loading and saving a game, and then enabling it again. Factorio clears the mod's data and it will work again.

2 months ago

The reproducible crash is gone for me with the 1.6.32 release. Thank you.

New response