View Single Post
12-15-09, 05:35 AM   #31
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah -- nUI does a similar thing... it creates the "default" settings for the saved variables when the addon it loaded. But what appears to be happening here is that if the user creates a character and exits WoW without having logged in on the character, WoW is creating a saved variables file with the saved variables set to empty tables. Once that happens, then when VARIABLES_LOADED fires WoW has overwritten the "default" settings with an empty table. I've never seen this happen until Patch 3.3

What I'm doing now is making a copy of the default settings in the "ADDON_LOADED" event and at the top of the "VARIABLES_LOADED" event I'm checking to see if the table is empty and if it is I replace it with the default settings -- at least that's what I'm testing as a solution in this file.

We'll see if that fixes it.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/