ab Vanmoer
Registered User
Join date: 28 Nov 2006
Posts: 131
|
12-05-2009 13:41
I am tying to figure out how much free memory I need for a script as I add records for avatars, but what I can't find seem to find is the maximum number of characters an avatar name can be. The wiki states that an object name is limited to 63 characters, does this apply to avatars as well?
|
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
|
12-05-2009 14:03
http://wiki.secondlife.com/wiki/Limits: Max. length of avatar name - 31 for first name, 31 for last name, 63 in total (including the space).
|
ab Vanmoer
Registered User
Join date: 28 Nov 2006
Posts: 131
|
12-05-2009 15:48
Thanks Pete 
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-05-2009 17:54
you could always check your free memory as you go along... if you know how much space the script is taking, you have a pretty good idea how much your variables are taking too... (I stuffed ~500 av keys in MONO script ~300 in an LSO one, quite safely but there wasn't a ton of code otherwise)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
ab Vanmoer
Registered User
Join date: 28 Nov 2006
Posts: 131
|
12-05-2009 23:37
Thanks Void, That is exactly what I am doing, checking free memory prior to adding an avatar and associated data, but I needed to have an idea of the maximum avatar name length in order to know the maximum amount of memory needed for each additional group of data.
.
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-06-2009 03:02
From: ab Vanmoer Thanks Void, That is exactly what I am doing, checking free memory prior to adding an avatar and associated data, but I needed to have an idea of the maximum avatar name length in order to know the maximum amount of memory needed for each additional group of data.
. you may want to keep your padding a bit rougher than that considering overhead for duplication of the list and the variable holding it, allowing you to safely clear any space BEFORE your next name is detected (so effectively, after you detect the last one) mono will give you more space for that but garbage collection in mono is tied to the sim, not the script, so you'll want more padding there.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|