Project Zomboid

Project Zomboid

Not enough ratings
Calories Fix Ash J Williams eat well + FluidNanFix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
320.332 KB
Jan 31 @ 2:55pm
Feb 12 @ 10:19pm
12 Change Notes ( view )

Subscribe to download
Calories Fix Ash J Williams eat well + FluidNanFix

Description
It's calories fix. This saves weight when you're starving and eating a big pot of good calorie stew, for example.
So, how I understand when your character is starving his calories goes below zero.
So it's some debt of calories, if you will eat a pot of good stew firts you will "pay" calories debt like -2000(calorie debt) + 1000(stew). So let it will be work some another way! If your character calories going below to zero
this mod add some calories fix:
ate_calories=caloires_of_food + bonus_caloires_1 + bonus_calories_2
bonus_calories_1 - coefficient more debt, more bonus 0.25-0.50 depends of your calorie debt
bonus_calories_2 - coefficient just clone of bonus_calories1, so idea was a bonus for debt and a bonus for ate food calories, but now it calculated only from your calories debt.
bonus is 0,55/(1+EXP(-0,001*($Value-200)))*100
I think if you lose calories in life and take a pot of stew for about 1000-2000 calories, you will stop losing weight so that was the point.

But, I think it will make more harder to lose weight for some fatty guys(like me). So I think with this mod you should eat a little parts of food non calorie food. I didn't test it.. so good luck fatty boys :)

So Ash J Williams eat well! Hail to the king baby!

Incompatibility.. I think it's good way to not use this mod with some "no cap calories mods" even I say: "Thank you Mopap four sorce code, becasuse I used some features from "No cal Cap".
I think it is compatibility with mods that fixes Food and Fluid calories and mods that change burn calories with some player actions.

Upd. 12.02.2025 Some bug with 42.3.0 when calroires goes to nan, so I fixed it just add calories to cap.. Will report Indie stone.. I have some opinion so they changed API or something.
Upd. 13.02.2025 Removed my temprary fix for NaN calories, update to 42.3.1.

Workshop ID: 3418392722
Mod ID: CalorieFixAshJWilliamsEatWell
8 Comments
ash_williams  [author] Feb 13 @ 2:37am 
https://steamcommunity.com/sharedfiles/filedetails/?id=3426165280&searchtext=

Use this mod if you have trouble with calroies after 42.3 update.
ash_williams  [author] Feb 11 @ 11:32pm 
updated 42.3.0 some bug when I ate my favorite vansion stew))) my calories go to NaN, don't now is it my mod or not. But I think some bug with vanilla. Becouse My mod just add calories when its below zero so it smoothly goes to zero, if calrories bigger then 0 it nothing happend. So bug was when char ate 3-4 pots of stew(calrories go to cap)
ash_williams  [author] Feb 10 @ 10:20pm 
You are welcome, if indie stone fix calories system it will be great. I think our body like that if you starving and get big pot of stew you stop lossing weight.. And your body takes more calories from food. This mod just helps stop lossing weight when you not eated for a day and take one or two pots of good stew.
Lester Chaykin Feb 7 @ 2:52am 
Thanks ! Before that, when my character lost weight, no matter how much I fed him, it was hard to put it back on!
Naustghoul Feb 1 @ 7:35am 
Groovy
ash_williams  [author] Jan 31 @ 4:00pm 
Yes, only will add bonus at onEatEvent to calories when you lose weight(your calories < 0)
XOXANA Jan 31 @ 3:55pm 
dont alter vanilla food values, only "bonus"?
ash_williams  [author] Jan 31 @ 2:57pm 
On test guys!