Project Zomboid

Project Zomboid

Butcher Hook Animal Size Fix
8 Comments
donnfindelmel 14 May @ 10:12pm 
I think this will help a lot. Thanks for the mod.
RestoredStar8 25 Apr @ 9:40pm 
Good Mod
StruckDanger 5 Mar @ 6:48pm 
Thank you for the clarification OP :D
Buh  [author] 4 Mar @ 8:33pm 
Compared to this all my mod does is passes the correct value of an animal to the butchering function for both the number of cuts and the amount of meat per cut when butchering on the hook. In vanilla, even if you have an animal with a size of '1.2', the butchering hook will overide it and turn it into just '0.6' for the sake of meat amounts, which prior to 42.4.0 made it give even less than things butchered from the ground.

TLDR: The other mod is out of date so I dont know 100% if/what their changes would be, but they increase the number of cuts of meat you get from ALL butchering.

My mod will fix what I see to be a long standing bug since B42 started where the size of the animal was never used with the butchering hook like it is for butchering on the ground, giving both more cuts of meat than vanilla as well as more meat per cut.

(Sorry if the response was too long and split into 2 comments, hopefully that explains what you were asking)
Buh  [author] 4 Mar @ 8:32pm 
As I posted in the description, all my mod does is actually passes the proper animal size to the butcher function.

The 'Rebalanced Butchering' changes 2 files:
ButcheringUtil.lua

This file has the change of:
local minNb = part.minNb * carcass::getAnimalSize(); -> local minNb = part.minNb;
local maxNb = part.maxNb * carcass::getAnimalSize(); -> local maxNb = part.maxNb;

For determining amount of meat minNb and maxNb refer to the number of cuts of meat, so the above code from 'Rebalanced Butchering' would take animal size out of the equation, granting more cuts from before due to animal size being always locked to a static 0.6

(also from what I can tell this file is out of date and not up to 42.4.0 as it is missing the other changes the devs put in)

And the second file was:
AnimalPartsDefinitions.lua

This file had a number of modifications which seem to all be changing the values of minNb and maxNb of each animal from their default amount to be roughly 4x as much.
Buh  [author] 4 Mar @ 4:22pm 
They sadly did not, I believe they only changed the meat yields of animals, however that didn't fix the underlying issue of animal size not being properly implemented for animals on a butcher hook.

I originally found this in build 42.3.0, and its still present in 42.4.0 which is why I just decided to make this mod until it is changed.
StruckDanger 4 Mar @ 3:56pm 
I think the devs actually just fixed the butchering meat amount given in this update posted today