Project Zomboid

Project Zomboid

563 个评价
Tree Chop Bug Fix
4
6
3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
334.593 KB
2022 年 10 月 26 日 下午 12:59
1 项改动说明 ( 查看 )

订阅以下载
Tree Chop Bug Fix

在 Undefined 的 1 个合集中
Undefined's Mods
4 件物品
描述
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 条留言
pepperoni 5 月 19 日 上午 8:53 
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 1 月 10 日 上午 9:55 
Works, thanks! I didn't noticed it until I saw your Mod and checked without it and with ingame.
Breno 2024 年 11 月 7 日 下午 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 2024 年 10 月 23 日 上午 11:32 
Yes it's still valid. The game hasn't had an update in like 2 years.
Vorshim 2024 年 10 月 23 日 上午 7:19 
Is this mod still valid or has it been fixed in vanilla?
Zefiruz 2024 年 1 月 11 日 下午 12:20 
Mods que deberían ser vanilla.
shu307 2023 年 10 月 25 日 上午 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 2023 年 7 月 28 日 下午 6: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 2023 年 6 月 22 日 上午 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?