ClaudeMetz / FactoryPlanner

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

Crash on copying modules #422

Closed LoredRaven closed 6 days ago

LoredRaven commented 1 week ago

Problem Description

The mod Factory Planner (2.0.12) caused a non-recoverable error. Please report this error to the mod author.

Error while running event factoryplanner::on_gui_click (ID 1) factoryplanner/backend/data/Module.lua:125: attempt to index field 'parent' (a nil value) stack traceback: factoryplanner/backend/data/Module.lua:125: in function 'validate' factoryplanner/util/clipboard.lua:48: in function 'paste' factoryplanner/ui/main/production_handler.lua:124: in function 'handler' factoryplanner/ui/event_handler.lua:173: in function <factoryplanner/ui/event_handler.lua:121> factorio-current.log

Reproduction

  1. Fulgora, electromagnetic-science-pack chain
  2. Build the chain for the different ingredients
  3. Defines the modules for the first line
  4. copy the module def from the the line
  5. try to paste the module def onto another factory (also electro magnetic plant)
  6. Crash
ClaudeMetz commented 6 days ago

Hello, thanks for the nice report! This issue should be addressed in 2.0.13, so please try updating the mod to fix this one.