You could just change
Code:
CRE_GuildRoster = {
{
to
Code:
CRE_GuildRoster = {
["Players"] = {
in the SavedVariables file (your addon will need to be ready for the change next login):
or for a an already distributed addon:
Lua Code:
local function CopyTable(src, dest)
for index, value in pairs(src) do
if (type(value) == "table") then
dest[index] = {};
DL_Copy_Table(value, dest[index]);
else
dest[index] = value;
end
end
end
CRE_GuildRoster.Players = {}
CopyTable(CRE_GuildRoster[1], CRE_GuildRoster.Players)
tremove(CRE_GuildRoster, 1)
That should copy all the entries from [1] to ["Players"] even if you have more entries than just ["Noxis"].
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)