Project Zomboid

Project Zomboid

Food Expiration Date and Bar
144 kommentarer
rez  [ophavsmand] 15. apr. kl. 13:31 
@*gönlümüzde orası,
I have written it in English and added all the translations people sent me. Noone has sent Turkish, thus this mod does not have this particular translation.
If you know English, you can help by submitting Turkish file with translation from English.
*gönlümüzde orası 15. apr. kl. 12:41 
Bu kadar fazla dile çevirmişsiniz (gereksiz dillerde var) fakat neden türkçeye çevirmekle uğraşmadınız. Türklere karşı bir ırkçılık yapmanız hoş değil, genel olarak bizi adam yerine koymuyorsunuz.
шеколад74 4. feb. kl. 6:46 
а будет роботать на всех версиях проджект зомбоид ктоме 42
rez  [ophavsmand] 27. jan. kl. 17:00 
@Nathan, maybe after b42 is released. I haven't tested it yet.
Nathan 27. jan. kl. 16:30 
is this being worked on for b42?
Odoxon 10. dec. 2024 kl. 15:10 
@Epathos but how does that make sense if frozen food lasts 25 times longer?
Epathos 27. maj 2024 kl. 22:39 
There is no difference in time between the freezer and fridge
BBA 14. maj 2024 kl. 21:06 
Does the time left before food turn stale/rotten scale with sandbox settings and if the item is in a fridge/freezer?
Ittizzy Bittzy Tism Spider 15. apr. 2024 kl. 12:20 
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 15. apr. 2024 kl. 9:15 
good stuff, is posible to make a patch to truncate the time to days?
rez  [ophavsmand] 13. mar. 2024 kl. 7:56 
@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 13. mar. 2024 kl. 0:05 
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  [ophavsmand] 30. jan. 2024 kl. 13:41 
@DivineAutismo
In-game time without fridge.
DivineAutismo 29. jan. 2024 kl. 16:21 
I'm honestly confused about this. is the timer for ingame time or real time?
Zefiruz 11. jan. 2024 kl. 12:14 
Mods que deberían ser vanilla.
rez  [ophavsmand] 16. nov. 2023 kl. 4:40 
@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 15. nov. 2023 kl. 21:51 
Frozen uncooked bacon in the freezer.. stale in 2 days? something ain't right
vsnegupal 5. nov. 2023 kl. 18:14 
No thanks, I probably won't modify the code, I don't want to get into that right now.
rez  [ophavsmand] 5. nov. 2023 kl. 4:56 
@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 5. nov. 2023 kl. 0:31 
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.
sanki mermer 13. aug. 2023 kl. 7:43 
can you please add magazine for telling the exact time for foods??
Peni4 18. apr. 2023 kl. 9:41 
@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.
Soylent 18. apr. 2023 kl. 9:33 
Awesome, thanks for the mod. By the way, is it possible for the mod to identify if food is frozen and change the expiration dates accordingly (rather than slow down the timer)?
rez  [ophavsmand] 18. apr. 2023 kl. 7:15 
@Peni4
It does not eat anything, especially after removal ;)

@Soylent
This can be safely ignored and is left from 40.x era.
Peni4 18. apr. 2023 kl. 6:17 
Mod noticeably eats FPS, even after removal.
Soylent 17. apr. 2023 kl. 9:05 
I see this error appear on the server console when I log out my character with the trait - "IsoGameCharacter$XP.load> unknown trait "foodexpiration"
Edokun 12. apr. 2023 kl. 6:09 
Imagine knowing when to exercise, eat, get drunk, smoke, sleep in any mode of the day or night :steamthis::steamthumbsup:
rez  [ophavsmand] 8. apr. 2023 kl. 8:17 
@Sleepy Joe
It shouldn't. All that it does it reads additional info about food lifespan from items properties and displays it, nothing is replaced during this process.
Coda 8. apr. 2023 kl. 8:03 
Is it possible that this mod interferes with nutritional values? Beef Jerky still gives only 1g of protein to me although it's been supposedly fixed in 2021.
BargainSale 22. dec. 2022 kl. 4:35 
Nevermind, I figured it out
BargainSale 22. dec. 2022 kl. 4:23 
Is it possible to make it so you can only see days left, instead of hours and minutes?
BigHillsBigLegs 27. nov. 2022 kl. 14:26 
new game rewuired?
DoktorFar 13. nov. 2022 kl. 3:00 
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 19. okt. 2022 kl. 8:28 
@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!
Survivator 13. okt. 2022 kl. 16:34 
Thank you for a great mod! :cozybethesda:
Jet Gi 8. sep. 2022 kl. 16:07 
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 ☣ 22. aug. 2022 kl. 2:10 
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  [ophavsmand] 21. aug. 2022 kl. 16:56 
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 ☣ 21. aug. 2022 kl. 16:02 
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 ☣ 21. aug. 2022 kl. 16:02 
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> -----------------------------------------
STACK TRACE
-----------------------------------------
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 9. aug. 2022 kl. 9:32 
Never mind I just need to activate the mods for ongoing game from load game menu. It works fine.
rez  [ophavsmand] 9. aug. 2022 kl. 6:55 
@çar
I have just checked in both Single and Multiplayer modes. Works in 41.73 as intended, no issues.
Have no knowledge on advanced volume mod though, but it does not sound like something that should use tooltips in any way.
çar 9. aug. 2022 kl. 6:32 
Doesn't work on me. I only use, advanced volume enabler, no other mods. Is it because of the new update? Any help?
rez  [ophavsmand] 2. aug. 2022 kl. 13:39 
@charoles31
Yes. The whole point of this decision is in one's ability to predict how much time is left when the food is removed from the fridge, because I think there's no reason to see incorrect (rated) time before thaw happens and then just staring at the food that will rot as you cook it. Thus I made it show time left when put out of fridge instead that ticks slower in fridge/freezer so I don't have to make backward calculations in my head.
charoles31 1. aug. 2022 kl. 20:58 
Took me a while to figure out that this mod doesn't extrapolate refrigerated freshness rates. It just slows the countdown timer. I thought the damn thing was broke. Excellent mod but can I borrow your calculator?
YingSuHuaKai 16. juli 2022 kl. 18:07 
still working at 41.72:steamthumbsup:
SirVival 30. juni 2022 kl. 4:17 
It might be my stuffed mod package, but this mod is the onliest causing visible problems atm.
The Bar is not shown at all, while the State of the Food is Shown... but like way out of the borders of the window where it should be. Otherwise i think this is great addition to game, thanks xD
Axebeard 27. maj 2022 kl. 18:52 
After looking at your LUA, I actually don't think your mod is causing the problem. I'll have to play with my modlist a little.
Axebeard 27. maj 2022 kl. 18:50 
From what I understand it allows you to edit only specific traits of items without editing the ENTIRE item if that makes sense. So two mods using ItemTweaker API could change the same food, but they wouldn't overwrite each other.
rez  [ophavsmand] 27. maj 2022 kl. 17:41 
@Axebeard
What's 'Item Tweaker API' and why a standalone mod that does not tweak any items should use it? Could you please elaborate because it's the first time I hear about this API tbh.