How to save "SavedVariables" without Quitting WOW

Feb 16, 2009 at 9:44 PM
THANK YOU SO MUCH for Addon Studio . . . it made things MUCH easier for me.

Now that I have my addon working, one problem that I have is that I have a couple of long term "character timers".

It all works great, accept every now and then WOW will hang my system forcing a system reboot.

In these cases, since the addon doesn't do a normal exit with WOW the value of the timer is lost . . . and so it is now off by the two hours I was on that session.

I'd like some way to tell WOW to save my Save Variables . . . like once every 15 minutes or so . . . but the only API I see for this on WOWWIKI is ReloadUI() which seems a tad extreme.

Is there a "save my variables now" function . . . or a function that has this side effect that is more subtle than ReloadUI()?

Frank
Coordinator
Feb 17, 2009 at 12:41 AM
Unfortunately no, the only way to save variables is to have the UI reload either by ReloadUI(), logging out, exiting, or zone changes.  This is done so that applications can't communicate into Wow in real time.


Cheers,
-Dan