Jump to content

[Re-Report] The different stewers food display is inconsistant


ADM
  • Fixed

Previously reported here with images of the bug, I'll make this one shorter and post a fix to the function for the spicer.

So the bug is that the different stewers (cookpot, portablecookpot, portablespicer) doesn't share the same method to display the food on the swap_cooked symbol, leading to a bug where recipes could be invisible on the Portable Seasoning Station despite being properly added if the product build doesn't exist under the name of the product prefab but only if it's a modded recipe, aka like the game's recipe does it :

0-.jpg.e8b0837c79acf54180e125ab89ddd777.jpg

The other stewers doesn't cause such a difference for mod recipes and so it works regardless of the recipe build method, this change to the ShowProduct function of the portablespicer would fix it regardless of what, I did verify it on a lot of mods that add recipes and it work in each of them :

local function ShowProduct(inst)
    if not inst:HasTag("burnt") then
        local product = inst.components.stewer.product
        local recipe = cooking.GetRecipe(inst.prefab, product)
        if recipe ~= nil then
            product = recipe.basename or product
            if recipe.spice ~= nil then
                inst.AnimState:OverrideSymbol("swap_plate", "plate_food", "plate")
                inst.AnimState:OverrideSymbol("swap_garnish", "spices", string.lower(recipe.spice))
            else
                inst.AnimState:ClearOverrideSymbol("swap_plate")
                inst.AnimState:ClearOverrideSymbol("swap_garnish")
            end
        else
            inst.AnimState:ClearOverrideSymbol("swap_plate")
            inst.AnimState:ClearOverrideSymbol("swap_garnish")
        end
        local build = (recipe ~= nil and recipe.overridebuild) or (IsModCookingProduct(inst.prefab, product) and product) or "cook_pot_food"
        local overridesymbol = (recipe ~= nil and recipe.overridesymbolname) or product
        inst.AnimState:OverrideSymbol("swap_cooked", build, overridesymbol)
    end
end

spicedisplayfix.thumb.jpg.64f0c2ceb0b893f0161dbf201ee4bf47.jpg


Steps to Reproduce

Mods cannot have a single build for all their recipes or it make them invisible on Warly's spicer.

  • Wavey 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...