View Single Post
01-18-18, 06:50 PM   #5
gempir
A Black Drake
 
gempir's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2015
Posts: 84
Ok yeah true. But I have little experience with AceConfig and the tutorials are pretty straightforward with AceDB.

AceDB doesn't seem to be the problem even, probably just me being stupid.

Edit:

So after removing AceDB, Settings/Vars save fine, I'm not sure where I went wrong with AceDB. I'd actually like to use AceDB because profiles could be very useful for my addon. If anyone has any input, I'm thankful.

Here is the relevant code: https://github.com/gempir/gempUI/blo.../config.lua#L3

I've added a Menu for setting profiles which looks nice but changing profile and reloading just resets to Default again.
It seems AceDB can't write into saved vars for some reason.


I also have another question:

When do i load saved vars? I currently have a callback function that fire when they are loaded and then executes whatever you pass it. But how do I scale that efficently. I have stuff like actionbars which require a length or so given, so should I wait even initalizing those bars until the saved vars are loaded?

Last edited by gempir : 01-19-18 at 08:41 AM.
  Reply With Quote