FactoryPlanner icon indicating copy to clipboard operation
FactoryPlanner copied to clipboard

Crash on changing from Belts to Lanes

Open Nidhogg-Wyrmborn opened this issue 1 year ago • 1 comments

Problem Description

The mod Factory Planner (1.1.78) caused a non-recoverable error. Please report this error to the mod author.

Error while running event factoryplanner::on_gui_switch_state_changed (ID 151) factoryplanner/backend/calculation/solver.lua:181: attempt to index local 'factory' (a nil value) stack traceback: factoryplanner/backend/calculation/solver.lua:181: in function 'update' factoryplanner/ui/dialogs/preferences_dialog.lua:252: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>

Reproduction

  1. open factory planner
  2. click preferences
  3. under "preferred belt" switch from belts to Lanes

Nidhogg-Wyrmborn avatar Jan 15 '24 06:01 Nidhogg-Wyrmborn

I've run into this same error, even on a new save with no other mods enabled. Error message:

The mod Factory Planner (1.1.78) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event factoryplanner::on_gui_switch_state_changed (ID 151)
__factoryplanner__/backend/calculation/solver.lua:181: attempt to index local 'factory' (a nil value)
stack traceback:
	__factoryplanner__/backend/calculation/solver.lua:181: in function 'update'
	__factoryplanner__/ui/dialogs/preferences_dialog.lua:252: in function 'handler'
	__factoryplanner__/ui/event_handler.lua:157: in function <__factoryplanner__/ui/event_handler.lua:114>

Hellrespawn avatar Mar 23 '24 22:03 Hellrespawn

Factory Planner (1.1.79) - Factorio 1.1.110

Iv just had this happend to me,

Iv noticed this ONLY happens when there are no planned factory. ^ as soon as i make one this stops happning.

KugelblitzNinja avatar Aug 28 '24 17:08 KugelblitzNinja