Poster: Kukk at 9/13/2005 10:57:49 PM PDT Subject: Maximum saved variable length |
| |
I am creating an add-in to output guild statistics (name, rank, rankIndex, level...) using saved variables.
The problem is that the saved variable seems to hold a maximum of 1020 characters. This is not nearly enough for my purposes. Even if I were to create seperate variables for each statistic and comma delimit them, I would quickly run out of space.
Is there a better way to be outputting this information using saved variables (tables perhaps) or another method to write to a text file where there is not 1020 character limit?
Incase it help this is essentially the code I am using. I am saving the OutputString using the "## SavedVariables: OutputString" method.
//This is the event handler for the VARIABLES_LOADED event
function JuniorGuild_OnRun()
OutputString = "";
SetGuildRosterShowOffline(true);
NumGuildMembers = GetNumGuildMembers();
for i=1, NumGuildMembers do
local name, rank, rankIndex, level, class, zone, group, note, officernote, online = GetGuildRosterInfo(i);
OutputString = OutputString .. "<name id='" .. i .. "'>" .. name .. "</name>";
end
message(OutputString);
end
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=216256&p=#post216256 |
| |
Poster: slouken at 9/14/2005 12:07:46 AM PDT Subject: Re: Maximum saved variable length |
| |
I'll take a look at this in the morning.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=216256&p=#post216395 |
Poster: slouken at 9/14/2005 10:43:21 AM PDT Subject: Re: Maximum saved variable length |
| |
Yep, strings were limited to 1020 characters. This is fixed for 1.8 (no arbitrary limit on saved variable strings)
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=216256&p=#post217341 |
Poster: slouken at 9/14/2005 1:20:18 PM PDT Subject: Re: Maximum saved variable length |
| |
As far as I know, it's always been this way. That code hasn't changed much in a while.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=216256&p=#post217701 |