could you post what you wrote in you addon manifest (.txt file in your folder)
and how you defined your savedvars first with ZO_SavedVars:New... please?
it'll be easier to see what went wrong.
Originally Posted by Baertram
if (yourAddon.SavedVariablesStandardTable.saveType == "Local") then
32. yourAddon.SavedVariablesTable = ZO_SavedVars:New(yourAddon.SavedVariablesName, yourAddon.addonVersion , yourAddon.SavedVariablesKey, defaults)
33.elseif (yourAddon.SavedVariablesStandardTable.saveType == "Global") then
34. yourAddon.SavedVariablesTable = ZO_SavedVars:NewAccountWide(yourAddon.SavedVariablesName, yourAddon.addonVersion, yourAddon.SavedVariablesKey, defaults)
35.end
|
btw wouldn't it be easier to create both global and per profile, declare both in the manifest and use them conditionally when needed? (i haven't tried that till now but i've already seen multiple savedvars in some addons)