|
Post by AvaCam on Apr 23, 2008 20:45:31 GMT -5
Hey Moongaze (or anyone else who is familiar with the workings of wow addons), how do the addons define whether their settings are character-specific or account-wide?
I have some addons that I would like to modify to share their settings and data between my characters but were designed to be character-specific.
|
|
|
Post by Moongaze on Apr 23, 2008 22:20:32 GMT -5
In the .TOC file for the addon, you'll find one or both of these lines (I'm using mine as an example): ## SavedVariables: LunarSphereGlobal ## SavedVariablesPerCharacter: LunarSphereSettings, LunarSpeechLibrary In this example, the "SavedVariables" line will save the following variables into the LunarSphere.lua file which is in the global SavedVariables file (the first folder you find while exploring the WTF folder). The "SavedVariablesPerCharacter" line will save the following variables into the LunarSphere.lua file which is found in your character's SavedVariables folder. It is important to remember that since these variables will be saved via a specific addon, such as LunarSphere, the SavedVariables file name will be the same as the addon's name, such as LunarSphere.lua. You can define multiple variables per section, and they will all be saved to the file. So, if you want your data to be stored for ALL characters, take all of the "SavedVariablesPerCharacter" variable names and paste them in the standard "SavedVariables" part. Also, make sure that the global and local (per character) variables don't contain the same name. If you have a variable named "myVariable" in the global and local part, WOW will sometimes freak out and save the data to the wrong place, and it might not be globally accessable the next time you log in. Also, doing so will probably wipe your settings for your addon, so you'll need to reset everything to the way you want so that they will be saved to the global space. Or you can copy the contents of the local saved variables file and APPEND it to the global one, so all the data is there. Hope this helps you out
|
|
|
Post by AvaCam on Apr 25, 2008 4:51:59 GMT -5
Thanks for the insight Moongaze. That was exactly the info I was looking for
|
|