Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/02/16, 06:14 AM   #1
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
Possible SavedVariables bug

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:
  1. HarvestImport.savedVars = ZO_SavedVars:New("HarvestImport_SavedVars", 1)
And when using the export feature the following lines are called:
Lua Code:
  1. HarvestImport_SavedVars["Default"] = {["@exporteddata"]= {["$AccountWide"] = {["nodes"] = data}}}
  2. 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?
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Possible SavedVariables bug


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off