Quantcast
Download
(31 Kb)
Download
Updated: 12/04/22 05:27 PM
Pictures
File Info
Compatibility:
Firesong (8.2.5)
Lost Depths (8.1.5)
High Isle (8.0.0)
Ascending Tide (7.3.5)
Deadlands (7.2.5)
Waking Flame (7.1.5)
Blackwood (7.0.5)
Greymoor (6.0.5)
Updated:12/04/22 05:27 PM
Created:05/11/15 01:10 PM
Monthly downloads:9,154
Total downloads:684,285
Favorites:475
MD5:
Categories:Combat Mods, Bags, Bank, Inventory, Casting Bars, Cooldowns, PvP
Auto Recharge (and repair)  Popular! (More than 5000 hits)
Version: 2.75
by: XanDDemoX, Baertram
Auto Recharge
Needed dependencies: LibAddonMenu-2.0

Recharges and repairs your equipped weapons and amour automatically upon entering and leaving combat.

A single soul gem will be consumed per weapon recharged in the order of worst to best (e.g lesser soul gems will be used before common).

A single repair kit will be consumed per piece of armour recharged in the order of worst to best (e.g common repair kits will be used before greater). A single crown repair kit will be used to repair all of your equipped armor.

Features
-Recharge weapons if the charge drops below a threshold (at combat start, in combat, and after combat, optionally: As weapon pair changes)
-Repair equipment if they drop below a threshold (at combat start, in combat, and after combat, optionally: No crown repair kits will be used)
-Remind me after login/as fight ends if my soul gems drop below a threshold
-Remind me after login/as fight ends if my repair kits drop below a threshold
-Show my number of repair kits left at a vendor
-Show info about what happened in the chat
-Suppress chat messages if nothing was done etc.
-Multi language support was added

Usage
You are able to setup everything in the LAM settings menu.

Automatic Charging
/arc Attempts to recharge the currently equipped primary and secondary weapons.
/arc + Enable automatic equipped weapons recharging (you can also use the localized value on, an, на).
/arc - Disable automatic equipped weapons recharging (you can also use the localized value off, aus, от).
/arc 0-99 Set the minimum charge percentage

Automatic Repair
/arp Attempts to repair the currently equipped armour.
/arp + Enable automatic amour repairing (you can also use the localized value on, an, на).
/arp - Disable automatic armour repairing (you can also use the localized value off, aus, от).
/arp 0-99 Set the minimum condition percentage


Languages supported
DE
EN
FR
IT - L'addon perfettamente compatibile con la traduzione italiana degli Italian Scrolls Online. Disponibile qui ItalianScrollsOnline
RU

Many thanks to XanDDemoX for the base of this great helper!
And many thanks to Scootworks for helping me test and translate the addon!
IMPORTANT: With version 2.67: The SavedVariables changed to server dependent ones.
You need to setup your SavedVariables new! LOGOUT and BACKUP your SavedVariables before updating from version 2.66



Version 2.75 - 2022-12-05
Fixed default settings variables not loading in some situations, which lead to errors with the minPercent sliders


Version 2.74 - 2022-10-30
-Updated API and version
-Fixed account wide settigs not loading/saving it's data properly (was still saved per character sometimes)

Version 2.73 - 2022-08-21
-Re-uploaded correct version where the settings menu does not throw an error upon changing percentage sliders

Version 2.72 - 2022-08-13
-Updated API
-Added upon request: setting to show the repair kits empty reminder as you interact with a vendor
-Fixed: More "are we dead" checks to overcome ZOs API which does not recognize we are dead fast enough. This hopefully should fix the disconnects
Many thanks to Busygeezus for all the feedback and testing!
-Fixed: Delayed charge/repair should work properly now, allthough a delay of 0 should be working fine


Version 2.71 - 2022-02-01
-Updated API
-Added more "IsPlayerDeath" checks
-Added more "IsCrownRepairKit" checks
-Fixed typo in en.lua, thanks to all mentioning it

Version 2.70
Added Italian translations, thanks to Dusty82
L'addon perfettamente compatibile con la traduzione italiana degli Italian Scrolls Online.
Disponibile qui https://www.esoui.com/downloads/info2854-ItalianScrollsOnline-TraduzioneItaliana.html

