[Rseding91] [2.0.29]Opening a ghost with a changed recipe crashes

This subforum contains all the issues which we already resolved.
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Wed Jan 18, 2023 3:49 am
Contact:

[Rseding91] [2.0.29]Opening a ghost with a changed recipe crashes

Post by PennyJim »

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

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,
			-- }
		}
	}
}
  1. Opening said recipe in a ghost assembling machine,
  2. Saving and closing the game,
  3. Uncommenting the second ingredient,
  4. Then reopening the game and that save.
  5. It will now crash the moment you open that ghost.
attached is the save in a state where the attached mod will crash it
Attachments
factorio-current.log
(9.77 KiB) Downloaded 5 times
_crash.zip
(1.11 MiB) Downloaded 3 times
pennyjim-test-mod_0.0.5.zip
(1.42 KiB) Downloaded 6 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14781
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.29]Opening a ghost with a changed recipe crashes

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”