Mods / OneStick - TreeFellingFix

Tags: #Other #QoL #Tweak
Author: Eforen
Side: Both
Created: Aug 18th 2022 at 3:50 AM
Last modified: Aug 20th 2022 at 7:01 AM
Downloads: 13630
Follow Unfollow 219

Latest release (for Vintage Story 1.16.0-rc.6 - 1.16.5, outdated):
onestick-v1.0.0-g1.16.5.zip  1-click install
For testers (for Vintage Story 1.17.0-rc.1 - 1.17.0-rc.5, outdated):
OneStick_v1.0.1g1.17.0-rc.1.Release.zip  1-click install


One Stick Mod to rule them all...

And in darkness bind them!!!

Wait a second sorry thats umm something else... don't mind that... anyhow... where was I? oh yeah I fixed a thing...

Currently just fixes what appears to be a bug in the vanilla axe code. 

When felling a tree the branchy leaves rarely ever drop sticks.

The game code seems to indicate that they should drop sticks around 80% of the time when felling the tree.

I started with this number as a static number but that did not feel right too many sticks and no ramp when using better axes.

So now it's default config is to ramp from 10% at a teir 0 axe (if they exist) to 80% with a teir 5 axe. This cap at 80% means that its still more efficent to manually harvest the branches before you chop down the tree but still effective.

I am about to launch the Mod on the ModDB and will update below when I have a build there.

Plans:

I plan to make several other probably optional additions to this like sane craftable stick options for more advanced gameplay. See the Github for details, and please feel free to suggest more stick related goodness.

Links:

Version Compatability

Tested in 1.19.8 seems to work fine and I have not gotten any Issue Reports

Config Options:

 

BranchDropRateStoneAxe

Default: 0.8

The chance (0-1) that a tree will drop a branch when felled by a stone axe.

 

BranchDropRateAxeMetal

Default: 0.8

The chance (0-1) that a tree will drop a branch when felled by a metal axe.

 

UseTierMode

Default: true

If true the mod will use the following two options to calculate the chance a tree will drop a branch. If false it will use the above two options.

 

ToolTierZeroFellingBranchDropRate

Default: 0.1

The chance (0-1) that a tree will drop a branch when felled by a tool with a harvest level of 0.

 

ToolTierFiveFellingBranchDropRate

Default: 0.8

The chance (0-1) that a tree will drop a branch when felled by a tool with a harvest level of 5. This is the maximum harvest level.

 

DebugMode

Default: false

If true the mod will log extra information to the console.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.0.1 onestick
1.17.0-rc.1 - 1.17.0-rc.5
12585 Aug 20th 2022 at 7:01 AM OneStick_v1.0.1g1.17.0-rc.1.Release.zip 1-click install

Changelog

v1.0.0g1.17.0rc5

  • Updated the codebase for the new method signatures of 1.17
  • This version is compatible with 1.17.0-pre.1+

Known Bugs

  • The config writes out the hidden props (the ones that start with a _ character)
1.0.0 onestick
1.16.0-rc.6 - 1.16.5
1045 Aug 18th 2022 at 4:21 AM onestick-v1.0.0-g1.16.5.zip 1-click install

Simple Tree Felling Fix with configureable options and sane default.

Built for v1.16.5


24 Comments (oldest first | newest first)

💬 NC_WOLFF, Nov 16th at 9:34 AM

when do u update this mode, he can be really usfull for my world. thx

 

💬 Sonito, Sep 17th at 2:22 AM

yup my bad just had to change the config file to suit my needs

 

💬 JMALoock, Sep 16th at 9:05 AM

Sonito I just downloaded the latest release version and it seems to be working fine.

💬 Sonito, Sep 15th at 10:27 PM

Hi , where can i find the tester build please ? :'( @Vintage_Wine

💬 Kryll, Sep 10th at 12:16 AM

Vintage_Wine That worked for me!

💬 Vintage_Wine, Sep 9th at 2:29 AM

Kryll Try using the tester build.

 

I was getting a crash every time I broke a tree on the 'latest release' version but it's fixed with the tester build.

💬 Kryll, Sep 2nd at 4:28 AM

Getting crashes on 1.21

💬 Zequinha, Jun 4th at 11:53 PM

atualiza para versao 1.20.11 pfv

 

💬 McTaco, Apr 7th at 12:33 AM

Combat Overhaul Compatibility Fix

Edit the DLL, onestick.src//OneStickSystem line 36, IL edit the string to "CombatOverhaul:Axe"

Edit the patch, remove the metal axe part and change stone axe value to "CombatOverhaul:Axe"

 

Now, just increase the config to like 0.8 to make up for the fact that metal tools wont work.

Works for stone tools, with better swing animation.

Only works with stone tools, but better than nothing.

 

More could be done to better fix this mod, but this works for our server's needs.

 

💬 Streetwind, Apr 3rd at 5:08 PM

As a heads up: there's an incompatibility with Combat Overhaul.

When CO is installed, OneStick cannot patch metal axes (and will throw a log message about it). It will still successfully patch stone axes, and those will trigger the extra stick drops, but metal axes will not. In return, the stone axes do not get patched by CO to use the better swinging animation,

💬 Streetwind, Mar 12th at 9:47 AM

Does this affect only vanilla trees - or all trees including modded ones?

💬 OniDono, Mar 8th at 4:19 AM

Just to let eveyone know this is working in 1.20.4.

💬 NeonPai, Jan 23rd at 6:32 PM

Still works in 1.20.1! o7 the mod tab says it might cause issues but its completely fine for me!

💬 Doomstrike53, Jan 21st at 11:45 PM

1.20.1 is out. Can anyone confirm whether this still works or not?

💬 Eforen , Oct 14th 2024 at 8:35 PM

I am pleased that this still seems to work fine. (1.19.8) I will likely rebuild it sometime soon for the metadata.

Also Gizmagus I will look into resin I have some fun ideas around this

💬 Aurymn, Sep 7th 2023 at 8:13 AM

functioning just fine with NET7 1.18.10

💬 Fefa, Jul 30th 2023 at 8:25 PM

i am using it in Net7 1.18.6   and works just fine.

💬 Corvie, Apr 21st 2023 at 4:49 PM

Will this mod work as-is in 1.18?

💬 DanaCraluminum, Feb 22nd 2023 at 11:40 AM

Gizmagus I just made such mod. LINK

💬 Gizmagus, Feb 22nd 2023 at 9:01 AM

Can you add the fuction to drop RESIN when a tree is felled. Currently resin does NOT DROP. BTW Thank You for this mod! :).

💬 Ruina, Dec 7th 2022 at 12:07 AM

Is this working for 1.17.9?

if not, can you update this mod?

💬 Blazha, Oct 18th 2022 at 11:24 AM

It's not a bug, it's a mechanic that makes you craft and use sheers later when you need more sticks. This saves some time though

 

P.S. Do not try to cut down one of those big oak, kapok or redwood trees!

💬 Eforen , Sep 12th 2022 at 4:20 PM

@VintageDerek yes it does indeed increase the drop rate of seeds because it is registering the break of the leaf blocks as if directly harvested. This is scaled based on tool rank but with default settings it will never be better then if each was directly harvested. How ever if you desire it to be higher there is nothing stoping you from configuring it higher then 1 (100%). 

💬 ToastyDerek, Sep 5th 2022 at 4:49 PM

Does it also increase drop rate of seeds?

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом