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

b Crash on activation

9 months ago

Clicking the button in the shortcuts toolbar causes the following crash:

 902.006 Error MainLoop.cpp:1395: Exception at tick 859947477: The mod Mining patch planner (1.5.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event mining-patch-planner::on_player_cursor_stack_changed (ID 31)
__mining-patch-planner__/gui.lua:41: attempt to index field 'section' (a nil value)
stack traceback:
    __mining-patch-planner__/gui.lua:41: in function 'create_setting_section'
    __mining-patch-planner__/gui.lua:244: in function 'create_interface'
    __mining-patch-planner__/gui.lua:782: in function 'show_interface'
    __mining-patch-planner__/control.lua:118: in function <__mining-patch-planner__/control.lua:101>

Using the latest version, on Factorio 1.1.88. I don't think the crash is specific to mod version 1.5.2, since I've had this installed for a while, and it's also crashed when I tried to run it in the past.

Modlist:

base
aai-loaders
aai-programmable-structures
aai-programmable-vehicles
aai-pv-crafting-group
aai-signals
aai-zones
Aircraft
alien-biomes
alien-biomes-hr-terrain
AlienSpaceScience
angelsaddons-storage
ArmouredBiters
belt-visualizer
BigLightElectricMiningDrill
bobenemies
boblibrary
Bottleneck
bullet-trails
chemical-rocket
circuit-poles
CircuitHUD-V2
CleanTiles
Concrete_Recipe_Ore_to_Stick
Constructron-Continued
dbots-artillery-bombardment-remote
Delete-Chunk-Tool
DropSciencePack
factoriohd_base
factoriohd_logistics
factoriohd_military
factoriohd_modpack
factoriohd_production
factoriohd_terrain
far-reach
FilterChests
flib
flip-dots
holographic_signs
Honk
informatron
jetpack
k2-flare-stack
lightorio
logistics_requests_sorted
mining-patch-planner
MoreSignalColorThxDW
More_Bot_Health
nicefill
nonukescorch
nuclear_train
PickerDollies
PipeVisualizer
pollution-scaling
Power Armor MK3
power-grid-comb
puppy-jetpack-ui
Purple_Acid_Rain
pushbutton
regenerate-terrain
remove-nuclear-marks
reverse-factory
rs-base-scanner
scootys-armor-swap
Shield-FX-Updated
show-max-underground-distance
simhelper
simple_landfill_mining
some-spidertron
Sort-All-Inventories
space-spidertron
spidertron-dock
spidertron-extended
SpidertronEnhancements
Squeak Through
stdlib
TaskList
TrainRefuelStation
tree_collision
UnitLocationHotkeys
vehicle-physics
VehicleSnap
VilsClearNightvision
Waterfill_v17
WaterWell
9 months ago

I don't think I'll be able to fix this without your save file. If you say you had it for a while, then my migration logic might have failed between updates.
I think disabling my mod, saving a new savefile and enabling again should fix it, but I'd like to make a proper fix.

9 months ago
(updated 9 months ago)

Thanks for looking in to this! mpp_crash.zip

9 months ago

Thank you for the save file. Released an update that fixes it.

New response