Anonymous | Login | Signup for a new account | 2021-01-15 15:57 PST | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Summary | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0008538 | opensim | [REGION] Scripting Engine | public | 2019-05-30 02:41 | 2019-05-30 02:41 | |||||
Reporter | Manwa Pastorelli | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | new | Resolution | open | |||||||
Platform | Linux | Operating System | Ubuntu | Operating System Version | 19.04 | |||||
Product Version | 0.9.0.1 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0008538: attach event somtimes causes on_rez to not trigger | |||||||||
Description | I 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 Reproduce | Reproduces 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 Information | There 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 } } | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | ||||||||||
Run Mode | Grid (Multiple Regions per Sim) | |||||||||
Physics Engine | BulletSim | |||||||||
Script Engine | ||||||||||
Environment | Mono / Linux64 | |||||||||
Mono Version | 5.x | |||||||||
Viewer | Firestorm 6.0.2 (56680) | |||||||||
Attached Files | ![]() | |||||||||
![]() |
|||
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 |