Mods / Alternative Offhand Penalty

Tags: #Simplification #Tweak #Utility
Author: Lodish
Side: Both
Created: Apr 24th 2024 at 1:43 PM
Last modified: Nov 7th at 4:40 AM
Downloads: 6411
Follow Unfollow 172

Recommended download (for Vintage Story 1.21.0, 1.21.1 and 1.21.2 - 1.21.5):
altoffhandpenalty_1.2.3.zip  1-click install


Currently in Vanilla holding anything in your offhand slot increases your hungerrate by 20% (VS Wiki) and I felt this debuff was too strong, especially to people who like to always be holding a light source. This mod adds a different hunger rate increase depending on the item in your offhand slot and also new different penalties.

 

Smaller items like the basic torch and the ink and quill  - 5% hunger increase

Shields - 15% hunger increase

Anything else (lanterns hammers tongs etc.) - 10% hunger increase

 

In balance to this buff to the hunger rates, now when you have an item in your offhand you get -10% to your animal harvesting speed and block breaking speed regardless of offhand item.

All values can be changed to your liking by editing the config file (AltOffhandPenaltyConfig.json in the ModConfig folder)

 

This mod is heavily based on previous mods changing the offhand penalty, this mod is an alternative balance to them, check them out here: https://news.kalataka.ru/offhanddebuffpatch https://news.kalataka.ru/show/mod/8034 https://news.kalataka.ru/show/mod/276  

To work on versions of Vintage Story before 1.20.1 please use the 1.0.0 version.

 

Two Handed Mode

Currently if you're holding something in your right hand there are no debuffs so by my logic there should be no debuff if you're only holding something in one hand regardless if it's a in a normal slot or the offhand slot. If you enable two handed mode, penalties will only be applied to you when both of your hands are holding items. (Off by default, set "twoHandedOnlyPenalty": as true in the config)

 

To Do:
Find a way to change speed of breaking dirt blocks, currently only able to change speed of mining stone/ore blocks .

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.2.3 offhandpenalty
1.21.2 - 1.21.5
960 Nov 7th at 4:40 AM altoffhandpenalty_1.2.3.zip 1-click install

Fixed an error if you were selecting your backpack slots as your active slot.

Improved checking when picking up items into your active slot or via inventory moving items into and out of active slot.

The basic vanilla candle was added into the 'small' category of items.

1.2.2 offhandpenalty 879 Oct 11th at 3:23 AM altoffhandpenalty_1.2.2.zip 1-click install

Attempted to fix a report of freezing clients.

net8.0 build.

1.2.1 offhandpenalty 2097 Mar 24th at 6:45 PM altoffhandpenalty_1.2.1.zip 1-click install

Added a config so all the values can now be changed to your needs, the default config has the same values as previous versions of the mod.
If you really wanted to you can set everything to 0 and simply remove all penalties (Config is AltOffhandPenaltyConfig.json in the ModConfig folder).

Only server config should apply settings in multiplayer.


Added ability to add a configurable walk speed penalty via the config  (off by default)

Added a new two handed mode (off by default) that will only apply penalties when both hands are occupied. Can be set to true in the config.

1.1.1 offhandpenalty 1355 Jan 20th at 7:46 AM altoffhandpenalty_1.1.1.zip 1-click install

Updated to work in 1.20, also fixed bug with animal harvesting speed, old version was actually speeding up harvesting by 10% when holding an item in the offhand, this has been changed to the intended 10% debuff.

1.0.0 offhandpenalty 1120 Apr 24th 2024 at 1:45 PM Empty altoffhandpenalty_1.0.0.zip 1-click install

34 Comments (oldest first | newest first)

💬 Lodish , Nov 19th at 11:59 PM

Mamotromico I'm glad to hear it, thanks.

💬 Mamotromico, Nov 19th at 5:36 PM

I just wanted to report that I'm running a server with a friend using this and a handful of other mods (including toolsmith) and so far I haven't had any crashes!


💬 ManaWei, Nov 11th at 6:58 PM

not sure it's this mod, im crashing even without it now.. but once in a while i DO get crash reports.. this one was mentioned at some point..

 

💬 Lodish , Nov 10th at 12:33 PM

ManaWei very strange, I tried installing toolsmith but I'm unable to make the game crash picking up sticks, I don't think anything toolsmith changes should effect this mod in anyway. The only mods that might mess up this mod would ones that change how the hotbar works or the backpack slots.

💬 ManaWei, Nov 10th at 9:21 AM (modified Nov 10th at 9:21 AM)

was when i picked up the sticks.. crash log didn't say anything useful as it didn't register.. game just shut down..

im using Toolsmith.. only other mod that has anything to do with offhand and it shouldn't interfere with the offhand hunger penalty..

💬 Lodish , Nov 10th at 2:08 AM

ManaWei was this immediately when loading a world? What other mods are you using? Do you know what your crashlogs say?

💬 ManaWei, Nov 9th at 11:29 AM (modified Nov 9th at 8:15 PM)

Crashes me directly to desktop

 

To be honest, i think the offhand penalty for holding anything is completely ridiculous,

you don't get magically more hungry for holding something in your other hand.. it's ridiculous..

i wish it would be an actual setting so you could turn it off.. 

💬 Ensorcelled, Nov 5th at 1:08 AM

Lodish It is very infrequent, I suspect they are auto-picking up items not "normally" in the offhand slot?

We have One Bed Sleeping and Dyehydtrate mods, I think it may have to do with them also, sleeping with "an odd man out in slot" situation and a different rate set in Diehydrate? 

I haven't seen them since the day of the error, but they should be back this weekend. I checkl on it then and ask about hunger rates.... 

💬 Lodish , Nov 4th at 4:48 PM (modified Nov 4th at 9:12 PM)

Ensorcelled thank you for letting me know, was this in the logs a lot? Did the player notice their hunger rate being incorrect at all? 

💬 Ensorcelled, Nov 3rd at 7:44 PM (modified Nov 3rd at 7:45 PM)

Howdy, just saw my logs and this error, but I have no idea what the player was doing.... figured you might know since it mentions telling you? 

Running 1.21.5 with 1.2.2 of your mod. 

Spoiler
 [Info] 3.11.2025 19:40:44 [Server Error] Exception: Object reference not set to an instance of an object.
 [Info] at Offhandpenalty.OffhandpenaltyModSystem.OnHotbarSelect(IServerPlayer player, ActiveSlotChangeEventArgs args) in C:\Users\marlo\source\repos\Offhandpenalty\Offhandpenalty\Offhandpenalty\OffhandpenaltyModSystem.cs:line 94
 [Info] 3.11.2025 19:40:44 [Server Error] Error A - checking the old and new slot failed somehow - if you ever see this error tell Lodish
 [Info] 3.11.2025 19:40:46 [Server Error] Exception: Object reference not set to an instance of an object.
 [Info] at Offhandpenalty.OffhandpenaltyModSystem.OnHotbarSelect(IServerPlayer player, ActiveSlotChangeEventArgs args) in C:\Users\marlo\source\repos\Offhandpenalty\Offhandpenalty\Offhandpenalty\OffhandpenaltyModSystem.cs:line 94
 [Info] 3.11.2025 19:40:46 [Server Error] Error A - checking the old and new slot failed somehow - if you ever see this error tell Lodish
💬 Marshy, Oct 12th at 4:03 AM

I only just saw your reply Lodish! I'll try out the new version and if the problem recurs, I'll try to give you more details next time.

💬 Lodish , Oct 11th at 10:25 PM

Rex87 EthelVril this mod lets you completely remove the debuff, just set all the debuffs to 0 in the config file (AltOffhandPenaltyConfig.json)

💬 EthelVril, Oct 11th at 9:10 PM

I agree Rex87

💬 Rex87, Oct 11th at 5:34 AM

to be honest would be nicer if the debuff didn't even exist, hoping to see version that just removes this all together because hunger in this game is already quite fast anyway.

💬 Lodish , Oct 3rd at 5:08 PM (modified Oct 3rd at 5:10 PM)

Marshy I've tried my best to recreate the issue (hosted a 1.21.1 server and had clients connect) but I never had any errors, how consistent is the hanging? does it happen soon after connecting or randomly after some hours? does the server run a lot of mods? I'm not actually really sure what could even conflict with the mod, but there's always a chance, is there for instance a mod that's changing how the hotbar works? If the error in the server-main log always refers to line 87 then a temporary fix would be to set  "twoHandedOnlyPenalty" to false, but I'm very confused what the error could be, at that point the player has changed what slot on the hotbar is being selected and it's checking if the new active hotbar slot is empty or not and if the offhand slot is empty, but it only does this if "twoHandedOnlyPenalty" is set to true. If anyone else hosting a server has also got this error I'd be very interested.

💬 Marshy, Oct 2nd at 8:27 PM

@Lodish yes, server in 1.21.1 stable and the two handed only config was true.

💬 Lodish , Oct 2nd at 9:49 AM (modified Oct 2nd at 9:50 AM)

Marshy Thank you for the bug report, was this server in 1.21.1? Did they have "twoHandedOnlyPenalty" set to true in the server config?

