On Sat, 19 Jun 2010 17:33:09 -0500, Jacek Antonelli wrote: > On Sat, Jun 19, 2010 at 11:47 AM, Henri Beauchamp <sl...@hotmail.com> 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.
It also surprised me to still see this warning in the latest viewer sources, since the actual script compilation now happens server side (it was needed for Mono scripts anyway), but one is never to cautious... Plus, there is still the issue that since the new functions are not yet implemented in the official viewer, their server side implementation could change without notice and render our own wiewer-side implementation deprecated or even incompatible... > McCabe added the new functions and keywords to Imprudence recently, > here's the commit with the changes: > > http://github.com/jacek/imprudence/commit/a3182539 There are quite a few things missing in this patch to actually make it a functional one, namely changes to indra.l, lllslconstants.h and llclickaction.h. Also, PRIM_NAME doesn't (yet) exist server-side (I checked for all possible unused integer constants), and PRIM_TEXT is wrongly documented in your keywords.ini as referring to the prim description instead of its hovertext (I do agree however, that a mean of changing and retreiving prim description is *definitely* required if we want to be able to get rid of all secondary scripts in child prims: prims description is the only sensible and reliable way to store script-reset-resilient data... I wish LSL would provide a way to write into notecards, like what can be done in OpenSim...). I got a proper, working patch if you want it (will be part of the next release of the Cool VL Viewer)... 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