Cool VL Viewer forum
http://sldev.free.fr/forum/

Extended SL URI wrapping
http://sldev.free.fr/forum/viewtopic.php?f=9&t=2156
Page 1 of 1

Author:  Jenna Huntsman [ 2021-04-08 17:53:37 ]
Post subject:  Extended SL URI wrapping

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!

Author:  Henri Beauchamp [ 2021-04-08 20:13:43 ]
Post subject:  Re: Extended SL URI wrapping

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.

Author:  Henri Beauchamp [ 2021-04-09 13:44:51 ]
Post subject:  Re: Extended SL URI wrapping

Implemented for tomorrow's release.

Author:  Jenna Huntsman [ 2021-04-10 10:05:05 ]
Post subject:  Re: Extended SL URI wrapping

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 4879 times ]
File comment: ObjectIM
coolvlObjectIMuriwrap.png
coolvlObjectIMuriwrap.png [ 44.34 KiB | Viewed 4879 times ]

Author:  Henri Beauchamp [ 2021-04-10 10:16:54 ]
Post subject:  Re: Extended SL URI wrapping

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 !

Author:  Jenna Huntsman [ 2021-04-10 10:21:54 ]
Post subject:  Re: Extended SL URI wrapping

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.

Author:  Henri Beauchamp [ 2021-04-10 10:25:24 ]
Post subject:  Re: Extended SL URI wrapping

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.

Author:  Henri Beauchamp [ 2021-04-10 10:46:18 ]
Post subject:  Re: Extended SL URI wrapping

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/