Project Zomboid

Project Zomboid

Butcher Hook Animal Size Fix
16 条留言
unlockk 9 月 30 日 上午 4:57 
@ssxzyy it is called "[B42] Rebalanced Yields: Butchering"
ssxzyy 9 月 26 日 上午 4:09 
@unlockk I CAN'T ACCESS YOUR MOD AS YOUR PROFILE IS PRIVATE :-(
unlockk 9 月 26 日 上午 3:46 
I just checked my game folder after the 42.12.0 update and the lua/script files that are related to the functions this mod modifies have been left unchanged, so this fix is still necessary.
galkinzhenia 9 月 25 日 下午 9:11 
Проверте на совместимость 42.12
unlockk 9 月 8 日 下午 4:07 
This is a great mod. I have just uploaded a butchering rebalance and linked your mod in the description, it makes a good difference to the gameplay. Hopefully the developers fix this soon, but thanks for identifying and solving this issue.
[Ba-El] Radio 8 月 12 日 下午 1:43 
Thank you for the detailed explanation!
Buh  [作者] 8 月 11 日 下午 7:15 
From what I can tell as of 42.11, this is less of an issue as the devs have tweaked amounts so that generally butcher hooks will give more, but the bug of the animal's size not being actually used in calculations is still present.

This mod still works to send and use the animal's actual size, but due to how the devs have balanced meat gain around NOT using the size, it will have a large bump in amounts given to the player, so expect alot of meat if you have animals that are large in size.
[Ba-El] Radio 8 月 11 日 下午 5:10 
Is this bug still present? Does this mod still fix it?
donnfindelmel 5 月 14 日 下午 10:12 
I think this will help a lot. Thanks for the mod.
RestoredStar8 4 月 25 日 下午 9:40 
Good Mod
StruckDanger 3 月 5 日 下午 6:48 
Thank you for the clarification OP :D
Buh  [作者] 3 月 4 日 下午 8:33 
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  [作者] 3 月 4 日 下午 8:32 
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.
Rachel L 3 月 4 日 下午 6:59 
Buh  [作者] 3 月 4 日 下午 4:22 
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 3 月 4 日 下午 3:56 
I think the devs actually just fixed the butchering meat amount given in this update posted today