Project Zomboid

Project Zomboid

553 ratings
Tree Chop Bug Fix
4
6
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
334.593 KB
26 Oct, 2022 @ 12:59pm
1 Change Note ( view )

Subscribe to download
Tree Chop Bug Fix

In 1 collection by Undefined
Undefined's Mods
4 items
Description
Fixes a bug that causes your weapon to lose condition up to 2x faster when using the "Cut Down Tree" option.

When chopping a tree using the "Cut Down Tree" option, the game rolls twice to lower your weapon's condition. This mod fixes that.

If you don't feel like downloading this mod, you can avoid the 2nd roll for lowering your weapon's condition by chopping the tree down manually.

The issue was discovered in this thread.

This is my first mod, apologies in advance if I screwed something up.

Workshop ID: 2880299874
Mod ID: TreeChopBugFix
32 Comments
pepperoni 19 May @ 8:53am 
this fuckass mod wasted 2 hours of my life trying to start a server with my friend, do not download this mod if you want to play multiplayuer:steamhappy:
Darnexx 10 Jan @ 9:55am 
Works, thanks! I didn't noticed it until I saw your Mod and checked without it and with ingame.
Breno 7 Nov, 2024 @ 12:41pm 
on game folder Project Zomboid\media\scripts\items_weapons.txt
search for Axe or ChopTree on notepad and modify this lines as you want
ConditionLowerChanceOneIn = xx,
ConditionMax = xx,
TreeDamage = xx,
IndustryStandard 23 Oct, 2024 @ 11:32am 
Yes it's still valid. The game hasn't had an update in like 2 years.
Vorshim 23 Oct, 2024 @ 7:19am 
Is this mod still valid or has it been fixed in vanilla?
Zefiruz 11 Jan, 2024 @ 12:20pm 
Mods que deberían ser vanilla.
shu307 25 Oct, 2023 @ 7:58am 
No, it's not fixed and have another bug: more endurance is used than normal.
The pseudo code is as follows:


-- java ConnectSwing
-- twoHand = handWeapon.isTwoHandWeapon() and ((handWeapon.getWeight() / 1.5f) / 10.0f) or 0
-- ((handWeapon.getWeight() * 0.18f * handWeapon.getFatigueMod(isoGameCharacter) * isoGameCharacter.getFatigueMod() * handWeapon.getEnduranceMod() * 0.3f) + twoHand) * 0.04f
-- 0.00216 * f + 0.0027 * weight

-- lua choptree
-- use = self.axe:getWeight() * self.axe:getFatigueMod(self.character) * self.character:getFatigueMod() * self.axe:getEnduranceMod() * 0.1 * 0.041
-- if isTwoHandWeapon() then use = use + self.axe:getWeight() / 1.5 / 10 / 20
-- 0.0041 * f + 0.0033 * weight


My advice is don not use the "Cut Down Tree", just swing your weapon manually.
Tsunpi 28 Jul, 2023 @ 6:54pm 
I tried using the stone ax with the logging command about 10 times in debug mode, but it worked about 30 times, so I think the bug has been fixed.
IndustryStandard 22 Jun, 2023 @ 8:49am 
Assuming the mod is still relevant since I don't recall any tree bug fixes. But if they do patch it will you update the post to say it's no longer needed?