Project Zomboid

Project Zomboid

Food Expiration Date and Bar
144 条留言
rez  [作者] 4 月 15 日 下午 1: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ı 4 月 15 日 下午 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 2 月 4 日 上午 6:46 
а будет роботать на всех версиях проджект зомбоид ктоме 42
rez  [作者] 1 月 27 日 下午 5:00 
@Nathan, maybe after b42 is released. I haven't tested it yet.
Nathan 1 月 27 日 下午 4:30 
is this being worked on for b42?
Odoxon 2024 年 12 月 10 日 下午 3:10 
@Epathos but how does that make sense if frozen food lasts 25 times longer?
Epathos 2024 年 5 月 27 日 下午 10:39 
There is no difference in time between the freezer and fridge
BBA 2024 年 5 月 14 日 下午 9:06 
Does the time left before food turn stale/rotten scale with sandbox settings and if the item is in a fridge/freezer?
CodeySparkz 2024 年 4 月 15 日 下午 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 2024 年 4 月 15 日 上午 9:15 
good stuff, is posible to make a patch to truncate the time to days?
rez  [作者] 2024 年 3 月 13 日 上午 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 2024 年 3 月 13 日 上午 12: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  [作者] 2024 年 1 月 30 日 下午 1:41 
@DivineAutismo
In-game time without fridge.
DivineAutismo 2024 年 1 月 29 日 下午 4:21 
I'm honestly confused about this. is the timer for ingame time or real time?
Zefiruz 2024 年 1 月 11 日 下午 12:14 
Mods que deberían ser vanilla.
rez  [作者] 2023 年 11 月 16 日 上午 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 2023 年 11 月 15 日 下午 9:51 
Frozen uncooked bacon in the freezer.. stale in 2 days? something ain't right
vsnegupal 2023 年 11 月 5 日 下午 6:14 
No thanks, I probably won't modify the code, I don't want to get into that right now.
rez  [作者] 2023 年 11 月 5 日 上午 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 2023 年 11 月 5 日 上午 12: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 2023 年 8 月 13 日 上午 7:43 
can you please add magazine for telling the exact time for foods??
Peni4 2023 年 4 月 18 日 上午 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 2023 年 4 月 18 日 上午 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  [作者] 2023 年 4 月 18 日 上午 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 2023 年 4 月 18 日 上午 6:17 
Mod noticeably eats FPS, even after removal.
Soylent 2023 年 4 月 17 日 上午 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 2023 年 4 月 12 日 上午 6:09 
Imagine knowing when to exercise, eat, get drunk, smoke, sleep in any mode of the day or night :steamthis::steamthumbsup:
rez  [作者] 2023 年 4 月 8 日 上午 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 2023 年 4 月 8 日 上午 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 2022 年 12 月 22 日 上午 4:35 
Nevermind, I figured it out
BargainSale 2022 年 12 月 22 日 上午 4:23 
Is it possible to make it so you can only see days left, instead of hours and minutes?
BigHillsBigLegs 2022 年 11 月 27 日 下午 2:26 
new game rewuired?
DoktorFar 2022 年 11 月 13 日 上午 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 2022 年 10 月 19 日 上午 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 2022 年 10 月 13 日 下午 4:34 
Thank you for a great mod! :cozybethesda:
Jet Gi 2022 年 9 月 8 日 下午 4: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 ☣ 2022 年 8 月 22 日 上午 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  [作者] 2022 年 8 月 21 日 下午 4: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 ☣ 2022 年 8 月 21 日 下午 4: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 ☣ 2022 年 8 月 21 日 下午 4: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 2022 年 8 月 9 日 上午 9:32 
Never mind I just need to activate the mods for ongoing game from load game menu. It works fine.
rez  [作者] 2022 年 8 月 9 日 上午 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 2022 年 8 月 9 日 上午 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  [作者] 2022 年 8 月 2 日 下午 1: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 2022 年 8 月 1 日 下午 8: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 2022 年 7 月 16 日 下午 6:07 
still working at 41.72:steamthumbsup:
SirVival 2022 年 6 月 30 日 上午 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 2022 年 5 月 27 日 下午 6: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 2022 年 5 月 27 日 下午 6: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  [作者] 2022 年 5 月 27 日 下午 5: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.