View unanswered posts | View active topics It is currently November 23rd, 2024, 14:11



Reply to topic  [ 7 posts ] 
 WoW addon settings backup and restoring from backup 
Author Message
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post WoW addon settings backup and restoring from backup
I'm having the most awesome day today. Not only did I lose just about all of my addon settings (including multiple hours of work setting up WeakAuras with custom triggers), but I also figured out I happened to buy the most buggy SSD available on the market...

Anyway, due to the loss of addon settings I was trying to see if it was possible to restore the settings and it seems there is a way (provided you don't do what I did). Just thought I'd share with you guys, should your computer crash and corrupt your addon settings.

WoW stores addon settings in:
WTF\Account\[Account name]\SavedVariables
WTF\Account\[Account name]\[Server name]\[Character name]\SavedVariables

The former is the most interesting, as this is where most addons put their settings (so they are available to all your characters on all realms). Profiles and such.

The files in those folders are named by the addon and have the file extension .lua. The backup files have the extension .lua.bak, for example:
Skada.lua
Skada.lua.bak

I'm not 100% about the following, but it seems to be how it works:

  • When WoW shuts down there is an exit handler that copies the content from the .lua files to the corresponding .lua.bak files and stores whatever changes you made ingame in their respective .lua files.
  • If your WoW crashes in a way that interrupts this handler and corrupts the data (PC crashes for instance) only the .bak files are intact.
  • Following a crash it seems like WoW actually reads the settings from the .bak files, but then overwrites them with new empty settings files as soon as you shut down WoW following a crash.
  • On the subsequent launch (which is now the second launch of WoW following the crash) the empty settings files are loaded.

At this point I believe you still have the possibility to restore your addon settings, if you immediately copy your WTF folder WITHOUT SHUTTING DOWN WoW! After that you can shut down WoW and do a lot of tedious file renaming from .lua.bak to .lua (something like Fast File Renamer might be able to do the job), but at least you will still have your addon settings.

Obviously I didn't keep WoW open (since I didn't know how WoW does backup of addon settings). Time to set up my UI again...

_________________
Image
Guild Master of Frenzy


September 14th, 2013, 18:52
Profile
Member
User avatar

Joined: February 16th, 2013, 21:17
Posts: 667
Post Re: WoW addon settings backup and restoring from backup
christ that sounds like anti-fun

i'm having a problem right now with Miks Scrolling Battle Text not using my preset MSBT cooline font for crits, and using MSBT Porky instead (which looks awful)

and ElvUI keeps resetting my UI scale which is fun??? also castbars keep turning off

the joy of patches

_________________
Image


September 14th, 2013, 18:55
Profile
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post Re: WoW addon settings backup and restoring from backup
Currently enjoying the prospect of reinstalling WoW on an old harddrive, because my PC keeps crashing when I'm doing nothing in Windows.

_________________
Image
Guild Master of Frenzy


September 14th, 2013, 18:59
Profile
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post Re: WoW addon settings backup and restoring from backup
I've set up Git for my interface/WTF folders.

For those who don't know what that is it's a versioning system. Basically means whenever I tell it to save my settings I get an exact snapshot of all my interface/WTF folders at that time. As such it'll function as backup, except it'll take up much less space and allow me to revert back to any version I saved.

Usually requires manual input to save a version, but it can be set up to run via the Windows Task Scheduler.

I may set up a Git server at the website, which means it could also be used to synchronize settings/addons across multiple computers.

If anyone is interested, just say so and I'll explain how to set it up.

_________________
Image
Guild Master of Frenzy


September 15th, 2013, 0:13
Profile
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post Re: WoW addon settings backup and restoring from backup
Woodgnome wrote:
I've set up Git for my interface/WTF folders.
And thank fuck that I did! Already had to use it, when my PC crashed after I set up everything bar one WeakAura.

_________________
Image
Guild Master of Frenzy


September 15th, 2013, 2:52
Profile
Member

Joined: June 23rd, 2013, 13:01
Posts: 26
Post Re: WoW addon settings backup and restoring from backup
Git is a great versioning system. You can use http://www.bitbucket.org instead of setting it up on the Frenzy server (saves some config and maintenance work). They give free private projects, while on GitHub you have to pay for that. I use Bitbucket as my repository for various stuff i hold in Git.


September 15th, 2013, 14:36
Profile
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post Re: WoW addon settings backup and restoring from backup
That's pretty cool actually.

_________________
Image
Guild Master of Frenzy


September 15th, 2013, 15:03
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.