Project Zomboid

Project Zomboid

760 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
< >
132 Comments
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.
rez  [author] Nov 5, 2023 @ 4:56am 
@vsnegupal
Yes of course you can include it unless you modify the source.
If you have any ideas for improvement and working code please contact me and maybe we can add them in mainstream later.
vsnegupal Nov 5, 2023 @ 12:31am 
Greetings. Can you please give me permission to include this mod in the modpack for my personal server? There will be a link to this mod in the modpack description, and I will always be in touch for original mod authors. You can post your approval/disapproval here or in private messages.
earnmoney314 Aug 13, 2023 @ 7:43am 
can you please add magazine for telling the exact time for foods??
Peni4 Apr 18, 2023 @ 9:41am 
@rez Then I dont know. I was just testing this and another food freshness mod on my main run, swapping them around and comparing them... so it's likely that something just broke along the way. ¯\_(ツ)_/¯
In any case, I was left unsatisfied, which is frustrating. To be honest, the countdown is only more confusing because of the way it's displayed. Given this, I personally would be quite happy with a simple bar with a dynamic color change.