WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Legorol at 3/9/2006 7:05:34 PM PST
Subject: [1.10 Bug] SavedVariables.lua isn't loading
   Issue: it appears that in 0.10, variables saved via RegisterForSave by AddOns aren't being loaded back in. It's as if SavedVariables.lua isn't getting loaded for AddOns, only the portions of it pertaining to the default Blizz UI. Exact steps to reproduce:

1) Create an AddOn "SavingTest" like this:

SavingTest.toc
## Interface: 11000
## Title: SavingTest
SavingTest.lua

SavingTest.lua
RegisterForSave("Indicator");

2) Log in to the game. Type /script Indicator=true
3) To verify, type /script message(tostring(Indicator)), it comes up with message box saying "true".
4) Exit the game. Open up WoW\WTF\Account\<acc.name>\SavedVariables.lua. Notice that the line "Indicator = true" is present in the file.
5) Log in to the game. Type /script message(tostring(Indicator)), it comes up with message box saying "nil".
6) Exit the game. Open up WoW\WTF\Account\<acc.name>\SavedVariables.lua. Notice that there is no line with "Indicator" in it.

The above steps demonstrate that although the value of the "Indicator" variable is getting saved to SavedVariables.lua, it isn't getting loaded back in.

The exact same procedure, when performed under 1.9, yields a different result. In step 5) you correctly get "true" in the message box and in step 6) "Indicator" is still in SavedVariables.lua.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=333872&p=#post333872
 
Poster: slouken at 3/9/2006 10:04:34 PM PST
Subject: Re: [1.10 Bug] SavedVariables.lua isn't loading
   Ah, something I forgot to put in the patch notes:
Addons can no longer use RegisterForSave()

However, can you verify that it's working correctly for the Blizzard UI?

[ post edited by slouken ]

  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=333872&p=#post333966
Poster: slouken at 3/9/2006 10:16:36 PM PST
Subject: Re: [1.10 Bug] SavedVariables.lua isn't loadi
   There's a free clinic on the test server. :)
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=333872&p=#post333975
Poster: slouken at 3/10/2006 7:43:41 AM PST
Subject: Re: [1.10 Bug] SavedVariables.lua isn't loadi
   Addons can use RegisterForSave right now, but they won't be able to in 1.10 release.

SavedVariables.lua is now manually loaded instead of executed. I'll take a look at loading boolean values, thanks!
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=333872&p=#post334125

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?