Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upUPS makeshift welder gets confused about tool vs component for vehicle welding rig #19461
Comments
This comment has been minimized.
This comment has been minimized.
saneman226
commented
Nov 26, 2016
|
What I usually do is put the conflicting component somewhere out of sight for a second while I craft with the components I want to use. I have to do this all the time with wheels on vehicles, sometimes it just picks a random size wheel and so I put all wheels for the vehicle under my feet or closer and it works fine. |
This comment has been minimized.
This comment has been minimized.
|
The problem here is not picking the wrong item, it is that an extra item
(not consumed, doesn't satisfy the tool requirements) is required before
crafting can start
|
This comment has been minimized.
This comment has been minimized.
saneman226
commented
Nov 27, 2016
|
Have you tried to craft the item with only 2 regular makeshift welders? No additional welders should be needed for the craft. The only problem I can see happening is that the check for the 2 makeshift welders counted the ups-modded one when it shouldn't have. (I'm not sure if the crafting checks for all makeshift welders or if it just tags the first two in your inventory, the former obviously being the better check) |
This comment has been minimized.
This comment has been minimized.
That should fail: you do not have a welding source separate from the ingredients. |
This comment has been minimized.
This comment has been minimized.
|
This is probably (I haven't entirely worked through it) because the "tool is also a component" test in requirement_data::check_enough_materials fires and requires 3 makeshift welders to be available; but then item_comp::has fails to count the charged UPS welder (used as a tool) because it has a toolmod installed and item::allow_crafting_component returns false. |
saneman226
referenced this issue
Nov 27, 2016
Closed
Crafting with UPS soldering iron errors out but still works #19491
This comment has been minimized.
This comment has been minimized.
|
The underlying problem here is that there are three classes of item involved:
The current code assumes that if the same item type is needed as both a component and a tool, then it must be case (3) and therefore you need an extra item to handle the separate tool. However, in the situation described in this issue, it is actually case (1) because a modified item cannot be used in crafting; the modified tool that satisfies the tool requirement is not counted as an available component. To fix that it looks like we need to have requirement_data::check_enough_materials test the inventory more explicitly, looking at each item in isolation rather than trying to combine tool and component counts after the fact:
|
codemime
added
<Bug>
Crafting / Construction / Recipes
labels
Jan 15, 2017
This was referenced May 24, 2017
Leland
added
the
(S2 - Confirmed)
label
May 24, 2017
This comment has been minimized.
This comment has been minimized.
|
From #19200:
and
|
illi-kun
referenced this issue
Apr 4, 2018
Closed
Can't make vehicle welding rig with three makeshift welders #23370
This comment has been minimized.
This comment has been minimized.
|
have three makeshift welders (two usual, one battery compartment), all of them charged enough, still can't do it |
This comment has been minimized.
This comment has been minimized.
|
after disassembling the battery compartment one and assembling it as a regular one it works |
l29ah
referenced this issue
May 16, 2018
Closed
Item conflict when crafting using UPS welder tool in a recipe requiring welders #23730
This comment has been minimized.
This comment has been minimized.
|
I reproduced this with:
The recipe was disabled and I couldn't pick it. You can work around it by making three makeshift welders for components and it will enable the recipe. |
ZhilkinSerg
referenced this issue
Sep 29, 2018
Merged
Fix installed toolmods as craft components #25890
This comment has been minimized.
This comment has been minimized.
|
#25890 seems to have fixed this. Tested on latest experimental as of 06 April 2019. I got 2 empty makeshift welders and 1 fully charged makeshift welder modded with battery compartment mod. |


mutability commentedNov 26, 2016
Using 6c4885e + unrelated local changes:
Trying to make a vehicle welding rig, which requires 2 makeshift welders as ingredients, and a welding source (e.g. charged makeshift welder) as tool.
If I have:
a) a charged UPS-mod makeshift welder and 2 additional uncharged makeshift welders: tool requirement is satisfied, ingredient requirement is brown.
b) a charged UPS-mod makeshift welder and 3 additional uncharged makeshift welders: everything is green
c) 1 charged non-UPS makeshift welder and 2 additional uncharged makeshift welders: everything is green
Case (a) should work too.