ClaudeMetz / FactoryPlanner

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

Adding Py Module causes crash on "utilities" click #320

Open johnbrian opened 2 months ago

johnbrian commented 2 months ago

Problem Description

Currently playing with Py Mods, which include a "module" that gives a significant speed increase. Was able to incorporate this into the planner, but when I click "utilities", it crashes the game, presumably because that "module" can't be built.

Here's the crash info:

Error while running event factoryplanner::Custom event (ID 222) factoryplanner/ui/dialogs/utility_dialog.lua:149: attempt to index field '?' (a nil value) stack traceback: factoryplanner/ui/dialogs/utility_dialog.lua:149: in function 'refresh_component_flow' factoryplanner/ui/dialogs/utility_dialog.lua:165: in function 'components' factoryplanner/ui/dialogs/utility_dialog.lua:377: in function 'dialog_open' factoryplanner/ui/base/modal_dialog.lua:171: in function 'enter' factoryplanner/ui/event_handler.lua:209: in function <factoryplanner/ui/event_handler.lua:189> [C]: in function 'raise_event' factoryplanner/util/raise.lua:20: in function 'open_dialog' factoryplanner/ui/main/production_box.lua:295: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114> stack traceback: [C]: in function 'raise_event' factoryplanner/util/raise.lua:20: in function 'open_dialog' factoryplanner/ui/main/production_box.lua:295: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>

Reproduction

Start a game using the full Py suite and Factory Planner Research the Seaweed T.U.R.D. upgrade Select the "Improved Pathfinding" option Create a plan that involves Seaweed Add the "Improved Pathfinding" module to the Seaweed Farm Hit the "utilities" button

https://i.imgur.com/BfPi6Mq.png

ClaudeMetz commented 1 week ago

Thanks for the report. Let's wait for Py's on 2.0 and check if it still happens then.