Download
(4 Kb)
Download
Updated: 11/27/23 06:52 PM
Compatibility:
Endless Archive (9.2.5)
base-game patch (9.1.5)
Necrom (9.0.0)
Updated:11/27/23 06:52 PM
Created:07/09/23 04:42 AM
Monthly downloads:83
Total downloads:1,156
Favorites:6
MD5:
9.2.5
Sticky Weapons
Version: 1.1.1
by: Noromdrol [More]
Sticky Weapons

What is it?
As I was running around Tamriel as my sorcerer, I began to become annoyed that my staff would get
put away every time I read a book, or absorbed a skyshard, or fiddled with a switch, or jumped on
my horse, or... really, just about anything. So, I wrote a little addon which will keep my weapon
drawn, no matter what. But, then it began to bug me that, when in town, my weapon was always out,
which seemed at odds with the surroundings. I'm no role player, but it seemed really weird. So,
I added the ability to swap between keeping your weapon sheathed and unsheathed. Then, added a
hotkey so that it mimics the normal sheathe/unsheathe hotkey and BOOM! Here it is for your enjoyment.

TL;DR
This addon will prevent your weapons from getting sheathed or unsheathed, whichever you prefer.
Also provides a hotkey to switch the two modes.

Features
  • Run around with either your weapons drawn all the time or automatically put away.
  • Works in both keyboard/mouse and gamepad mode.
  • Can set a delay before putting weapons away. (configurable)
  • If weapons are sheathed, can be automatically unsheathed if you enter combat. (configurable)
  • A key can be bound in controls to mimic the standard sheathe/unsheathe the game normally provides. (configurable)
  • Slash command "/sw" will bring up the addon settings.

Request Features/Report Bugs
https://github.com/jharrels/eso-sticky-weapons/issues

Contact
I can be contacted via GitHub, ESOUI, or stop by on the NA Megaserver and say, "Hi!"
Version 1.1.1 - November 27, 2023
- Added fix for statechange error when reloading UI.

Version 1.1.0 - July 12, 2023
- Switched "ZO_SavedVars:New" to "ZO_SavedVars:NewCharacterIdSettings", as it was pointed out the
former was obsolete.
- Added a checkbox in settings to disable the initialization message and state messages (off by
default).
- Weapon will now be unsheathed properly after summoning a companion.
- Reduced delay unsheathing after dismounting.
- Clarified that the wait timer, for sheathing setting, was in seconds.
- Added additional comments in the code.

Version 1.0.0 - July 9, 2023
- Initial version.
Archived Files (2)
File Name
Version
Size
Uploader
Date
1.1.0
4kB
Noromdrol
07/12/23 03:33 AM
1.0.0
4kB
07/09/23 04:42 AM


Post A Reply Comment Options
Unread 12/05/23, 08:09 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4875
File comments: 5940
Uploads: 78
Hi, please always add non optional dependencies to all of your addon "description" too, so users can find the needed libraries via Minion and esoui.com more easily.
Thank you.

## DependsOn: LibAddonMenu-2.0>=31
-> Time to update this line too, current LibAddonMenu would be LibAddonMenu-2.0>=35

The most up2date addonversion of these libs can be found in the libraries txt file at the ## AddOnVersion: tag
Report comment to moderator  
Reply With Quote
Unread 11/28/23, 06:35 AM  
Noromdrol
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 17
Uploads: 1
I made a patch yesterday which may resolve your issue. It waits until the saved vars are loaded before attempting anything. Check out the new version and let me know if that helps.

Originally Posted by Noromdrol
Originally Posted by NeuroticPixels
Received this error after reloading my UI.
So far I've not been able to reproduce this issue. I see that's it's failing on the state change. Does it do this constantly or when you first log in? Is it a new character or one you've had for a bit?
Report comment to moderator  
Reply With Quote
Unread 11/27/23, 06:27 PM  
Noromdrol
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 17
Uploads: 1
Originally Posted by NeuroticPixels
Received this error after reloading my UI.
So far I've not been able to reproduce this issue. I see that's it's failing on the state change. Does it do this constantly or when you first log in? Is it a new character or one you've had for a bit?
Report comment to moderator  
Reply With Quote
Unread 11/24/23, 09:34 PM  
Noromdrol
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 17
Uploads: 1
Originally Posted by NeuroticPixels
Still getting error when reloading my UI.
Howdy. Sorry, I've been dealing with some things for a few months. I've just recently checked things out. I get a bazillion errors from almost all my addons. They must've done a large update. I'll take a look and see if I can't hammer it out, but it'll take me another week or so before I can seriously look at it.
Report comment to moderator  
Reply With Quote
Unread 11/06/23, 09:22 PM  
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member

