Project Zomboid

Project Zomboid

True Music improves Mood
댓글 38
P.G 2025년 9월 17일 오후 8시 29분 
build 42?
T I L T 2025년 6월 21일 오후 4시 42분 
Could you please update this to fix the bug with the Smoker trait? Half of the people on our server run that trait and we'd love to use this mod, but it causes us to go through our cigarettes way too fast.
The Stellar Engineer 2025년 5월 9일 오전 8시 26분 
Can confirm Shal's bug report! The mod only makes a check if noise is being played aloud. If youre using headphones it wont make a check until you make noise. Perhaps the mod could instead check if the player can hear it instead of if the player is making noise? Im not sure.
FæEatFaces 2025년 3월 11일 오후 4시 22분 
god tier mod that improves immersion by 1000%. so good it should be in the base game
D R V A P O R 2025년 2월 24일 오전 8시 32분 
works real nice. But doesn't work with the true music radio mod i don't think. will still work with tapes and vinyls tho
Shal 2024년 10월 10일 오후 12시 29분 
Are you using any other mods that reduce stress? I found the same issue with several others.
Baleur 2024년 10월 10일 오전 6시 19분 
Nope, applied the fix and im still getting max stress.
Baleur 2024년 10월 9일 오후 10시 16분 
Also waitting for smoker fix.
Shal 2024년 10월 2일 오후 10시 01분 
Also found a different bug in this mod: if you're listening to a music player with headphones, you don't seem to be creating any world sound, so this mod only triggers when your character does something else that makes noise. If you're just standing around listening to music from the player, or listening while you read, this mod has no effect. You'd need to shout every ten minutes to get it to make its check.
Zenith  [작성자] 2024년 10월 2일 오후 9시 46분 
You wonderful man. I'll look into applying this soon.
Shal 2024년 10월 2일 오후 9시 23분 
Nope, the bug is real. I've been experiencing the same issue with music maxing out stress, so I checked it out in debug mode. I figured out how to recreate the smoker stress spike bug running only this mod, its dependencies, and a music library mod, and how to fix it.

I'm not sure if it's a bug in the base game or just unexpected a badly named function, but when you use setStress(), you are actually setting the stress to the sum of the given stress value and the character's current stressFromCigarettes. So if the character has 0.5 stressFromCigarettes and you try to setStress to a value 0.1 lower than the current stress, you end up increasing it by 0.4 instead.

So you just need to change

stats:setStress(stats:getStress() - SandboxVars.TrueMusicMoodImprovement_stressMod)

to

stats:setStress(stats:getStress() - stats:getStressFromCigarettes() - SandboxVars.TrueMusicMoodImprovement_stressMod)
m4ri 2024년 9월 30일 오후 2시 02분 
works fine for me, probably a mod incompatibility on your end
Kr¡tZw!nG 2024년 8월 20일 오전 11시 17분 
Tried this mod and instead of feeling better, my character got max stress repeatedly. Can you fix this issue please? I would really really love to use this.
I use the Drop That Cigarette mod, just in case, this might be useful to you. Thank you!
Zenith  [작성자] 2024년 7월 30일 오전 9시 01분 
Worked fine when I last played in May
H00FBL4ST 2024년 7월 30일 오전 4시 25분 
does it still work?
Zenith  [작성자] 2024년 5월 16일 오후 1시 29분 
The music jukebox integrated their own music improves mood (Called it "therapy")
True music is radio is a little harder to tackle... Unsure how to approach that just yet.

I've been unable to reproduce the max stress issue @Humble_Lion and @mista have been experiencing.
Zenith  [작성자] 2024년 5월 3일 오후 3시 37분 
Nada, you don’t see any popups. (That’d get really annoying since you listen to music a LOT)

If you want to guarantee it’s working, use debug to see your stats and the boosted improvement when music is playing.
namelessMirror 2024년 4월 30일 오후 3시 09분 
Heyo, I see this mod is being actively discussed, so I gave it a go to see if it would work- was way bummed out to see true music mod itself turned off the mood booster factor for music.

Should I expect the little text pop-up like v boredom like with vanilla usage of music? I was testing it earlier but it didnt seem to trigger anything after a half hour of in-game time.

I'm really hoping I can get this to work, it'd be so nice to explore old music like this!
TheyCallMeVincenzo 2024년 4월 7일 오전 12시 45분 
I hope you get it in more of a stable position. I have this downloaded and updooted, but I'm waiting for some update text saying it's basically bugs free. Good mod, I really want to use it.
Humble_Lion 2024년 3월 29일 오후 1시 18분 
Can confirm, I'm getting the max stress issue. Got the smoker trait, dunno if that affects it. I remember on a previous save (before march) I didnt have this issue at all.
Pasilyo 2024년 3월 4일 오전 5시 44분 
oh i use default settings but for some reason when u play music u get max stress
Zenith  [작성자] 2024년 3월 4일 오전 4시 07분 
Are you sure you didn't change the config settings and invert the stress?
Pasilyo 2024년 3월 4일 오전 12시 32분 
yeah even my friend in MP also get stress when for example we play a cassete in the car
Zenith  [작성자] 2024년 3월 3일 오후 5시 41분 
Thats... interesting. I'll look into that sometime.
Pasilyo 2024년 3월 3일 오후 2시 35분 
i get stress when im a smoker and listen to music for some reason
Zenith  [작성자] 2024년 1월 23일 오후 5시 06분 
WHOAH! That's an awesome looking mod.
Yeah unfortunately not, maybe in the future.
Meyar 2024년 1월 23일 오후 3시 08분 
I take it that this doesn't work with True Music Radio either
Zenith  [작성자] 2024년 1월 7일 오후 2시 02분 
I'll look into it next time I get the itch to zomboid (May be a while)
If anyone else coding capable sees this and wants to make the addition let me know!
Craftusmaximus 2024년 1월 7일 오후 1시 59분 
Could you also make it so this works with the True Music Jukebox? Great mod by the way!
NivekRkain 2023년 12월 1일 오후 1시 41분 
i think its not working
Zenith  [작성자] 2023년 11월 8일 오후 8시 57분 
It's working, just unlisted for a bit as was working out stuff with the original author
alex1478999 2023년 11월 8일 오전 7시 39분 
So it´s not working anymore?
Naru 2023년 10월 17일 오전 1시 22분 
Soon I will be able to keep my character completely calm and focused as I blast War's "Why Can't We Be Friends" out of my 88' Volvo Sedan while blasting into hordes of the ravenous undead with my Mossberg 590.
Ethan Oliver Ralph 2023년 10월 14일 오후 1시 30분 
i really wanna know how chris chan music doesn't increase stress
jUG_05 2023년 10월 11일 오후 9시 31분 
oh, nice
Zenith  [작성자] 2023년 10월 11일 오후 9시 29분 
It was one of the top results for "cat listening to music" on google lol
jUG_05 2023년 10월 11일 오후 7시 11분 
yeah me too, thats adorable
EgyptianGuard 2023년 10월 11일 오후 7시 09분 
first im gonna need to know where that thumbnail comes from i NEED it