I tried what you said before votan, and its actually just corrupting the table, even a fresh one.
first we call
Lua Code:
SimpleXPBar.AWSV = ZO_SavedVars:New("SimpleXPBar_Settings", "1", nil, SimpleXPBar.default_settings, nil, nil, '$' .. SimpleXPBar.name)
and this is AWSV
Lua Code:
{
__index = {
mysaveddata1,
mysavedata2,
version = "1",
},
__newindex = function,
default = table...,
GetINterfaceForCharacter = function,
}
then we call
Lua Code:
SimpleXPBar.CharSV = ZO_SavedVars:New("SimpleXPBar_Settings", "1", nil, SimpleXPBar.AWSV)
and it does this to CharSV
Lua Code:
{
__index = {
default = table...,
GetInterfaceForCharacter = function,
version = "1",
},
__newindex = function,
default = table...,
GetINterfaceForCharacter = function,
}
Looks like the meta data is getting copied too.
if I try this instead
Lua Code:
SimpleXPBar.CharSV = ZO_SavedVars:New("SimpleXPBar_Settings", "1", nil, SimpleXPBar.AWSV.__index)
then we get only
Lua Code:
{
__index = {
version = "1",
},
__newindex = function,
GetINterfaceForCharacter = function,
}
Basically I want the data between AWSV and the current CharSV to be synced when account_wide is enabled, and not synced when its not.
It doesn't have to be synced all the time, only when changing account_wide, basically what you where trying to do in post 15.