Project Zomboid

Project Zomboid

Lody's Food Expiration
79 Comments
Zamen We Delta [Lodymes]  [author] 6 Sep @ 6:13am 
@Dester


hahaha i forgot that i am playing with that mod too HAHAHA
Dester 3 Sep @ 1:03pm 
@Zamen We Delta [Lodymes] Looks like the mod called "More Item Information" found a way to display when food will go rotten or stale.
Zamen We Delta [Lodymes]  [author] 1 Sep @ 7:53pm 
@Dester

i could use your idea and implement such as "Best used before: (date)" that i could insert daysfresh of the food. but when i think about it i havent really understand to code a LUA to retrieve players game date because to implement this the food expiration date has to be dynamically adjusted along with players desired game start date.
Zamen We Delta [Lodymes]  [author] 1 Sep @ 7:50pm 
@supercrysisrunner

i haven't take a look or tried sapph's cooking mod or even test with my mod, but is it really incompatible? so far this mod only edit vanilla food properties, which i am surprised people asking about compability with sapphs cooking mod
Zamen We Delta [Lodymes]  [author] 1 Sep @ 7:47pm 
@K.Plotnikof

yes the chances for food to go rotten is random handled by the game randomizer table, the ones i edited are max days for food before having 100% chance to be rotten.
Dester 26 Aug @ 11:50am 
At first I thought this was adding a visible expiration date for food items, that would have been great. Way too often I have food items showing as 'Stale' and I have no idea how much time I have left for using the item before it's 'Rotten'.
supercrysisrunner 19 Aug @ 2:17pm 
Bro, the best thing to be done in this mod is a compatibility update with sapph's cooking.
K.Plotnikof 19 Aug @ 11:49am 
The new update sounds really nice! :)
I just thought of something and i don't know if this have been brought up before or have been worked into them mod yet.
Is the days until an item goes rotten random? in that sense that it simulates it maybe have been in that house for maybe 100 days before you start your playthough? Or is this to hard to implement?
Is it also possible to see how long till each items experies?
Zamen We Delta [Lodymes]  [author] 19 Aug @ 10:18am 
theres more to come but for now i am going to take some rest
chicken leg 19 Aug @ 8:40am 
i saw :3
thank you for mentioning me in it!! you didnt need to and its a very nice show of faith, you're a nice person
Zamen We Delta [Lodymes]  [author] 19 Aug @ 8:27am 
don't forget to view the changelog for the details!
chicken leg 19 Aug @ 7:42am 
good job ^^
thank you for updating it so quickly lol
Zamen We Delta [Lodymes]  [author] 19 Aug @ 7:20am 
🛠️ Update 1.1.0 has been rolled out!
chicken leg 17 Aug @ 9:23am 
oh dude thats great news lol, maybe if you play around with it you can adjust it for other foods too so this might be a kind of breakthrough! pretty sure more people would use this mod if some stuff gets adjusted so it can just be a little less broken ^^
Zamen We Delta [Lodymes]  [author] 17 Aug @ 7:39am 
@Octavian

wishing you have the best run!
Zamen We Delta [Lodymes]  [author] 17 Aug @ 7:39am 
@󠀡󠀡󠁳󠀡󠀡

this might involves LUA or scripting outside my knowledge which i havent learned yet. In the script the value of buffs like hunger,happiness is included inside the food function itself. i am not sure if the game has a prepared method for it if i don't want to code it in LUA.
Zamen We Delta [Lodymes]  [author] 17 Aug @ 7:36am 
@chicken leg

actually after some thoughts it seems possible. i could delete the line for sugar DaysTotallyRotten so it will may never rot but i havent tested it out yet.
Octavian 16 Aug @ 9:23am 
noice
󠀡󠀡󠁳󠀡󠀡 13 Aug @ 4:03pm 
what you could do is remove some of the added benefits of a food once it goes stale and thats how you could balance it, but i dunno
chicken leg 13 Aug @ 12:25pm 
you know what would be really neat? if there was a way to limit it to just "stale" or something, that way you could get alot of foods going stale but still pretty edible (like sugar) sorry if i bothered you in any way, didnt mean to come off like that
Zamen We Delta [Lodymes]  [author] 13 Aug @ 8:22am 
welp, maybe i would rethink of removing some expiry on stuff similar to it including sugar
Zamen We Delta [Lodymes]  [author] 13 Aug @ 8:21am 
but never truly get to the rot phase
Zamen We Delta [Lodymes]  [author] 13 Aug @ 8:21am 
@chicken leg

pretty much yeah sugar doesnt rot. Wish they had a feature where few specific amount of food can only go stale and never truly rot. Because for example sugar we mentioned earlier, if it used for say like 3 years the sugar itself will get coarse and a rough texture
chicken leg 13 Aug @ 8:09am 
would use this if it didnt give SUGAR of all things an expiration date lmao
it doesnt exactly rot
Ryo 13 Aug @ 3:39am 
W mod
Zamen We Delta [Lodymes]  [author] 3 Aug @ 4:16am 
@My564username

