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

Game Crashed when playing pyanodon #302

Open tobbsis opened 4 months ago

tobbsis commented 4 months ago

Problem Description

Hello! I was playing the pyanodon mods. I had a building as a product in the planner. One of the ingredients for the building needed a fluid input. But also a fluid fuel. Yesterday I was switching between the fuel fluids and chose one. Later i saved the game and closed the game.

Today when i started the game, i opened the planner, and i wanted to change the fluid fuel. I just opened the planner and pressed on the ingredient button that was the fluid fuel. And it crashed. So by just pressing the button the game crashed. But it seemed to work yesterday.

Here is the error i got in the game

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::on_gui_click (ID 1) factoryplanner/ui/main/production_handler.lua:291: attempt to index local 'fuel' (a nil value) stack traceback: factoryplanner/ui/main/production_handler.lua:291: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>

factorio-current.log

Pyanodon.zip

Reproduction

  1. Load the save file.
  2. Open the planner and select the "Random 2" "folder"
  3. There are 2 recipes, 1 one is a building, second one is glass,
  4. The second item has 2 ingredients it needs. One is white (molten glass), the other is the fluid fuel that the building needs to run.
  5. Press on the green/yellow icon which is one of the ingredients of the glass
  6. game crashes