View Single Post
12/20/14, 11:20 AM   #18
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by Garkin View Post
I'm using two saved variables in LoreBooks since v0.3 (22.4.2014) and I had not a single issue with that.
Maybe the problem occurred because I don't use the ZO_SavedVars class. I have tested different structures to the table over a month, but never found out what caused it to not save the state.
Sometimes it worked for days and sometimes it deleted everything on every second ui reload.

Originally Posted by merlight View Post
I've encountered a nasty bug with using two saved variables. If any of them is not present in the saved file already and you don't create it upon load, the file will subsequently be saved corrupted - with the variable you did create appended to it instead of replaced. That way my AddonProfiles.lua grew over 2.5MB, having over 300 copies of the variable, while its usual size is ~10k.
Also they don't seem to protect against recursions. had the client fill my harddisk with 7.5GB of the same table once
  Reply With Quote