maybe you should unsub from this mod first and after i roll out 1.1.0 update lets see if it works
My564username 1 Aug @ 8:55am 
@Zamen We Delta Yes. I like my chickens lol.
Zamen We Delta [Lodymes]  [author] 1 Aug @ 2:56am 
@My564username


hmmmm how mysterious.....unfortunately i am lacking details about your situation....you are playing in B42 right?
My564username 31 Jul @ 11:20am 
@Zamen We Delta I disabled all my other food mods too
My564username 31 Jul @ 11:18am 
@Zamen We Delta Nope i tried to do it on new saves
Zamen We Delta [Lodymes]  [author] 30 Jul @ 10:02pm 
@bubby_pz33

i assume everything on the shelf is already rotten at first glance lol if i am playing with 10 years later mod
Zamen We Delta [Lodymes]  [author] 30 Jul @ 10:01pm 
@My564username


did you enabled the mod on existing save? if so it wont work
bubby_pz33 30 Jul @ 5:23pm 
Tested on my 10 years later playthrough. Makes a great challenge
My564username 30 Jul @ 11:25am 
Hmmm i have it active but flour and cereal aren't affected. I change my mod over so Food Expiration is the first thing to load but still doesn't seem to work.
Zamen We Delta [Lodymes]  [author] 29 Jul @ 11:21pm 
@Squidward Tennisballs


You are a GENIUS! I didn't realize to check these food and use the existing line code!. In theory this could really simplify the work! I am grateful for you're idea and will give a credit to you in the next patch! :steamhappy:
Squidward Tennisballs 29 Jul @ 4:17pm 
Without doing a deep dive at the moment, some recipes that involve prepackaged food contain the line: flags[InheritFoodAge], egg cartons and packed frozen foods being the two I spotted on a glimpse.

Would the inclusion of this flag simplify the issue you're having?
Zamen We Delta [Lodymes]  [author] 28 Jul @ 12:43am 
in simpler explanation, if you open a rotten canned beans, you will get opened canned beans that is FRESH. and thats what i am trying to fix
Zamen We Delta [Lodymes]  [author] 28 Jul @ 12:30am 
Right now i wouldnt post a new update for any sooner yet because i have to write a LUA script about packaged food. Why? heres an example:

in the code i am able to change the attributes of a item_cannedtuna and item_cannedtunaOpen. These 2 are different items where item_cannedtunaOpen wont inherit the progressed expiration value of item_cannedtuna unless i write a script to replace it. and i have to do that alot to packaged foods. So just be informed i will be in a very deep dive to fix this issue.
Zamen We Delta [Lodymes]  [author] 27 Jul @ 7:57pm 
Everyone! Thank you for awarding the mod as the sign of support to my modding journey!
I hope i will satisfy everyone's game with further updates! Stay tuned!🔭
Zamen We Delta [Lodymes]  [author] 27 Jul @ 7:55pm 
@Mugen

haha i get it. and i don't really mind following the demands to change the mod icon to keep the genuine status of the mod which i could also agree. Anyways, it's a pleasure to hear that you find the mod to your liking!❤️
Mugen 27 Jul @ 7:27pm 
I know that collectively we should complain about the use of AI to keep it from becoming normalized, but I also understand that making mods for a game like this is something people often do on their own time, without compensation, so I just wanted to say thank you for taking the time to make a different poster and, of course, thank you for the mod as well :spiffo:.
Zamen We Delta [Lodymes]  [author] 27 Jul @ 6:45pm 
Everything is covered to former state :steamthumbsup:
Zamen We Delta [Lodymes]  [author] 27 Jul @ 8:37am 
Comment section preview in the main page is unavailable for a moment due to a user reporting my mod and thus flagged it. I have contacted steam support and waiting for their intervention.
Zamen We Delta [Lodymes]  [author] 27 Jul @ 8:25am 
1.0.2 rolled out. Nothing big, just mod preview icon changes.
Zamen We Delta [Lodymes]  [author] 27 Jul @ 8:25am 
@GestumStage

do not worry, it's in my scope to make milk expirable.
GestumStage 27 Jul @ 5:09am 
I like this idea, I hope that milk in this mod was the impetus to revise all other food parameters. After all, you haven't forgotten the milk, rightly?
Zamen We Delta [Lodymes]  [author] 27 Jul @ 2:31am 
seems like i cannot take a break from the complaints about the mod posters although it's just purely for visual purpose. Well then, i will change my main task to changing the posters.
FreshIce 27 Jul @ 1:50am 
but why the ai slop as the poster?
Zamen We Delta [Lodymes]  [author] 27 Jul @ 12:29am 
@Marii Wukruk

I personally couldn't really accept all of these appreciations😅. Because i only just began working on the mod and i haven't done a lot of stuff yet.... oh how embarassed i am....but i am happy with your comment! i must strive further and improve this mod!
Marii Wukruk 27 Jul @ 12:12am 
More than earned <3 this is an amazing mod, thank you for your work and mod! >^w^<