UltraShadow01 Posted May 16, 2022 Share Posted May 16, 2022 I have a mod on the work shop "mute master" and after the wx rework i made an update to mute the wx music circuit a large portion of the sounds muted in the mod is done so by using RemapSoundEvent("path\sound, "") after the update everything worked fine but I now notice that all the sounds muted using this method are no longer being muted I can't pinpoint when it stopped working but it definitely worked for the days following the wx rework main branch release I tried to change the method to use nil instead of "" incase this option specifically bugged out (no success) I wondering if a small fix might have broke the RemapSoundEvent function or maybe the new changes to the function rendered this method useless at muting sounds added is the modmain.lua i've already went through to check if the paths and sounds are up to date but incase you have an idea about a potential issue modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/140290-mapping-sounds-events-post-wx-rework/ Share on other sites More sharing options...
Developer JesseB_Klei Posted May 16, 2022 Developer Share Posted May 16, 2022 This will be addressed during the next patch release with an empty string "" working as expected for these mods to continue to function. The intention was to add a way for mods to remove a remap sound event but I overlooked the common use case in mods that used an empty string to make a sound not play. After the patch release passing in nil or a string that is the first argument will remove the sound remap and an empty string will make the audio not play. 1 1 Link to comment https://forums.kleientertainment.com/forums/topic/140290-mapping-sounds-events-post-wx-rework/#findComment-1570940 Share on other sites More sharing options...
UltraShadow01 Posted May 16, 2022 Author Share Posted May 16, 2022 41 minutes ago, JesseB_Klei said: This will be addressed during the next patch release with an empty string "" working as expected for these mods to continue to function. The intention was to add a way for mods to remove a remap sound event but I overlooked the common use case in mods that used an empty string to make a sound not play. After the patch release passing in nil or a string that is the first argument will remove the sound remap and an empty string will make the audio not play. I see, so I should revert the change from nil to "" and for the next patch the mod will work. thanks i was really confused when the mod randomly stopped working but everything seem fine. thank you again Link to comment https://forums.kleientertainment.com/forums/topic/140290-mapping-sounds-events-post-wx-rework/#findComment-1570949 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