There are opening sounds for containers such as the Ocean Fishing Rod, Glowcaps, Bundling Wraps and etc, that seem to only play for the host on a forest only world. They do not play at all for clients as seen in the videos above, the first video being the host in a forest only world, and the 2nd video is a world with caves(Where I am a client)
The reason for this is the Open and Close functions in the container.lua component, play the "dontstarve/HUD/Together_HUD/container_open/close" sound
--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 same isn't done in the container_replica Open and Close functions that run for clients,
--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
As you can see, there is no else statement to play the "dontstarve/HUD/Together_HUD/container_open/close" sound.
A possible solution would just to copy the if statement from container.lua to container_replica.lua (And to replicate the self.skipopensnd and self.skipclosesnd variables to the replica component)
1. Make a Forest Only world
2. Open ocean fishing rod/bundling wrap/glowcap containers and notice there is a sound
3. Make a forest+caves world
4. Open ocean fishing rod/bundling wrap/glowcap containers and notice there is no sound
-
3
-
1
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 accountSign in
Already have an account? Sign in here.
Sign In Now