ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   how to know which id number = character name ? (https://www.esoui.com/forums/showthread.php?t=7057)

Anceane 05/24/17 03:07 AM

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

Ayantir 05/24/17 04:32 AM

there is a subkey $lastcharactername in the pool of values inside the block, it contains name of the char.

Anceane 05/24/17 04:59 AM

Quote:

Originally Posted by Ayantir (Post 31062)
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

Dolgubon 05/24/17 05:48 AM

Wait what did I do?

Anceane 05/24/17 06:17 AM

Quote:

Originally Posted by Dolgubon (Post 31067)
Wait what did I do?

:p

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!!!

Ayantir 05/24/17 10:53 AM

$LastCharacterName is added by the constructor ;)

Anceane 05/24/17 11:10 AM

Quote:

Originally Posted by Ayantir (Post 31076)
$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


All times are GMT -6. The time now is 10:15 PM.

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