WoW:Saving variables between game sessions: Difference between revisions

m
Move page script moved page Saving variables between game sessions to WoW:Saving variables between game sessions without leaving a redirect
m (Move page script moved page Saving variables between game sessions to WoW:Saving variables between game sessions without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{UIHowTo}}
{{wow/uihowto}}
An Addon may need to save settings and data between game sessions - that is, some information may need to persist through a user log out. To enable this, the addons may specify a number of variables to be saved to disk when the player's character logs out of the game, and restored when the character logs back in. Variables that are saved and restored by the client are called SavedVariables.
An Addon may need to save settings and data between game sessions - that is, some information may need to persist through a user log out. To enable this, the addons may specify a number of variables to be saved to disk when the player's character logs out of the game, and restored when the character logs back in. Variables that are saved and restored by the client are called SavedVariables.


Line 74: Line 74:
* <tt>WTF\Account\ACCOUNTNAME\SavedVariables.lua</tt> - Blizzard's saved variables.
* <tt>WTF\Account\ACCOUNTNAME\SavedVariables.lua</tt> - Blizzard's saved variables.
* <tt>WTF\Account\ACCOUNTNAME\SavedVariables\AddOnName.lua</tt> - Per-account settings for each individual AddOn.
* <tt>WTF\Account\ACCOUNTNAME\SavedVariables\AddOnName.lua</tt> - Per-account settings for each individual AddOn.
* <tt>WTF\Account\ACCOUNTNAME\RealmName\CharacterName\SavedVariabales\AddOnName.lua</tt> - Per-character settings for each individual AddOn.
* <tt>WTF\Account\ACCOUNTNAME\RealmName\CharacterName\SavedVariables\AddOnName.lua</tt> - Per-character settings for each individual AddOn.


Deleting the WTF folder, or simply moving its contents will therefore reset the settings for all of your addons.
Deleting the WTF folder, or simply moving its contents will therefore reset the settings for all of your addons.
Anonymous user