Project Zomboid

Project Zomboid

86 ratings
True Music improves Mood
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
106.907 KB
10 Oct, 2023 @ 1:36pm
7 Nov, 2023 @ 9:45am
9 Change Notes ( view )

Subscribe to download
True Music improves Mood

Description
Music lowers stress, boredom and unhapiness. ~ now with 100% more sandbox options!
Fork of Poltergeist's mod with some new features.

The effects are triggered every 10 in game minutes while listening to True Music.
Adjust your settings as needed. Default balancing expects a 1 hour day.
Can be safely added/removed with existing saves.

Optional Modifiers:
- Boredom
- Happiness
- Stress
- Panic
- Fatigue
- Pain (Reduction only)

If you want to disable something, set it to zero.

If zomboid ever adds Morale/Sanity this will get an update too.

Workshop ID: 3048902085
Mod ID: TrueMusicMoodImprovement
37 Comments
T I L T 21 Jun @ 4:42pm 
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 9 May @ 8:26am 
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.
11 Mar @ 4:22pm 
god tier mod that improves immersion by 1000%. so good it should be in the base game
D R V A P O R 24 Feb @ 8:32am 
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 10 Oct, 2024 @ 12:29pm 
Are you using any other mods that reduce stress? I found the same issue with several others.
Baleur 10 Oct, 2024 @ 6:19am 
Nope, applied the fix and im still getting max stress.
Baleur 9 Oct, 2024 @ 10:16pm 
Also waitting for smoker fix.
Shal 2 Oct, 2024 @ 10:01pm 
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  [author] 2 Oct, 2024 @ 9:46pm 
You wonderful man. I'll look into applying this soon.
Shal 2 Oct, 2024 @ 9:23pm 
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)