abreu20011 Posted April 12, 2015 Posted April 12, 2015 Food Expiration Date Welcome to Food Expiration Date forum thread. When I play with my girlfriend, we always have thousand of problems to administrate the food before they rotten, so I decide create a mod that help us in this scenario. I think not exists a mod with expiration date in food so I hope this mod will be useful for the community too. With this mod, the players in a single game now can knows the status about any food gets. Also, the mod include a trait called "Eye to food" that increases the information about status rotten food, including the hours. I hope this helps in your days into the hell and safe your body one day more. The mod is located to english, spanish, polish and german. Feel free to amplify and post the result. I'll add the new locations posted to the mod. Special Thanks to Svarog and Blindcoder with his translations!The located files are in .../media/lua/shared/ (Remember rename folders and beginning of the file) Any suggestion or report bugs, please use this tread. How to Use:Only that you need is move the mouse over the food and the new option in the Tooltip tells the status of a food and time left to expire if you have the new trait "Eye to Food" Current Download (v1.3.1) PZ Early Access v31.13CLICK HERE Screenshots: Update History:Update: Food Expiration Date v1.3.1April 22, 2015: Food Expiration Date mod version 1.3.1 for Project Zomboid version 31.13.Fixed "Status" word in polish. Thanks, one more time, to great Svarog. Thanks! Fixed poster with correct traductionsFixed color when food is completly okUpdate: Food Expiration Date v1.3.0April 22, 2015: Food Expiration Date mod version 1.3.0 for Project Zomboid version 31.13.Removed "View Expiration Date" from context menuRemoved show information betwen Say commands in playerAdded rotten information into the tooltip of each foodValue adapted StatesThe trait "Eye to Food" shows also a progress bar in the Tooltip that tells time left to expireAccording to the state of the food, the color varies in range colors to notify more clearly Update: Food Expiration Date v1.2.2April 21, 2015: Food Expiration Date mod version 1.2.2 for Project Zomboid version 31.13.Added German translation. Thanks to blindcoder!! Added support to TinyAVC (link here)Update: Food Expiration Date v1.2.1April 20, 2015: Food Expiration Date mod version 1.2.1 for Project Zomboid version 31.13.Now once the food is Completely Rotten, checking the expiration date returns "Rotten" Update: Food Expiration Date v1.2.0April 16, 2015: Food Expiration Date mod version 1.2.0 for Project Zomboid version 31.13.Improved the new texts added in v1.1.0 version in english and polish. One more time, thanks to great Svarog! Only food items should shows the expiration date option nowUpdate: Food Expiration Date v1.1.0April 15, 2015: Food Expiration Date mod version 1.1.0 for Project Zomboid version 31.13.Added Polish location and improved the english version. Thanks to Svarog! Improved codeSupport to many items at same timeNow can click in a container item or item itselfUpdate: Food Expiration Date v1.0.1April 12, 2015: Food Expiration Date mod version 1.0.1 for Project Zomboid version 31.10.Added forum url to the modUpdate: Food Expiration Date v1.0.0April 12, 2015: Food Expiration Date mod version 1.0.0 for Project Zomboid version 31.10.Initial release CreditCredit Where Credit Is Due Please, don't download the attached files: it's a deprecated version. Use the link at first of post.ExpirationFood_v1.0.0.zip headzit, evankimori, Svarog and 1 other 4
fluffe9911 Posted April 12, 2015 Posted April 12, 2015 Awesome sounding mod some now we just need a randomized Food Quality mod lol quick question if you where to put it in a fridge would the expire date update to its conditions or would it still say the same as if in a fridge or not in one.
abreu20011 Posted April 12, 2015 Author Posted April 12, 2015 Awesome sounding mod some now we just need a randomized Food Quality modHahahaha, thanks, I pointed it! quick question if you where to put it in a fridge would the expire date update to its conditions or would it still say the same as if in a fridge or not in one.Yes, the amount of days increases more slowly if is in a fridge (this occurs in internal code of PZ), so, when the player says the status and time of food, the time is balanced. Here is the assign sentences to calculate the time to rotten:...DaysTotallyRotten = _item:getScriptItem():getDaysTotallyRotten();age = _item:getAge(); --increases more slowly if is into a fridgetimeToRotten = DaysTotallyRotten - age;...I don't know if is more accuracy apply a percentage instead a life days and total days before rotten in the extra information when have the trait!
abreu20011 Posted April 15, 2015 Author Posted April 15, 2015 New version released: 1.10Added Polish location and improved the english version. Thanks to Svarog! Improved codeSupport to many items at same timeNow can click in a container item or item itself Svarog 1
PZ-NOOB Posted April 15, 2015 Posted April 15, 2015 hmmmmm a Noob could indeed benefit from this mod great work
abreu20011 Posted April 15, 2015 Author Posted April 15, 2015 hmmmmm a Noob could indeed benefit from this mod great workThanks a lot PZ-NOOB! I'm happy to see that my little creation is usefull for survivors
Svarog Posted April 16, 2015 Posted April 16, 2015 You should probably make it so that "View Expiration Date" UI interaction only appears on items that have "Type = Food," in item script. Rotting does not seem to apply to any other type of item and being able to check an expiration date on things like shoes is somewhat silly.PS: I PMed you updated translations for the new UI stuff.
abreu20011 Posted April 16, 2015 Author Posted April 16, 2015 You should probably make it so that "View Expiration Date" UI interaction only appears on items that have "Type = Food," in item script. Rotting does not seem to apply to any other type of item and being able to check an expiration date on things like shoes is somewhat silly.PS: I PMed you updated translations for the new UI stuff. Svarog, I'm sorry for that... The last version, the v1.1.0, should be the v1.1.1. When I uploaded it, It's true that any type item can tell his expiration date, but, I uploaded a correct version with de same number build because only 1-2 minuts goes since I upload the bad version and I was aware of the error. If you download the last version again, this problem is solved. I don't repeat upload versions without notify correctly, Internet is very fast. Much more than I thought. Anyway, I'll upgrade the new translations that you sent me and go over the code again. But like I said, the problem of view expiration of shoes, should not will occur more. If the problem persist, please, report the problem again. Thanks for your help and contributios
abreu20011 Posted April 16, 2015 Author Posted April 16, 2015 New version released: 1.2.0Improved the new texts added in v1.1.0 version in english and polish. One more time, thanks to great Svarog! Only food items should shows the expiration date option now
Svarog Posted April 16, 2015 Posted April 16, 2015 Another small thing, once the food is Completely Rotten, checking the expiration date yields the "Almost rotten" message. It should probably have it's own unique message (Even if it's obvious that it's rotten beyond any use).
abreu20011 Posted April 16, 2015 Author Posted April 16, 2015 Another small thing, once the food is Completely Rotten, checking the expiration date yields the "Almost rotten" message. It should probably have it's own unique message (Even if it's obvious that it's rotten beyond any use).I check this problem with some options, and the next update I'll fix it Svarog 1
abreu20011 Posted April 20, 2015 Author Posted April 20, 2015 New version released: 1.2.1Now once the food is Completely Rotten, checking the expiration date returns "Rotten"
blindcoder Posted April 20, 2015 Posted April 20, 2015 Hi abreu. Here's a german translation: https://gist.github.com/blind-coder/16a54d0f8908ce154bc0 BTW, any chance you could add tiny_avc support to this: http://theindiestone.com/forums/index.php/topic/13014-tiny-automated-version-checker-tiny-avc-046/ abreu20011 1
abreu20011 Posted April 20, 2015 Author Posted April 20, 2015 New version released: 1.2.2Added German translation. Thanks to blindcoder!! Added support to TinyAVC (link here) blindcoder 1
abreu20011 Posted April 22, 2015 Author Posted April 22, 2015 New version released: 1.3.0Removed "View Expiration Date" from context menuRemoved show information betwen Say commands in playerValue adapted StatesAdded rotten information into the tooltip of each foodThe trait "Eye to Food" shows also a progress bar in the Tooltip that tells time left to expireAccording to the state of the food, the color varies in range colors to notify more clearly Svarog 1
abreu20011 Posted April 22, 2015 Author Posted April 22, 2015 New version released: 1.3.1Fixed "Status" word in polish. Thanks, one more time, to great Svarog. Thanks! Fixed poster with correct traductionsFixed color when food is completly ok
victorwonder Posted May 16, 2015 Posted May 16, 2015 Hi! I'd like to customize this so the Cooking Skill is used instead of the custom trait "Eye To Food". I'd like the Cooking Skill to be at least Level 2. I don't like using traits in my Sandbox game LOLHow would I go about doing so? This mod is really useful /edit@abreu20011So I made my own Food Expiration Mod from scratch based on your mod and I got it working, yay! Still have to figure out how to retrieve the skill levels so I can use the Cooking skill for determining how much information a player should receive, ie. poor skill means you can see basic spoilage info while higher skilled means more detailed spoilage info. If someone could help me figure this out, it'd be great evankimori and Arturius 2
blindcoder Posted June 1, 2015 Posted June 1, 2015 Sux that it doesn't work with MP. Is it enabled on the server? abreu20011 1
Ekareya Posted June 11, 2015 Posted June 11, 2015 here goes the french translation . UI_FR ={UI_trait_foodexpiration = "Jauger la nourriture",UI_trait_foodexpiration_des = "Permet de connaître la date d'expiration de la nourriture",UI_tooltip = "Etat:",UI_have_daysoff = "jours sur",UI_status_VERYGOOD = "Très Frais",UI_status_GOOD = "Frais",UI_status_NORMAL = "Okay",UI_status_LITTLEROTTEN = "Commence à pourrir",UI_status_ROTTEN = "Pourri",UI_status_NOROTTEN = "Pas de date d'expiration"}
TypoDemon Posted June 28, 2015 Posted June 28, 2015 Thank you so, so much.This needs to be a base implement. 'Nuff said.
daMastaChef Posted August 25, 2015 Posted August 25, 2015 Hello, is this mod compatible with build 32?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now