Meebas Posted February 15, 2019 Share Posted February 15, 2019 I have custom sounds for a mod I am working on. All sounds work as long as I remap them as seen here: However I can't call the sounds directly from the banks on servers with caves enabled, and I'm not sure that they work for other clients even with caves disabled. I have 2 sounds I have tried this on, one for cooking a rabbit: And one for when poop spawns: Neither of those two sounds, no any other sound called that way, will work. This even includes sounds I have not modded in. I have the ("dontstarve/creatures/leif/livinglog_burn") sound programmed to play when you burn poop, but it doesn't work. However with console I can play them remotely and locally with no issue. (this plays the sound) I feel like I am missing something obvious here. In all honesty, everything I know about programming in Lua has come from trial and error and by just reading code. I would appreciate if someone could help me out with this, thanks. Link to comment https://forums.kleientertainment.com/forums/topic/102876-sound-modding-help/ Share on other sites More sharing options...
Ultroman Posted February 15, 2019 Share Posted February 15, 2019 Is your mod set as AllClientsRequireMod? Are the sounds remapped inside/after any mastersim check (which would skip the remapping on clients)? Link to comment https://forums.kleientertainment.com/forums/topic/102876-sound-modding-help/#findComment-1155417 Share on other sites More sharing options...
YakumoYukari Posted February 15, 2019 Share Posted February 15, 2019 Did you add SetPristine() properly? Check this thread out : Link to comment https://forums.kleientertainment.com/forums/topic/102876-sound-modding-help/#findComment-1155462 Share on other sites More sharing options...
Meebas Posted February 16, 2019 Author Share Posted February 16, 2019 @YakumoYukari Ohhh okay so all code above the mastersim check applies to both the client and server? I will make some adjustments and see if it works, thanks for the direct. @Ultroman Yes, all clients require it as it is a server-side mod. I read a bit on what Yakumo said and I now understand what the mastersim check does, I'm gonna test it out now Link to comment https://forums.kleientertainment.com/forums/topic/102876-sound-modding-help/#findComment-1156043 Share on other sites More sharing options...
YakumoYukari Posted February 17, 2019 Share Posted February 17, 2019 8 hours ago, Meebas said: so all code above the mastersim check applies to both the client and server? Yes, correct. Link to comment https://forums.kleientertainment.com/forums/topic/102876-sound-modding-help/#findComment-1156180 Share on other sites More sharing options...
Akarinnnnnn Posted February 28, 2019 Share Posted February 28, 2019 I suppose you to use StateGraph. that methods will only play sound once. Link to comment https://forums.kleientertainment.com/forums/topic/102876-sound-modding-help/#findComment-1160150 Share on other sites More sharing options...
Recommended Posts
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