Project Zomboid

Project Zomboid

1,580 ratings
eris_food_expiry
8
4
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
Updated
122.212 KB
9 Feb, 2019 @ 11:33pm
26 Apr, 2019 @ 5:31am
15 Change Notes ( view )

Subscribe to download
eris_food_expiry

Description
eris_food_expiry

Displays expiration date of food as inventory bar + tooltip.

Requires Nutritionist trait to see exact stale and rot timer. (Optional)

Idea is based on an existing mod, food expiry date.

Features
  • Exact food expiry time for packaged foods. (Best-before/Use by/After opening)
  • Accounts for sandbox settings (FridgeFactor, FoodRotSpeed).
  • More time intervals (weeks, months, years).
  • Displays fresh-bar in inventory when the item list is expanded.

More info
Requires Nutritionist trait to see exact use-by times. (Optional)
Shows a rough description of the item state without the trait (very fresh, fresh, looks ok, almost rotten, rotten).

Food with extreme expiry times will show as "does not expire".

Shows the 3 largest intervals of time (e.g. years, months, days), (e.g. months, weeks, hours) by default. (Optional)

Options
Edit the file at Contents\mods\eris_food_expiry\media\lua\client\eris_food_expiry.lua to change the following three options:

-show_seconds: show seconds, will tick over very quickly, default is false (disabled).
-show_inventory_bar: show freshness bar in inventory when item list is expanded.
-require_trait: Require Nutritionist trait to see exact time, default is true (enabled, needs nutritionist).
-max_intervals: Increase for more accuracy if required. Not generally needed, default is 3. Default max value is 6. Max value is 7 if seconds are enabled.

------------------------------------------------------------------------------------------ ----------------------------------------OPTIONS------------------------------------- ------------------------------------------------------------------------------------------ local show_seconds = false; local show_inventory_bar = true; local require_trait = true; local max_intervals = 3; ------------------------------------------------------------------------------------------ ----------------------------------------/OPTIONS------------------------------------ ------------------------------------------------------------------------------------------

Translations
Thank-you to all the translators so far! JDog_HLM, Atlas1205, KAZP, Caco and Tomas!

If you would like to add a translation, see this thread for details: Translations


Credits
Translators
JDog_HLM - Russian.
Atlas1205 - Simplified Chinese, Traditional Chinese.
KAZP - Spanish(South America).
Caco - Brazilian Portuguese.
Tomas - Czech.

Modders
Original mod by abreu20011, April 12, 2015 - Forum thread here[theindiestone.com]


Final notes
My other mods:

Join us on TheGoodOldDayz Server!

Workshop ID: 1651019937
Mod ID: eris_food_expiry
Popular Discussions View All (1)
12
3 Oct @ 10:47pm
Translation Table
eris
104 Comments
JuryOfYourFears 22 Nov @ 6:05am 
Oh, and if you want to get rid of the tooltip that says a fish is dead (covers this mod's tooltip a bit):

Go to line 106 and 139 and replace IGUI_Dead with a space so it's getText(" ").
JuryOfYourFears 22 Nov @ 6:02am 
So, I noticed a few people asking about Snake's Modpack, which I love, but doesn't have as good a system as this mod for expiration imo.

It's a quick and dirty solution (doesn't mess with traits or anything), but you can go to the Snake Utils Pack mod folder (my filepath is C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2719327441\mods\Snake Utils Pack\media\lua\client) and open "tooltip.lua"

Then go down to line 1154 and comment out (add double dashes -- to the beginning of each line) or delete the following:

if self.item:getCategory() == "Food" then
self:MakeFoodInfo(self.item, lh, tw, th, self.tooltip);
end

That will disable the food expiration tooltip for Snake's.

Just fyi: If you don't localize the mod first, then if Snake updates or you have to verify your files, you'll lose these changes. Hope this helps someone :)
aubri 24 Oct @ 10:49am 
i love u
010100011 5 Jul @ 6:04pm 
does anyone know of a mod that does not spawn rotten food in fridges when you adjust months since Apocalypse ? . the game does not spawn food already frozen in fridges . it spawns rotten food the refrigerates it . this is infuriating
Ichinin 7 May @ 3:31am 
Love this mod, makes it easier to keep track of your food longevity, even when frozen.
NineLiang 2 Dec, 2023 @ 7:08am 
I got the solution. Just change local require trait = "true" to "false" and it will display normally. It seems to be a problem with trait.
Sonov Belial 18 Nov, 2023 @ 1:34am 
Same here. Mod enabled no issues. I guess you have a conflicting mod enabled that interferes with it or that is itself the cause of the issue.
Davetiger 17 Nov, 2023 @ 10:19pm 
@notthebees that's odd I have this mod loaded and I can barricade windows & doors...
NineLiang 22 Oct, 2023 @ 8:20pm 
plz update it plz, I need it, itsbso good
X23 4 Oct, 2023 @ 7:04am 
I know there's no support here but just letting people know that I had to disable this mod pack because it was preventing me from being able to barricade windows/doors.