AtlasQuest - Fan Update

24 - Bug in loading saved variables

Small bug related to loading saved variables. Causes AtlasQuest to revert to default settings on login.

Your initialize function should trigger on ADDON_LOADED with the argument of AtlasQuest instead of VARIABLES_LOADED. VARIABLES_LOADED is no longer fired when saved variables are loaded into memory.

User When Change
mystery8 Feb 17, 2012 at 01:22 UTC Changed status from New to Fixed
Kharthus Jan 17, 2012 at 01:29 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of mystery8 mystery8 Feb 17, 2012 at 01:25 UTC - 0 likes

    Thank you!! Fixed in next version!

  • Avatar of Kharthus Kharthus Feb 16, 2012 at 01:28 UTC - 0 likes

    Here's the updated code:

    function AtlasQuest_OnEvent(self,event,...)
       local arg1 = ...;
       if (event == "ADDON_LOADED" and arg1 == "AtlasQuest") then
          VariablesLoaded = 1; -- data is loaded completely
       else
          AtlasQuest_Initialize(); -- player enters world / initialize the data
       end
    end
    
  • 2 comments

Facts

Last updated
Feb 17, 2012
Reported
Jan 17, 2012
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees