PC crafting fails to find tank with fluid in inventory #70846
Labels
(S1 - Need confirmation)
Report waiting on confirmation of reproducibility
stale
Closed for lack of activity, but still valid.
Describe the bug
If you try to craft a charcoal kiln and spawn a 2 L tank into your inventory and then "fill" it with water from a canteen the tank component entry is marked in red with no number beside it.
The tank is found if empty and it's found on the ground by the PC's feet.
Attach save file
N/A. The compressed saves are too large.
Steps to reproduce
Expected behavior
The tank should be available to the recipe in all of these situations, and in particular, shouldn't go from available to unavailable in one location but from available to available with a warning in another when something is placed inside it.
Screenshots
No response
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth]
]
Additional context
It's obviously a weird case, but I've stumbled upon it while trying to test my changes for #70826. However, I've hit a wall and fail to locate the reason erroneous data gets generated somewhere upstream if the code I'm involved with.
The reason the tank is marked in red appears to be because the recipe data contain incorrect state info: requirements_.components[1].[0].component.available has the value "a_false". This eventually leads to a failure to try to locate the component (index 1 in the above is the tank entry).
I think this recipe info is generated in a huge "initialize everything when the UI is brought up but before anything is displayed or selected" search somewhere, and I assume something is broken in its logic.
The text was updated successfully, but these errors were encountered: