Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006067opensim[REGION] Script Functionspublic2012-06-29 06:432015-09-13 19:19
ReporterDigi Fly 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006067: llVolumeDetect master prim lose phantom after inworld shift+mouse copy and dont work anymore after region restart
DescriptionIf im make a inworld copy with shift+mouse from a prim that contains the following script. Then the master prim you use to make the copy lose its phantom. but phantom is still checked in edit.

default
{
    on_rez(integer start_param)
    {
        llResetScript();
    }
    
    state_entry()
    {
        llVolumeDetect(TRUE);
    }
    
    collision_start(integer total_number)
    {
        llOwnerSay("Detected!");
    }
}

Tried the following things on the master prim that lost phantom.

-Script reset. Dont make prim phantom.
-Script save. Dont make prim phantom.

I only get the prim working correct when i do the following action.

- Remove phantom check in edit screen.
- Reset prim.

The solution to get it working script based, also after a shift+mouse inworld copy is by modify the script and change "state_entry()" as follow.

    state_entry()
    {
        llSetStatus(STATUS_PHANTOM, FALSE);
        llVolumeDetect(TRUE);
    }

As long the prim is not phantom before llVolumeDetect(TRUE) is used, it works fine. If the prim where already phantom the result is unknown.
TagsNo tags attached.
Git Revision or version number729d90173f82f5ac51b8b69ee8b3362599ffd2f1
Run Mode Grid (1 Region per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows64
Mono VersionOther
Viewer
Attached Files

- Relationships

-  Notes
(0021719)
Digi Fly (reporter)
2012-06-29 16:20

Upping the severity.

It also breaks after a restart the script dont work. only open the script and reset it manual works. not workable if you have many.

Also expended the testing if you set the prim not phantom before restart it works fine after the sim is restarted. but the prim is not phantom. this test is done with inside state_entry() the following line. llSetStatus(STATUS_PHANTOM, FALSE);

When i remove llSetStatus(STATUS_PHANTOM, FALSE); from the script and restart , the script dont respond on hit.

When i use the same setting, but turn phantom off before and restart, the script work. but the prim dont turn phantom and fail to work correct.

Someone suggested to add a llSlkeep in the state_entry()
i changed that part as follow.

    state_entry()
    {
        llSetStatus(STATUS_PHANTOM, FALSE);
        llSleep(0.4);
        llVolumeDetect(TRUE);
    }

Same result, after restart prim is phantom but dont respond.
(0021816)
Scooter (reporter)
2012-07-19 13:17

There's a workaround for this btw, when detecting a region restart event, reset the volume detect.
(0021817)
Digi Fly (reporter)
2012-07-19 13:27

Only know state_entry wiki dont show restart_event. llResetScript(); did not work to fix it.
(0021852)
Scooter (reporter)
2012-07-20 11:01

What you're looking for is

    changed(integer chng)
    {
        if(chng & CHANGED_REGION_RESTART)
        {
            llVolumeDetect(TRUE);
        }
    }
(0029475)
Ferd Frederix (reporter)
2015-09-13 19:19

This works in Linux boxes on OpenSim 0.8.2.0 Dev 2153a01cc7 7-Aug-2015 r/26141 (Unix/Mono)

llSetStatus(STATUS_PHANTOM, FALSE);
llVolumeDetect(FALSE);
llSleep(0.1);
llVolumeDetect(TRUE);

You do not need the llSetStatus on Windows on dev master as of the same date

- Issue History
Date Modified Username Field Change
2012-06-29 06:43 Digi Fly New Issue
2012-06-29 16:20 Digi Fly Note Added: 0021719
2012-06-29 16:21 Digi Fly Severity minor => major
2012-06-29 16:27 Digi Fly Summary llVolumeDetect master prim lose phantom after inworld shift+mouse copy => llVolumeDetect master prim lose phantom after inworld shift+mouse copy and dont work anymore after region restart
2012-07-19 13:17 Scooter Note Added: 0021816
2012-07-19 13:27 Digi Fly Note Added: 0021817
2012-07-20 11:01 Scooter Note Added: 0021852
2015-09-13 19:19 Ferd Frederix Note Added: 0029475


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker