I am fairly new to WoW AddOn programming and I am still a novice at LUA coding.
I am having problems creating SavedVariables for my AddOn.
I am trying to save the showIcon and showText states for my AddOn Fubar_ReadyFu, but have been unable to find a solution that works thus far.
I would appreciate it if someone could point me in the right direction as to how to get my AddOn to save variables correctly.
This is the latest source that I'm working with:
Ace2 and FuBarPlugin-2.0 aren't really supported anymore. At first glance your code looks fine but if there's an issue in Ace2 or FuBarPlugin causing this it most likely won't get fixed.
Is it only the showIcon and showText that aren't saving properly? Everything else works?
Those 2 properties actually begin with "nil" setting ages ago, rather than true or false, and you can force toggle them twice on initialize (to revert to the original setting) to make them either true/false. Not sure if this is fixed yet.
I am fairly new to WoW AddOn programming and I am still a novice at LUA coding.
I am having problems creating SavedVariables for my AddOn.
I am trying to save the showIcon and showText states for my AddOn Fubar_ReadyFu, but have been unable to find a solution that works thus far.
I would appreciate it if someone could point me in the right direction as to how to get my AddOn to save variables correctly.
This is the latest source that I'm working with:
FuBar_ReadyFu.toc
embeds.xml
ReadyFu.lua
I am using the following libraries:
AceAddon-2.0
AceConsole-2.0
AceDB-2.0
AceEvent-2.0
AceLibrary
AceLocale-2.2
AceOO-2.0
Dewdrop-2.0
FuBarPlugin-2.0
Tablet-2.0
Thank you,
Ailirra
Those 2 properties actually begin with "nil" setting ages ago, rather than true or false, and you can force toggle them twice on initialize (to revert to the original setting) to make them either true/false. Not sure if this is fixed yet.
Everything else in the AddOn works properly.
This is how my SavedVariables file gets saved currently.
RaadyFuDB = nil
...and your code says this:
...which is it? That's your problem.
Correcting the .toc file fixed the problem.
I can't believe I didn't catch that.
Logic errors are the single hardest errors to debug.
...in a language without strict data types, where everything is declared/defined on first use and contained in the global scope by default.
Touché.