AceDB not persisting options between sessions
Hi all, I maintain a simple addon that gives you random hearthstone every time, I'm trying to make an options panel for you to select which HS you'd like to be in the random pool.
I've changed my code so the options are taken into account and that works, there's a page for the addon with checkboxes for all HS and if a HS is unchecked it never gets selected. However once I close the game or reload these options vanish and I can't find any reference to them in Saved variables. The bits I think are important: Code:
local function InitializeDB() Full version if needed. I was looking at examples of other addons and the ACE docs and seems to me this should just work and ran out of ideas of what to check, debug or try. I'm sorry my LUA is horrible, this is my first addon and LUA project ever when I decided to update someone else's dead addon. Thanks everyone for their time. |
Your .toc file requires a ## SavedVariables: entry that matches the name of your LibStub("AceDB-3.0"):New(...) setting
eg: Code:
## SavedVariables: RandomHearthToyDB There is also ## SavedVariablesPerCharacter: to save the information seperately for each character. Many addons will create a single "global" variable set (## SavedVariables) and manage individual character information within that using profiles (sets of information that can be assigned to one or more characters) More information Here |
I'm an idiot, that was what I was missing!
Thank you |
All times are GMT -6. The time now is 06:23 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI