Project Zomboid

Project Zomboid

564 ratings
Food Expiration Date and Bar
Tags: Mod
File Size
0.331 MB
Apr 7, 2018 @ 5:10pm
Oct 11, 2019 @ 5:42am
9 Change Notes ( view )

Subscribe to download
Food Expiration Date and Bar

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 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[].
Outdated version (April, 2015) already uploaded here by Ralph Blue.

Workshop ID: 1355561500
Mod ID: ExpirationFoodR
Popular Discussions View All (1)
Sep 18 @ 4:56am
< >
BigHillsBigLegs Nov 27 @ 2:26pm 
new game rewuired?
DoktorFar Nov 13 @ 3:00am 
Hello, the countdown timers for stale and rotten are the same value depending if the item is at normal temperature, cooled or frozen. But the speed at which it ticks down is different, so slower/faster for each of the three states.

Could there perhaps be a way to calculate the actual ingame time left at the current decay rate?

Not really complaint, just wondering if that might be possible. Thanks for a great mod!
Space Moth Oct 19 @ 8:28am 
@Deon - I had the same issue, and managed to find the conflicting mod. It looks to be the "Personalized Zombies" mod causing the issue.

Both Personalized Zombies and this mod define "initMod". This results in the variable NAME_TRAIT not being defined and causes the error whenever you hover over any food item.

I would recommend renaming initMod to something more unique to avoid clash!
☢ Выживатор ☢ Oct 13 @ 4:34pm 
Thank you for a great mod! :cozybethesda:
zdubber Sep 8 @ 4:07pm 
Would it be possible to have an option where this starts happening at like cooking 5-6 or something? So as you get better with food you just kind of learn your way into it.
Deon ☣ Aug 22 @ 2:10am 
Thank you for your answer.
For others who check mod quality in comments: please dont take my comment as bashing on this mod.

My problem is purely due to mod combination I run, this mod works fine on its own.
rez  [author] Aug 21 @ 4:56pm 
This can be due to: mod that somehow corrupts traits, malformed food item from another mod or another mod using the same mechanics. Can't tell more at this time.
Deon ☣ Aug 21 @ 4:02pm 
Could you recommend me a direction of troubleshooting of this error besides turning mods off one by one? Or is it too few information?
Deon ☣ Aug 21 @ 4:02pm 
This is likely caused by other mods, but recently I started to get this error when putting my mouse over food items:
[22-08-22 01:57:20.809] LOG : General , 1661122640809> -------------------------------------------------------------
attempted index: NAME_TRAIT of non-table: function initMod:104.
[22-08-22 01:57:20.810] LOG : General , 1661122640810> -----------------------------------------
function: get_trait -- file: tooltip.lua line # 219 | MOD: Food Expiration Date and Bar
function: fdxpr_render -- file: tooltip.lua line # 121 | MOD: Food Expiration Date and Bar.
[22-08-22 01:57:20.811] ERROR: General , 1661122640811> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: NAME_TRAIT of non-table: function initMod:104 at KahluaThread.tableget line:1689..
çar Aug 9 @ 9:32am 
Never mind I just need to activate the mods for ongoing game from load game menu. It works fine.