Page 1 of 1

[2.0.28] Furnace interaction with item+fluid ingredients should be clarified

Posted: Sun Dec 29, 2024 10:55 pm
by HermanyAI
Imagine if recycling recipes required a fluid. Say you specify the fluid as 2nd ingredient:

Code: Select all

data:extend({{
    type = "recipe",
    ...
    ingredients = {
        {type = "item", name = item_name, amount = 1},
        {type = "fluid", name = "promethium-emulsion", amount = fluid_requirement}
    },
    ...
}})
Game would recognize this setup when the furnace entity has an input fluidbox, showing it as 2nd ingredient in GUI, and that the fluid is required to select those recipes.
Image
But inserting an item would actually fail even with fluid present
Image
because it implicitly hints a restriction on ingredient order with that tooltip. Despite the fact it's also 2nd in ingredient list, it actually expects the mod to put fluid ingredient 1st as well:

Code: Select all

    ...
    ingredients = {
        {type = "fluid", name = "promethium-emulsion", amount = fluid_requirement},
        {type = "item", name = item_name, amount = 1}
    },
    ...
for it to actually work.
Image

I haven't seen this quirk documented anywhere within RecipePrototype and FurnacePrototype, and a mod has had this exact setup before in 1.1 - Industrial Revolution 3 and its Electroplater, which even has 2 different input fluids and recipes associated to both.

This is a feature not used in base game so it's understandable for it to not be mentioned, but now that i've bumped into it, i suppose mentioning something along the lines of:
If the furnace has input fluidboxes, all recipes available to the furnace must specify their fluid ingredients first.
to the description of FurnacePrototype should be enough.

Re: [2.0.28] Furnace interaction with item+fluid ingredients should be clarified

Posted: Mon Dec 30, 2024 12:33 am
by curiosity
I think, this is a bug. Ingredient list was never order-dependent.

Re: [2.0.28] Furnace interaction with item+fluid ingredients should be clarified

Posted: Wed May 28, 2025 10:41 am
by Therenas
Moved to interface requests, is this something that might be fixed/changed or should it just be documented?

Re: [2.0.28] Furnace interaction with item+fluid ingredients should be clarified

Posted: Wed May 28, 2025 2:19 pm
by Rseding91
This was fixed in 2.0.48 as far as I know.

Re: [2.0.28] Furnace interaction with item+fluid ingredients should be clarified

Posted: Wed May 28, 2025 4:08 pm
by HermanyAI
Yeah I've never followed up with this. I tried flipping the ingredient order now and it works in 2.0.52, it seems to be a bug fixed since at least 2.0.48