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:
-- initialize
function IRY:Initialize(self)
debug("Initialize called")
self.control=self
local default_playerDatabase={
data={},
index={}
}
local default_params={
counter = 0
}
self.playerDatabase = ZO_SavedVars:NewAccountWide("IRY_SavedVars", version, "playerDatabase", default_playerDatabase, nil)
self.params = ZO_SavedVars:NewAccountWide("IRY_SavedVars", version, "params", default_params, nil)
end