💬 Marshy, Oct 1st at 11:11 PM

I get the following error in server-main logs that seems to lead to clients getting stuck (hanging, not responding, no immediate crash but must be force closed) shortly after:

Crash Report
1.10.2025 23:02:29 [Server Error] Mod exception during event AfterActiveSlotChanged. Will skip to next event 1.10.2025 23:02:29 [Server Error] Exception: Object reference not set to an instance of an object. at Offhandpenalty.OffhandpenaltyModSystem.OnHotbarSelect(IServerPlayer player, ActiveSlotChangeEventArgs args) in C:\Users\marlo\source\repos\Offhandpenalty\Offhandpenalty\Offhandpenalty\OffhandpenaltyModSystem.cs:line 87 at Vintagestory.Server.ServerEventManager.Trigger[T](Delegate[] delegates, String eventName, Action`1 onDele, Action onException) in VintagestoryLib\Server\ServerEventManager.cs:line 723
💬 tRead, Sep 11th at 11:41 PM

can confirm, works as described, in 1.21.1

💬 Tremmix, Aug 31st at 10:06 PM (modified Sep 1st at 7:18 PM)

hi,

 

is this being updated for 1.21.0?

 

this works in 1.21.0.

 

thanks

💬 Chuckles, Mar 24th at 10:06 PM

working in 1.20.6

 

Thank you!

💬 Ixcatl, Mar 24th at 9:45 PM

holy cow THANK YOU for the config! i was really really hoping for it haha

💬 Roidgy, Mar 21st at 11:22 PM

Likely just a mod conflict for me then. I'll keep testing it, thanks for getting back.

💬 RedKestrel, Mar 21st at 9:49 PM

I've been using it since 1.20.4 and it's still working for me. vOv

 

I appreciate this mod, but yeah, it would be even better with configurability. I could see a small hunger penalty for shields, since those can be as heavy as armor, but for everything else it's pretty silly and a bit annoying as a gameplay effect. Ratcheting up the work rate penalty to 20% instead would make perfect sense to me (try using a shovel or something with just one hand free, lol), and I don't think it would be too annoying to play. Would more obviously prod the player to place their torch when possible while mining, which is a natural-feeling workflow to me.

💬 Lodish , Mar 21st at 9:34 PM

Strange, I just tested it in 1.20.6 and it seems to still be working, anyone else having issues?  Roidgy

 

There's no settings/config file yet but I plan on working on that next DudeBroManGuy 

💬 Roidgy, Mar 20th at 11:51 PM

Doesn't seem to be working on 1.20.5 , still at 120% no matter what I have offhand. Wish the vanilla game just had it toggleable or at least more nuanced, such a baffling feature.

💬 DudeBroManGuy, Mar 15th at 3:28 AM

Is there a settings file or something that I can modify to set that extra hunger to 0% in order to fix the game dev's clear and obvious poor game design choice?

💬 DeviousDoge, Feb 27th at 11:04 AM

Honestly, a version of this that just ditches the hunger rate penalty entirely and doubles that animal harvesting + block breaking penalty would make a lot more sense imo. Shouldn't really be exhausting to hold a torch or lantern in your offhand, but it should be cumbersome and impede manual dexterity tasks. :)

💬 ManaWei, Jan 20th at 11:22 AM

I'm so with Mendell on this.. This debuff should not even be a thing it's ridiculous.. might as well just mod it out..

💬 Lodish , Jan 20th at 1:43 AM

It does not work in 1.20, I will try to update   fixed it @Desolae 

💬 Desolae, Jan 17th at 9:48 PM

Anyone know if this still works in 1.20?

💬 ManaWei, Apr 26th 2024 at 10:50 AM

i just straight up went ahead and removed the debuff because it makes no sense

💬 Mendall, Apr 24th 2024 at 5:31 PM

This hole mechanic is and has always been just plain strange to me. I am over 50 years old, and I have had two hands for all those years.

And I can say for sure I have never felt hungrier when holding something in both hands.

What is the point to it at all. If its game balance what does the hands have to do with anything. Just make hunger increase when exerting yourself.

Or just increase hunger rate all together. You should not feel guilty, ComradeTum. Unless you find holding your fork in your left hand to make you ravenous in real life.

Just up hunger rate 5% across the board and make this lame mechanic disappear altogether.

Personally, I just hold what ever I want, where ever I want, and try real hard to forget this is even a thing. It strains credibility and breaks immersion.

And if I get hungry................ I eat.

 

💬 ComradeTum, Apr 24th 2024 at 3:01 PM

This is great! Id feel guilty removing the offhand penalty entirely but your rebalance is exactly what I needed. Should be in the base game!

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