Author |
Message |
DonFranko
Joined: 2021-06-21 12:39:03 Posts: 149
|
Hey there,
as a Live Artist in SL it would be cool to have a Radar feature to sort all avas after the time that they have entered the (extended) chat range. I actually haven't found it yet but it may already be implemented - is it?
Sunny greetings Don
|
2022-05-19 11:52:12 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5559
|
This is an extremely niche feature... And no, it is not hard-coded into the viewer. You could, however, use Lua scripting to implement it yourself. See the radar related callbacks, and specifically the OnRadar() one: associated with some minimal code to store the new incoming avatars together with a GetFrameTimeSeconds() time stamp in a Lua table, you could set up a Lua side bar button or chat trigger to display that table entries in the proper order (with either a "poor man" method by printing the names in chat, or with a luxury interface using a custom Lua floater with a sorted list)...
|
2022-05-19 12:08:08 |
|
|
DonFranko
Joined: 2021-06-21 12:39:03 Posts: 149
|
mmhh.. what a pity.
I heard about that feature from people (mainly djs who use firstorm and who use it to say Hi to the new arrivers). The feature to get the info into the chat window is already installed in Coolviewer (I clicked it on in the main settings and it works) but as I'm singing and playing piano live I can't have a look at the chat window all the time, so that doesn't help.
I'll have a look into lua, but that would also only be a weak workaround as far as I can oversee it so far.
May I ask - as the info about the new entries is already implemented in the cool viewer, too - if you may want to consider creating a column in the radar window to use this given informations? That would be ofcourse awesome.
Whatever you decide, thank you very much for your help and very fast reply and.. for maintaining that really great viewer!
|
2022-05-19 12:42:56 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5559
|
Nope, sorry. My viewer is fast, because I always refused to add bloat to it. Exotic features will be omitted; I implemented Lua scripting for the very purpose of avoiding to implement such features in C++ code and slow down the viewer (or bloat its memory usage) as a result.
|
2022-05-19 12:52:12 |
|
|
DonFranko
Joined: 2021-06-21 12:39:03 Posts: 149
|
Oki dokes. No problem. I clearly understand that
|
2022-05-19 12:54:49 |
|
|
DonFranko
Joined: 2021-06-21 12:39:03 Posts: 149
|
Hello there. Unfortunately I have to come back to that request as I'm just not good enough at Lua-Scripting. Is there any chance that somebody could and would do that script for me and could also implement a column in that list that contains the worn tags of all avatars? The last one is needed as I have to make heavy use of the auto-derender script that I've found here.
Many thanks in advance for your help! Frank
|
2022-08-31 12:24:46 |
|
|
DonFranko
Joined: 2021-06-21 12:39:03 Posts: 149
|
Hi! Unfortunately I still couldn't figure out how to write 2,3,4 different informations in two,3,4 coloums of a new floating radar. I know how to add columns to that scripted floater and I know to gather some infos but the way that I found with the help of "|" is just not working. Currently I'm putting it all (just my data to try) in one column with that command: This is the part of the floater_radar.xml: Please help to finally get these valuable infos during my live shows. Many thanks in advance! Frank
|
2022-12-14 12:51:52 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5559
|
For a start, your custom floater definition should be named properly: floater_lua_newRadar.xml, if you want to use "SetLuaFloaterValue("newRadar" .../...". Second, the scroll_list name should bear the same name as the one you are using in the SetLuaFloaterValue() function. So, either rename your scroll_list to scroll_list name="radarscrolllist1", or use: "SetLuaFloaterValue("newRadar","avatar_list", .../...". But I would advise you to instead use "list1" for that name, since, as specified in the documentation, the Lua engine will then take care for you about setting up everything for that list and the Lua OnLuaFloaterAction() callback (you will then be able to use that callback in your automation script to act upon a "commit" event on a list element).
|
2022-12-14 15:42:53 |
|
|
DonFranko
Joined: 2021-06-21 12:39:03 Posts: 149
|
Thanks! I did all but don't understand yet what that means: "the Lua engine will then take care for you about setting up everything for that list and the Lua OnLuaFloaterAction() callback (you will then be able to use that callback in your automation script to act upon a "commit" event on a list element)." Here is my current automation script that is working and shows me all the infos and all buttons work. | | | | Code: -- custom lua floaters (http://sldev.free.fr/forum/viewtopic.php?f=6&t=1736) -- type in the chat: /lua OpenLuaFloater("newRadar") function OnLuaFloaterOpen(name, parameter) print("Opened floater: " .. name .. " with parameter: " .. parameter) local StartTime = GetTimeStamp(-7,"%Y-%m-%d %H:%M:%S") print("StartTime at opening newRadar Floater: " .. StartTime) if name == "newRadar" then SetLuaFloaterValue("newRadar","lineedit1","2713ef76-7923-521c-8498-38b8647cf373") -- SetLuaFloaterValue("newRadar","list1",GetAgentInfo().display_name .. " - " .. GetAgentInfo().name .. " - " .. GetGroupName(GetAgentInfo().active_group_id)) SetLuaFloaterValue("newRadar","list1",GetAgentInfo().display_name .. " - " .. GetAgentInfo().name .. " - " .. GetGroupName(GetAgentInfo().active_group_id)) -- SetLuaFloaterValue("newRadar","list1", RadarAvatarsAtMyArrival) SetLuaFloaterCommand("newRadar","button1","SetLuaFloaterValue(GetFloaterName(),'inventory1',GetLuaFloaterValue(GetFloaterName(),'lineedit1'))") SetLuaFloaterCommand("newRadar","button2","print('Cancel');FloaterClose()") SetLuaFloaterCommand("newRadar","button3","print('OK');FloaterClose()") end end | | | | |
What I know need to know next is how to get the list1 arguments/data into the three or four columns instead of all just in column 1
|
2022-12-17 01:45:00 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5559
|
Your code just plain cannot work... You'd need to fill-up the list in a loop with all avatars present around you.
I'm afraid I cannot give you a Lua programming course in this forum.
Re-writing a full radar from scratch in Lua also seems like an overkill (and would slow down the viewer since you would need to refresh that radar list at least every second)...
EDIT: I will try to think about something to allow Lua to add some info to the normal Radar, on a per-avatar basis...
|
2022-12-20 16:32:26 |
|
|