Re: [Opensim-dev] Adding custom LSL functions

2012-03-19 Thread Dahlia Trimble
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 cmick...@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

Re: [Opensim-dev] Adding custom LSL functions

2012-03-15 Thread Mic Bowman
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:

Re: [Opensim-dev] Adding custom LSL functions

2012-03-13 Thread Mic Bowman
PMint, I just posted a patch to mantis for an *experimental* feature that enables invocation of functions defined by a region module. In your region module you register a binding for a function with the ScriptWorldComms module and then you can use in your script either a call like: string result

Re: [Opensim-dev] Adding custom LSL functions

2012-03-13 Thread Mic Bowman
here's the mantis entry: http://opensimulator.org/mantis/view.php?id=5930 --mic On Tue, Mar 13, 2012 at 9:22 AM, Mic Bowman cmick...@gmail.com wrote: PMint, I just posted a patch to mantis for an *experimental* feature that enables invocation of functions defined by a region module. In

Re: [Opensim-dev] Adding custom LSL functions

2012-03-13 Thread Per Mint
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@lists.berlios.de https://lists.berlios.de/mailman/listinfo/opensim-dev

Re: [Opensim-dev] Adding custom LSL functions

2012-03-13 Thread Mic Bowman
odd. it was there last night. anyway... i uploaded it again. --mic On Tue, Mar 13, 2012 at 2:12 PM, Per Mint pmi...@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] Adding custom LSL functions

2012-03-12 Thread Per Mint
Hello, I would like to add some LSL-like functions to OpenSim using a separate DLL or Region Module. I found some 2009 discussions about this and read about the modSendCommand() on Justin blog. modSendCommand() is great for testing, or simple stuff, but is there a way to write som simple

Re: [Opensim-dev] Adding custom LSL functions

2012-03-12 Thread Mic Bowman
The short answer is no. If you want functionality in a region module with the current code base.. you need to either hookup to the comm events (which means processing every chat message) or use modSendCommand which works well if you don't mind parsing the args yourself using events to return

Re: [Opensim-dev] Adding custom LSL functions

2012-03-12 Thread Per Mint
Mic, Thanks for your answer. If I understand well, if you wanted to add custom LSL script functions, I would have to add many calls into core OpenSim script engine DLLs ? And this would not be easily maintainable this way ? Thanks, PMint. ___

Re: [Opensim-dev] Adding custom LSL functions

2012-03-12 Thread Justin Clark-Casey
On 12/03/12 17:23, Per Mint wrote: Mic, Thanks for your answer. If I understand well, if you wanted to add custom LSL script functions, I would have to add many calls into core OpenSim script engine DLLs ? And this would not be easily maintainable this way ? What I believe Mic is getting at,

Re: [Opensim-dev] Adding custom LSL functions

2012-03-12 Thread Per Mint
Justin, Mic, Thanks, I understand better. I will use modSendCommand() for now. Best, PMint. ___ Opensim-dev mailing list Opensim-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/opensim-dev