Forum posts: 210
File comments: 864
Uploads: 0
Still getting error when reloading my UI.

user:/AddOns/StickyWeapons/StickyWeapons.lua:93: operator * is not supported for nil * number
stack traceback:
user:/AddOns/StickyWeapons/StickyWeapons.lua:93: in function 'stickyWeapons.StateChange'
Report comment to moderator  
Reply With Quote
Unread 08/19/23, 02:59 PM  
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member

Forum posts: 210
File comments: 864
Uploads: 0
Received this error after reloading my UI.

user:/AddOns/StickyWeapons/StickyWeapons.lua:93: operator * is not supported for nil * number
stack traceback:
user:/AddOns/StickyWeapons/StickyWeapons.lua:93: in function 'stickyWeapons.StateChange'
Report comment to moderator  
Reply With Quote
Unread 07/25/23, 09:43 AM  
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member

Forum posts: 210
File comments: 864
Uploads: 0
Originally Posted by Noromdrol
Originally Posted by Dingodan
Is there any posibility to add an option to automatically sheath weapon in towns?
Yep, I was thinking the same thing. Also an automatic unsheathe when leaving town, entering a dungeon/delve/trial/battleground/etc.
I 2nd this. It would be very handy to sheathe weapons in towns to make it quicker to turn in daily writs.
(I have the settings all selected to unsheathe. And with both settings on "unsheathe", it makes turning in daily writs take double the time. Works out to just a few seconds more, but it's actually quite inconvenient. lol)
Report comment to moderator  
Reply With Quote
Unread 07/22/23, 04:29 PM  
Noromdrol
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 17
Uploads: 1
Originally Posted by Dingodan
Is there any posibility to add an option to automatically sheath weapon in towns?
Yep, I was thinking the same thing. Also an automatic unsheathe when leaving town, entering a dungeon/delve/trial/battleground/etc.
Report comment to moderator  
Reply With Quote
Unread 07/20/23, 06:13 PM  
Dingodan
 
Dingodan's Avatar

Forum posts: 50
File comments: 276
Uploads: 0
Is there any posibility to add an option to automatically sheath weapon in towns?
Report comment to moderator  
Reply With Quote
Unread 07/12/23, 04:16 AM  
Noromdrol
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 17
Uploads: 1
Version 1.1.0 Released

Hi all,

Uploaded a new version today with the following changes/fixes:
  • Switched "ZO_SavedVars:New" to "ZO_SavedVars:NewCharacterIdSettings", as it was pointed out the former was obsolete.
  • Added a checkbox in settings to disable the initialization message and state messages (off by default).
  • Weapon will now be unsheathed properly after summoning a companion.
  • Reduced delay unsheathing after dismounting.
  • Clarified that the wait timer, for sheathing setting, was in seconds.
  • Added additional comments in the code.
Report comment to moderator  
Reply With Quote
Unread 07/10/23, 03:41 AM  
Noromdrol
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 17
Uploads: 1
Originally Posted by Saint-Ange
could there be an option to disable the chat notification?
or simply get rid of it completely?

edit: same with the initialization message, these are unecessary and affect the welcoming experience in game.
I can add an option to hide it.
Report comment to moderator  
Reply With Quote
Unread 07/10/23, 01:09 AM  
Saint-Ange
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 26
Uploads: 4
could there be an option to disable the chat notification?
or simply get rid of it completely?

edit: same with the initialization message, these are unecessary and affect the welcoming experience in game.
Last edited by Saint-Ange : 07/10/23 at 01:27 AM.
Report comment to moderator  
Reply With Quote
Unread 07/09/23, 01:19 PM  
Noromdrol
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 17
Uploads: 1
Originally Posted by NeuroticPixels
Hi.
"ZO_SavedVars:New" is obsolete and should be "ZO_SavedVars:NewCharacterIdSettings".

Could you please add an option for us to make the settings account wide?

I don't think it would be wise to force account wide settings, because with an addon like this, people may want different settings for different characters.
But an option in the settings to toggle on for those of us that will use the same settings for all characters would be very helpful.

Thank you for your work!
Ah, thank you for pointing that out. It has been quite a while since I wrote anything from scratch. I'll update it and, of course, look into implementing an account wide preference.
Report comment to moderator  
Reply With Quote
Unread 07/09/23, 09:48 AM  
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member

Forum posts: 210
File comments: 864
Uploads: 0
Hi.
"ZO_SavedVars:New" is obsolete and should be "ZO_SavedVars:NewCharacterIdSettings".

Could you please add an option for us to make the settings account wide?

I don't think it would be wise to force account wide settings, because with an addon like this, people may want different settings for different characters.
But an option in the settings to toggle on for those of us that will use the same settings for all characters would be very helpful.

Thank you for your work!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: