Container open and close sounds do not play for the client


Hornete
  • Pending



The first video showcases a player opening containers as the host, while the 2nd video showcases the player opening containers as the client.

The game plays the sides correctly on the server-side,

--Container:Open lines 378 - 384 
if self:IsSideWidget() then
    TheFocalPoint.SoundEmitter:PlaySound("dontstarve/wilson/backpack_open")
else
    if not self.skipopensnd then
        TheFocalPoint.SoundEmitter:PlaySound("dontstarve/HUD/Together_HUD/container_open")
    end
end

--Container:Close lines 421-227
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


However, the game does not play the sounds on the client side(container_replica)
 

--Container:Open lines 397-399
if self:IsSideWidget() then
	TheFocalPoint.SoundEmitter:PlaySound("dontstarve/wilson/backpack_open")
end

--Container:Close lines 415-417
if self:IsSideWidget() then
	TheFocalPoint.SoundEmitter:PlaySound("dontstarve/wilson/backpack_close")
end

There is no else statement to play the "dontstarve/HUD/Together_HUD/container_close" sound.


Steps to Reproduce

1. Host a forest only world
2. Notice you get sounds when opening containers or closing
3. Host a world as a client
4. Notice you get no sounds from opening and closing containers.

  • Like 3


User Feedback


There are no comments to display.



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