Factory solver based on IPMs for LP

by B_head

The Factorio calculator. Calculate quantities of machine and ingredient required in a factory to achieve materials production speed.

Utilities
3 months ago
2.0
1.75K

b Crash on selecting a solution

a month ago

Hi, just wanted to let you know that removing a machine from a mod will cause the solver to crash upon selecting a solution that relies on that machine:

The mod Factory solver based on IPMs for LP (0.3.13) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event factory_solver::on_gui_selection_state_changed (ID 63)
__factory_solver__/manage/save.lua:451: attempt to index local 'machine' (a nil value)
stack traceback:
    __factory_solver__/manage/save.lua:451: in function 'get_total_modules'
    __factory_solver__/ui/solution_editor.lua:52: in function 'handler'
    __flib__/gui.lua:177: in function 'dispatch'
    __factory_solver__/fs_util.lua:138: in function 'dispatch_to_subtree'
    __factory_solver__/ui/solution_selector.lua:61: in function 'handler'
    __flib__/gui.lua:177: in function <__flib__/gui.lua:160>

This may also happen right as the gui is opened. There seems to be no way of removing the offending solution to avoid the crash.

New response