Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/07/14, 01:00 AM   #1
BadVolt
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 74
Need help with loading SavedVariables

Hi guys. Have a little problem with loading my saved vars.
Looks like saved vars are always replaced with their default values, but values I save to saved variables are saved normally. Just can't load. Any ideas how to fix it? Loading method is below.

Lua Code:
  1. -- initialize
  2. function IRY:Initialize(self)
  3.     debug("Initialize called")
  4.     self.control=self
  5.  
  6.     local default_playerDatabase={
  7.         data={},
  8.         index={}
  9.     }
  10.  
  11.     local default_params={
  12.         counter = 0
  13.     }
  14.  
  15.     self.playerDatabase = ZO_SavedVars:NewAccountWide("IRY_SavedVars", version, "playerDatabase", default_playerDatabase, nil)
  16.     self.params = ZO_SavedVars:NewAccountWide("IRY_SavedVars", version, "params", default_params, nil)
  17. end
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Need help with loading SavedVariables


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off