Project Zomboid

Project Zomboid

85 ratings
True Music improves Mood
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
106.907 KB
Oct 10, 2023 @ 1:36pm
Nov 7, 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
36 Comments
The Stellar Engineer May 9 @ 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.
Mar 11 @ 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 Feb 24 @ 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 Oct 10, 2024 @ 12:29pm 
Are you using any other mods that reduce stress? I found the same issue with several others.
Baleur Oct 10, 2024 @ 6:19am 
Nope, applied the fix and im still getting max stress.
Baleur Oct 9, 2024 @ 10:16pm 
Also waitting for smoker fix.
Shal Oct 2, 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] Oct 2, 2024 @ 9:46pm 
You wonderful man. I'll look into applying this soon.
Shal Oct 2, 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)
m4ri Sep 30, 2024 @ 2:02pm 
works fine for me, probably a mod incompatibility on your end