[Opensim-dev] llGiveInventory Issues
catch3 at holotech.net
catch3 at holotech.net
Thu Jun 17 01:21:17 UTC 2010
> the issue is that you have no integer parameter in your touch_start event.
Doh! That comes from relying on autocomplete too much. That event
started life as a state_entry event, and I just typed over the event
name. (Isn't the compiler supposed to catch stuff like this?)
> Figures that you took a year to make that :P
Well, that was just a quick test script I threw together.
:P to you, too :)
--
Siann Beck
On Wednesday, June 16, 2010, 6:58:01 PM, you wrote:
> llGiveInventory is not the problem,
> the issue is that you have no integer parameter in your touch_start event.
> Figures that you took a year to make that :P
> Tom.
> On 16/06/2010 23:32, catch3 at holotech.net wrote:
>> I've asked about this in the SLUniverse OpenSim forum and the OpenSim
>> users list with no luck; hopefully someone here can shed some light or
>> point me in the right direction.
>>
>> I'm having trouble with llGiveInventory(). I have a script which has
>> been in production in SL for over a year. When I tested it in the late
>> Legend City last year it would deliver only if the recipient were
>> online, in the same sim as the object. I'm testing it now in 3rd Rock
>> Grid, and getting weird results. It will deliver to me (again, if I'm
>> online and in the same sim), but not to others, regardless of status
>> or location. I tried creating a basic script to test the function
>> with:
>>
>> default {
>> touch_start() {
>> key keyRecipient = llGetOwner();
>> llGiveInventory(keyRecipient, "3RG Test Object");
>> }
>> }
>>
>> When the event is triggered, I get:
>>
>> Tester: System.Reflection.TargetParameterCountException: Parameter count mismatch.
>>
>> Server stack trace:
>> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
>>
>> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
>>
>> at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
>>
>> at OpenSim.Region.ScriptEngine.Shared.ScriptBase.Executor.ExecuteEvent(String state, String FunctionName, Object[] args) in c:\OPENSIM_GIT\opensim\OpenSim\Region\ScriptEngine\Shared\Api\Runtime\Executor.cs:line 180
>>
>> at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.ExecuteEvent(String state, String FunctionName, Object[] args) in c:\OPENSIM_GIT\opensim\OpenSim\Region\ScriptEngine\Shared\Api\Runtime\ScriptBase.cs:line 95
>>
>> at System.Runtime.Remoting.Messaging.StackBuilderSink._Pr
>>
>>
>> Any ideas? What is the status of llGiveInventory() in OpenSim?
>>
>>
More information about the Opensim-dev
mailing list