[Opensim-dev] Adding custom LSL functions
Mic Bowman
cmickeyb at gmail.com
Sun Mar 25 05:53:43 UTC 2012
I just pushed a patch that adds support for both parameters and return
types for key, vector, rotation and lists. That should make modInvoke
"complete". The wiki has been updated with the new test region module and
the script that calls the functions in the module. I should probably add
a "best known methods" section to the wiki that shows how to combine region
module functions with the dispatch replay method to create async methods as
well.
--mic
On Tue, Mar 20, 2012 at 8:47 AM, Mic Bowman <cmickeyb at gmail.com> wrote:
> At this point... its relatively easy to handle string arguments. Since
> ints and floats are not of type "object" you have to box them (i think its
> in the example region module i put on the wiki). vectors and quaternions
> get converted into strings on call.
>
> When i get a couple minutes... I'll add the conversion from LSL_List to an
> object array for passing lists and convert vectors and quaternions into the
> corresponding OpenMetaverse types. That should make it possible to handle
> pretty much any kind of invocation from LSL.
>
> That being said... these fns make interacting with region modules much
> easier. I'm using the dispatchreply method that was in script comms module
> before to create more async functions (trigger the event with a function
> call and wait for a link message when it completes).
>
> --mic
>
>
> On Mon, Mar 19, 2012 at 3:18 PM, Dahlia Trimble <dahliatrimble at gmail.com>wrote:
>
>> Nice!
>>
>> Any thoughts on best practices for including LSL type mapping in C#
>> sources?
>>
>>
>> On Thu, Mar 15, 2012 at 1:59 PM, Mic Bowman <cmickeyb at gmail.com> wrote:
>>
>>> I've check the modInvoke code into master. It lets you register
>>> functions in a region module with the script engine so that scripts in your
>>> region can access the region module directly.
>>>
>>> An example region module and script is described here:
>>> http://opensimulator.org/wiki/OSSL_Script_Library/ModInvoke
>>>
>>> Note that this is still experimental & I wouldn't be surprised if the
>>> interface continues to evolve. And there are some limitations for
>>> parameters that I will be removing over the next few days (for example,
>>> lists, vectors and rotations do not currently work unless they are
>>> converted into strings).
>>>
>>> --mic
>>>
>>>
>>> On Tue, Mar 13, 2012 at 2:21 PM, Mic Bowman <cmickeyb at gmail.com> wrote:
>>>
>>>> odd. it was there last night.
>>>> anyway... i uploaded it again.
>>>>
>>>> --mic
>>>>
>>>>
>>>> On Tue, Mar 13, 2012 at 2:12 PM, Per Mint <pmint6 at gmail.com> wrote:
>>>>
>>>>> Mic,
>>>>>
>>>>> wow, thanks ! I didn't find in the mantis any link to the patch. Is
>>>>> there anyway I can help testing this out ?
>>>>>
>>>>> Best,
>>>>> PMint.
>>>>>
>>>>> _______________________________________________
>>>>> Opensim-dev mailing list
>>>>> Opensim-dev at lists.berlios.de
>>>>> https://lists.berlios.de/mailman/listinfo/opensim-dev
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Opensim-dev mailing list
>>> Opensim-dev at lists.berlios.de
>>> https://lists.berlios.de/mailman/listinfo/opensim-dev
>>>
>>
>>
>> _______________________________________________
>> Opensim-dev mailing list
>> Opensim-dev at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20120324/1f46f33d/attachment-0001.html>
More information about the Opensim-dev
mailing list