Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008637opensim[REGION] Script Functionspublic2019-12-27 03:012019-12-28 06:20
ReporterCnayl Rainbow 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version0.9.1.0 
Target VersionFixed in Version 
Summary0008637: Events moving_start() and moving_end() don't work the same as in Second Life
DescriptionIn Second Life these events are triggered by any movement but in OpenSim they are not. I have tried moving physical objects and also using function llMoveToTarget and in no case do the events seem to fire.
Steps To ReproduceCreate a sphere, make it physical and add the simple test script below. Then move the ball by hand. In Second Life as soon as it starts and stops moving it will report this via the moving_start & moving_end events, however in OpenSim it doesn't trigger these events.


default
{
  moving_start()
  {
    llOwnerSay("Moving!");
  }

  moving_end()
  {
    llOwnerSay("Stopped!");
  }
}
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (1 Region per Sim)
Physics EngineBulletSim, ubODE
Script EngineXEngine
EnvironmentMono / Linux64
Mono VersionOther
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0036014)
UbitUmarov (administrator)
2019-12-27 15:18

Thanks for the report
Will take a look
(0036015)
UbitUmarov (administrator)
2019-12-27 15:53
edited on: 2019-12-29 04:43

This was already discussed in past ( mantis 6519)
when the events were made operational only for KFM and MovetoTarget
already then it was known SL did it on more cases...
but never improved
now many scripts may have handlers only considering those cases, and some may misbehave on editing position
fun fun..

(0036016)
Cnayl Rainbow (reporter)
2019-12-28 03:41

I did try with MoveToTarget in a 0.9.1 region and that didn't trigger the events.

I guess if it's a case of "that's how it is" at least the wiki at http://opensimulator.org/wiki/LSL_Status/Events [^] needs updating to show this in the notes column...
(0036017)
UbitUmarov (administrator)
2019-12-28 04:33
edited on: 2019-12-29 04:42

acording to those old mantis it should work (?)
issue now is how ill defined that actually is, at sl seems just a position change when code is actually "looking", didn't test enter sim, but on rez does not trigger them now, position change on edit triggers both at edit release (at least right order)
also seems some needed filtering is up (we will need some, position can have "noise")

With this ill conditions definition don't see how this things can be used reliable on any script, even "there" (didn't even looked to attachments cases where wiki just says "something" needs to be done)
I still don't say its a case of "that's how it is" but sure not that c... we see there...

(0036018)
Cnayl Rainbow (reporter)
2019-12-28 06:20

Here is a test script I tried out - very chatty in SL but nothing in OpenSim

default
{
    state_entry()
    {
        vector pos = llGetPos();
        llSetStatus(STATUS_PHYSICS, TRUE);
        // Little pause to allow server to make potentially large linked object physical.
        llSleep(0.1);
        llMoveToTarget(pos,0.4);
        // Look for owner within 20 meters in 360 degree arc every 1 seconds.
        llSensorRepeat("", llGetOwner(), AGENT, 20.0, PI,1.0);
    }
    sensor(integer total_number)
    {
        // Get position of detected owner
        vector pos = llDetectedPos(0);
        // Offset back one meter in X and up one meter in Z based on world coordinates.
        vector offset =<-1,0,1>;
// offset = offset*llDetectedRot(0); //Adding this line will orient the follower relative to the owner's position.
        pos+=offset;
        llMoveToTarget(pos,0.4);
    }
    
    moving_start()
  {
    llOwnerSay("Moving!");
  }

  moving_end()
  {
    llOwnerSay("Stopped!");
  }

- Issue History
Date Modified Username Field Change
2019-12-27 03:01 Cnayl Rainbow New Issue
2019-12-27 03:09 Cnayl Rainbow Product Version 0.9.0.1 => 0.9.1.0
2019-12-27 15:18 UbitUmarov Note Added: 0036014
2019-12-27 15:53 UbitUmarov Note Added: 0036015
2019-12-27 15:54 UbitUmarov Note Edited: 0036015 View Revisions
2019-12-28 03:41 Cnayl Rainbow Note Added: 0036016
2019-12-28 04:33 UbitUmarov Note Added: 0036017
2019-12-28 06:20 Cnayl Rainbow Note Added: 0036018
2019-12-29 04:42 aiaustin Note Edited: 0036017 View Revisions
2019-12-29 04:43 aiaustin Note Edited: 0036015 View Revisions


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker