Looking at Esoheads Saved Variable table it looks like they do things differently so will try and do something similar with my addons.
Edit: Well after a lot of trial and error I finally almost had to copy what Esohead did and then adjust it to reflect my table contents.
Ended up changing the layout of the Saved Variables File and spec
Lua Code:
local function InitSavedVariables(...)
SVData = {
["History"] = ZO_SavedVars:NewAccountWide("XrysGatherer_SavedVariables", 1, "History", SVDefault)
}
SVDataIndex = 1
end
And using the way Esohead traversed through the table as a guide the following works flawlessly.
Lua Code:
ChatMsg:AddMessage("Traversing Harvest History")
for history,sv in pairs(SVData) do
ChatMsg:AddMessage(history)
if history == "History" then
for zone, t1 in pairs(SVData[history]) do
for item, t2 in pairs(SVData[history][zone]) do
for index, t3 in pairs(SVData[history][zone][item]) do
local data = SVData[history][zone][item][index]
ChatMsg:AddMessage(string.format("%d: %s %s in %s at %0.3f,%0.3f",index,item,tostring(data["Action"]),zone,data["X"],data["Y"]))
end
end
end
end
end