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

Things that has been reported already before.
Post Reply
FacelessDE
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Mar 15, 2019 11:08 pm
Contact:

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

Post 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

robot256
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Mar 17, 2019 1:52 am
Contact:

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

Post 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

DarkShadow44
Filter Inserter
Filter Inserter
Posts: 275
Joined: Thu Jun 01, 2017 12:05 pm
Contact:

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

Post by DarkShadow44 »

But wouldn't it make more sense to ignore recipes that are not hand craftable?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

DarkShadow44
Filter Inserter
Filter Inserter
Posts: 275
Joined: Thu Jun 01, 2017 12:05 pm
Contact:

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

Post by DarkShadow44 »

Ah, understood. That makes total sense, thanks!

Post Reply

Return to “Duplicates”