Project Zomboid

Project Zomboid

38 vurderinger
Sensible Balance: Temperature Affects Food Spoilage Rate
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
Filstørrelse
Lagt ut
Oppdatert
33.599 KB
27. juli kl. 6.56
31. juli kl. 11.19
2 endringslogger ( vis )

Abonner for å laste ned
Sensible Balance: Temperature Affects Food Spoilage Rate

I 2 samlinger av unlockk
Vanilla Plus Plus Plus
211 gjenstander
Sensible Mods
10 gjenstander
Beskrivelse
December 2024 Note: This is for Build 41 only, the Build 42 update will come in the future!

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 kommentarer
konte1m 17. okt. kl. 10.33 
damn bro, you're doing the gods work with those mods
unlockk  [skaper] 23. aug. kl. 15.20 
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  [skaper] 7. aug. kl. 14.21 
haha no problem
Anrik 7. aug. kl. 9.28 
I have to apologize. I forgot that I had installed another mod at the same time. And that mod caused this.
unlockk  [skaper] 7. aug. kl. 6.50 
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. aug. kl. 1.23 
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. aug. kl. 2.56 
You did it!
OriionKek 1. aug. kl. 22.28 
does the food freeze if the temperature under 0 degrees celcius?
This bread is satanic fat
unlockk  [skaper] 1. aug. kl. 6.19 
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.