|Anonymous | Login | Signup for a new account||2019-01-17 18:29 PST|
|Main | My View | View Issues | Change Log | Roadmap | Summary | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005800||opensim||[REGION] Script Functions||public||2011-11-27 04:46||2015-08-18 09:34|
|Product Version||master (dev code)|
|Target Version||Fixed in Version||master (dev code)|
|Summary||0005800: State changes are not immediate|
|Description||State changes are queued, not immediate. This contradicts http://wiki.secondlife.com/wiki/LSL_States, [^] which says|
When this line of code is executed, it will run anything in the state_exit event, and then switch to the new state.
When switching states, all event queues are cleared, and events requiring setup are disabled such as timer, sensor, and listen.
(This contradicts http://lslwiki.net/lslwiki/wakka.php?wakka=llSetTimerEvent, [^] which says the timer events persists over a state change.)
|Steps To Reproduce||Run the attached script. |
You can also run the script in http://opensimulator.org/wiki/OsNpcCreate [^] and touch the object containing the script twice quickly. This leave you with an extra clone avatar. This also demonstrates that the problem occurs with queued touch as well as queued timer events.
This script works exactly the same in grid and stand-alone mode.
|Additional Information||Note that in the attached script, state_entry is driven, then state_exit, and then state_entry again. This occurs without any action in the "another" state.|
I've been using NPC scripts, and every one of them turned out to be broken one way or another because of this glitch. The attached script contains a work-around for this problem, currently commented out.
|Tags||No tags attached.|
|Git Revision or version number||OSgrid 0.7.3 (Dev) ff36a1b: 2011-11-14 git hash : ff36a1bc7bcd1d0fe5aecb4c5358dbb072c7ff6e Release: R/17257|
|Run Mode||Grid (Multiple Regions per Sim)|
|Environment||.NET / Windows32|
|Attached Files||Mantis_0005800.lsl [^] (2,464 bytes) 2011-11-27 04:48|
|Looks like this is a duplicate of 6960 (or 6960 is a duplicate of this.)|
|Resolved issue marked as closed. Please open a new issue and refer to this one if problems arise.|
|2011-11-27 04:46||CrasherRob||New Issue|
|2011-11-27 04:48||CrasherRob||File Added: Mantis_0005800.lsl|
|2015-03-29 09:22||CrasherRob||Relationship added||related to 0006960|
|2015-03-29 09:23||CrasherRob||Note Added: 0027954|
|2015-03-29 09:24||CrasherRob||Relationship replaced||duplicate of 0006960|
|2015-03-29 09:24||CrasherRob||Status||new => resolved|
|2015-03-29 09:24||CrasherRob||Fixed in Version||=> master (dev code)|
|2015-03-29 09:24||CrasherRob||Resolution||open => fixed|
|2015-03-29 09:24||CrasherRob||Assigned To||=> CrasherRob|
|2015-08-18 09:34||aiaustin||Note Added: 0029244|
|2015-08-18 09:34||aiaustin||Status||resolved => closed|
|Copyright © 2000 - 2012 MantisBT Group|