Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.
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.
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
In-game time without fridge.
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.
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.
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.
It does not eat anything, especially after removal ;)
@Soylent
This can be safely ignored and is left from 40.x era.
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.
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!
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!
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.
[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..
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.
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.
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
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.