[Rseding91] [2.0.29]Opening a ghost with a changed recipe crashes
Posted: Mon Jan 06, 2025 9:43 pm
I realized a bug in my mod, so I was writing some code to expand a few key ingredients when I opened the game, and then the nearby ghost to check if it worked
It of course, then decided it didn't like that change and crashed :P
Further testing has proven that it's when the number of ingredients specifically increases, does it crash.
Incrementing the mod version in hopes of triggering any sort of migration system doesn't save it from crashing.
So a small mod of
It of course, then decided it didn't like that change and crashed :P
Further testing has proven that it's when the number of ingredients specifically increases, does it crash.
Incrementing the mod version in hopes of triggering any sort of migration system doesn't save it from crashing.
So a small mod of
Code: Select all
data:extend{
{
type = "recipe",
name = "test",
icon = "__core__/graphics/icons/unknown.png",
icon_size = 64,
ingredients = {
{
type = "item",
name = "assembling-machine-1",
amount = 1,
},
-- {
-- type = "item",
-- name = "assembling-machine-2",
-- amount = 1,
-- }
}
}
}
- Opening said recipe in a ghost assembling machine,
- Saving and closing the game,
- Uncommenting the second ingredient,
- Then reopening the game and that save.
- It will now crash the moment you open that ghost.