Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-05-23 18:46:26



Reply to topic  [ 9 posts ] 
Cool Feature Highlight Text if my name/nicknames are found 
Author Message

Joined: 2021-06-21 12:39:03
Posts: 177
Reply with quote
Hi there!

Usually that above mentioned feature works great to draw my attention to chat where people mention my name. But not always and I try to find out why or if it is a bug.

I have a feeling that this Cool Feature gets overwritten or layered behind another setting where it's defined that chat messages by friends appear in a special color (in my case in green). Although my name got mentioned correctly by my friend in public chat, the whole line stays green instead of orange what is the color for that Highlight feature.

Henri, I send the pw to the
Attachment:
2024-08.7z [15.89 KiB]
Downloaded 528 times
in IM

Thanks for looking into that!


2024-08-25 23:58:23
Profile

Joined: 2009-03-17 18:42:51
Posts: 5989
Reply with quote
The chat colouring feature only works for actual chat text emoted/posted by residents, not for "spoofed chat" coming from scripted objects via llSay(), llWhisper(), llShout() (which text appears in green by default); if avatars around yours use scripted emoters, their "chat" will therefore appear as scripted object chat (and coloured green).

This feature works as expected and designed for in the first place.

But as usual with the Cool VL Viewer, you can use Lua if you want to implement your own chat colouring algorithm (see the Lua manual).


2024-08-26 13:51:53
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 389
Location: Columbus area, OH, USA
Reply with quote
DonFranko wrote:
Although my name got mentioned correctly by my friend in public chat, the whole line stays green instead of orange what is the color for that Highlight feature.
Do you have any custom Lua colorizing your friend's messages? In my experience, the 'highlighting lines with my name' may happen before any custom Lua script to colorize friend's text, which then sets color based on that 'rule/code'. Is this what you are experiencing, Don? That is, when a friend types your name, you are getting 'friend color' vs 'name match color'?


2024-08-26 17:54:16
Profile

Joined: 2021-06-21 12:39:03
Posts: 177
Reply with quote
Henri Beauchamp wrote:
The chat colouring feature only works for actual chat text emoted/posted by residents, not for "spoofed chat" coming from scripted objects via llSay(), llWhisper(), llShout() (which text appears in green by default); if avatars around yours use scripted emoters, their "chat" will therefore appear as scripted object chat (and coloured green).

In this case it was the owner of the venue without ChatExtender features and I'm pretty sure that he just typed the message by himself as it was an answer to what I had written before.


2024-08-28 10:04:16
Profile

Joined: 2021-06-21 12:39:03
Posts: 177
Reply with quote
ZaneZimer wrote:
DonFranko wrote:
Although my name got mentioned correctly by my friend in public chat, the whole line stays green instead of orange what is the color for that Highlight feature.
Do you have any custom Lua colorizing your friend's messages? In my experience, the 'highlighting lines with my name' may happen before any custom Lua script to colorize friend's text, which then sets color based on that 'rule/code'. Is this what you are experiencing, Don? That is, when a friend types your name, you are getting 'friend color' vs 'name match color'?

Yes, Zane, that is what seems to happen. In my automation script I make use of the 'friend color' which I have set to green

Code:
-- Here is a demonstration on how to use the OnChatTextColoring() callback to
-- color incoming chat text from avatars. In this example, the friends' chat
-- text is colored in orange.
function OnChatTextColoring(id, name, text)
   if IsAgentFriend(id) then
       return "green"
   end
   return ""
end


Would it be possible to change that order?


2024-08-28 10:08:43
Profile

Joined: 2021-06-21 12:39:03
Posts: 177
Reply with quote
and I made another observation yesterday where the chat with my name mentioned of a derendered avatar also didn't get colored in my desired Highlight Color.

Oh, that brings me to another topic 'auto-derender' vs 'auto-mute'... Zane. I wrote you a PM what haven't got delivered as it is sent but still in my outbox..so not really sent. I just love the auto-derender script but want to follow Henry's idea to change it to auto-mute. I just don't know enough about coding yet and if the 'SetVisualMute' also needs a table / list for get it done and undone. Help would be much appreciated.


2024-08-28 10:19:11
Profile

Joined: 2016-06-19 21:33:37
Posts: 389
Location: Columbus area, OH, USA
Reply with quote
DonFranko wrote:
Would it be possible to change that order?

...and I made another observation yesterday where the chat with my name mentioned of a derendered avatar also didn't get colored in my desired Highlight Color.

Oh, that brings me to another topic 'auto-derender' vs 'auto-mute'... Zane. I wrote you a PM what haven't got delivered as it is sent but still in my outbox..so not really sent. I just love the auto-derender script but want to follow Henry's idea to change it to auto-mute. I just don't know enough about coding yet and if the 'SetVisualMute' also needs a table / list for get it done and undone. Help would be much appreciated.
I doubt the order can be changed. One is driven by the viewer and one by your Lua script, which probably happens after to give implementors a way to override viewer behavior. You would have to alter your script to NOT change the color on whatever your criteria are. Not sure what the intended behavior of derendered avatars and various text highlighting should be. That is controlled by the viewer code.

As far as 'auto muting' with the new function, I have not looked at what Henri has provided. Mostly because I don't have time currently to continue development of my Lua script/customizations. I don't require additional features. In theory, you could follow the pattern of the 'auto derender' that was provided before.

I did not receive any IM, likely because you used my very old account. I changed ISPs at the time and lost control of the email address associated. I have since recovered control of that user but not after creating this new account, which I now use exclusively.


2024-08-28 13:00:16
Profile

Joined: 2016-06-19 21:33:37
Posts: 389
Location: Columbus area, OH, USA
Reply with quote
DonFranko wrote:
Would it be possible to change that order?

...and I made another observation yesterday where the chat with my name mentioned of a derendered avatar also didn't get colored in my desired Highlight Color.

Oh, that brings me to another topic 'auto-derender' vs 'auto-mute'... Zane. I wrote you a PM what haven't got delivered as it is sent but still in my outbox..so not really sent. I just love the auto-derender script but want to follow Henry's idea to change it to auto-mute. I just don't know enough about coding yet and if the 'SetVisualMute' also needs a table / list for get it done and undone. Help would be much appreciated.
I doubt the order can be changed. One is driven by the viewer and one by your Lua script, which probably happens after to give implementors a way to override viewer behavior. You would have to alter your script to NOT change the color on whatever your criteria are. Not sure what the intended behavior of derendered avatars and various text highlighting should be. That is controlled by the viewer code.

As far as 'auto muting' with the new function, I have not looked at what Henri has provided. Mostly because I don't have time currently to continue development of my Lua script/customizations. I don't require additional features. In theory, you could follow the pattern of the 'auto derender' that was provided before.

I did not receive any IM, likely because you used my very old account. I changed ISPs at the time and lost control of the email address associated. I have since recovered control of that user but not after creating this new account, which I now use exclusively.


2024-08-28 13:00:49
Profile

Joined: 2021-06-21 12:39:03
Posts: 177
Reply with quote
Thank you Zane!

Quote:
I doubt the order can be changed. One is driven by the viewer and one by your Lua script, which probably happens after to give implementors a way to override viewer behavior. You would have to alter your script to NOT change the color on whatever your criteria are. Not sure what the intended behavior of derendered avatars and various text highlighting should be. That is controlled by the viewer code.

As my name mentioned in the chat it's more important to see it de-activated that part in the automation script. Now I can see it again also when names from my fl write something.

Quote:
As far as 'auto muting' with the new function, I have not looked at what Henri has provided. Mostly because I don't have time currently to continue development of my Lua script/customizations. I don't require additional features. In theory, you could follow the pattern of the 'auto derender' that was provided before.
When I find the time I try on my own again although I guess I may need some help if it would not work directly ;)

Quote:
I did not receive any IM, likely because you used my very old account. I changed ISPs at the time and lost control of the email address associated. I have since recovered control of that user but not after creating this new account, which I now use exclusively.
Ah, okay. It was only related to my need for help with regards to the change of that great script.


2024-09-26 11:03:33
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 3 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.