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
[1.1.74] Bug with 2 recipes that have the same end result
-
- Manual Inserter
- Posts: 4
- Joined: Fri Mar 15, 2019 11:08 pm
- Contact:
Re: [1.1.74] Bug with 2 recipes that have the same end result
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
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
My mods: Multiple Unit Train Control, Smart Artillery Wagons
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
-
- Filter Inserter
- Posts: 358
- Joined: Thu Jun 01, 2017 12:05 pm
- Contact:
Re: [1.1.74] Bug with 2 recipes that have the same end result
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
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.DarkShadow44 wrote: ↑Wed Jan 11, 2023 2:11 pm But wouldn't it make more sense to ignore recipes that are not hand craftable?
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.
-
- Filter Inserter
- Posts: 358
- Joined: Thu Jun 01, 2017 12:05 pm
- Contact:
Re: [1.1.74] Bug with 2 recipes that have the same end result
Ah, understood. That makes total sense, thanks!