ClaudeMetz / FactoryPlanner

A mod for Factorio. Allows you to plan out your production in detail.
https://mods.factorio.com/mod/factoryplanner
MIT License
86 stars 43 forks source link

Crash on changing from Belts to Lanes #245

Open Nidhogg-Wyrmborn opened 8 months ago

Nidhogg-Wyrmborn commented 8 months ago

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
Hellrespawn commented 6 months ago

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>
KugelblitzNinja commented 1 month ago

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.