Poster: Dagnar at 9/13/2005 10:24:37 PM PDT Subject: Slouken: settings being loaded from where? |
| |
I followed the correct procedure for updating addon data to 1.7 format. However, it left lots of stuff in the WTF\Accounts\<name>\SavedVariables.lua file (more below). I manually cleaned up SavedVariables.lua and deleted all copies of SavedVariables.lua anywhere under the Worlds of Warcraft directory (including "Copy of"s and ".lua.bak"s). I then edit SavedVariables\Titan.lua and change some settings (yes, they are correct lua and valid values for Titan and I have WoW closed). When I load up the appropriate character, the settings revert back to the old settings (which are not the default settings). Where are the settings coming from? I can't find anything that looks like a cache or any other obvious place it could come from.
I think I found the problem with stuff being left in SavedVariables.lua. If the addon has "## SavedVariables: <variable>" line and a RegisterForSave call in the lua code, it will be saved both places (old and new), right? In this case, I can safely remove the RegisterForSave call in the lua, right?
| | | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=216185&p=#post216185 | | | Poster: slouken at 9/13/2005 10:27:09 PM PDT Subject: Re: Slouken: settings being loaded from where? |
| |
Q u o t e: I followed the correct procedure for updating addon data to 1.7 format. However, it left lots of stuff in the WTF\Accounts\<name>\SavedVariables.lua file (more below). I manually cleaned up SavedVariables.lua and deleted all copies of SavedVariables.lua anywhere under the Worlds of Warcraft directory (including "Copy of"s and ".lua.bak"s). I then edit SavedVariables\Titan.lua and change some settings (yes, they are correct lua and valid values for Titan and I have WoW closed). When I load up the appropriate character, the settings revert back to the old settings (which are not the default settings). Where are the settings coming from? I can't find anything that looks like a cache or any other obvious place it could come from.
Did you find anywhere where the old settings were being saved?
Q u o t e: I think I found the problem with stuff being left in SavedVariables.lua. If the addon has "## SavedVariables: <variable>" line and a RegisterForSave call in the lua code, it will be saved both places (old and new), right? In this case, I can safely remove the RegisterForSave call in the lua, right?
Yep, but the data in both the old and new places should match... ?
| | | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=216185&p=#post216189 |
View all recent official Blue Posts
|