View Single Post
12/20/14, 10:46 AM   #16
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
@circonioan: I meant not included, sry; edited post

Originally Posted by votan View Post
If I compare Garkin and sirinsidiator, the difference is, that Garkin uses only one ## SavedVariables.
Both methods seem to work, AlphaTools uses two lines.

Originally Posted by sirinsidiator View Post
I tried to use two saved variables in one addon before, but it randomly failed to save them on ui reloads.
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.
  Reply With Quote