Project Zomboid

Project Zomboid

Fix NaN Nutrition Stats
38 Yorum
SocietysGone 5 Tem @ 23:54 
didnt work for me
podpivas 19 Mar @ 11:25 
dont work
小人物 19 Mar @ 6:48 
This BUG kept bothering me all night until I found this MOD. Thanks a lot.
Catasu 27 Şub @ 17:12 
worked great, thanks a lot friend
.HeXaGoN. 25 Şub @ 23:50 
Thank you!
可疑的火星人 16 Şub @ 19:16 
This mod perfectly resolved my issue. Thank you so much!
Barc 14 Şub @ 17:45 
just what i needed, cant be arsed to go into debug mode and mess around
technological_tv 14 Şub @ 15:17 
you might be the goat for this one
Vorshim  [yaratıcı] 14 Şub @ 3:15 
yes Jack! They theoretically fixed it in version 42.3.1...
Jack Crimson 13 Şub @ 21: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  [yaratıcı] 13 Şub @ 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  [yaratıcı] 13 Şub @ 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  [yaratıcı] 13 Şub @ 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å 13 Şub @ 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 13 Şub @ 1:00 
Thanks a lot
hoshie 13 Şub @ 0:50 
o7
Vorshim  [yaratıcı] 13 Şub @ 0: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 13 Şub @ 0:26 
good job.
Sick Boy 13 Şub @ 0: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 12 Şub @ 23:24 
Love you too bby
ash_williams 12 Şub @ 22:22 
42.3.1 fixed
Metal Izanagi 12 Şub @ 21: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 12 Şub @ 18: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 12 Şub @ 18: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 12 Şub @ 18:19 
Working great. Thank you! :D
Dumbledood 12 Şub @ 18:13 
Maybe I missed the update, gonna try re-subscribing.
Dumbledood 12 Şub @ 18:10 
Or am I just still getting fat? He's at 85 kg now with a positive chevron ^^
Dumbledood 12 Şub @ 18: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 12 Şub @ 16:40 
bless u sir
MeanSmoker 12 Şub @ 14:45 
thanks goat
Vorshim  [yaratıcı] 12 Şub @ 14:14 
yes! it works with existing saves! ;)
Hy 12 Şub @ 13:59 
Does this mod work on existing saves as well? Thanks for the great bug-fix mod!
Vorshim  [yaratıcı] 12 Şub @ 13:21 
No problem. just let me know if you need something ;)
Anamijå 12 Şub @ 12:41 
thanks for the clarification. i'll give your mod a try.
Vorshim  [yaratıcı] 12 Şub @ 12:31 
<3 exactly! thanks!!!
Schmootle 12 Şub @ 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  [yaratıcı] 12 Şub @ 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å 12 Şub @ 11:44