Project Zomboid

Project Zomboid

[B42] Portion Sizes (Fish Fillets)
37 Comments
ScrubLife 29 Jun @ 9:59am 
Doesn't show up in the in-game mod list.
LemonPoppyMuffin 18 May @ 2:49am 
Mod author please update the mod with Aryath's fix.
Aryath 26 Apr @ 5:30am 
Step 2 - final
wastedPercent = ZombRand(100) / 100
if(character:getTraits():contains("Lucky")) then
wastedPercent = math.min(wastedPercent, ZombRand(100) / 100)
end
waste = wastedPercent * waste

The actual wasted amount depends on luck, and is 0-100% of the preliminary value. If you have the 'Lucky' trait, you get 2 rolls and take the lower one. The final value cannot be greater than the preliminary one.
Aryath 26 Apr @ 5:29am 
How the waste % of 'Trim Fillet' is calculated:

Step 1 - preliminary
waste = 0.3 - (skill * 0.06) + knifeWaste
knifeWaste = 0.2
if(knife:hasSharpness()) then knifeWaste = (1 - knife:getSharpness()) * 0.15

That means base waste is 30%, any knife that has no sharpness will add 20%, and any knife that has sharpness will add 0-15% depending on the sharpness.

That all is counteracted by the Cooking Skill. At level 9 you will reduce 54% waste. That means at level 9 you won't waste any fish (except the rounding down that is used), even if you use a knife without sharpness, e.g. a Sharp Flint or a Stone Knife.
Aryath 26 Apr @ 3:44am 
Okay, so that bug is actually really easy to fix:

In steamapps\workshop\content\108600\3395624315\mods\PortionSizes\42\media\scripts
edit PortionSizes_recipes.txt and recipes.txt

In 'inputs' change
item 1 [Base.FishFillet] flags[InheritFoodAge],
to
item 1 [Base.FishFillet] flags[InheritCooked;InheritFoodAge;ItemCount],

Using 'ItemCount' will use the whole item instead of 1 Use / 1 Hunger. (And 'InheritCooked' will output a cooked fish fillet when the input is cooked)
Aryath 23 Apr @ 12:15pm 
I just tried out this mod and did some testing.

As mentioned by the previous comment (2nd April), these recipes seem to not work as intended. As far as I can tell, instead of destroying the original Fish Fillet, the recipe instead only destroyes "1 Use" (that means 1 Hunger) of the original Fish Fillet, which is then kept in inventory with the same amount of calories/nutrition. That means unfortunately all 3 recipes duplicate your fish fillets.

As of 42.7 the vanilla recipe "HalveFillet" is still broken, too.
🔰 2 Apr @ 2:20pm 
seems to be a vanilla issue. vanilla recipe (with this mod disabled) does the same. as does curing fish with salt (another mod i think). no matter what recipe, fish is just not getting used up.
🔰 2 Apr @ 2:07pm 
just catched my first fish and it seems that its easier a vanilla issue or some mod incompatibility or something but i got a 6k calory fish. i sliced it and got 2 pieces with 3k calories but the original fish with 6k got kept and i could infinitely slice it. then halving the fillets would yield 2 more with 3k while keeping the original and trimming added 1 more with 3k calories while keeping the original. basically no matter which option i chose, i can infinitely get more fish with all of them
Draco 10 Mar @ 12:25am 
I know it is a bit out of scope, but getting scraps for making stock, would be cool. Thay way, you can recycle some of that wasted stuff into flavor.
McDiel 19 Feb @ 2:19pm 
HalveFillet is *Vanilla*!? My god. Thank you for the mod, hope they fix that x.x
Elpecz 13 Feb @ 7:33am 
NICE mod, thx. While the fillet could not be halved too small as original game set, I want to have small fillet to equip on the fishing rod.
CG 4 Feb @ 11:46am 
lol

the fun of debugging
Kisheen  [author] 4 Feb @ 11:08am 
For some reason overwriting their recipe introduced a new recipe that involves a second 'knife' and two fillets, outputting 4... sometimes. I haven't the slightest clue where this comes from.
Kisheen  [author] 4 Feb @ 10:20am 
I was baffled by your comment because I specifically fixed this before doing the translation stuff.