Version 2.69
-Updated API version
-Updated French translation (thanks to @jakez31)

Version 2.68
-Fixed LAM settings checkbox for account wide settings to be saved server dependent
-> Please check your settings after updating to version 2.68 as this checkbox might be disabled!
-Fixed Cannot create LAM ... error message
-Fixed "this item is fully repaired" multiple messages


Version 2.67
-Tested on Markarth & Stonethorn
-Updated API and files
-Updated Russian translation (thanks to ivann339)
-Added speed up variables for settings
-Fixed slash commands and keybindings trying to access the non-loaded settings
-Fixed in combat repair/recharge
-Fixed event filters for recharge and repair not overwriting each other
-Added setting for "No crown store repair kits"
-Fixed: Crown store repair kits usage on 1 equipped item (will repair all then) instead of trying to use it as normal repair kit + checking other equipped items afterwards unnecessarily
-Fixed non-slotted items (2hd backup slot e.g.) -> No repair start anymore
-Fixed settings
-Added event filter on BAG_WORN for charge and repair checks
-Added setting to check weapon charge on weapon pair change + setting for only in combat

Version 2.66
-Updated API to Stonethorn
-Updated needed versions of dependencies
-Updated French translations (thanks to jakez31)

Version 2.65
-Removed LibStub hybrid call
-Added LibAddonMenu-2.0 Verison 28 or newer as dependency
-Fixed typo in event filter for charge change -> In combat charging did not work due to this

Version 2.64
-Removed additional debug messages

Version 2.63
-Updated API
-Removed debug messages

Version 2.62
-Updated API
-Added option: Recharge weapon during combat
-Added option: Repair armor during combat

Version 2.61
-Fixed chat commands /arc on and /arc off
-Fixed chat commands /arp on and /arp off
-Added the values an/aus and на/от to support German and Russian languages for the chat commands

Version 2.60
Removed: The needed libraries were removed from this addon and need to be installed seperately as standalone version: LibAddonMenu-2.0
Added: Chat output will not be shown anymore for empty soulgem/repair kits messages if you got 0 soulgems/repair kits and the setting to suppress the "nothing repaired/charged" is enabled.


Version 2.54
Fixed: The repair kits left icon was shown too far to the right when using the quickslot vendor from the crown store.
Updated: libAddonMenu r25
Updated: API

Version 2.51
Added single keybinds for "Repair" and "Recharge"

Version 2.41
Fixed typo

Version 2.4
-Api raise to Homestead
-Updated library LAM

Version 2.3
- Fixed lua error message
Version 2.2
- Added setting to switch to account wide settings (Thanks to Scootworks!)
- Added setting to show icon + repair kits left amount at a vendor's top-left corner
- Fixed bug where soul gems / repair kits amount was calculated false (always the total available sum was used
for single stacks of items, even if they were the same item like another stack)

Version 2.1
- New addon co-author: Baertram
- Updated Api version
- Updated libraries
- Added multi language support
- Added new settings (chat output, reminders for low repair kits/soul gems)
- Fixed some bugs
- Improved code where possible

Version 2.0.5

- Updated Api version to 100012

Version 2.0.4

- Added settings menu implementation by Baertram.

Version 2.0.3

- Fixed Off Hand slots not being checked for repair.

Version 2.0.2

- Renamed Readme.txt to README to prevent ESO detecting it as an addon

Version 2.0.1

- Fixed error attempting to enable / disable using slash commands.

Version 2.0.0

- Implemented Automatic amour repair
- Fixed potentially not searching all bag slots for items.

Version 1.0.7

- Fixed missing local definition in master weapon exclusion.

Version 1.0.6

- Added check of whether the player is dead before attempting to recharge.
- Added fixed Master weapon exclusion.

Version 1.0.5

- Increased settings version

Version 1.0.4

- Restored original settings variable name

Version 1.0.3

- Moved Readme and Licence into Recharge folder within zip for users who use Minion.

Version 1.0.2

- Disabled master weapons exclusion.

Version 1.0.1

- Added master weapons exclusion.

Version 0.0.6

- Added string trim to input to remove whitespace before attempting to parse a potentially numeric input

