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

[Ultracube] crash on steam recipe with no temperature #225

Open Kaimdrol opened 9 months ago

Kaimdrol commented 9 months ago

Problem Description

Ultracube is a brand new overhaul mod that has 4 steam "items" with various temperatures : unspecified, 165°, 215°, 1000°.

One of the recipes takes in unspecified steam and outputs 215° steam. When you try to add the steam ingredient as a recipe, FP crashes.

Error while running event factoryplanner::Custom event (ID 270)
__factoryplanner__/backend/data/Machine.lua:62: attempt to index field '?' (a nil value)

If you add steam with a specific temperature it doesn't crash.

See the screenshot book for more details.

https://imgur.com/a/mQYiuYc

ACTUALLY ! Just adding the unspecified steam is enough to crash FP. Looking in recipe book, there's no recipe producing unspecified steam, but you don't get the "No existing recipe" alert...

fp_crash_steam.txt factorio-current.log 2 green science.zip

Reproduction

Add unspeficied temperature steam to the planner crash !