Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2021-10-20 17:35:35



Reply to topic  [ 8 posts ] 
Extended SL URI wrapping 
Author Message

Joined: 2021-01-13 19:14:05
Posts: 40
Reply with quote
Hey Henri,

Not sure if this is intended behaviour or a bug, but figured i'd file it as a feature request.

So, I've been messing around for the past couple days with the viewer URI protocol within LSL, and noticed that CoolVL only seems to wrap avatar names, but not objects, etc. The links themselves work as expected, but it's printed verbatim which makes for some ghastly messages in chat.

Example:
Code:
default
{
    state_entry()
    {
        llOwnerSay("[secondlife:///app/objectim/d0db16bf-4163-a33f-aeb3-998786f6910a/?name=EEP%20Clock&owner=b8ddae03-525a-4993-97ff-c7a39d6a222b&slurl=Crooked%20Posse/201.927200/241.969400/51.778670 EEP Clock]");
    }
}

Will be wrapped in other viewers (displaying 'EEP Clock' as a link), but isn't in CoolVL (instead, just displays the entire line, with the link clickable but also prints the wrapping syntax and the intended link name, which isn't clickable)

The same behaviour is seen in Dialog menus too.

Thanks!


2021-04-08 17:53:37
Profile

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
Jenna Huntsman wrote:
Not sure if this is intended behaviour or a bug
Neither... Simply a v3 (or 4 ?) viewer feature that never got backported, because I never found any use case for it (never came across an object emitting such SLURLs either), and since my way of resolving and substituting SLURLs in the viewer is different from LL's (it uses much less memory, no slow virtual methods, etc), I never implemented it...

Added to the "to do" list...

FYI, the viewer currently resolves avatar, group and experience SLURLs and replaces them in chat (history and console) and dialogs/notifications with the associated resolved names.


2021-04-08 20:13:43
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
Implemented for tomorrow's release.


2021-04-09 13:44:51
Profile WWW

Joined: 2021-01-13 19:14:05
Posts: 40
Reply with quote
Henri Beauchamp wrote:
Implemented for tomorrow's release.


Awesome. Just tested it, seems like it's not quite fully working just yet - see the attached image. This is the result using the above script, in today's release (as you can see, the square brackets are present, and the URL name is printed twice).

Also, another related thing - Just noticed that (at least in llDialog menus) that regular URLs are not wrapped, even if using the square bracket syntax. Attached an example from (Wendy's) OpenCollar menu. (I know you only implemented the ObjectIM wrapping, just something to add to the 'to-do' list again :) )


Attachments:
File comment: URLs
coolvlDialogURLs.png
coolvlDialogURLs.png [ 27.73 KiB | Viewed 183 times ]
File comment: ObjectIM
coolvlObjectIMuriwrap.png
coolvlObjectIMuriwrap.png [ 44.34 KiB | Viewed 183 times ]
2021-04-10 10:05:05
Profile

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
Your "square brackets" syntax is non-standard !!!

This is a forum-like syntax that is NOT PART of LL's SLURL specification.

Do not be surprised if it does not work in viewers not implementing this extra feature...

I am currently only substituting SLURLs themselves, and do not support the forum-like URLs; the latter would be very low priority on my to do list, so do not hold your breath on it !


2021-04-10 10:16:54
Profile WWW

Joined: 2021-01-13 19:14:05
Posts: 40
Reply with quote
Henri Beauchamp wrote:
Your "square brackets" syntax is non-standard !!!

This is a forum-like syntax that is NOT PART of LL's SLURL specifications.


I thought it was standard, as taken from the above page:
Quote:
Enclose your links in squared brackets, or they will in some cases (e.g. for ObjectIm - links) treat all text after the link as part of the link itself (which in most cases means, the text after the link will never display). Example: [secondlife:///app/objectim/190f571d-fdf1-8f6c-4e9d-973e9b5e0566?name=ObjectName&owner=c93c3129-2250-4c79-a5f7-8c755ca2707e&groupowned=true&slurl=Location/128/128/27 ObjectName]. In this case you will also need to ensure the object name has been escaped.


2021-04-10 10:21:54
Profile

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
They were non-standard... until some vN viewer with N > 3. Non-standard ("non existent" actually) for v1 and v2 viewers, for sure ! Still not a priority as far as I am concerned.


2021-04-10 10:25:24
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
This said, there is still an "off by one" bug (thus a missing space and shortened link) in the objectim substitution, that will be fixed for next release.


2021-04-10 10:46:18
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.