Version 0.0.5

- Enabled setting of a minimum charge percentage.

Version 0.0.4

- Initial Release
Optional Files (0)


Archived Files (35)
File Name
Version
Size
Uploader
Date
2.74
31kB
Baertram
10/30/22 12:05 PM
2.73
30kB
Baertram
08/21/22 05:34 AM
2.72
30kB
Baertram
08/13/22 09:15 AM
2.71
26kB
Baertram
02/01/22 05:10 AM
2.70
26kB
Baertram
03/30/21 09:08 AM
2.69
23kB
Baertram
03/28/21 01:05 PM
2.68
23kB
Baertram
11/23/20 05:48 AM
2.67
23kB
Baertram
10/17/20 01:04 PM
2.66
19kB
Baertram
09/19/20 09:04 AM
2.65
17kB
Baertram
03/21/20 08:41 PM
2.64
17kB
Baertram
02/26/20 04:08 AM
2.63
17kB
Baertram
02/24/20 05:14 PM
2.62
17kB
Baertram
02/23/20 07:12 PM
2.61
16kB
Baertram
06/18/19 06:55 AM
2.60
16kB
Baertram
05/31/19 10:39 AM
2.54
59kB
Baertram
01/27/18 08:23 PM
2.51
58kB
Baertram
09/07/17 02:28 PM
2.41
56kB
Baertram
07/04/17 01:49 PM
2.4
57kB
Baertram
02/06/17 02:34 PM
2.3
54kB
Baertram
11/21/16 03:46 PM
2.2
54kB
Baertram
11/20/16 01:56 PM
2.1
52kB
Baertram
11/12/16 02:52 PM
2.0.5
42kB
XanDDemoX
09/08/15 02:08 PM
2.0.4
42kB
XanDDemoX
08/12/15 03:04 PM
2.0.3
7kB
XanDDemoX
08/11/15 01:25 PM
2.0.2
6kB
XanDDemoX
05/23/15 01:07 AM
2.0.1
6kB
XanDDemoX
05/22/15 09:58 PM
1.0.7
5kB
XanDDemoX
05/20/15 09:41 PM
1.0.6
4kB
XanDDemoX
05/20/15 09:16 PM
1.0.5
4kB
XanDDemoX
05/18/15 10:41 PM
1.0.4
4kB
XanDDemoX
05/18/15 10:00 PM
1.0.3
4kB
XanDDemoX
05/18/15 08:10 PM
1.0.2
4kB
XanDDemoX
05/18/15 04:28 PM
0.0.6
4kB
XanDDemoX
05/18/15 02:12 PM
0.0.5
3kB
XanDDemoX
05/17/15 07:36 PM


Post A Reply Comment Options
Unread 01/16/23, 06:17 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4439
File comments: 5523
Uploads: 77
Re: 2 improvements

Tahnks for the patch and the info!
But isn't there a "use crown items" settings entry already which sets the addon to do so (or similar).
I need to check that again as I'm not the original addon developer.

Originally Posted by 2eCBqy3YdX6c
I found myself wanting this add-on to use up the crown versions before the non-crown versions of soul gems and repair kits. (i.e. Crown Repair Kits before Grand Repair Kits and Crown Soul Gems before Soul Gems)

I discovered that Crown Soul Gems have a tier value of 0 while Soul Gems have a tier value of 1. This means the official version will use up Crown Soul Gems before Soul Gems but will use up Grand Repair Kits before Crown Repair Kits.

The patch below does two things (and achieves my goal):
- Documents the Soul Gem tiers
- Reverses the sort order of Repair Kits

Maybe this will be useful to someone else...

Code:
diff --git a/Bag.lua b/Bag.lua
index dbace06..3f6fa1f 100644
--- a/Bag.lua
+++ b/Bag.lua
@@ -21,6 +21,9 @@ local function getItemStackSize(bagId, slotIndex)
 end

 local function GetSoulGems(bagId)
