Project Zomboid

Project Zomboid

Food Preservation Buff
63 Comments
Duchess 20 Feb, 2024 @ 11:26pm 
Apologies for previous post, that fix is incorrect. The ingredients should read like this (fpb_recipes.txt, lines 152 and 153):

Rabbitmeat/Smallanimalmeat/Smallbirdmeat=2,
Salt;5,

Just tested and it works fine. However, as I said below I think you need two of the same type of meat now, no big deal tho :steamthumbsup:
Duchess 20 Feb, 2024 @ 11:20am 
@Kothonis thanks for posting your fix!

To anyone who still cares about the jerky recipe bug, I think the issue relates to how the recipe is laid out in fpb_recipes.txt. It lists the required items like this (line 152):

Rabbitmeat/Smallanimalmeat/Smallbirdmeat,
Rabbitmeat/Smallanimalmeat/Smallbirdmeat,
Salt;5,

I think doubling up the required items like this creates the bug. Try this instead:

Rabbitmeat=2/Smallanimalmeat=2/Smallbirdmeat=2,
Salt;5,

This is only hypothetical, please let me know if it works. A potential downside of this is that I don't think the recipe will now allow you to mix-and-match different meat types, instead requiring two of the same.
Krilton 4 May, 2023 @ 9:04am 
@CMDR_Lani That mod may have it's own system, I don't know as I also use that mod and have sort of wondered that myself. I just haven't tried. :p
Kothonis 18 Mar, 2023 @ 7:06am 
hey I found a bug where open can would always return me -45 hunger birds and -90 fish and rabbit.
I looked at your code and found that in line 152 you use items:get(0):getWeight() for calculating the hunger of meat when opend but for veggies you use getActualWeight(). changing the line 152 to "result:setHungChange(0 - (items:get(0):getActualWeight() - 0.2) * 6 / divisor)" fixed it for me.
To be honest I I am very confused by the bug either I am the only one having it or items:get(0):getWeight() got deleted resently
CMDR_Lani 7 Feb, 2023 @ 7:45am 
Hey does anyone know if this works properly with Jiggas Green fire ?
Nat 6 Feb, 2023 @ 12:50pm 
Helloo, sorry for bother, I wanna ask if this mod is compatible with LeGourmet Revolution u.u, if anyone knows I'll be grateful n.n
Krilton 8 Jan, 2023 @ 9:56pm 
@Tuna how difficult would it be to jar fruits and would it be possible?
Tuna  [author] 19 Nov, 2022 @ 4:31pm 
oh, that's worth looking into
psubrat 18 Nov, 2022 @ 9:30am 
"Vanilla jar recipes are still available but there is no clean way to remove them. Just ignore them."
Since Obsolete:true doesn't really work (at least last time I tried it) I'm using NeedToBeLearn:true to get rid of recipes (even on your mod). Of course don't forget about Override:true. ;-)
Lomion 24 Oct, 2022 @ 12:34pm 
Can confirm bug from Tofuman and Tahvohck. When i have only one piece of meat in inventory and try to craft jerky, meat just disappears with following error:
[24-10-22 22:12:06.887] LOG : General , 1666638726887> 0> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: PerformMakeItem
function: perform -- file: ISCraftAction.lua line # 58 | Vanilla
function: perform -- file: TailoringFix.lua line # 59 | MOD: Tailoring Fix.
[24-10-22 22:12:06.888] ERROR: General , 1666638726888> 0> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method)..
[24-10-22 22:12:06.889] ERROR: General , 1666638726889> 0> DebugLogStream.printException> Stack trace:.
Tahvohck 2 Oct, 2022 @ 10:06pm 
This doesn't store the calories or other nutritional value. I love the idea of it, but with how it works it makes it a route to slow starvation if you don't have other high-calorie foods available.
Tofuman 26 Sep, 2022 @ 12:38pm 
I have the same issue as Tahvohck too
Tahvohck 25 Sep, 2022 @ 4:18pm 
Is there any chance that you could make it so each jar is noted with the date that it was jarred/cooked on?
belzebot 23 Sep, 2022 @ 4:06am 
When adding this to an existing save, would the magazines have a chance to spawn inside containers you haven't searched yet or no?
Tahvohck 11 Sep, 2022 @ 11:03am 
If you try to make jerky with only one meat in your inventory, it eats the meat and then fails. Is it possible to guard against this?
Arg 18 Aug, 2022 @ 12:24pm 
Maybe some jar machine be used in this mod, I can think by this way lol :), whatever nice mod
Arg 18 Aug, 2022 @ 11:52am 
is rotten time adjustable? for homemade Jarred Food and Pickled Foods the fresh time is too long. For example 1 year for Pickled Foods, 3 months for Jarred Food, that is real.And Jarred Food also need salt or sugar as preservative.
ODST 105th 2 Jul, 2022 @ 9:48am 
Brilliant mod
Goblin 24 Jun, 2022 @ 6:26pm 
True, cauliflower is the main one I've seen. Understandable if I notice more crops I'll pester again. Thanks for the quick reply tho!
Tuna  [author] 24 Jun, 2022 @ 1:56pm 
I thought about it but beets already have a method to preserve forever, lemongrass naturally doesn't expire, and that practically leaves only cauliflower if he didn't change the mod lately
Goblin 21 Jun, 2022 @ 12:41pm 
Could you consider doing another version that includes the additional crops from Filchers Farming/Awesome Time mod?

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2683041078
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1915420850
Tuna  [author] 25 Apr, 2022 @ 2:39pm 
Swap over on the load game screen. There's a way to modify a save's mods somewhere in there
balls 24 Apr, 2022 @ 3:27pm 
so how do i disable the magazines? i would like to have them learned by default, been playing w the mod on for 50 ish hours and havent found them once
Tuna  [author] 24 Apr, 2022 @ 9:42am 
If you enabled the version that needs magazines you'll have to read some recipe magazines first
balls 19 Apr, 2022 @ 1:10am 
might be a dumb question. when i go to put vegetables in a jar, it says i still need vinegar. how do i find the other recipes?
Tuna  [author] 15 Apr, 2022 @ 8:09am 
It doesn't look like you missed anything
MAB 15 Apr, 2022 @ 4:13am 
did i miss something ?
for jarred food without vinegar and sugar it will 2 years until rotten
and jarred food with vinegar and sugar it will 5 years until rotten, right ?
Tuna  [author] 19 Feb, 2022 @ 10:28am 
Thank you
matt1934 19 Feb, 2022 @ 7:48am 
Just to point something out...
For the Beef Jerky recipe in the mod, it appears you made a mistake.

