Project Zomboid

Project Zomboid

250 ratings
Calorie Fix
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
15.349 KB
27 Dec, 2022 @ 9:27am
27 Dec, 2022 @ 11:35am
2 Change Notes ( view )

Subscribe to download
Calorie Fix

In 1 collection by DreadLordNaf
Enhanced 10 Years Later Cryogenic Winter
71 items
Description
This mod fixes the abnormally high calorie burn rate from just walking on version 41.78 that caused walking to consume more calories than running. Currently in 41.78 walking will consume 110% of the calories as running the same distance. This mod changes that so walking consumes 40% the calories as running the same distance. Thumbs up if you like it.

NOTE: You have to load this mod from the load game screen, not the main menu UI, if you want it to work on an existing save game.

Eternal thanks to Chuckleberry Finn for developing the original code for this mod and allowing me to use it.

This mod is a work in progress. If any feedback or bugs please let me know.

***
BACKGROUND

With the 41.78 update to PZ the game adjusted the walking calorie burn rate so that it's more than just standing still doing nothing which is fine, but the problem is they over corrected and increased it so much that walking now takes MORE calories than running the same distance. So you actually save calories and get fatter by running versus walking everywhere which is counter intuitive and makes no sense.

If you wondered why on 41.78 your character was going into starvation even though you are playing the same way you always have eating a balanced diet this is why. This abnormally high change to walking calories burn rate also meant that foraging for food had become obsolete since you now use more calories than you gain from foraging, and doing things like resting at your safehouse and moving around organizing things will burn as much calories as running a marathon outside all day. This mod fixes that.

***

FAQ

Q. What does this mod actually do?
A. It changes the per second walking calorie burn rate scaling from .6 to .22 now, which when factoring in running speed vs walking speed over a fixed distance means that walking now takes approximately 40% of the calories as running the same distance. This ratio will shrink as your sprinting skill increases and will be affected by any run modifying clothes.

Q. How do I know if this mod is actually working?
A. I've tested it quite thoroughly so it appears to be doing its job (pending any big game updates). If you want to verify though download Minimal Display Bars mod then pick a fixed distance to move back and forth from. Walking that fixed distance should only use 40% of the calories as running the same distance if the mod is working correctly. Keep in mind this burn rate will be affected if you are wearing clothes that modify run rate and/or have a high sprint skill.

Q. I just enabled the mod on my existing save game but it’s not working?
A. You have to enable it in the load game screen section to apply it to an existing save game, not the main menu.

Q. Will this mod work with other mods?
A. It should since not many other mods affect calorie burn rate.

Q. Will this mod work on multiplayer servers?
A. I don’t know. I think so? I’m still learning modding so if you discover that it does or doesn’t let me know.

Q. I just peeked under the hood of this mod and it seems unnecessarily complicated for changing a single calorie scaling number.
A. That is because you can’t actually change a single calorie scaling number. The genius behind the code on this mod, Chuckleberry Finn, instead found a workaround and recreated the entire vanilla calculations for calorie burn rate while moving. So when this mod is enabled what happens is that there are actually two calorie burn calculations occurring simultaneously, the vanilla one and this modified one. This mod then adjusts the final calorie burn rate by the difference. Hence why it appears so complicated.

***

If you enjoy this fix please consider thanking Chuckleberry Finn who did the coding work on it by enjoying some of his other mods or supporting him from the links found on his mod descriptions.




Workshop ID: 2907834593
Mod ID: CalorieFix
46 Comments
DreadLordNaf  [author] 21 Apr @ 12:21pm 
Its hard to diagnose I know. Keep in mind this mod doesnt revise the vanilla calorie burn, instead it essentially recreates the vanilla burn, runs simultaneously with the vanilla formula, then adds back the difference based on the values I use. I dont know what would happen if two separate mods are both doing this though, for example if another you have affects calories for weight or exercise etc.... It's also possible some mods that dont seem to openly affect calories or weight, but does something related, like food calories, might have copied Chuckleberry's mod and worked off of that like I did, which also incorporates the whole recreated calorie burn etc., and might be conflicting..

If you find out let me know.
Viper 21 Apr @ 10:46am 
yea, i agree, but it's hard to know what the real culprit is. As far as i can tell i've disabled any mod that might affect calories or weight gain/change. I've only played a little bit since those changes so I guess we'll see if it starts reversing.
DreadLordNaf  [author] 21 Apr @ 10:32am 
Sounds like another mod conflict.
Viper 21 Apr @ 8:24am 
I seem to have the opposite problem as everyone else. I can't get my calories down no matter what I do. Sit-ups for 3 hours a day minimum, constant running around, super active character: just keeps getting fatter and fatter. I'm now at 109 and still climbing. And this is all with the Sticky Weight mod (which pulls toward 80 at all times) running at 3x strength. As much as I love the idea of this mod, I need to disable it for now. Not sure what's going wrong in my game or even if this mod is the issue.
DreadLordNaf  [author] 8 Apr @ 6:03am 
It should. Though I never mess around with multiplayer servers so not 100% sure. If you find out let me know.
blazez 8 Apr @ 1:08am 
it work for multiplayer?
Kxarsisツ 29 Dec, 2023 @ 8:14am 
Still burns a shit ton of calories walking lol
DreadLordNaf  [author] 29 Dec, 2023 @ 6:51am 
Thanks. I haven't played PZ in awhile, I take this to mean they STILL haven't fixed vanilla calorie rates?
Kxarsisツ 28 Dec, 2023 @ 6:22am 
Amazing mod, works well
DreadLordNaf  [author] 5 Sep, 2023 @ 4:29am 
@Enherjar - Im not sure what you mean. For awareness before 41.78 walking took ZERO calories so that was def on the extreme side of "too good". This mod retains the dev decision for walking to now use calories like it should, just changes it to a more realistic level (40% that of running the same distance).

@Roddo - On main screen -> Load Game -> click More... (in lower right corner) -> click Choose Mods -> Then select the mod from there...