Page 1 of 1

[1.1.74] Bug with 2 recipes that have the same end result

Posted: Wed Jan 11, 2023 10:29 am
by FacelessDE
Hello dear Factorio team,

I have found a bug.

In vanilla the electronic circuit has that standard recipe 1x Iron plate; 3 Copper cable. This also works, but if I add another new copper cable recipe then I may not be able to handcraft that recipe anymore.

In this example I have added the recipe 1x steel plate -> 3x copper cable.

here is the small code:

data:extend(
{
{
type = "recipe",
name = "copper-cable-1",
icon = "__base__/graphics/icons/copper-cable.png",
icon_size = 64,
icon_mipmaps = 4,
order = "a-b",
subgroup = "intermediate-product",
enabled = "true",
ingredients = {
{ type = "item", name = "steel-plate", amount = 1 }
},
results = {
{ type = "item", name = "copper-cable", amount = 3 }
}
},
}
)

If I now have 10x irone plate and 10x steel plate in my inventory I can craft 10x electronic circuits.

If instead I have 10x copper plate and 10 x iron plate I can't craft anything...


I hope you understand what I mean

Yours sincerely

FacelessGER

Re: [1.1.74] Bug with 2 recipes that have the same end result

Posted: Wed Jan 11, 2023 1:41 pm
by robot256
This is a known behavior. For example, viewtopic.php?p=487038#p487038

Handcrafting algorithm is "dumb" and only picks one option to use for intermediate products. You can always click the other recipe to make the intermediates manually, then craft the final item. You can control which one it chooses in the mod definition, either by disabling handcrafting of the other one altogether, or maybe changing the order.

Edit: Found the original Not A Bug report from 0.16.54 viewtopic.php?f=23&t=61367

Re: [1.1.74] Bug with 2 recipes that have the same end result

Posted: Wed Jan 11, 2023 2:11 pm
by DarkShadow44
But wouldn't it make more sense to ignore recipes that are not hand craftable?

Re: [1.1.74] Bug with 2 recipes that have the same end result

Posted: Wed Jan 11, 2023 2:40 pm
by Rseding91
DarkShadow44 wrote:
Wed Jan 11, 2023 2:11 pm
But wouldn't it make more sense to ignore recipes that are not hand craftable?
It does. A recipe is not hand-craftable if the category is not part of the character crafting categories or if it has been flagged as 'not hand craftable'. Having ingredients that can't be crafted by hand (or having fluid ingredients) does not automatically lump it into one of those two categories.

You can use either of those as a solution to this.

Re: [1.1.74] Bug with 2 recipes that have the same end result

Posted: Wed Jan 11, 2023 2:43 pm
by DarkShadow44
Ah, understood. That makes total sense, thanks!