recipe Make Jerky
{
Rabbitmeat/Smallanimalmeat/Smallbirdmeat,
Rabbitmeat/Smallanimalmeat/Smallbirdmeat,
Salt;5,

Result:BeefJerky,
Time:100.0,
OnCreate:Recipe.OnCreate.BeefJerky,
Category:Cooking,
OnGiveXP:Recipe.OnGiveXP.Cooking10,
}

item PreservedJerkyMag
{
DisplayCategory = Literature,
Weight = 0.1,
Type = Literature,
DisplayName = Cured Meat Recipe,
Icon = MagazineHunting2,
TeachedRecipes = Make Beef Jerky,
ReplaceOnUse = PreservedJerkyMag,
StaticModel = Magazine,
WorldStaticModel = MagazineHunter1Ground,
}

Make Jerky =/= Make Beef Jerky. You need to change the name of either the TeachedRecipes or the recipe itself to match with each other.

Shoutout to SalSevenSix who spotted this
Tuna  [author] 11 Feb, 2022 @ 1:34pm 
Haven't put a lot of consideration into that but I'm not opposed to it either. Wouldn't even be a lot of work, will look at it eventually.
dreadedladie 11 Feb, 2022 @ 12:23pm 
This mod is absolutely fantastic, it's not overpowered at all as it requires a considerable amount of time investment and luck to get a stockpile built up.

Ever consider adding jarred fruits? It'd be amazing to have some way of preserving fruits other than strawberries, especially exotic stuff like pineapple and bananas. Maybe other fruit jams? Or just straight up jarred fruit?
ch1gufz 3 Feb, 2022 @ 3:56am 
thanks!
Tuna  [author] 2 Feb, 2022 @ 2:09am 
Yes. The jar will say (Uncooked) and will age just as quickly as normal until you cook it.
ch1gufz 2 Feb, 2022 @ 12:59am 
hello, i need some help.If i want to jar any type of food(just jarred not pickled) i need to put the food in the jar and then cook it in order to get the extended stale/rotten time?
Tuna  [author] 29 Jan, 2022 @ 9:01am 
That's probably correct. I haven't tested it but it makes sense that refrigeration would slow the aging of any item that can rot.
Gofart 29 Jan, 2022 @ 12:55am 
Love this mod! One question though... when i put my jar food in the freezer it extended the time to 4 years til stale! Is this accurate? I'm using the eris expiration date mod
Tuna  [author] 24 Jan, 2022 @ 6:39pm 
Thank you.
Leigh 24 Jan, 2022 @ 5:20pm 
This one deserves more exposure. Nice work.
Clipped Magpie 18 Jan, 2022 @ 4:58am 
Ahhhhh Thankyou Tuna m8 X
Tuna  [author] 17 Jan, 2022 @ 6:04pm 
The jerky recipe requires two butchered meats.
Clipped Magpie 17 Jan, 2022 @ 10:53am 
i'm having errors while right clicking salt or meat on the mod without the mags. And have no option to make jerky. This worked well on my server before, but now does not. Anyone else have this issue?
Tuna  [author] 15 Jan, 2022 @ 8:07pm 
Tough call. I thought breaking it up into several would be nice for the people who like a reason to hunt for magazines, with the option to skip the hunt entirely if you just want the extra perks. Regardless of which you pick, you'd still get the boosted spawn rates.
GaRuBeN 15 Jan, 2022 @ 7:44pm 
Perhaps you could do another Mod ID to unify the four magazines into only one? I think it's too much quantity of magazines in order to know how to "preservate" in the whole thing term :spiffo::salt:
Tuna  [author] 12 Jan, 2022 @ 3:23am 
I can't imagine a case where adding it to a save could hurt anything (worked for me) but it's best to keep backups all the time anyway.
Andserk 11 Jan, 2022 @ 10:04pm 
anyone knows if it's safe to add this to an current dedicated server?
Happy 11 Jan, 2022 @ 1:35pm 
you're right! there is an option to add new mods to a save. thanks
TriscuitBiscuiT003 11 Jan, 2022 @ 9:41am 
I was really hoping there would be a mod for this. Vanilla jarring mechanics are wack.
Tuna  [author] 11 Jan, 2022 @ 2:40am 
I'm told there's an edit button when you go to load a save where you can do it.
Happy 10 Jan, 2022 @ 8:27pm 
Alright. Imma try to start a new world then. thx.
upd. I'ts working now. kinnda sad that I had to abandon my old playthrough. But this mod well worth it.
Tuna  [author] 10 Jan, 2022 @ 7:22pm 
Subscribing to a mod doesn't immediately enable it. I don't know if it's possible or easy to change the enabled mods list on a solo world.