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

Increasing production amount of subfloor to create item as byproduct crashes game for host. #236

Open Energeneer opened 8 months ago

Energeneer 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::Custom event (ID 263)
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/event_handler.lua:54: in function 'special_handler'
  factoryplanner/ui/event_handler.lua:133: 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/event_handler.lua:54: in function 'special_handler'
  factoryplanner/ui/event_handler.lua:133: in function <factoryplanner/ui/event_handler.lua:114>

Logfile: factorio-current.log

Mods: mod-list.json

Rename to mod-settings.dat: mod-settings.dat.txt

Save File: Vales SaLANi Extended.zip

Screenshot of action before crash: Value was changed to 200, error occured on pressing Confirm Screenshot 2024-01-07 131519

Reproduction

  1. Plan a factory for tech cards that require rocket fuel
  2. Plan rocket fuel in subfloor
  3. Increase automatically calculated amount of fule to create it as byproduct
  4. Game Crashes for Host, Kicking all players