Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-07-25 07:19:22



Reply to topic  [ 7 posts ] 
show names in public chat window is buggy 
Author Message

Joined: 2021-06-21 12:39:03
Posts: 179
Reply with quote
Hi there,

I discovered a bug that might be there for a longer time, but recently I got aware of it.

It has again to do with the Display Name / Legacy Name topic.

I decided to be able to see Display Name and Lecacy Name at the same time as too many people make us of it and .. yes. care about it.. For me as a live performing artist it is important to name them how they want to be called.

The bug: in the IM-Floater everything is clear.. but in the Public Chat window the showing of the names is inconsistent for me.
The last days I observed it a bit and despite my setting to show Display name (Legacy Name) not all residents who have a display name get shown to me with that Display name. .some still have only the legacy name for me although they have a display name..
I still couldn't find out the logic behind it, why some are shown correctly and some are not..

Any idea?

Currently I don't have a screenshot to show...:/

Could it be a "friends list" thing or the use of some special characters?

Thanks again in advance for having a look into that.


2024-08-07 22:24:38
Profile

Joined: 2011-09-27 11:18:31
Posts: 243
Reply with quote
I have noticed that too since forever. When someone enters a sim, the radar notifies us of that using their legacy name. When they actually type something, their display name is shown. Similarly, in an IM or a group chat, the first time someone types something, only their legacy name appears, the second their display name appears as well. It seems to be some sort of time delay.


2024-08-08 10:52:44
Profile

Joined: 2009-03-17 18:42:51
Posts: 6021
Reply with quote
This is not a bug, but the result of display names loading asynchronously (when not present in the cache).

I.e. when a new avatar arrives, the viewer makes a request for their display name as soon as the latter is needed: if you do not have the name tags display enabled with the display names in them, the request will only be done after something else happens: IM sent by that avatar, chat posted by them, one of their scripts sending a scripted menu dialog to you, etc.
You will also see this happening for the very first IM of any given avatar which name was not cached already (or got evicted from the cache after a while): this is the "expected behaviour"...

LL's v2+ viewers (and their TPV forks) have an UI callback implemented to update all the UI text elements already displayed as soon as the display name is received: this is not the case of the v1 UI, and I do not intend to change this, because LL's v2 code changes to implement just this callback involve a very significant increase in memory consumption, CPU cache lines consumption, etc, meaning a more bloated and slower UI (basically, every single text element in the UI gets bloated with additional data which 99% of them won't even use, because they will never need this callback mechanism).

If you want display names to appear in chat at the first post of an avatar, enable the name tag (even if only in their "display only temporarily" mode). Or, you could also use Lua to automatically make a request for an avatar display name at each new avatar rezzing event, in the OnAvatarRezzing() Lua callback of your automation.lua script, like so:

Code:
function OnAvatarRezzing(id)
    GetAvatarName(id, 1) -- 1 for the display name: triggers a request to the server when name is unknown
    -- .../... The rest of your existing code goes below, if any
end


2024-08-08 13:54:06
Profile WWW

Joined: 2021-06-21 12:39:03
Posts: 179
Reply with quote
Henri Beauchamp wrote:
if you do not have the name tags display enabled with the display names in them, the request will only be done after something else happens:

I'm not sure if I got that right.. I have of course name tags enabled with display names to be shown..

Quote:
If you want display names to appear in chat at the first post of an avatar, enable the name tag (even if only in their "display only temporarily" mode).
I thought that is what I have activated to see .. what do you mean by "enable the name tag"? Maybe I got that wrong.

Quote:
Or, you could also use Lua to automatically make a request for an avatar display name at each new avatar rezzing event, in the OnAvatarRezzing() Lua callback of your automation.lua script, like so:

Code:
function OnAvatarRezzing(id)
    GetAvatarName(id, 1) -- 1 for the display name: triggers a request to the server when name is unknown
    -- .../... The rest of your existing code goes below, if any
end

Oh.. that is a great workaround. Thank you !!


2024-08-08 22:51:42
Profile

Joined: 2021-06-21 12:39:03
Posts: 179
Reply with quote
I have another question with regards to the OnAvatarRezzing(id)

Actually in my automation script I have two functions called like that. One is burried (I guess) within the Auto-Derender Script and the other one is the one used with the PieMenu.

is that okay for the script or do I have to do all the relevant OnAvatarRezzing lines into one single function?

I come to ask that because that workaround that you mentioned before is not 100% correct working...


2024-08-19 22:35:12
Profile

Joined: 2009-03-17 18:42:51
Posts: 6021
Reply with quote
DonFranko wrote:
is that okay for the script or do I have to do all the relevant OnAvatarRezzing lines into one single function?
There must be at most one such callback (and this is the case for all Lua callbacks) in your automation script, so you must regroup everything , like I tried to explain above with the
Code:
-- .../... The rest of your existing code goes below, if any
comment...


2024-08-19 22:53:53
Profile WWW

Joined: 2021-06-21 12:39:03
Posts: 179
Reply with quote
okay. thank you .. I try


2024-08-19 23:04:21
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.