Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

message board

Melorie Boxen
Registered User
Join date: 5 Mar 2009
Posts: 14
04-06-2009 20:08
hi,

i'm currently trying to script a message board and i'm wondering if somebody could give me some tips - for instance which text is best to use and/or about the texture and so on.

i'm happy about any comments.

thank you
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
04-06-2009 20:25
Definitely check out xy text here...
http://wiki.secondlife.com/wiki/XyText_1.5

you can have up to 10 characters per prim, but rezzing is slower because there's more textures involved, you can use lower character per prim settings which will cost more prims, but the text will rez faster. It's up to you to decide which would be better for your setup. If speed is what you need, then the more prim intensive versions are what to use, and if max characters is what you need, then the 10 char/prim method is the way to go. Either way, I've found xy text to be a great way to make message boards.
_____________________
My tutes
http://www.youtube.com/johanlaurasia
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
04-06-2009 21:56
/54/9c/259613/1.html

Something I happened across by accident...

This is also a pretty neat idea, especially if your message board doesn't need to change too often. It's a LOT easier on the sim, and your neighbors.. and in the face of the new "script limits" we're getting soon, this might be a good way to go.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
04-07-2009 10:45
A message board??? How about this? Put your text on a notecard ("My Notecard";). I know, this can be done better, but it's just some playing around with this way of displaying text...


CODE

string html = "<body text=white bgcolor=0><Font size=7;>";
ShowHTML()
{
llParcelMediaCommandList(
[PARCEL_MEDIA_COMMAND_TEXTURE,
"8b5fec65-8d8d-9dc5-cda8-8fdf2716e361",
PARCEL_MEDIA_COMMAND_URL,
"data:text/html,"+html,
PARCEL_MEDIA_COMMAND_TYPE,
"text/html",
PARCEL_MEDIA_COMMAND_SIZE,
800, 600,
PARCEL_MEDIA_COMMAND_PLAY
]);
}

key kQuery;
integer iLine = 0;
default {

state_entry() {
kQuery = llGetNotecardLine("My Notecard", iLine);
llSetTexture("8b5fec65-8d8d-9dc5-cda8-8fdf2716e361",0);
}

dataserver(key query_id, string data) {

if (query_id == kQuery) {
if (data == EOF) {
html=llGetSubString(html,0,238);

ShowHTML();

} else {
html=html + data+"<br>";

iLine++;
kQuery = llGetNotecardLine("My Notecard", iLine);
}
}
}
changed (integer change)
{
if (change & CHANGED_INVENTORY) llResetScript();
}
}
Pavcules Superior
Registered User
Join date: 30 Oct 2006
Posts: 69
04-07-2009 11:14
That's a clever script there you got there Lennard.

Its useful if you need short messages to be displayed without the need to reference an external website.

Shame that LSL has a 254 character limitation in the URL, because it limits other things like generating images using the 'data:image/png' data URI.