Jump to content

Contest Board that Displays Display Names


Jennifer Boyle
 Share

You are about to reply to a thread that has been inactive for 1151 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

The contest boards that I know about display user names. That isn't very satisfactory because the board my list someone I know as Johnny Appleseed as gig50893, and I have to look up who that is, if I want to know. Scripts can access and display display names. Surely someone makes a contest board that does that, but I've been unable to find one.

Any suggestions?

Edited by Jennifer Boyle
typos
Link to comment
Share on other sites

  • Jennifer Boyle changed the title to Contest Board that Displays Display Names

the main problem with display names is display boards use a texture map to display character glyphs, and typically not every possible non-ascii character is available in the display board texture map

a opensource display board script is  Furware. Here: http://wiki.secondlife.com/wiki/FURWARE_text

there are other similar scripts as well. Some people have also created additional glyph textures and added them in to their boards

 

generally what we can do is check the display name characters against the texture map. If any character in the display name is not in the map then use the user name sans Resident. If all characters are present then use display name

Edited by Mollymews
Link to comment
Share on other sites

On 2/20/2021 at 6:38 PM, Mollymews said:

generally what we can do is check the display name characters against the texture map. If any character in the display name is not in the map then use the user name sans Resident. If all characters are present then use display name

Sounds good to me. Where can I buy one that does that?

Link to comment
Share on other sites

1 hour ago, Jennifer Boyle said:

Sounds like a business opportunity to me for somebody, maybe you.

i had a quick look at the FurWare script

a simple hax to use in your own script that gets displayname (compatible with Furware) or Username is:
 

string GetFurName(key id)
{
   // Note: FurWare is MIT license Copyright (c) 2010-2013 Ochi Wolfe, FURWARE, the contributors
   // copypaste CHARS from FurWare script
   // unpacking CHARS is best done one time in state_entry to a global CHARS var
   // same as how is done in FurWare
   string CHARS = llBase64ToString(
            "IGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6QUJDREVGR0hJSktMTU5PUFFS" +
            "U1RVVldYWVowMTIzNDU2Nzg5Liw6OyE/IifCtGBefistKi9cfCgpW117fTw+" +
            "PUAkJSYjX8Ogw6HDosOjw6TDpcOmwqrDp8Oww6jDqcOqw6vDrMOtw67Dr8Ox" +
            "w7LDs8O0w7XDtsO4xZPCusOexaHDn8O5w7rDu8O8w73Dv8W+w4DDgcOCw4PD" +
            "hMOFw4bDh8OQw4jDicOKw4vDjMONw47Dj8ORw5LDk8OUw5XDlsOYxZLDvsWg" +
            "w5nDmsObw5zDncW4xb3CosKj4oKswqXCp8K1wqHCv8Kpwq7CscOXw7fCt8Kw" +
            "wrnCssKzwqvCu8Ks4oCm4oC54oC64oCTwrzCvcK+4oSi4oCiICAgICAgICAg" +
            "ICAgICAgICAgICAgICAgICAgIOKUjOKUrOKUkOKUj+KUs+KUk+KVlOKVpuKV" +
            "l+KVtuKUgOKVtOKVt+KVuyDilK/ilrLil4Dilrzilrbil4vil5Til5Hil5Xi" +
            "l4/ilJzilLzilKTilKPilYvilKvilaDilazilaPilbrilIHilbjilILilIPi" +
            "lZHilL/ihpHihpDihpPihpLihrrihrvimJDimJHimJLilJTilLTilJjilJfi" +
            "lLvilJvilZrilanilZ0g4pWQIOKVteKVuSDilLfilKDilYLilKjihpXihpTi" +
            "mYDimYLimqDihLninYzijJbiiKHijJvijJrimarimavimaDimaPimaXimabi" +
            "moDimoHimoLimoPimoTimoXinJTinJjimLrimLnilqDil77ilqzilq7ilog="
        );
   string result = llGetDisplayName(id);
   integer i = llStringLength(result)-1;
   for (i; ~i && ~llSubStringIndex(CHARS, llGetSubString(result, i, i)); --i);
   if (~i || result == "") // no matching FurWare glyph or no displayname
     result = llGetUsername(id);
   return result;

   // message the FurWare script with the name returned
}

default
{
    state_entry()
    {
         // test
         string name = GetFurName(llGetOwner());
         llOwnerSay((string)name);             
    }
}

 

you and anybody else reading can use this as they want in their own scripts

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1151 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...