Project Zomboid

Project Zomboid

774 ratings
Food Expiration Date and Bar
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
Updated
347.078 KB
Apr 7, 2018 @ 5:10pm
Oct 11, 2019 @ 5:42am
9 Change Notes ( view )

Subscribe to download
Food Expiration Date and Bar

Description
Description
Player can view more specific food condition. With the new trait player can additionally find out exact time to stale and rotten states with seconds precision. Trait costs 2 points as a generic human being is usually able to distinguish food state without intensive training.
Chefs and Burger flippers can automatically see additional info, as well as players which take Cook and Nutritionist traits (both cost more than a separate trait).
Compatible with versions 38.30, 40.43, 41.45+, 41.77.
Additional configuration is possible: you can decide to see food status without a trait (for existing games) or disable seconds in tooltip if you don't like them ticking away so fast, see variables in 'tooltip.lua' for configuration. No in-game menus currently, feel free to add them if you need them or create patches and contact me.

How to Use
Hover the cursor over food in inventory or container. With the new trait 'Eye to food' tooltip shows a bar and time left to 'stale' and 'rotten' states with seconds precision. Otherwise, only rough estimation will be seen as a status, but still more detailed than in vanilla Zomboid.
Non-perishable food has 'No expiration date' message instead to help everyone distinguish it in-game without Wiki pages.

Food has 5 states (without trait) which are color-coded further for more convenience:
  • very fresh
  • fresh
  • okay
  • starting to rot
  • rotten (basically the in-game state)
States are rough estimates (consider them based on 'Best Before' date on the product) while colors are more like smelling actual food, and dates and smells can indicate different things. Use their combitation for better effect or spend 2 points for the new trait.

Translations
Translations are mostly made by users. If you'd like to translate this mod, send your translation file to me and I will add it with credits in-place.
  • English (EN)
  • Brazilian Portuguese (PTBR)
  • Chinese simplified (CN)
  • German (DE)
  • Polish (PL)
  • Russian (RU)
  • Spanish (ES)

Other versions
This is a rework of abreu20011's mod by Rez (October, 2017) for personal use that I now share with everyone interested due to outdated version already being uploaded to workshop.

Original work by abreu20011 (pretty much discontinued) and topic on TIS forum[theindiestone.com].
Outdated version (April, 2015) already uploaded here by Ralph Blue.

Workshop ID: 1355561500
Mod ID: ExpirationFoodR
Popular Discussions View All (1)
26
Sep 18, 2022 @ 4:56am
Feedback
rez
136 Comments
Codey"TheSunflower"Sparkz Apr 15 @ 12:20pm 
A Good Food handling, Refrigerator shelves, cross contamination and Hygiene mod would be nice, I took a food handling course 5 years ago and the most notable thing about the game Is the complete lack of food handling procedures you can store meat with veggies which in food handling is not safe to eat, same with washing bloody clothes in the sink and immediately drinking from the same source, not cleaning utensils and cutting board before re-use, as well as not washing your hands before handling meat and other foods. My immersion is broken with the lack of these things in game, however I won't stop it from letting me enjoy it, thank you for listening to my rant, I know I will seem sorta over-analysing for saying this
aquelarrefox Apr 15 @ 9:15am 
good stuff, is posible to make a patch to truncate the time to days?
rez  [author] Mar 13 @ 7:56am 
@CLEO
For singleplayer game you can either give yourself the trait using Zomboid's debug mode OR you can temporary edit tooltip.lua file: there's an option that switches the behavior in the first lines of the file, named trait_logic. Set it to 'false' instead of 'true', that should allow skipping checks for trait.
CLEO Mar 13 @ 12:05am 
so this requires the trait??
i actually got into preserving food in my current playthrough smoking and pickling and stuff they are still perishable but i don't know for how long
i can't add this trait in an ongoing playthrough
rez  [author] Jan 30 @ 1:41pm 
@DivineAutismo
In-game time without fridge.
DivineAutismo Jan 29 @ 4:21pm 
I'm honestly confused about this. is the timer for ingame time or real time?
Zefiruz Jan 11 @ 12:14pm 
Mods que deberían ser vanilla.
rez  [author] Nov 16, 2023 @ 4:40am 
@tv.ramrod
It may've been on the verge of becoming stale by time you put it there, fridge may have low efficiency by game options etc. This mod translates objects' properties to human readable form with or without trait. No internal magic happening there, sorry. I see that 3 days till stale is written on PZwiki so it should be correct.
Also these 2 days are what's left when *unfrozen back*, take a note on slow timer ticks when frozen. That's by design as people don't eat frozen food for the most part, they wait till it thaws and then they have to spend some time cooking it. That's why people are usually interested in 'real time' that's left for food when they determine what happens first: they manage to cook it or it rots before.
tv.ramrod Nov 15, 2023 @ 9:51pm 
Frozen uncooked bacon in the freezer.. stale in 2 days? something ain't right
vsnegupal Nov 5, 2023 @ 6:14pm 
No thanks, I probably won't modify the code, I don't want to get into that right now.