Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: Fizzlemizz
Forum: AddOn Help/Support 09-04-20, 01:36 PM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
You're not actually initialising itemsCnt until...

You're not actually initialising itemsCnt until after getItemAction() is called or the set function is called with a value.

If the defaults table doesn't have an itemsCnt setting then...
Forum: AddOn Help/Support 09-04-20, 10:21 AM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
On closer look, you're creating all your...

On closer look, you're creating all your functions a globals. While that's entirely up to you, the global space is shared by all other 3rd party addons and the the Blizzard UI. Blizzard tends use the...
Forum: AddOn Help/Support 09-04-20, 10:03 AM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
You're creating myOptionsTable when your .lua...

You're creating myOptionsTable when your .lua file is loaded which is before the system has loaded your saved variables:

game reads your .lua file does what it needs at that stage (in this case...
Forum: AddOn Help/Support 09-03-20, 08:47 PM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
One place would be right before you...

One place would be right before you :RegisterOptionsTable(...) assuming you do this after the saved variables have loaded.

If that doesn't work (or that's what you are already doing) then showing...
Forum: AddOn Help/Support 09-03-20, 02:57 PM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
From the error, it seems you are creating the...

From the error, it seems you are creating the selectAction table too early ie. before AMine.db exists in the game (before AceDB has initialised it or before the game has loaded it).
Forum: AddOn Help/Support 09-03-20, 01:24 PM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
I'm not sure of the correlation between AMineDB,...

I'm not sure of the correlation between AMineDB, AMine.db(used in the OP) and the creation of the selectAction table in this context?
Forum: AddOn Help/Support 09-03-20, 01:00 PM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
I assumed AMine.db was example code taken from...

I assumed AMine.db was example code taken from elsewhere

Are you sure you're not creating the selectAction table before the saved variables have loaded (ie. before you've initalised AceDB)?
Forum: AddOn Help/Support 09-03-20, 10:20 AM
Replies: 17
Views: 13,387
Posted By Fizzlemizz
The db being referred to is a saved variables...

The db being referred to is a saved variables table setup using AceDB. Strip off everything before the last dot and pretend like it's a simple variable.

max = AMine.db.profile.actionCnt

local...
Showing results 1 to 8 of 8