Project Zomboid

Project Zomboid

38 évaluations
Sensible Balance: Temperature Affects Food Spoilage Rate
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Taille du fichier
Publié le
Mis à jour le
33.599 KB
27 juil. à 6h56
31 juil. à 11h19
2 notes de changement ( voir )

S'abonner pour télécharger
Sensible Balance: Temperature Affects Food Spoilage Rate

Dans 2 collections faites par unlockk
Vanilla Plus Plus Plus
211 objets
Sensible Mods
10 objets
Description
December 2024 Note: This is created and tested for Build 41 only, the Build 42 update will come in the future! The mod may still work fine with Build 42 - but use at your own risk!

World temperature affects the food spoilage rate as you experience seasonal and day-to-day variations. Compatible with everything, works in multiplayer, works with existing items, temperature-dependent decay time/spoilage rate updates every in-game hour.

The example picture has been created with the help of Eris' Food Expiry, which shows the remaining freshness and time until the food is completely rotten.

The game does not differentiate between items left outside and inside, where it is typically warmer, which is a limitation for this mod, but has been accounted for to the best of my ability.

Items do not freeze unless are in the freezer, same as vanilla.

Future Plans:
-Update the mod for Build 42 when the time comes.

-Manually adjust some of the gratuitous spoilage times on some food items for better realism and immersion. I've already covered some in my Food and Drink, Nutrition, and Water Weight mod.

-If anyone has any idea how one could begin to code for items freezing once the temperatures are within the realm of freezing, please let me know. If it is possible for pots of water in the game to fill up with rain that means they know that: 1. they are on the outside tile, 2. the weather conditions are right. If the "amount of water" bar is able to fill up it should also be possible to fill up the "freezing" bar based on points 1 and 2. I would appreciate any insight into how one could code for this.

-Of course, if there are any issues or imbalances I will try and correct them. I use all my mods myself.

Extra Notes:
Because the refrigeration effectiveness sandbox setting is a flat multiplier against the decay timer, it is also adjusted to best fit realistic expectations (e.g. when it is freezing outside, refrigeration effectiveness is reduced given that refrigerators are meant to run between 0°C and 4°C). It is not possible to make food spoil faster in a refrigerator than outside, so when in doubt, use the fridge.

I would recommend using Surviving Through the Seasons to make the year last less than 365 in-game days so that you can actually experience all the seasonal variations through your average playthrough length. I would also suggest KYR Real Weather with the base minimum temperature to -4°C if you want the fairly typical real-life winter lows of Kentucky.
Lastly, Prepare For Winter to make farming below zero impossible.

Permissions:
Please do not mod-pack or reupload this mod anywhere else, just share the link to this page.
I hope you enjoy this mod.

Workshop ID: 3297793087
Mod ID: sensiblebalancetempfoodspoilage
15 commentaires
konte1m 17 oct. à 10h33 
damn bro, you're doing the gods work with those mods
unlockk  [créateur] 23 aout à 15h20 
If anyone has any idea how one could begin to code for items freezing, please let me know.

If it is possible for pots of water in the game to fill up with rain that means they know that: 1. they are on the outside tile, 2. the weather conditions are right. If the "amount of water" bar is able to fill up it should also be possible to fill up the "freezing" bar based on points 1 and 2. I would appreciate any insight into how one could code for this, as I could not find the lua file for rain behaviour which leads me to believe it is hardcoded.
unlockk  [créateur] 7 aout à 14h21 
haha no problem
Anrik 7 aout à 9h28 
I have to apologize. I forgot that I had installed another mod at the same time. And that mod caused this.
unlockk  [créateur] 7 aout à 6h50 
Honestly, there's no way the code affects this, feel free to look through the mod files. Could I please see your entire modlist? Are you sure you don't have Surviving Through Seasons installed or something?
Anrik 7 aout à 1h23 
Sunday I installed the mod, and since Sunday I have had the problem that the date in the digital clock does not switch from e.g. 08.01. (dd/mm) to 09.01. but to 11.01. And this goes on and on. From 11.01. to 14.01. to 17.01. etc. Previously this error did not occur in my current run and it has now been running for 6 months and 2 days in the game. I have installed PZ on another computer and tried my savefile on this computer. The error is still there. So it seems that my savefile is defective somewhere. But where? And can I change it again?
N0wh3re 2 aout à 2h56 
You did it!
OriionKek 1 aout à 22h28 
does the food freeze if the temperature under 0 degrees celcius?
This bread is satanic fat
unlockk  [créateur] 1 aout à 6h19 
It is, I have not touched any items. By the way, when you see the item's "days until rotten" on the game wiki [pzwiki.net] or in code, that is on the 'Normal' food spoilage rate sandbox setting.