Project Zomboid

Project Zomboid

Fix NaN Nutrition Stats
댓글 38
SocietysGone 2025년 7월 5일 오후 11시 54분 
didnt work for me
podpivas 2025년 3월 19일 오전 11시 25분 
dont work
小人物 2025년 3월 19일 오전 6시 48분 
This BUG kept bothering me all night until I found this MOD. Thanks a lot.
Catasu 2025년 2월 27일 오후 5시 12분 
worked great, thanks a lot friend
.HeXaGoN. 2025년 2월 25일 오후 11시 50분 
Thank you!
可疑的火星人 2025년 2월 16일 오후 7시 16분 
This mod perfectly resolved my issue. Thank you so much!
Barc 2025년 2월 14일 오후 5시 45분 
just what i needed, cant be arsed to go into debug mode and mess around
technological_tv 2025년 2월 14일 오후 3시 17분 
you might be the goat for this one
Vorshim  [작성자] 2025년 2월 14일 오전 3시 15분 
yes Jack! They theoretically fixed it in version 42.3.1...
Jack Crimson 2025년 2월 13일 오후 9시 46분 
The bug with the nan nutrition stats are still reproducible when fully emptying a bottle of water through drinking, and it also occurs even in a new game. I was able to prevent the bug to occur by drinking water before my character reaches 50 percent thirst. And then refilling the container again in order to avoid emptying it. So it has something to do with emptying a fluid container through drinking, probably.
Vorshim  [작성자] 2025년 2월 13일 오전 8시 16분 
What I can suggest or hypothesize is that if you're playing on a save where those stats were previously bugged as NaN, even after restoring them with my mod or simply reopening the game in debug mode and resetting them, it might not have been enough.

Maybe the updateWeight function got stuck, and the only solution is to either start over (or die). Or, as I mentioned, it could simply be a bug in patch 42.3. You should try creating a new game or dying to see if the issue persists.

If it stops happening, then the save was likely corrupted. If it still happens, then it's a bug from 42.3 (or 42 in general), and unfortunately, we'll just have to wait for a fix
Vorshim  [작성자] 2025년 2월 13일 오전 8시 06분 
You even said it yourself,you removed my mod, and the weight is still increasing. That only confirms that my mod isn’t the cause of the issue.

I don’t mean to dismiss your concern, but it seems like a bit of a rushed assumption to blame this mod. There might be another factor at play—maybe another mod or a change in the game itself. Let me know if I can help figure it out! 😊
Vorshim  [작성자] 2025년 2월 13일 오전 8시 03분 
I'm sorry, Anamijå, but it must be either another mod you have installed or simply the latest patch 42.3.0 that changed something (maybe another bug).

My mod was fixing a simple bug related to the right-click option "Refill bottle from Sink" in combination with autodrink. Now, the fix has been included in 42.3.1, so I removed it from the mod, meaning you don’t need to install it anymore.

It doesn’t do anything anymore, basically—unless your stats are bugged. The only thing this mod does now is check, after loading the game, if your stats were bugged (NaN) and restore them.

So, I’m sorry, but this mod has nothing to do with it. But thanks for asking!
Anamijå 2025년 2월 13일 오전 7시 29분 
hey when i used your mod i noticed that my character was gaining weight all the time, even when i took your mod out it didn't help, i've gained 3kg now and i've hardly eaten anything. i've had your mod out for two in game days now and the weight is only going up. i've already seen in the comments that i'm probably not the only one, so i'm sure it's because of this mod.
Hy 2025년 2월 13일 오전 1시 00분 
Thanks a lot
hoshie 2025년 2월 13일 오전 12시 50분 
o7
Vorshim  [작성자] 2025년 2월 13일 오전 12시 28분 
Yeah! They just drop an update for just this bug 😂😅 but unfortunately if you have already stats bugged you will continue to have it so install this mod. Load a game so it will fix your stats and then disable my mod. Thanks Sick Boy.
I will leave this mod online for one week I think
lai_wei1986 2025년 2월 13일 오전 12시 26분 
good job.
Sick Boy 2025년 2월 13일 오전 12시 19분 
In case anyone needs this, The Indie Stone's recent update doesn't fix an existing save having Nutrition disabled. However installing this mod re-enabled nutrition on a save that had it disabled from the original bug.

(I tested disabling this mod AFTER it re-enabled my Nutrition, and it's still enabled, so you don't need to keep the mod enabled, just activate it, load the game, and then exit and deactivate.)
Olboy 2025년 2월 12일 오후 11시 24분 
Love you too bby
ash_williams 2025년 2월 12일 오후 10시 22분 
42.3.1 fixed
Metal Izanagi 2025년 2월 12일 오후 9시 46분 
Looks like TIS just put out the hotfix for this issue, before I even had a chance to use the bugfix T_T

Thank you for this, though!
Dumbledood 2025년 2월 12일 오후 6시 31분 
Nevermind, not sure if either mod did the trick! Sorry for the spam. But after being very hungry for a day and a half, he's now stable at 85.
Dumbledood 2025년 2월 12일 오후 6시 20분 
That didn't work. Installed the other mod down below in the comments to see if that would stop the weight gain, but it didn't either. Any idea what might be going on?
Agaia 2025년 2월 12일 오후 6시 19분 
Working great. Thank you! :D
Dumbledood 2025년 2월 12일 오후 6시 13분 
Maybe I missed the update, gonna try re-subscribing.
Dumbledood 2025년 2월 12일 오후 6시 10분 
Or am I just still getting fat? He's at 85 kg now with a positive chevron ^^
Dumbledood 2025년 2월 12일 오후 6시 08분 
My character seems to be gaining weight while being very hungry even after installing this. I wanted to gain weight, and was eating fishy meals, so thought it was actually happening, but now I'm not sure. He's weak with hunger, so I don't think he should still be gaining weight.
MrTea 2025년 2월 12일 오후 4시 40분 
bless u sir
MeanSmoker 2025년 2월 12일 오후 2시 45분 
thanks goat
Vorshim  [작성자] 2025년 2월 12일 오후 2시 14분 
yes! it works with existing saves! ;)
Hy 2025년 2월 12일 오후 1시 59분 
Does this mod work on existing saves as well? Thanks for the great bug-fix mod!
Vorshim  [작성자] 2025년 2월 12일 오후 1시 21분 
No problem. just let me know if you need something ;)
Anamijå 2025년 2월 12일 오후 12시 41분 
thanks for the clarification. i'll give your mod a try.
Vorshim  [작성자] 2025년 2월 12일 오후 12시 31분 
<3 exactly! thanks!!!
Schmootle 2025년 2월 12일 오후 12시 22분 
Thank you modder! This fixed the bug for me. I'll post here if I experience any issues using it in b42.3

Be sure to enable the mod for your save when loading an existing world. If you have the bug already, it will reset Proteins, Carbs, and Lipids back to zero.
Vorshim  [작성자] 2025년 2월 12일 오후 12시 06분 
That's not a real fix. That mod just sets protein and calories to 0 when they get bugged (NaN). My mod actually prevents those stats from becoming NaN in the first place.

My mod specifically fixes the autodrink issue that causes this bug. I just forgot to make it restore the stats on startup for players who have already started a game and encountered the bug—I'll add that now.
Thanks for letting me know anyway!
Anamijå 2025년 2월 12일 오전 11시 44분