Project Zomboid

Project Zomboid

[B42] Functional Ear Muffs/Protectors
Background Music Glitch (Like Stuttery)
I just notice there seems to be a glitch when wearing ear muffs/protectors, the background music glitches kinda like it stutters but everything seems fine. At first I thought the game was stuttering lol.
< >
Showing 1-15 of 22 comments
bubby_pz33  [developer] 30 Mar @ 1:34pm 
Possible Bug Reports
There's not many other mods that alter game audio. Tested it multiple times and it works fine for me, but you never know. Tell me if y'all do have issues with it and I'll work on them
bubby_pz33  [developer] 31 Mar @ 5:00pm 
I will update and test to see if it continues. How often would you say it stutters and how noticeable is it?
it feels like it is happening every frame.
Stuttery background music clip [imgur.com]
bubby_pz33  [developer] 31 Mar @ 5:28pm 
Ok yeah, that's really weird. I'm rewriting the script now and I'll let you know when it's updated.
Originally posted by bubby_pz33:
Ok yeah, that's really weird. I'm rewriting the script now and I'll let you know when it's updated.

No worries, take your time. Thank you <3
bubby_pz33  [developer] 31 Mar @ 5:52pm 
I appreciate you not just complaining about the issue and helping me actually resolve it. Right now I'm trying to use a volume multiplier on the Master Volume instead of manually setting the Ambiance, Music, Engine, etc volumes to specific numbers. This might make it smoother
bubby_pz33  [developer] 31 Mar @ 6:23pm 
I'm updating it now. Here's a video showing how the music appears for me https://imgur.com/a/5czH5cc
That was quick , that is so much better.:D
bubby_pz33  [developer] 31 Mar @ 6:27pm 
When you can, please test it again and tell me if it's still stuttering for you. If so, maybe you could create a collection of all the mods you're subscribed to so that I can see if any of them might be conflicting with my script.
I am still experiencing the background music stutter issue. I tried it alongside True Music Radio just to test if it was also affected, and fortunately it only affects background music.

From what I think is happening, the volume for the background music is being adjusted repeatedly every frame. It wasn't noticeable with other audio since they are not continuous like the background music. This is only my observation, but I could be wrong. :D

Clip [imgur.com]
bubby_pz33  [developer] 31 Mar @ 7:43pm 
TM goes through ambient volumes so that makes sense. Right now I'm gonna remove the adjustments of the music volume from the script since thats the only volume type that it doesn't like. I'll check out other mods that alter background music and maybe I'll find a fix and re-include it. Btw, do you have any mods that do affect background music?
I don't have a background music mod, the only audio mods I have right now are:

Voiced Radio and TVs
Broadcast Voicer
True Music / True Music Radio

update: Voice Radio and TVs fired while wearing the ear muffs it doesn't produce the audio stutter, but background music still does.
Last edited by Space Donuts; 31 Mar @ 7:54pm
bubby_pz33  [developer] 31 Mar @ 8:02pm 
Ok, thank you. I'll check those out and see if they're altering any of the functions that I am. In the meantime, I hope the updated version without the reduced music volume is still to your liking. :)
bubby_pz33  [developer] 31 Mar @ 8:13pm 
Ah yes, I think I found the problem. Broadcast Voicer and my mod are fighting. We both adjust Music volume. This is from their scripts:
function RadioWavs.OnMainMenuEnter() --reset Zomboid music volume again getSoundManager():setMusicVolume( getCore():getOptionMusicVolume()/10 ) end Events.OnMainMenuEnter.Add( RadioWavs.OnMainMenuEnter )
bubby_pz33  [developer] 31 Mar @ 8:27pm 
I'll work on mod compatibility this week. In the meantime, I'ma restore the music volume adjustment
< >
Showing 1-15 of 22 comments
Per page: 1530 50