Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008538opensim[REGION] Scripting Enginepublic2019-05-30 02:412019-05-30 02:41
ReporterManwa Pastorelli 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformLinuxOSUbuntuOS Version19.04
Product Version0.9.0.1 
Target VersionFixed in Version 
Summary0008538: attach event somtimes causes on_rez to not trigger
DescriptionI was trying to make an auto-pickup system for my rez box.

Basically all it does it force attach the item after you drop the script in then force detach it.

After putting these items into the rez box I noticed that many failed to move into place.

Adding debug shows that the integer in the OnRez is just not being set. The s same script without the attach event works perfectly every time
Steps To ReproduceReproduces in 0.8.2.1 & 0.9.0.1 Under both .Net and mono

make a box, then drop the RezBox-Control and Rez-Box rezzor into it, select absolute positioning (just to avoid a timer triggering).

Next, build 10 more empty boxes with the same name. To make the test quick and fair take a collesed object copy of them.

Drop a copy of the RezBoxItem-Autopickup script into each of the empty boxes

add the items from your inventory to the rez box's inventory.

Click rez, you will notice some fail to move. Reading local chat you will also see that only the ones which moved showed their number from the on_rez event.

Repete the same process a 2nd time but use the self-pickup script. After each one says it has saved the notecard, pick it up to your inventory manually.

Now add the items from your inventory to the rez box's inventory and click rez. All items will move as they should.
Additional InformationThere are very few differences between these scripts. The auto pickup script has an extra "attach" event. It also has a force attach function immediately after the check to make sure the notecard has been written.

attach(key id)
{
   if (id) // is a valid key and not NULL_KEY
   { //if this has been attached to an avi come here
       osForceDetachFromAvatar(); //forces the detachment of the item from the avi
    }
}

TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Linux64
Mono Version5.x
ViewerFirestorm 6.0.2 (56680)
Attached Fileszip file icon Scripts.zip [^] (24,901 bytes) 2019-05-30 02:41

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-05-30 02:41 Manwa Pastorelli New Issue
2019-05-30 02:41 Manwa Pastorelli File Added: Scripts.zip


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker