Project Zomboid

Project Zomboid

566 betyg
Tree Chop Bug Fix
4
6
3
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
334.593 KB
26 okt, 2022 @ 12:59
1 ändringsnotis ( visa )

Abonnera för att ladda ner
Tree Chop Bug Fix

I 1 samling av Undefined
Undefined's Mods
4 artiklar
Beskrivning
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 kommentarer
pepperoni 19 maj @ 8:53 
this ♥♥♥♥♥♥♥ 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:55 
Works, thanks! I didn't noticed it until I saw your Mod and checked without it and with ingame.
Breno 7 nov, 2024 @ 12:41 
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 okt, 2024 @ 11:32 
Yes it's still valid. The game hasn't had an update in like 2 years.
Vorshim 23 okt, 2024 @ 7:19 
Is this mod still valid or has it been fixed in vanilla?
Zefiruz 11 jan, 2024 @ 12:20 
Mods que deberían ser vanilla.
shu307 25 okt, 2023 @ 7:58 
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 @ 18:54 
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:49 
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?