Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008508opensim[REGION] OpenSim Corepublic2019-03-25 00:402019-03-27 19:36
Assigned To 
PlatformOSOS Version
Product Version0.9.0.1 
Target VersionFixed in Version 
Summary0008508: Issues with an attachment-script
DescriptionIssues with an attachment-script:
The script try to swap an an attachment from left hand to right hand and back on every click on it.
The frist problem is, thts does not work at expected.
The second problem is, that I can't teleport to other region after doing that.
The test-Script is simple, see uploaded file or "Additional Information"
Steps To Reproduce1. Download the script or take it from "Additiomal Information"
2. create an cube to ground.
3. put the test-script in.
4. take the cube to inventory
5. wear it (eg. to left hand)
6. click on the cube (it seems not work correctly)
7. try teleport to other region
8. check logfile of source and destination grid (you will probably see some null-reference exceptions there)
9. try logout
10. try relogin (you probably can't, because there is still an dead session on robust-database)
Additional Informationdefault {
    state_entry() {

    touch_start(integer n) {
        llOwnerSay("* touch *");

    attach(key id) {
        integer att = llGetAttached();
        if(id == NULL_KEY) {
            llOwnerSay("* detached *");
        else {
            llOwnerSay("* atttached *");

    run_time_permissions(integer permissions) {
        if (PERMISSION_ATTACH & permissions) {
            integer att = llGetAttached();
            if (att == ATTACH_RHAND) {
                llOwnerSay("* swap to left hand *");
            else {
                llOwnerSay("* swap to right hand *");
TagsNo tags attached.
Git Revision or version numberlast git checkout from master: 481d7156d16adc59da0ab82f0ae5d7b3c584e104
Run Mode Grid (1 Region per Sim)
Physics EngineubODE
Script Engine
EnvironmentMono / Linux64
Mono Version5.x
ViewerSingularity 64bit
Attached Files? file icon test.script [^] (866 bytes) 2019-03-25 00:40

- Relationships

-  Notes
UbitUmarov (administrator)
2019-03-27 19:36

sorry, that script does not work.
 llAttachToAvatar assumes the object is not attached.
I made code changes to ensure it is ignored otherwise.
that problems you noticed where possible because it did tried...

- Issue History
Date Modified Username Field Change
2019-03-25 00:40 tglion New Issue
2019-03-25 00:40 tglion File Added: test.script
2019-03-27 02:19 aiaustin Summary Issues with an attachement-script => Issues with an attachment-script
2019-03-27 02:19 aiaustin Description Updated View Revisions
2019-03-27 02:26 tglion Description Updated View Revisions
2019-03-27 02:27 tglion Description Updated View Revisions
2019-03-27 19:36 UbitUmarov Note Added: 0034995

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker