Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003938opensim[REGION] Script Functionspublic2009-07-24 22:002011-08-11 22:01
Assigned To 
Platformx86 (intel processor, 32bit)OSLinuxOS VersionDebian Lenny
Product Version 
Target VersionFixed in Version 
Summary0003938: [Proposal] Type, afk, busy animation start/stop trigger changed event
Description(Former title: Typing and falling animation start/stop do not trigger changed event)

While the new CHANGED_ANIMATION flag for the changed() event handler is an excellent tool for low-cost animation overriders, it is not triggered when the typing or falling animations start or stop.

See "Steps To Reproduce" for a recipe, though it's kind of hard to force the agent to go into the falling state without performing some other movement that would also trigger the changed() event. However, it sometimes (though not always) occurs if you rebake while sitting on a prim with a sit target.
Steps To Reproduce1. Put the script in "Additional Information" into an attachment.
2. Move around to demonstrate that the changed() event handler is called when animation state changes.
3. Begin typing. Notice that the changed() event handler is not called.
4. Quit typing. Notice that when the typing animation stops, the changed() event handler is again not called.
5. Arrange to have the falling animation start, without performing any other movement which might trigger the changed() event. Again notice that the changed() event handler is not called.
Additional Information// Simple script to announce when the changed() event is called with the

    changed( integer whatChanged )
        if (whatChanged & CHANGED_ANIMATION)
            llOwnerSay( "Animation state changed." );
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineODE
Script Engine
EnvironmentMono / Linux32
Mono Version2.4
Attached Files

- Relationships

-  Notes
Godfrey (reporter)
2009-07-26 13:47

Going into and out of the "Away" animation also does not trigger the changed() event.
melanie (administrator)
2009-07-26 15:39

Changed() is triggered by a change of the avatar's "movement" animation, that is the basic animation state. Typing and away are overlay animations that don't trigger the changed() event.
changed() is triggered whenever an AO should check llGetAnimation(), which doesn't reflect typing and/or falling states. Those flags are queried by llGetAgentInfo (or something along those lines) and changed() is not fired for those changes. As of this time, this is by design for the typing and away animations, but appears to be a bug for the falling animation, which is a movement animation.
Godfrey (reporter)
2009-07-26 19:35

Overriding typing and away animations is a common AO function. Is there any chance a CHANGED_STATE equivalent to CHANGED_ANIMATION can be added so that AOs can be weaned off of timers altogether?
makopoppo (manager)
2011-08-11 22:01

Tested it on OpenSimulator 0.7.2-dev. Falling seems to have been fixed by now.

For what llGetAnimation() doesn't provide but llGetAgentInfo() provides, such as typing, away, busy, it might be considered as an feature proposal.

Changed the status of this issue to "feature" and modified its title to let developers know better.

- Issue History
Date Modified Username Field Change
2009-07-24 22:00 Godfrey New Issue
2009-07-24 22:00 Godfrey SVN Revision => 10072
2009-07-24 22:00 Godfrey Run Mode => Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
2009-07-24 22:00 Godfrey Physics Engine => ODE
2009-07-24 22:00 Godfrey Environment => Mono / Linux32
2009-07-24 22:00 Godfrey Mono Version => 2.4
2009-07-26 13:47 Godfrey Note Added: 0012602
2009-07-26 15:39 melanie Note Added: 0012603
2009-07-26 19:35 Godfrey Note Added: 0012608
2011-08-11 22:01 makopoppo Note Added: 0019467
2011-08-11 22:01 makopoppo Severity minor => feature
2011-08-11 22:01 makopoppo Status new => acknowledged
2011-08-11 22:01 makopoppo Summary Typing and falling animation start/stop do not trigger changed event => [Proposal] Type, afk, busy animation start/stop trigger changed event
2011-08-11 22:01 makopoppo Description Updated

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker