AceDB not building table
I've been at this for hours and I'm not sure why it isn't working. I've been successful with AceDB with my previous Addon, but the only thing ending up in this addon's SavedVariables table is the profile keys; the data shown in the "defaults" table below is nowhere to be found.
File Structure Code:
[root_folder] xml Code:
TOC File Code:
## Interface: 70300 Lua Code:
|
I don't know Ace at all so I might be missing something but I see nowhere that defaults gets written (copied) to the SavedVariables table.
|
Line 20 in core.lua should be doing it. According to the official AceDB docs, it's correct. Just not sure why the table isn't showing up :(
|
iirc, the only time something gets written to the saved variables with Ace3-DB is when a profile has changed a setting from the defaults.
|
Not sure, you create defaults for char but you only define the global db?
|
What Seerah said. AceDB does not write anything to the SV file except for the profile keys, unless something has been changed by the user. If the value in the defaults table is the same as the user settings, there is no change, therefore nothing is written into the saved variables file.
Rilgamon, what Sweetsour wrote in his .toc is correct for AceDB, although you can use saved variables per character as well if you wanted. However, I always felt that was unnecessary since AceDB can use any combination of global, profile, char, faction, and a few other variants. I do have one suggestion to make about line 20. Change it to include the true argument at the end. This will create a profile called Default when loaded into the game. Lua Code:
|
Oh, I just noticed that your OptionalDeps line in your .toc is missing LibStub and CallbackHandler-1.0, which should be listed before Ace3.
... And double check the order of your listed Ace3 components in load_libraries.xml. The listed order should exactly match the order listed in Ace3.toc. You do not need to list all the components if you aren't using them, but whichever ones you are using will depend on the load order of other components. |
All times are GMT -6. The time now is 06:45 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI