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 version 1.4.2+ and SE

1 year, 1 month ago

I'm getting the following exception with version 1.4.2 and 1.4.3 (reverting to 1.4.1 works):

77.055 Error MainLoop.cpp:1284: Exception at tick 169392632: The mod Mining patch planner (1.4.3) 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)
LuaPlayer doesn't contain key surface_index.
stack traceback:
[C]: in function 'index'
__mining-patch-planner
/gui.lua:655: in function 'update_misc_selection'
mining-patch-planner/gui.lua:752: in function 'update_selections'
mining-patch-planner/gui.lua:766: in function 'show_interface'
mining-patch-planner/control.lua:114: in function <mining-patch-planner/control.lua:97>
145.170 Quitting: user-quit.
145.634 Goodbye

My list of mods is:
AutoArmorSwap_2.0.2.zip
AutoDeconstruct_0.3.7.zip
Automatic_Train_Painter_1.1.5.zip
BlueprintTools_1.3.0.zip
BottleneckLite_1.2.4.zip
EvolutionThroughResearch_0.1.5.zip
FactorySearch_1.10.13.zip
FluidWagonColorMask_1.1.0.zip
GhostScanner_1.6.7.zip
Inventory Sensor_1.10.6.zip
Kux-OrbitalIonCannon_2.3.4.zip
LTN_Combinator_Modernized_1.0.14.zip
LTN_Content_Reader_1.0.3.zip
LogisticRequestManager_1.1.28.zip
LogisticTrainNetwork_1.18.3.zip
LtnManager_0.4.17.zip
ModuleInserterEx_6.1.2.zip
OSHA_BotRecaller_0.1.4.zip
PickerDollies_1.2.6.zip
PipeVisualizer_1.0.6.zip
RecipeBook_3.5.2.zip
Shortcuts-ick_1.1.27.zip
TaskList_0.4.3.zip
Waterfill_Fork_1.0.0.zip
aai-containers_0.2.11.zip
aai-industry_0.5.19.zip
aai-programmable-structures_0.7.4.zip
aai-programmable-vehicles_0.7.24.zip
aai-signal-transmission_0.4.7.zip
aai-signals_0.6.1.zip
aai-vehicles-chaingunner_0.6.1.zip
aai-vehicles-flame-tank_0.5.1.zip
aai-vehicles-flame-tumbler_0.6.1.zip
aai-vehicles-hauler_0.6.1.zip
aai-vehicles-ironclad_0.6.8.zip
aai-vehicles-laser-tank_0.6.4.zip
aai-vehicles-miner_0.6.4.zip
aai-vehicles-warden_0.5.3.zip
aai-zones_0.6.4.zip
alien-biomes_0.6.8.zip
always-show-stack-size_1.0.0.zip
bullet-trails_0.6.2.zip
combat-mechanics-overhaul_0.6.24.zip
combinator-toggle_0.1.2.zip
entity-waterfilling-re-enabled_1.1.0.zip
equipment-gantry_0.1.5.zip
factoryplanner_1.1.60.zip
fcpu_0.4.14.zip
flib_0.12.6.zip
grappling-gun_0.3.3.zip
informatron_0.3.2.zip
jetpack_0.3.11.zip
miniloader_1.15.6.zip
mining-patch-planner_1.4.1.zip
mod-list.json
mod-settings.dat
pushbutton_1.1.1.zip
resourcehighlighter-dark_2.5.0.zip
robot_attrition_0.5.13.zip
rocket-log_1.1.11.zip
se-ltn-glue_0.6.0.zip
se-recycling-extras_0.4.2.zip
shield-projector_0.1.6.zip
showTileGridLite_0.4.20.zip
simhelper_1.1.4.zip
solar-calc_0.3.11.zip
space-exploration-graphics-2_0.6.1.zip
space-exploration-graphics-3_0.6.2.zip
space-exploration-graphics-4_0.6.2.zip
space-exploration-graphics-5_0.6.1.zip
space-exploration-graphics_0.6.14.zip
space-exploration-menu-simulations_0.6.8.zip
space-exploration-postprocess_0.6.25.zip
space-exploration_0.6.104.zip
space-spidertron_1.2.2.zip
stack-combinator_1.3.3.zip
stdlib_1.4.8.zip
textplates_0.6.10.zip

1 year, 1 month ago

What version of Factorio are you playing on?
I think the problem is that I'm using a scripting feature (LuaControl::surface_index) that was added on Factorio version 1.1.75.

1 year, 1 month ago

Oh that makes sense, I'm on 1.1.74, it's not auto updating past that. I'll stay with 1.4.1 until it updates.

New response