+       --Soul gem tiers
+       --0 = Crown soul gem
+       --1 = Soul gem
        local tbl = GetBagItems(bagId,function(i)
                if IsItemSoulGem(SOUL_GEM_TYPE_FILLED,bagId,i) == true then
                        return {
@@ -33,6 +36,7 @@ local function GetSoulGems(bagId)
        end)

        table.sort(tbl,function(x,y)
+               -- use up crown before regular
                return x.tier > y.tier
        end)

@@ -67,7 +71,8 @@ local function GetRepairKits(bagId)
        end)

        table.sort(tbl,function(x,y)
-               return x.tier > y.tier
+               -- use up crown before grand
+               return x.tier < y.tier
        end)

        return tbl
Report comment to moderator  
Reply With Quote
Unread 01/15/23, 04:56 PM  
2eCBqy3YdX6c

Forum posts: 0
File comments: 4
Uploads: 0
2 improvements

I found myself wanting this add-on to use up the crown versions before the non-crown versions of soul gems and repair kits. (i.e. Crown Repair Kits before Grand Repair Kits and Crown Soul Gems before Soul Gems)

I discovered that Crown Soul Gems have a tier value of 0 while Soul Gems have a tier value of 1. This means the official version will use up Crown Soul Gems before Soul Gems but will use up Grand Repair Kits before Crown Repair Kits.

The patch below does two things (and achieves my goal):
- Documents the Soul Gem tiers
- Reverses the sort order of Repair Kits

Maybe this will be useful to someone else...

Code:
diff --git a/Bag.lua b/Bag.lua
index dbace06..3f6fa1f 100644
--- a/Bag.lua
+++ b/Bag.lua
@@ -21,6 +21,9 @@ local function getItemStackSize(bagId, slotIndex)
 end

 local function GetSoulGems(bagId)
+       --Soul gem tiers
+       --0 = Crown soul gem
+       --1 = Soul gem
        local tbl = GetBagItems(bagId,function(i)
                if IsItemSoulGem(SOUL_GEM_TYPE_FILLED,bagId,i) == true then
                        return {
@@ -33,6 +36,7 @@ local function GetSoulGems(bagId)
        end)

        table.sort(tbl,function(x,y)
+               -- use up crown before regular
                return x.tier > y.tier
        end)

@@ -67,7 +71,8 @@ local function GetRepairKits(bagId)
        end)

        table.sort(tbl,function(x,y)
-               return x.tier > y.tier
+               -- use up crown before grand
+               return x.tier < y.tier
        end)

        return tbl
Report comment to moderator  
Reply With Quote
Unread 12/05/22, 12:43 AM  
Natakiro

Forum posts: 0
File comments: 35
Uploads: 0
Re: Re: Won't repair

Originally Posted by Baertram
Hi, what language do you play the game in?
Are you able to see this error message each time you open the settings menu of AutoRecharge or at login to the game already?
I play in English; and it only printed the error the first time it happened, afterward it just ignored my damaged gear - it wasn't a repeat error message, which made it hard to try to get a copy of. Either way, it seems that the new update fixed it! I saw in the changelog about the sliders, and the slider was indeed missing before I rolled back to an earlier version, which you obviously know, and it's there again like it should be. But thank you for the quick fix!
Report comment to moderator  
Reply With Quote
Unread 12/04/22, 05:13 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4439
File comments: 5523
Uploads: 77
Re: Won't repair

Hi, what language do you play the game in?
Are you able to see this error message each time you open the settings menu of AutoRecharge or at login to the game already?
[LAM2] Could not create slider 'Minimum condition percentage' of Auto_Recharge_LAM.
Originally Posted by Natakiro
Love this addon, been using it for ages However, I am not sure why, but this won't repair my gear as of late. I completely uninstalled the addon+saved variables and redownloaded, but it still isn't repairing; when it tried, I get this error:

user:/AddOns/Recharge/AutoRecharge.lua:453: operator + is not supported for number + nil
stack traceback:
user:/AddOns/Recharge/AutoRecharge.lua:453: in function 'ARC_RepairEquipped'
<Locals> chatOutput = F, inCombat = T, slotIndex = 2, isDebugEnabled = F, abortedDueToDeath = F, settings = [table:1]{}, kitsCount = 130, kits = [table:2]{}, total = 0, wasCrownRepairKitUsed = F, kitWasUsed = F, newCondition = 100, checkNextSlotDelay = 0, totalDelay = 0, _ = 5, slot = 2 </Locals>
user:/AddOns/Recharge/AutoRecharge.lua:618: in function 'func'
<Locals> isDebugEnabled = F, settings = [table:1] </Locals>
/EsoUI/Libraries/Globals/globalapi.lua:252: in function '(anonymous)'

