Jump to content

Crafting by open container is abnormal in single level (no cave) world


LaoWang27
  • Fixed

A simple bug, just look at GIF below and you will understand.

 

Bug, Before fixing:

craftbox.gif.d852476807d2d51d4bad2265c4d0d78d.gif

 

After fixing:

craftingbox-fix.gif.a0ad95f1fbaf43e2ae3c15e55bf9a1a4.gif

 

This bug occurs in no cave world.

 

How to fix

components/container.lua line 420-429

        if doer.HUD ~= nil then
            doer.HUD:CloseContainer(self.inst, self:IsSideWidget())
            if self:IsSideWidget() then
                TheFocalPoint.SoundEmitter:PlaySound("dontstarve/wilson/backpack_close")
            else
                if not self.skipclosesnd then
                    TheFocalPoint.SoundEmitter:PlaySound("dontstarve/HUD/Together_HUD/container_close")
                end
            end

should change to:

        if doer.HUD ~= nil then
            doer.HUD:CloseContainer(self.inst, self:IsSideWidget())
            doer:PushEvent("refreshcrafting") -------> [fix] push refresh event to host player
            if self:IsSideWidget() then
                TheFocalPoint.SoundEmitter:PlaySound("dontstarve/wilson/backpack_close")
            else
                if not self.skipclosesnd then
                    TheFocalPoint.SoundEmitter:PlaySound("dontstarve/HUD/Together_HUD/container_close")
                end
            end

components/container.lua 376-385

should change to

if doer.HUD ~= nil then
            doer.HUD:OpenContainer(self.inst, self:IsSideWidget())
            doer:PushEvent("refreshcrafting") ------> same as above
            if self:IsSideWidget() then
                TheFocalPoint.SoundEmitter:PlaySound(self.inst.open_skin_sound or "dontstarve/wilson/backpack_open")
            else
                if not self.skipopensnd then
                    TheFocalPoint.SoundEmitter:PlaySound("dontstarve/HUD/Together_HUD/container_open")
                end
            end

 

 

other bugs klei should fix:

 

 


Steps to Reproduce

1. launch a no cave server

2. do as that in GIF




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...