Quantcast Clean Savedvariables - ESOUI
Thread Tools Display Modes
11/23/14, 07:01 AM   #1
Dingodan
 
Dingodan's Avatar
Join Date: Apr 2014
Posts: 47
Clean Savedvariables

Hello,

I search for an Addon or an external Tool to clean easy the SavedVariables from old Characters.

My SavedVariables have nearly all Character stored that I have created and deleted from the beginning of the ESO Beta till now. And the bugged entries from the earlier ESO Updates (ex. wrong Account Name).

I've tried to clean these SavedVariables but I'm frustrated about my non existing lua knownlegde. I dunno how many (,),{,},[,] should be in the correct order. I messed up some SavedVariables and have to setup some Addons setting completely new.

Does anyone have an solution for me to clean it without deleting all SavedVariables and begin to setup all used Addons?
  Reply With Quote
03/01/15, 01:39 PM   #2
xMovingTarget
Join Date: Jun 2014
Posts: 3
I would like that too!

Any way to do it without going through each file manually?
  Reply With Quote
03/01/15, 03:37 PM   #3
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,530
I don't know such a tool but if you use some good and free text editor, like Notepad++, you would be able to see the SavedVariable file contents more clearly.

The { and } would build blovks that you can close and open by clicking the - and + symbols next to it.
If I remember right you can even jump from the opening { to the closing } by help of keybindings.
This way you can see which part belongs together.

If you just want to delete old character settings you need to find the character's name inside the file first.
An example file will look like this e.g.:

Lua Code:
  1. ExampleSavedVars =
  2. {
  3.     ["Default"] =
  4.     {
  5.         ["@AccountName"] =
  6.         {
  7.             ["YourOldCharacterName"] =
  8.             {
  9.                 ...
  10.             } -- closes YourOldCharacterName
  11.  
  12.             ["YourCurrentCharacterName"] =
  13.             {
  14.                 ...
  15.             } -- closes YourCurrentCharacterName
  16.  
  17.         } -- closes @AccountName
  18.     } -- closes Default
  19. } -- closes ExampleSavedVars

You can search for "YourOldCharacterName" and everything that is in between the opening { and the closing } after that username is the saved settings part for this character.

So if you use a good text editor, click the - symbol after your old character name and then select (by mouse or keyboard SHIFT+Key down) the line "YourOldCharatcerName" + the minimized { ... } block you are able to delete the whole block at once.

Account wide settings:
There are also some account wide settings which apply to each character! You can change them but deleting them will remove the settings for all your characters!
They look like this:

Lua Code:
  1. Example_AccountWide_Settings =
  2. {
  3.     ["Default"] =
  4.     {
  5.         ["@AccountName"] =
  6.         {
  7.             ["$AccountWide"] =
  8.             {
  9.             } -- closes $AccountWide
  10.         } -- closes @AccountName
  11.     } -- closes Default
  12. } -- closes Example_AfccountWide_Settings
  Reply With Quote
03/01/15, 08:53 PM   #4
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 679
Hm, I remember when I first read this request. This time I tried something. Not sure the general user will consider Zgoo more comfortable than text editor, but whatever....

Here's modified Zgoo

Install, log in, type:
/zgoo sv

A window will pop up with a list of of table names from various add-ons. Hit the [+] button to see contents. Most of the tables will look like this when expanded:
- AzurahDB
-- Default
--- @AccountName
---- "Ann" = table
---- "Bob" = table
etc.

Now if you want to delete Bob's data, hit the [DEL] button on the left. You will have to confirm, it's really dangerous and irreversible. /reloadui and Bob's data should be gone from Azurah's SavedVars.
  Reply With Quote
03/04/15, 11:45 AM   #5
xMovingTarget
Join Date: Jun 2014
Posts: 3
Originally Posted by merlight View Post
Hm, I remember when I first read this request. This time I tried something. Not sure the general user will consider Zgoo more comfortable than text editor, but whatever....

Here's modified Zgoo

Install, log in, type:
/zgoo sv

A window will pop up with a list of of table names from various add-ons. Hit the [+] button to see contents. Most of the tables will look like this when expanded:
- AzurahDB
-- Default
--- @AccountName
---- "Ann" = table
---- "Bob" = table
etc.

Now if you want to delete Bob's data, hit the [DEL] button on the left. You will have to confirm, it's really dangerous and irreversible. /reloadui and Bob's data should be gone from Azurah's SavedVars.
Thanks mate, that was very helpful. And not that tedious as going through all the files.

Last edited by xMovingTarget : 03/04/15 at 12:06 PM. Reason: typo
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Clean Savedvariables

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off