SavedVariables formatting
Hi,
this is my my Saved Variables now: Lua Code:
i want it to look like this i added the ["Players"] node Lua Code:
this is my function: Lua Code:
can anyone explain me how to do this? thanks :) |
You could just change
Code:
CRE_GuildRoster = { Code:
CRE_GuildRoster = { or for a an already distributed addon: Lua Code:
It doesn't account for having tables other than [1] with information to be transfered. While testing, you could do the tremove(CRE_GuildRoster, 1) seperately after you've logged out and verified the information has been copied (make backups of your Saved Variables file first) |
ok that worked thanks a lot :)
but is there a way to Serialize the Lua Table as Json? i tried it with LibParse but its not working anymore :( |
Not that I know of.
I imagine people might create an external process for parsing the SavedVariable file to something else rather than doing it in-game. It would all end up in the same place as SavedVariables are the only mechanism in WoW for addons to write to disk. |
All times are GMT -6. The time now is 04:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI