Project Zomboid

Project Zomboid

Not enough ratings
Butcher Hook Animal Size Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
105.186 KB
4 Mar @ 2:40pm
7 Mar @ 11:17pm
2 Change Notes ( view )

Subscribe to download
Butcher Hook Animal Size Fix

Description
Have you noticed that butchering animals on the hook gives you absolutely ABYSMAL amounts of meat?
Have you noticed that butchering animals on the ground somehow gives MORE?!

Well here is the mod for you!!!

All this mod does is actually passes the size of the animal to the function of code that determines the amount of meat cuts and the amount of hunger/nutrition per meat cut.

Thats it.....

To make a long story short, since build 42 came out any and all animals would have a static size of 0.6 on the hook due to being resized for the UI, the issue is that this ALSO affected the value used for butchering and harvesting meat from them.

As such all this mod does it add an additional parameter to be passed to the butchering util file that uses the correct animal size rather than the static 0.6 that was used before. No animal meat values are changed or modified by this mod in any way, this only affects animals butchered on the hook.

I hope this mod is short lived and the indie stone will make this quickly obsolete.

Animals this affects:
This mod only affects animals that CAN be butchered on the hook in the first place, any and all animals that can only be butchered on the ground are completly unaffected and already actually use their size in meat calculations, this only helps out animals that can be put on the hook such as: Sheep, Deer, cows, pigs, etc



Workshop ID: 3438619810
Mod ID: ButcherHookAnimalSizeFix
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