MantisBT - opensim
View Issue Details
0008508opensim[REGION] OpenSim Corepublic2019-03-25 00:402019-03-27 19:36
tglion 
 
normalcrashalways
newopen 
0.9.0.1 
 
last git checkout from master: 481d7156d16adc59da0ab82f0ae5d7b3c584e104
Grid (1 Region per Sim)
ubODE
Mono / Linux64
5.x
Singularity 64bit
0008508: Issues with an attachment-script
Issues 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"
1. 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)
default {
    state_entry() {
    }

    touch_start(integer n) {
        llOwnerSay("* touch *");
        llRequestPermissions(llGetOwner(),PERMISSION_ATTACH);
    }

    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 *");
                llAttachToAvatar(ATTACH_LHAND);
            }
            else {
                llOwnerSay("* swap to right hand *");
                llAttachToAvatar(ATTACH_RHAND);
            }
        }
    }
}
No tags attached.
? test.script (866) 2019-03-25 00:40
http://opensimulator.org/mantis/file_download.php?file_id=4851&type=bug
Issue History
2019-03-25 00:40tglionNew Issue
2019-03-25 00:40tglionFile Added: test.script
2019-03-27 02:19aiaustinSummaryIssues with an attachement-script => Issues with an attachment-script
2019-03-27 02:19aiaustinDescription Updatedbug_revision_view_page.php?rev_id=7911#r7911
2019-03-27 02:26tglionDescription Updatedbug_revision_view_page.php?rev_id=7912#r7912
2019-03-27 02:27tglionDescription Updatedbug_revision_view_page.php?rev_id=7913#r7913
2019-03-27 19:36UbitUmarovNote Added: 0034995

Notes
(0034995)
UbitUmarov   
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...