[opensource-dev] Where are the new LSL functions in viewer 2 ?

2010-06-19 Thread Henri Beauchamp
Greetings,

I was in the process of creating a patch to backport the new LSL functions
to viewer v1.23, but I noticed that some of these functions, while
already implemented server-side, are not even implemented in viewer 2...

For example, llGetLinkPrimitiveParams() does compile (in any viewer) but
isn't highlighted because this function is not declared in
indra/lscript/lscript_library/lscript_library.cpp
Since the functions in this file cannot be added in a random order, one
can't add it by their own accord till LL provides the updated file, with
whatever order they chose for all the new functions.

If LL is not about to implement these functions in viewer 2, could we at
least know for sure what is their future rank in lscript_library.cpp so
that third parties viewers can implement them ?

Also, speaking about llGetLinkPrimitiveParams() (and the associated
llSetLinkPrimitiveParams()), we would need simpler functions such as
llSetLinkText(), llGetLinkScale(), llGetLinkDesc(), etc (i.e. functions
just like the existing llSetLinkAlpha(), for example), since using
lists together with ll[G/S]etLinkPrimitiveParams() is extremely
tedious and consumes much more memory and script time than a simpler,
specialized function when used to change just one parameter in a child
prim...

Regards,

Henri.
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] Where are the new LSL functions in viewer 2 ?

2010-06-19 Thread Jacek Antonelli
On Sat, Jun 19, 2010 at 11:47 AM, Henri Beauchamp  wrote:
> I was in the process of creating a patch to backport the new LSL functions
> to viewer v1.23, but I noticed that some of these functions, while
> already implemented server-side, are not even implemented in viewer 2...
>
> For example, llGetLinkPrimitiveParams() does compile (in any viewer) but
> isn't highlighted because this function is not declared in
> indra/lscript/lscript_library/lscript_library.cpp
> Since the functions in this file cannot be added in a random order, one
> can't add it by their own accord till LL provides the updated file, with
> whatever order they chose for all the new functions.

Third party viewers can add anything to that file in any order with no
real consequence. The big scary warnings in that file are a legacy of
the old days when the viewer compiled its own bytecode. That file
might also be used by the server code these days, but even if so,
that's of no real concern to third party viewer developers.

McCabe added the new functions and keywords to Imprudence recently,
here's the commit with the changes:

  http://github.com/jacek/imprudence/commit/a3182539

I can email it to you as a patch if you want, just let me know (privately).

Regards,

- Jacek

P.S. In Viewer 2, the tooltips seem to be defined in
indra/newview/skins/default/xui/en-us/strings.xml (I guess the ones in
lscript_library.cpp are ignored now). But, it is missing
llGetLinkPrimitiveParams. Perhaps someone affected by this should file
a JIRA ticket for the missing tooltip.
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges