View Single Post
08/05/15, 03:00 AM   #5
Wandamey
Guest
Posts: n/a
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)

Last edited by Wandamey : 08/05/15 at 03:54 AM.
  Reply With Quote