Change font size
It is currently Sun Dec 15, 2019 10:24 am


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: attachments funktionieren nicht im Schul-Grid
PostPosted: Sat Nov 16, 2019 9:30 am 
Furious Typer

Joined: Mon Feb 13, 2017 1:53 pm
Posts: 74
Hallo!
Ich bin Lehrer und wir haben an unserer Schule ein Schul-Grid.
Ich verwende den Firestorm Viewer.
Leider kann ich über den Server und seine Einstellungen noch keine Angaben machen.

Es gibt ein Problem mit Attachments:

Wenn ich das Script des Attachments starte, wird das Attachment nicht angehängt.
Stattdessen erhalte ich die Error Message: "System.InvalidCastException: Cannot cast from source type to destination type."

Es scheint sich nicht um einen Script-Error zu handeln, sondern scheint mit der Architektur der Software zusammenzuhängen.

Hat jemand von euch vielleicht eine Idee, wie man das Problem lösen könnte?
Ich poste Script und Error-Message unten.

Vielen Dank im Voraus!

script:
{L_CODE}:
//-- This example can demonstrate ownership transfer of an object on a temporary basis using llAttachToAvatarTemp()
//-- Whoever touches will be asked for permission to attach, and upon granting permission will have the item attach,
//-- But not appear in Inventory.
default
{
    touch_start(integer num_touches)
    {
        llRequestPermissions( llDetectedKey(0), PERMISSION_ATTACH );
    }

    run_time_permissions( integer vBitPermissions )
    {
        if( vBitPermissions & PERMISSION_ATTACH )
        {
            llAttachToAvatarTemp( ATTACH_LHAND );
        }
        else
        {
            llOwnerSay( "Permission to attach denied" );
        }
    }

    on_rez(integer rez)
    {
        if(!llGetAttached())
        { //reset the script if it's not attached.
            llResetScript();
        }
    }
}


error message:
{L_QUOTE}:
[06:09] Module command functions not enabled
[06:09] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Server stack trace:
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at OpenSim.Region.ScriptEngine.Shared.ScriptBase.Executor.ExecuteEvent (System.String state, System.String FunctionName, System.Object[] args) [0x00000] in <filename unknown>:0

Exception rethrown at [0]:
---> System.InvalidCastException: Cannot cast from source type to destination type.

Server stack trace:
at OpenSim.Region.ScriptEngine.Shared.Api.MOD_Api.modInvokeI (System.String fname, System.Object[] parms) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) OpenSim.Region.ScriptEngin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net