It's actually their recipe that's broken. They chose to expose the slice fillet recipe that's always been there... except it doesn't half anything but the weight. My recipe is "Half Fillet" in English, or "HalfFillet" untranslated which appears to function as expected. Theirs, "HalveFillet" duplicates nutrition.
. 31 Jan @ 2:07pm 
The halving filet recipe still returns the same nutrition but half the weight, effectively duping the filets. Currently have 12 filets each providing 6 thousand calories and weighing just 1.7. Not complaining though. :steamhappy:
Reziah 25 Jan @ 9:24pm 
Cheers! It was always weird to me that you catch a 30 kilo fish and your character goes "I can cut this fish into 2 portions and absolutely no more, and eat 1/4 of each and no less. Guess I'll just eat at minimum 3.75kg of fish at once."
CG 21 Jan @ 5:17pm 
found it while messing with the filters.
thy pal
Kisheen  [author] 21 Jan @ 6:48am 
It should just be in the crafting menu.
CG 21 Jan @ 4:47am 
just a short question. where do i find the portion recipe?
i have only the standard recipe for cutting fish.
Kisheen  [author] 20 Jan @ 10:58am 
I think that's just a bug in b42. Portioning cooked soup returns uncooked.
СУ 20 Jan @ 6:33am 
cutting cooked fillet returns raw fillet. thanks for the mod its very useful.
Tank5168 15 Jan @ 10:01pm 
Recipes_CH = {
Recipe_HalfFillet = "魚切出兩塊相等的魚片",
Recipe_PortionFillet = "魚片切出用餐大小的魚片",
Recipe_TrimFillet = "修剪魚片不可食用的部分",
}

Encoding UTF-8
Kisheen  [author] 15 Jan @ 5:28pm 
done
Tank5168 15 Jan @ 8:50am 
Could you please provide RecipesEN for easy translation?

I want to translate from EN to CH(Traditional Chinese).
nicholas_axels 13 Jan @ 5:29am 
thank you very much mod creator
BadMotherGamer 11 Jan @ 6:34pm 
Saw this when you first posted it and figured I wouldn't need it. Just caught a 45lb walleye that created fillets so big they won't fit in the oven, so exited the game and came back. Thank you!
Kisheen  [author] 11 Jan @ 12:56pm 
whoops. fought with the math for a while on portioning and completely forgot to just halve it on the half recipe. Should be fixed now.
nicholas_axels 11 Jan @ 3:05am 
hello mod creator i tried to cut a big fillet into 2 and it did cut but the nutrition isn't cut in half so its just less weight and hunger but copies the original nutrition do you have an idea what causes this?
pickle 8 Jan @ 12:32pm 
By the way you can add spaces to the recipe names in the .txt file or if you care, the "right" way to do it is via translation files
pickle 8 Jan @ 12:27pm 
Ah yes this half fish is breaking my legs and cannot fit in a full size oven. Nice work man
Lumo 7 Jan @ 4:42pm 
"Only a madman could fillet a Dagon's offspring." - H. P. Lovecraft, probably.
John Doe 6 Jan @ 10:24am 
Brilliant! You just saved me from throwing away a 20 or so encumbrance gator. Eldritch knowledge in deed, lol
yuri2ya 4 Jan @ 2:11am 
Thanks. I need this mode
Nico 31 Dec, 2024 @ 9:38pm 
Life saving mod -literally- when you are starving in the forest sitting next to a 45 encumbrance fish that can't move, and that even cut into regular filet, those are still too big to cook on a camp fire ... Wish we could remove the "workbench" requirement for "filleting" a fish ... does not make much sense and is a real pain in the wild.

Thanks a lot for your work.
LoboOscuro 30 Dec, 2024 @ 5:54am 
Thankyou, my wife found a fish in a restaurant that weighed around 45 and after filleting it she realised there was no way to cook it outside of a meal!
Weald 29 Dec, 2024 @ 7:39pm 
IMMEDIATE subscribe. Now I can actually cook this fish. Thank you!
Raven-King Silent-Cry 29 Dec, 2024 @ 7:38pm 
Absolute Eldritch knowledge apparently in the world these days to cut a Fish up proper ahahaha XD Thank you for bringing something so Seemingly simple to the game!