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.<div>
<br></div><div>--mic</div><div><br><div><br><div class="gmail_quote">On Tue, Mar 20, 2012 at 8:47 AM, Mic Bowman <span dir="ltr"><<a href="mailto:cmickeyb@gmail.com">cmickeyb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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. <div>

<br></div><div>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.</div>

<div><br></div><div>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). </div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>--mic</div></font></span><div class="HOEnZb"><div class="h5"><div><br><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 3:18 PM, Dahlia Trimble <span dir="ltr"><<a href="mailto:dahliatrimble@gmail.com" target="_blank">dahliatrimble@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nice!<div><br></div><div>Any thoughts on best practices for including LSL type mapping in C# sources?</div><div>
<div><div><br><br><div class="gmail_quote">On Thu, Mar 15, 2012 at 1:59 PM, Mic Bowman <span dir="ltr"><<a href="mailto:cmickeyb@gmail.com" target="_blank">cmickeyb@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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. <div>


<br></div><div>An example region module and script is described here:</div>
<div><a href="http://opensimulator.org/wiki/OSSL_Script_Library/ModInvoke" target="_blank">http://opensimulator.org/wiki/OSSL_Script_Library/ModInvoke</a>  </div><div><br></div><div>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).</div>


<span><font color="#888888">
<div><br></div><div>--mic</div></font></span><div><div><div><br><br><div class="gmail_quote">On Tue, Mar 13, 2012 at 2:21 PM, Mic Bowman <span dir="ltr"><<a href="mailto:cmickeyb@gmail.com" target="_blank">cmickeyb@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
odd. it was there last night.<div>anyway... i uploaded it again. </div><span><font color="#888888"><div><br></div><div>--mic</div></font></span><div><br><br><div class="gmail_quote"><div><div>On Tue, Mar 13, 2012 at 2:12 PM, Per Mint <span dir="ltr"><<a href="mailto:pmint6@gmail.com" target="_blank">pmint6@gmail.com</a>></span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>Mic,</div>
<div> </div>
<div>wow, thanks ! I didn't find in the mantis any link to the patch. Is there anyway I can help testing this out ?</div>
<div> </div>
<div>Best,</div>
<div>PMint.</div>
<br></div></div><div>_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>