[2.0.13] percent_spoiled applies additively in recipes with spoilable ingredients

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
cakem
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Nov 02, 2024 2:01 am
Contact:

[2.0.13] percent_spoiled applies additively in recipes with spoilable ingredients

Post by cakem »

I'm trying to create a recipe that turns one fish into two fish that are 50% spoiled. The problem is that the spoiled amount is subtracted from the ingredients rather than multiplying the spoilage of the ingredients.

Expected results: 60% -> 30% -> 15% -> etc..

Actual result: 60% -> 10% -> spoilage

The reason that I believe this is a bug is because I can't really see in what scenario this would be the desired behavior for a mod maker. It's not intuitive and leads to this weird behavior that when the input ingredients spoilage level is <= percent_spoiled, the result is always spoilage.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14250
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.13] percent_spoiled applies additively in recipes with spoilable ingredients

Post by Rseding91 »

Thanks for the report. This is currently working as intended. The percent_spoiled feature was added specifically for producing what would otherwise be fresh products already some percent spoiled. It was never built with crafting from spoilable items. This isn't a bad modding interface request to be able to control this behavior differently but for now this is how it was designed to work.
If you want to get ahold of me I'm almost always on Discord.
kiwidrew
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Oct 30, 2024 11:06 pm
Contact:

Re: [2.0.13] percent_spoiled applies additively in recipes with spoilable ingredients

Post by kiwidrew »

What happens if you set 'result_is_always_fresh' on the recipe while there is a non-zero 'percent_spoiled' on the result item?
Post Reply

Return to “Modding interface requests”