ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Clean Savedvariables (https://www.esoui.com/forums/showthread.php?t=2462)

Dingodan 11/23/14 07:01 AM

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?

xMovingTarget 03/01/15 01:39 PM

I would like that too!

Any way to do it without going through each file manually?

Baertram 03/01/15 03:37 PM

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

merlight 03/01/15 08:53 PM

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.

xMovingTarget 03/04/15 11:45 AM

Quote:

Originally Posted by merlight (Post 19146)
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.

siavash 03/29/21 12:28 AM

thank you
 
thank you merlight it worked perfect

Baertram 03/29/21 04:38 AM

btw: Same can be done via merTorchbug. You need to check the txt file of the addon (e.g. if the addon foldername is MyAddon1 open the MyAddon1.txt file and read the lines
Code:

## SavedVariables: <tableName1> <tableName2> ...
<tableName1> 2 and so on are the global varibale names which you are able to inspect ingame then via /ZGOO <tableName1> or /tbug <tableName1>

Torchbug also provides a list of addons ingame if you type /tbug addons or just /tbug (or /tb) and open teh global inspector with the tabs "Controls", "Addons" and so one. I might add another for the SavedVariables.

And then you'll see all contents of the SV table and are able to right click it to change it, or to edit it. By choosing NIL from the context menu or removing the entry text of the line (clear it and press return key) it will be set = nil

This also is deleting that dta without any backup possibilities!!! So make sure to copy and keep a backuped file as you were logged out before!!!


All times are GMT -6. The time now is 05:05 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI