Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006056opensim[REGION] Scripting Enginepublic2012-06-21 18:382012-06-21 19:10
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006056: CHANGED_OWNER not firing
Descriptionwhen in the changed event, the CHANGED_OWNER is not firing by doing the functions it is assigned..
TagsNo tags attached.
Git Revision or version numbernot applicable
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics
Script Engine
EnvironmentMono / Linux32, Mono / Linux64, Mono / Windows
Mono VersionNone
Attached Files

- Relationships

-  Notes
BlueWall (administrator)
2012-06-21 19:10

the changed event does not fire unless the region has seen the script before, after the object is rezzed in a region, another copy can be sent to be rezzed in the region. The changed event fires and triggers CHANGED_OWNER.

Use 2 avatars, Make an object with the following script inside. Have avatar one touch a few times to increment the number then take a copy and send and it to the other avatar, which travels to other regions. The second avatar rezzes the object and nothing is sent to the output. Touch the object and noter that the number increments to the next number. The variable is saved. Delete the object. Have avatar one send another copy of the object to avatar two. Rez the object and see that the changed event is triggered. Touch the object and note that rhe count starts at 0 because the script reset in the changed/CHANGED_OWNER event. Move the second avatar to a new region and repeat.

The script...

integer number;

        number = 0;
        llSay(0, "Script running");
    touch_start(integer det)
        llSay(0,(string) number);
    changed(integer _ch)
        llSay(0,"Chage: " + (string) _ch);
        if ((_ch & CHANGED_OWNER) == CHANGED_OWNER)
            llSay(0, "New Owner!");

- Issue History
Date Modified Username Field Change
2012-06-21 18:38 AzahTabor New Issue
2012-06-21 19:10 BlueWall Note Added: 0021676

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker