Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-04-18 19:57:56



Reply to topic  [ 6 posts ] 
not interpreting code for display name 
Author Message

Joined: 2014-10-23 21:22:08
Posts: 6
Reply with quote
Hi Henri

I'm on a Mac using 1.26.12.20 and have encounter a game object that outputs players names and score in chat.
Everyone else tells me they see peoples display name, all i see is this:


01:58 PM] Book of Dares whispers: secondlife:///app/agent/6a6d9c53-18b3-4929-a21e-c7a36311b916/displayname has 81 points.

Is this my issue or SL issue or Viewer setting or issue?

Thanks,
kyo


2014-10-23 21:33:08
Profile

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
Neither... It's just one of those new SLURLs that got implemented in v3 viewers and got no equivalent (and no use) in v1 ones. But I really don't see why the scripter of the "Book of Dares" didn't use llGetDisplayName() to print their message instead of issuing such a SLURL... There's strictly no benefit at all to do what they did, and a huge drawback: incompatibility with some viewers (also, text clients).


2014-10-23 22:06:58
Profile WWW

Joined: 2010-04-07 08:23:18
Posts: 210
Reply with quote
Hello Henri et al.,
Henri Beauchamp wrote:
[...] But I really don't see why the scripter of the "Book of Dares" didn't use llGetDisplayName() to print their message instead of issuing such a SLURL... There's strictly no benefit at all to do what they did, and a huge drawback: incompatibility with some viewers (also, text clients).

Probably because that's what the Second Life Wiki recommends ... :roll:
Quote:
If you merely wish to show the agent display name in the viewer window, it may be more straightforward to use Viewer URI Name Space, e.g.:
Code:
llSay(0, "secondlife:///app/agent/" + (string)id + "/displayname");

Love,
Lia


2014-10-24 17:19:29
Profile

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
Amalia Illios wrote:
Probably because that's what the Second Life Wiki recommends ... :roll:
Indeed a stupid remark in the Wiki... I don't see how producing code that is only compatible with part of the clients (and with no text client at all) is "more convenient"...


2014-10-24 17:32:58
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
For tomorrow's releases, I came up with a solution that doesn't involve adding a shitload of UI code bloat (and significant memory consumption overhead) like they did in the v3 viewer...

Here is how it will work: on receiving chat text or object IM text, the viewer checks for the presence of any app/agent/<uuid>/*name SLURL and, when it already got the name information for the corresponding avatar, it immediately replaces the SLURLs with the corresponding name (i.e. there is no need for complex callback method in that case, and all the member variables overhead it incurs in the v3 UI).
When the name(s) is(are) not yet known (not yet in the name cache, which should be a rare occurrence since the objects are likely to emit messages about avatars around them), the viewer displays the SLURLs "as is" but clicking on them allows to open the Profile floater for the corresponding avatar (and next time the SLURLs will be emitted, the name cache will have the corresponding data and the name substitution will occur).


2014-10-24 21:03:50
Profile WWW

Joined: 2014-10-23 21:22:08
Posts: 6
Reply with quote
That's great Henri, Thank You.

kyo


2014-10-24 21:15:42
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.