[Opensim-dev] System.InvalidCastException: Specified cast is not valid.
Diva Canto
diva at metaverseink.com
Mon Feb 14 17:02:54 UTC 2011
Additionally to what Teravus says: not just LSL scripts (which seems to
be the issue here), but some 3rd party tools for exporting content from
SL seem to be using ',' for floating point numbers. This does not work
in OpenSim. So please be careful with how you export SL content.
On 2/14/2011 8:20 AM, Teravus Ovares wrote:
> Exception has been thrown by the target of an invocation, usually
> means that there was an exception during the constructor.
>
> Additionally; System.InvalidCastException probably means that it was
> trying to cast a string to a specific type.
>
> If I had to guess, I'd say that this is probably a number formatting issue.
>
> Check the number format in your script. I'm pretty sure that LSL is
> currently only working with US type number strings, 0.00 not 0,00
>
> The comma placement may or may not be your issue, however, it's the
> most common cause of these types.
>
> Regards
>
> Teravus
>
> On Mon, Feb 14, 2011 at 3:45 AM, Ina Centaur<ina.centaur at gmail.com> wrote:
>> In trying to apply a hair color change script, I encountered the above
>> error. LSL @ http://pastebin.com/K6HnW1N4
>> Error below
>>
>> n.b. tried both string and key for the global assign's
>>
>>
>>
>> [OA] Hair - Alan - Copper:
>> System.Reflection.TargetInvocationException: Exception has been thrown
>> by the target of an invocation. ---> System.InvalidCastException:
>> Specified cast is not valid.
>>
>>
>>
>> Server stack trace:
>>
>> at OpenSim.Region.ScriptEngine.Shared.LSL_Types.list.GetLSLFloatItem(Int32
>> itemIndex)
>>
>> at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.SetPrimParams(SceneObjectPart
>> part, list rules)
>>
>> at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llSetLinkPrimitiveParams(Int32
>> linknumber, list rules)
>>
>> at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr
>> md, Object[] args, Object server, Int32 methodPtr, Boolean
>> fExecuteInContext, Object[]& outArgs)
>>
>> at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle
>> md, Object[] args, Object server, Int32 methodPtr, Boolean
>> fExecuteInContext, Object[]& outArgs)
>>
>> at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
>> msg, Int32 methodPtr, Boolean fExecuteInC
>> _______________________________________________
>> 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
>
More information about the Opensim-dev
mailing list