Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006827opensim[REGION] Script Functionspublic2013-11-03 11:092013-11-03 11:09
Reportershy 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006827: llAttachToAvatarTemp not working as expected
Description1) llAttachToAvatarTemp((integer)ATTACH_RHAND); produces the following message in the Nearby Chat:
[10:51] Grid: RLVa assertion failure: (!isAgentAvatarValid()) || ((idxAttachPt) && (idAttachItem.notNull())) (..\..\indra\newview\rlvlocks.cpp - 585)

2) Once the object is attached, it cannot be detached using "Detach" from the objects pie menue (nor the related menues below "Take Off" from the agents pie menue).

According to the Wiki on http://wiki.secondlife.com/wiki/LlAttachToAvatarTemp [^] llAttachToAvatarTemp(integer attach_point); follows the same convention as llAttachToAvatar, with the exception that the object will not create new inventory for the user, and will disappear on detach or disconnect.

While llAttachToAvatar works as expected in Opensimulator, llAttachToAvatarTemp does not.
Steps To Reproduce1) Make sure to set AllowMODFunctions = true in OpenSim.ini.

2) Create an object with the following script inside:

default {
    touch_start(integer t) {
        llRequestPermissions(llDetectedKey(0), PERMISSION_ATTACH);
    }

    run_time_permissions(integer p) {
        if(p & PERMISSION_ATTACH) {
            llAttachToAvatarTemp((integer)ATTACH_RHAND);
        }
    }
}

3) Touch the script and allow it to attach the object.
The error message mentioned above will appear in the Nearby Chat window.

4) Try to detach the object from the objects pie menue, unlike in Secondlife it wont detach.
Additional InformationI detected the problem in OS 0.7.6 but also tested with th actual dev of today.
TagsNo tags attached.
Git Revision or version number
Run Mode Standalone (Multiple Regions) , Grid (Multiple Regions per Sim)
Physics EngineODE
Script Engine
EnvironmentMono / Linux64
Mono Version2.10
ViewerFirestorm 4.4.2 (34167)
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-11-03 11:09 shy New Issue


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker