ClaudeMetz / FactoryPlanner

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

Crash when manually editing amount of an #294

Open nbd1982 opened 1 month ago

nbd1982 commented 1 month ago

Problem Description

I was manually editing the products figure for a recipe and received the following crash to the main menu:

Error while running event factoryplanner::Custom event (ID 298) factoryplanner/ui/main/production_handler.lua:220: attempt to perform arithmetic on field 'percentage' (a nil value) stack traceback: factoryplanner/ui/main/production_handler.lua:220: in function '?' factoryplanner/ui/dialogs/generic_dialogs.lua:211: in function 'dialog_close' factoryplanner/ui/base/modal_dialog.lua:187: in function 'exit' factoryplanner/ui/event_handler.lua:216: in function <factoryplanner/ui/event_handler.lua:189> [C]: in function 'raise_event' factoryplanner/util/raise.lua:27: in function 'close_dialog' factoryplanner/ui/base/modal_dialog.lua:285: 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:27: in function 'close_dialog' factoryplanner/ui/base/modal_dialog.lua:285: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>

I'm running 1.1.107 build 62234 win 64.

factorio-current.log

I've uploaded my save at the link below under the name nbd1982CTD.zip.

Reproduction

Open Factory planner. Find the factory called "Processing Unit" - it also has the processing unit icon in the name. On the top floor, right click the electronic circuit products button. and change the figure to 50400. Type E or click Confirm to reproduce the crash.