I manually repaired the item I had, then wore something else down and got this error:

[LAM2] Could not create slider 'Minimum condition percentage' of Auto_Recharge_LAM.

Now it won't show any more errors but won't repair anything. Tried the previous version 2.73 and set the minimum condition to 99% to make it trigger easily; that finally worked after manually repairing my gear that was 100% broken first.
Report comment to moderator  
Reply With Quote
Unread 12/01/22, 03:56 AM  
Natakiro

Forum posts: 0
File comments: 35
Uploads: 0
Won't repair

Love this addon, been using it for ages However, I am not sure why, but this won't repair my gear as of late. I completely uninstalled the addon+saved variables and redownloaded, but it still isn't repairing; when it tried, I get this error:

user:/AddOns/Recharge/AutoRecharge.lua:453: operator + is not supported for number + nil
stack traceback:
user:/AddOns/Recharge/AutoRecharge.lua:453: in function 'ARC_RepairEquipped'
<Locals> chatOutput = F, inCombat = T, slotIndex = 2, isDebugEnabled = F, abortedDueToDeath = F, settings = [table:1]{}, kitsCount = 130, kits = [table:2]{}, total = 0, wasCrownRepairKitUsed = F, kitWasUsed = F, newCondition = 100, checkNextSlotDelay = 0, totalDelay = 0, _ = 5, slot = 2 </Locals>
user:/AddOns/Recharge/AutoRecharge.lua:618: in function 'func'
<Locals> isDebugEnabled = F, settings = [table:1] </Locals>
/EsoUI/Libraries/Globals/globalapi.lua:252: in function '(anonymous)'

I manually repaired the item I had, then wore something else down and got this error:

[LAM2] Could not create slider 'Minimum condition percentage' of Auto_Recharge_LAM.

Now it won't show any more errors but won't repair anything. Tried the previous version 2.73 and set the minimum condition to 99% to make it trigger easily; that finally worked after manually repairing my gear that was 100% broken first.
Last edited by Natakiro : 12/01/22 at 04:02 AM.
Report comment to moderator  
Reply With Quote
Unread 11/04/22, 08:15 AM  
Varnor

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: Re: Re: Re: Re: Account Wide not turning off

Originally Posted by Baertram
I also answered by email and attached you a changed version as ZIP archive, you might want to use and test this one.
If everything works fine for let's say 1 week please provide a simple feedback here and I'll update the addon then.
Is doing everything per character now. Thanks again.
Report comment to moderator  
Reply With Quote
Unread 10/27/22, 02:46 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4439
File comments: 5523
Uploads: 77
Re: Re: Re: Re: Re: Re: Re: Account Wide not turning off

I also answered by email and attached you a changed version as ZIP archive, you might want to use and test this one.
If everything works fine for let's say 1 week please provide a simple feedback here and I'll update the addon then.

Originally Posted by Varnor
Originally Posted by Baertram
Yeah, I think I see what is happening there. Somehow the difference between "per charcter" and "Account wide" SV is not assigned properly as the SV are created.
First the account wide settings are created, after that the per character are created.
But only with default values as the account wide reference is kept and not "overwritten" with the per character ones.

I'll fix this and test it a bit.
If you logout! and backup your SavedVariable file Recharge.lua,

Then copy and backup the file live/AddOns/Recharge/AutoRecharge.lua
After that edit the file live/AddOns/Recharge/AutoRecharge.lua with a text editor, scroll to line 792
where you currently find
Code:
	Recharge.settings = ZO_SavedVars:NewAccountWide(Recharge.savedVarsName, 1, "Settings", Recharge.defaultSettings, worldName)
	if not Recharge.settings.AccountWide then ZO_SavedVars:NewCharacterIdSettings(Recharge.savedVarsName, Recharge.savedVarsVersion, "Settings", Recharge.defaultSettings, worldName) end
Change the 2 lines to (copy & paste) the following lines:
Lua Code:
  1. Recharge.settings = ZO_SavedVars:NewAccountWide(Recharge.savedVarsName, 1, "Settings", Recharge.defaultSettings, worldName)
  2.     if not Recharge.settings.AccountWide then
  3.         local svCopy = ZO_ShallowTableCopy(Recharge.settings)
  4.         Recharge.settings = svCopy
  5.         Recharge.settings = ZO_SavedVars:NewCharacterIdSettings(Recharge.savedVarsName, Recharge.savedVarsVersion, "Settings", Recharge.defaultSettings, worldName)
  6.     end

Save and then login and try if this fixes it.

if not logout and go back to your backup files pelase.
I made the changes and it seems to be working now. Thank you so much
Last edited by Baertram : 10/27/22 at 02:46 AM.
Report comment to moderator  
Reply With Quote
Unread 10/27/22, 02:25 AM  
Varnor

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: Re: Re: Account Wide not turning off

Originally Posted by Baertram
Yeah, I think I see what is happening there. Somehow the difference between "per charcter" and "Account wide" SV is not assigned properly as the SV are created.
First the account wide settings are created, after that the per character are created.
But only with default values as the account wide reference is kept and not "overwritten" with the per character ones.

I'll fix this and test it a bit.
If you logout! and backup your SavedVariable file Recharge.lua,

Then copy and backup the file live/AddOns/Recharge/AutoRecharge.lua
After that edit the file live/AddOns/Recharge/AutoRecharge.lua with a text editor, scroll to line 792
where you currently find
Code:
	Recharge.settings = ZO_SavedVars:NewAccountWide(Recharge.savedVarsName, 1, "Settings", Recharge.defaultSettings, worldName)
	if not Recharge.settings.AccountWide then ZO_SavedVars:NewCharacterIdSettings(Recharge.savedVarsName, Recharge.savedVarsVersion, "Settings", Recharge.defaultSettings, worldName) end
Change the 2 lines to (copy & paste) the following lines:
Lua Code:
  1. Recharge.settings = ZO_SavedVars:NewAccountWide(Recharge.savedVarsName, 1, "Settings", Recharge.defaultSettings, worldName)
  2.     if not Recharge.settings.AccountWide then
  3.         local svCopy = ZO_ShallowTableCopy(Recharge.settings)
  4.         Recharge.settings = svCopy
  5.         Recharge.settings = ZO_SavedVars:NewCharacterIdSettings(Recharge.savedVarsName, Recharge.savedVarsVersion, "Settings", Recharge.defaultSettings, worldName)
  6.     end

Save and then login and try if this fixes it.

if not logout and go back to your backup files pelase.
I made the changes and it seems to be working now. Thank you so much
Report comment to moderator  
Reply With Quote
Unread 10/26/22, 01:50 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4439
File comments: 5523
Uploads: 77
Re: Re: Re: Re: Re: Account Wide not turning off

Yeah, I think I see what is happening there. Somehow the difference between "per charcter" and "Account wide" SV is not assigned properly as the SV are created.
First the account wide settings are created, after that the per character are created.
But only with default values as the account wide reference is kept and not "overwritten" with the per character ones.

I'll fix this and test it a bit.
If you logout! and backup your SavedVariable file Recharge.lua,

Then copy and backup the file live/AddOns/Recharge/AutoRecharge.lua
After that edit the file live/AddOns/Recharge/AutoRecharge.lua with a text editor, scroll to line 792
where you currently find
Code:
	Recharge.settings = ZO_SavedVars:NewAccountWide(Recharge.savedVarsName, 1, "Settings", Recharge.defaultSettings, worldName)
	if not Recharge.settings.AccountWide then ZO_SavedVars:NewCharacterIdSettings(Recharge.savedVarsName, Recharge.savedVarsVersion, "Settings", Recharge.defaultSettings, worldName) end
