The problem:
The SavedVariables table which I registered in the addon's .txt file isn't saved for some users.
Some more informations:
The sub-addon HarvestMapImport of HarvestMap has the following line in its .txt file:
## SavedVariables: HarvestImport_SavedVars
|
The following line is called in the EVENT_ADD_ON_LOADED callback:
Lua Code:
HarvestImport.savedVars = ZO_SavedVars:New("HarvestImport_SavedVars", 1)
And when using the export feature the following lines are called:
Lua Code:
HarvestImport_SavedVars["Default"] = {["@exporteddata"]= {["$AccountWide"] = {["nodes"] = data}}}
ReloadUI("ingame")
The export feature works fine for me. If I delete the
HarvestMapImport.lua file in the
SavedVariables folder and then log in with a character and use the export feature, I get a loading screen and in the
SavedVariables folder a new
HarvestMapImport.lua file appears which contains the exported data.
However for some players this doesn't work:
http://www.esoui.com/portal.php?id=1...bug&bugid=1704
Also, the export function of harvestmap-import does not save a the file /SavedVariables/HarvestImport.lua but does reload the ui. Tested about 5 times during the ui reloads above.
|
Given that the UI reloads, the previous line where data is put into the
HarvestImport_SavedVars table is executed without an error/crash.
For some reason however the game doesn't save the
HarvestImport_SavedVars table.
I first assumed a permission conflict, like the game not being able to write into the
SavedVariables folder, however HarvestMap's addon settings were able to be saved in
SavedVariables/HarvestMap.lua.
Any idea what's going on?