Page 1 of 1

[Rseding91][2.0.11] Crash loading mod: "recipeItemProductCount > 0 was not true"

Posted: Fri Oct 25, 2024 6:51 pm
by <NO_NAME>
I'm porting my mod to 2.0.
It's a simple mod that adds a recipe to create a free placeholder item and also a recipe to destroy it. That second recipe is the problem because it produces nothing. (This worked fine in 1.1, btw.) I've verified that as soon as the amount is non-0, the crash doesn't keep happening anymore.

Code: Select all

results = 
{
	{type = "item", name = "what-pumpkin", amount = 1, probability = 0.0, percent_spoiled = 0.1}
},
(As you can see, the way I done it is a little quirky. It's like that to make a reference to a certain web comic. However, simple "amount=0" has the same effect.)

Beside the log, I'm attaching the problematic WIP version of the mod.

Re: [Rseding91][2.0.11] Hard crash when loading a mod: "recipeItemProductCount > 0 was not true"

Posted: Sat Oct 26, 2024 1:34 pm
by Rseding91
Thanks for the report. This is now fixed for the next release.