Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-04-27 16:48:09



Reply to topic  [ 6 posts ] 
Filter option in public chat 
Author Message

Joined: 2021-06-21 12:39:03
Posts: 143
Reply with quote
Hi Henry,

I'm currently here at a SL20B event with a lot of people.. Just asking.. I cannot always keep my eyes on the public chat all the time.. I have the color tagging already activated for some keywords.. but. .. would it be a big cpu burden to implement a public chat history filter to select a particular avatar to see everything that only that one wrote?

Cheers,
Frank


2023-06-24 00:32:18
Profile

Joined: 2016-06-19 21:33:37
Posts: 342
Location: Columbus area, OH, USA
Reply with quote
This might be achieved right now by parsing the chat logs. On a Linux distro, it's pretty easy in a terminal with something like:
Code:
tail -f .secondlife/zane_zimer/Second\ Life\ Birthday-2023-06.txt | grep 'Zane Zimer:'
The grep portion could generally be as complex as needed, with most greps even supporting regex. The file name can be a group or just the chat history.


2023-06-24 09:04:07
Profile

Joined: 2009-03-17 18:42:51
Posts: 5554
Reply with quote
Like for all such specific uses, I implemented Lua scripting...

With Lua you can color the chat of any avatar.

An example is given in the manual for coloring name tags and mini-map dots (via the Lua pie menu), that could be extended to color the chat as well (using the onChatTextColoring() Lua callback).

There also could be more complex implementations via Lua, such as a custom text search floater, using the new context menu "Copy to Lua" feature to send the chat text to that floater...


2023-06-24 19:24:02
Profile WWW

Joined: 2021-06-21 12:39:03
Posts: 143
Reply with quote
thank you, Zane.

I try that, although that would mean a static 'picture' of the chat but a useful.


2023-06-26 22:17:47
Profile

Joined: 2021-06-21 12:39:03
Posts: 143
Reply with quote
Henri Beauchamp wrote:
Like for all such specific uses, I implemented Lua scripting...

With Lua you can color the chat of any avatar.

An example is given in the manual for coloring name tags and mini-map dots (via the Lua pie menu), that could be extended to color the chat as well (using the onChatTextColoring() Lua callback).

There also could be more complex implementations via Lua, such as a custom text search floater, using the new context menu "Copy to Lua" feature to send the chat text to that floater...

Thank you Henri!

I was 'afraid' of that answer with the lua scripting :) I still need a lot to learn but it takes so long for me to achieve something cool.. currently I don't have the time to do so.

The coloring of the names won't filter the chat so I still would have to scroll quite far into the history.. That copy to lua seems promising..

Merci!


2023-06-26 22:21:02
Profile

Joined: 2021-06-21 12:39:03
Posts: 143
Reply with quote
Henri Beauchamp wrote:
...(via the Lua pie menu), that could be extended to color the chat as well (using the onChatTextColoring() Lua callback).

I tried that but I got an error message.. how should I use it in that given code?

Code:
function OnLuaPieMenu(data)
   local color = ""
   if data.slice == 1 then
      color = "blue"
   elseif data.slice == 2 then
      color = "cyan"
   elseif data.slice == 3 then
      color = "red"
   elseif data.slice == 4 then
      color = "magenta"
   elseif data.slice == 5 then
      color = "yellow"
   elseif data.slice == 6 then
      color = "white"
   elseif data.slice == 8 then
      color = "green"
end
   avatars_colors[data.object_id] = color
   SetAvatarMinimapColor(data.object_id, color)
   SetAvatarNameTagColor(data.object_id, color)
   SetRadarNameColor(data.object_id, color)

end


If yes, how can I add it to these last four lines?


2023-06-27 22:02:28
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

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