Change the 2 lines to (copy & paste) the following lines:
Lua Code:
  1. Recharge.settings = ZO_SavedVars:NewAccountWide(Recharge.savedVarsName, 1, "Settings", Recharge.defaultSettings, worldName)
  2.     if not Recharge.settings.AccountWide then
  3.         local svCopy = ZO_ShallowTableCopy(Recharge.settings)
  4.         Recharge.settings = svCopy
  5.         Recharge.settings = ZO_SavedVars:NewCharacterIdSettings(Recharge.savedVarsName, Recharge.savedVarsVersion, "Settings", Recharge.defaultSettings, worldName)
  6.     end

Save and then login and try if this fixes it.

if not logout and go back to your backup files pelase.
Last edited by Baertram : 10/26/22 at 01:52 AM.
Report comment to moderator  
Reply With Quote
Unread 10/25/22, 11:45 PM  
Varnor

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: Account Wide not turning off

Originally Posted by Baertram
NEVER do that!
SavedVariables got NOTHING to do with the files in the live/AddOns folders!
live/AddOns/* contains the addons source code which creates the SV files.
SV files are only tables storing your settings of the addon.
If you overwrite the SV files (never do while the game is started! Logout and close the game or you loose data!!!) with addon files it will be erroring ingame and/or just behaving totally wrong!

My fault:
The filename for the SavedVariables is live/SavedVariables/Recharge.lua not AutoRecharge.lua
-> It's always the name of the addon folder, so if the addon folder is live/AddOns/Addon123 then the file will be live/SavedVariables/Addon123.lua

If the file is missing in the live/SavedVariables folder there might be problems:
1) Ether the addon creating that file was never run before
2) Your AntiVirus and protection tools blocking access to that folder live/AddOns or live/SavedVariables, so allow it in the allowed/exclusion lists
3) Your ame client crashed as the SV file will be saved and read only as the client logouts, reloads the UI via /reloadui in chat or at the addon page where you click lower right on "Reload UI", or if you zone to another zone where there was a loading screenin between. If you crash somewhere during game play the file might ge corrupt or be missing in total.

A backup of your live/SavedVariables folder is thus recommanded once a week e.g. to at least save your addons saved data a bit.
One can restore the files that get corrupt from the backup then and only is missing the "delta" between save time of backup and current date.
Sent correct file it was in the folder with steps to replicate. Looking at the lua it appears that at the character level "minConditionPercent" is always zero and the value is only at the account level even though that is turned off....
Report comment to moderator  
Reply With Quote
Unread 10/25/22, 10:36 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4439
File comments: 5523
Uploads: 77
Re: Re: Re: Account Wide not turning off

So it was case B however when I went to copy the file it did not exist, so I copied live/Addons/Recharge/AutoRecharge.lua across to SavedVariables but that made no difference to the problem (still maintaining a single setting). I am using latest versions 2.73 and 2.0 r34.
NEVER do that!
SavedVariables got NOTHING to do with the files in the live/AddOns folders!
live/AddOns/* contains the addons source code which creates the SV files.
SV files are only tables storing your settings of the addon.
If you overwrite the SV files (never do while the game is started! Logout and close the game or you loose data!!!) with addon files it will be erroring ingame and/or just behaving totally wrong!

My fault:
The filename for the SavedVariables is live/SavedVariables/Recharge.lua not AutoRecharge.lua
-> It's always the name of the addon folder, so if the addon folder is live/AddOns/Addon123 then the file will be live/SavedVariables/Addon123.lua

If the file is missing in the live/SavedVariables folder there might be problems:
1) Ether the addon creating that file was never run before
2) Your AntiVirus and protection tools blocking access to that folder live/AddOns or live/SavedVariables, so allow it in the allowed/exclusion lists
3) Your ame client crashed as the SV file will be saved and read only as the client logouts, reloads the UI via /reloadui in chat or at the addon page where you click lower right on "Reload UI", or if you zone to another zone where there was a loading screenin between. If you crash somewhere during game play the file might ge corrupt or be missing in total.

A backup of your live/SavedVariables folder is thus recommanded once a week e.g. to at least save your addons saved data a bit.
One can restore the files that get corrupt from the backup then and only is missing the "delta" between save time of backup and current date.
Last edited by Baertram : 10/25/22 at 10:39 AM.
Report comment to moderator  
Reply With Quote
Unread 10/25/22, 07:47 AM  
Varnor

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Account Wide not turning off

Originally Posted by Baertram
Originally Posted by Varnor
Hi - First off love this add-on thanks so much for keeping it going. Up to this point I have been using the account wide settings but recently started a new character and as they are lower level wanted to tweek the repair settings. Did this by turning off account wide, however when I make an adjustment to the low level it seems to apply to every character then change them an it applies to the low level.

Just wondering do I need to delete something to get individual settings?
Hi, thanks for your feedback!
Nomally it should differentiate the settings automatically.

Are you using the most up2date version of the addon AND the needed dependencies are the newest versions too?
Very important: Is this happenign too if you ONLY enable AutoRecharge and the needed dependencies too?
If this is not happening if you turn off ALL other addons and dependencies, then please find out first which other addon is caussing this for you if you got AutoRechrge and that other addon enabled! I cannot do this as your addons and libs and settings of the addons cannot be known or setup the same on my PC, sorry!

IF the error happens with only AutoRecharge and needed libraries enabled:
Are you able to send me your SavedVariables files please from live/SavedVariables/AutoRecharge.lua
to [email protected] by email ?

Important:
Please tell me in that email the server you play on, the character name you have added "new" (your named "low level" char)
and what setting you tried to change, and what happened then in steps from login, to settings menu, to chaning the setting, to what happens next, what was done then, etc.
That way I can test with your settings, just replace it with my account and character name to test with. Many thanks!
So it was case B however when I went to copy the file it did not exist, so I copied live/Addons/Recharge/AutoRecharge.lua across to SavedVariables but that made no difference to the problem (still maintaining a single setting). I am using latest versions 2.73 and 2.0 r34.
Report comment to moderator  
Reply With Quote
Unread 10/25/22, 06:14 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4439
File comments: 5523
Uploads: 77
Re: Account Wide not turning off

Originally Posted by Varnor
Hi - First off love this add-on thanks so much for keeping it going. Up to this point I have been using the account wide settings but recently started a new character and as they are lower level wanted to tweek the repair settings. Did this by turning off account wide, however when I make an adjustment to the low level it seems to apply to every character then change them an it applies to the low level.

Just wondering do I need to delete something to get individual settings?
Hi, thanks for your feedback!
Nomally it should differentiate the settings automatically.

Are you using the most up2date version of the addon AND the needed dependencies are the newest versions too?
Very important: Is this happenign too if you ONLY enable AutoRecharge and the needed dependencies too?
If this is not happening if you turn off ALL other addons and dependencies, then please find out first which other addon is caussing this for you if you got AutoRechrge and that other addon enabled! I cannot do this as your addons and libs and settings of the addons cannot be known or setup the same on my PC, sorry!

IF the error happens with only AutoRecharge and needed libraries enabled:
Are you able to send me your SavedVariables files please from live/SavedVariables/AutoRecharge.lua
to [email protected] by email ?

Important:
Please tell me in that email the server you play on, the character name you have added "new" (your named "low level" char)
and what setting you tried to change, and what happened then in steps from login, to settings menu, to chaning the setting, to what happens next, what was done then, etc.
That way I can test with your settings, just replace it with my account and character name to test with. Many thanks!
Report comment to moderator  
Reply With Quote
Unread 10/25/22, 01:03 AM  
Varnor

Forum posts: 0
File comments: 5
Uploads: 0
Account Wide not turning off

Hi - First off love this add-on thanks so much for keeping it going. Up to this point I have been using the account wide settings but recently started a new character and as they are lower level wanted to tweek the repair settings. Did this by turning off account wide, however when I make an adjustment to the low level it seems to apply to every character then change them an it applies to the low level.

Just wondering do I need to delete something to get individual settings?
Report comment to moderator  
Reply With Quote
Unread 08/20/22, 07:47 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4439
File comments: 5523
Uploads: 77
Re: Error when using slider for %

Yes, wait for a fix
Thanks for telling me

Edit:
Seems I had uploaded an older version where those fixes weren't in... Fix is incoming


Originally Posted by scarlos
I have this error whenever i try to change slider on percentage. https://i.imgur.com/MoWitJk.png
I tried :
- Deleting all my addons
- Reinstalling everything
- use PTS github version

Any idea?
Last edited by Baertram : 08/21/22 at 05:24 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.