[boskid][2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

This subforum contains all the issues which we already resolved.
ilcavero
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Nov 27, 2024 11:38 pm
Contact:

[boskid][2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by ilcavero »

it shows a yumako icon instead of a jellynut
nathanwe3
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Nov 27, 2024 10:58 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by nathanwe3 »

Yumako makes ore bacteria + spoilage, spoilage make nutrients, nutrients are required in the recipe.
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by IsaacOscar »

ilcavero wrote: Wed Nov 27, 2024 11:43 pm it shows a yumako icon instead of a jellynut
Umm, I don't see any yumako...
Attachments
Screenshot 2024-11-28 145202.png
Screenshot 2024-11-28 145202.png (492.35 KiB) Viewed 1471 times
MechBFP
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Sun Nov 03, 2024 4:02 am
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by MechBFP »

IsaacOscar wrote: Thu Nov 28, 2024 4:52 am
ilcavero wrote: Wed Nov 27, 2024 11:43 pm it shows a yumako icon instead of a jellynut
Umm, I don't see any yumako...
That last icon changes depending on what it decides to use for the nutrient base component.
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by IsaacOscar »

MechBFP wrote: Thu Nov 28, 2024 12:13 pm That last icon changes depending on what it decides to use for the nutrient base component.
Ahh of course, thank you!
So this post contains no bugs, just confusion.
User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 3234
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by BlueTemplar »

Oh, so because nutrients don't have a default recipe (= non-alternative recipe, recipe of the same name as the item), so it picks the latest researched or something ??
BobDiggity (mod-scenario-pack)
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by IsaacOscar »

BlueTemplar wrote: Thu Nov 28, 2024 12:34 pm Oh, so because nutrients don't have a default recipe (= non-alternative recipe, recipe of the same name as the item), so it picks the latest researched or something ??
I was using the editor, so yes that seems exactly what it's doing.
If I unresearch bitter eggs, it then suggests I use raw fish.

And having yumako's in my inventory (without any fish or bitter eggs) does not make a difference.
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by IsaacOscar »

IsaacOscar wrote: Thu Nov 28, 2024 12:39 pm
BlueTemplar wrote: Thu Nov 28, 2024 12:34 pm Oh, so because nutrients don't have a default recipe (= non-alternative recipe, recipe of the same name as the item), so it picks the latest researched or something ??
I was using the editor, so yes that seems exactly what it's doing.
If I unresearch bitter eggs, it then suggests I use raw fish.

And having yumako's in my inventory (without any fish or bitter eggs) does not make a difference.
Oh god, it's worse than that.
If you don't have bitter eggs or raw fish, it uses spoilage, unless you're on gleba, than it finally uses yumako!
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by IsaacOscar »

Everything that requires nutrients requires that you've researched yumako's, i.e. the game will choose the first on this list that is applicable:
  • Bitter eggs (if researched)
  • Fish eggs (if researched)
  • Yumako/yumako mash (if on gleba)
  • Spoilage (if not on gleba)
Strangely it never uses bioflux.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3758
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by boskid »

I looked at this a little bit closer and it looks like this behavior happens because the recipe decomposition logic tries to find something that produces spoilage and finds two recipes: "iron-bacteria" (that gives iron bacteria + spoilage) and "copper-bacteria" (that gives copper bacteria + spoilage). There are also 6 other recipes but they are recycling recipes. Since both "iron-bacteria" and "copper-bacteria" give spoilage, this logic uses last recipe that was seen and so it proposes yumakos because they are needed to give yumako mash.

It is possible to solve this by taking both iron-bacteria and copper-bacteria recipes and setting the main_product in both of them which makes them ignored when looking for ways to get spoilage.
03-21-2025, 12-48-23.png
03-21-2025, 12-48-23.png (60.09 KiB) Viewed 987 times
03-21-2025, 12-48-35.png
03-21-2025, 12-48-35.png (59.25 KiB) Viewed 987 times

Given that yumakos can be used to produce spoilage, i am questioning if this should be even considered a bug, this logic tries to give some solution and if there are multiple ways to decompose a recipe it simply has to pick something. Fixing this would be effectively just making total raw not be a total raw because it is possible to directly obtain spoilage by crafting and this crafting involves yumakos (and other chain of recipes involves jellynuts)
InUniverse
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sun Dec 01, 2024 12:30 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by InUniverse »

Fixing this would be effectively just making total raw not be a total raw(...)
I mean, that's not really a new problem. For example, Processing Units are considered "raw" because they have a fluid ingredient.

Spoilage comes from many sources, and those bacteria recipes are some of the worst ones. You'd get more spoilage from just leaving the ingredients to rot. I don't see any reason a player would want to "craft" spoilage in this way.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3758
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.21] Raw materials in tooltip for artificial jellynut soil show yumako icon

Post by boskid »

Ok. For 2.0.43 i made the iron-bacteria and copper-bacteria recipes to consider the bacteria products to be the main product which takes those recipes out of deductions for spoilage. I am treating this specific item (spoilage) as an exception here just because way more often it is produced not by crafting but just by waiting and as such for me it makes almost no sense to suggest using some really inefficient recipe to obtain spoilage.
Post Reply

Return to “Resolved Problems and Bugs”