Overwrite SavedVariables and save them
I want to change some Global Variables that get loaded from Skada. So that Skada takes over my exact Skada settings when my Addon gets loaded.
The problem is I don't know how to change the global Variables for Skada and change them permanently. Something like Lua Code:
Is what I want to manipulate, but declaring it in my addon doesn't do anything. |
Code:
SkadaDB.profiles.Default.windows[1].barslocked = true |
Thanks! It's working.
Could you explain why the [1] is there? My WTF folder Skada.lua looks like this, so i don't get why its windows[1] Edit: Now I'm getting the Error: "Your Computer does not have enough memory to load settings from the following AddOn. Please disable some AddOns "Skada" Lua Code:
|
Quote:
When you put values without keys inside a table constructor, Lua will assign them consecutive integer keys starting from 1 (i.e. they're treated like values of an array). This is explained in more detail in the Reference Manual. |
Alright thanks! I didn't notice that at first.
But why am I getting this Error: "Your Computer does not have enough memory to load settings from the following AddOn. Please disable some AddOns "Skada" |
Quote:
|
I deleted my WTF folder and now the Error doesn't appear anymore. No clue why though.
I was only running my addon + Skada My addon only uses 1 saved variable. |
Possibly your original changes to SkadaDB.profiles.Default.windows.x = yada messed something up.
|
You've probably made a cyclic reference somewhere while messing with variables to be saved and caused WoW to generate huge dump that got truncated on next load.
|
All times are GMT -6. The time now is 12:32 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI