Thread Tools Display Modes
05/24/17, 03:07 AM   #1
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
how to know which id number = character name ?

I am asking this, as i realised that a lot of my characters settings addons are saved in savedvariables 2 times under different denomination.

First : number ID
second : character name

Is there a way to find which number ID = name character so i can purge some of the settings ?

Also, old characters deleted months ago still appear on some (not all) savedvariables, though those savedvariable have been deleted and started a new.

Any idea how to remove them definitily ?

Thank you
  Reply With Quote
05/24/17, 04:32 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
there is a subkey $lastcharactername in the pool of values inside the block, it contains name of the char.
  Reply With Quote
05/24/17, 04:59 AM   #3
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Originally Posted by Ayantir View Post
there is a subkey $lastcharactername in the pool of values inside the block, it contains name of the char.
Yes i found it but this subkey ony exist in some addons, or is simply empty.

So i went the long way :
1 - found an addon who had that well referenced with my character names. (thanks to Dogulbon)
2 - found a paper and pen and copyed for each actual real character the number and the name.
3 - going through 23867 lines (for example in Dressing room saved var), and delete each wrong information for character not actually existing.
(kept an old version in case it broke the new saved variable).
4 - and going on and on with all the variables with no good references

Happily i have a lot of patience .....

:P

--:P doing actually Destination which have 51936 lines, and ... have characters and numbers but not the $lastcharactername *cry*
Done : for my 9 characters i have only now 12467 lines of real data

Last edited by Anceane : 05/24/17 at 05:42 AM.
  Reply With Quote
05/24/17, 05:48 AM   #4
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
Wait what did I do?
  Reply With Quote
05/24/17, 06:17 AM   #5
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Originally Posted by Dolgubon View Post
Wait what did I do?


your addon saved variables is very helpfull.
I was able to know which character had those series of number, and find out which one i could definitily remove as they were deleted long ago.

["87960930XXXXXXXX"] =
["$LastCharacterName"] = "XXXXXXXXXXX", (loved that info particularly)

Thanks!!!
  Reply With Quote
05/24/17, 10:53 AM   #6
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
$LastCharacterName is added by the constructor
  Reply With Quote
05/24/17, 11:10 AM   #7
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Originally Posted by Ayantir View Post
$LastCharacterName is added by the constructor
ROFL ... constructor ? errr way above my level clearance i think :P

No worry, though, all the little things i did this morning works like a charm
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » how to know which id number = character name ?

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