aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Interfaces (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel2016-11-034-21/+117
|
* Extend default 1 second wait for event completion to other thread script ↵Justin Clark-Casey (justincc)2012-12-171-1/+30
| | | | | | | | reset (as called by llResetOtherScript()). As with script stop (via llDie()) aborting other scripts event threads, llResetOtherScript() can also abort any current event thread on another script. On mono 2.6, 2.10 and possibly later this may cause locking problems in certain code areas. This commit reuses the recently introduced [XEngine] WaitForEventCompletionOnScriptStop to make this a 1 sec timeout, rather than 0 secs.
* Add "debug script log" command to allow setting a numeric debug level on ↵Justin Clark-Casey (justincc)2012-12-121-0/+12
| | | | | | | individual IScriptInstances for debugging purposes. Current, state changes and event fires can be logged for individual scripts. See command help for more details.
* Add IScriptInstance.EventsQueued to match EventsProcessed instead of asking ↵Justin Clark-Casey (justincc)2012-12-051-0/+5
| | | | callers to lock and directly inspect the EventQueue
* Add IScriptInstance.EventsProcessed stat so that we can record this ↵Justin Clark-Casey (justincc)2012-12-051-0/+5
| | | | information and display in "show scripts" for debug purposes
* Revert "Fix script "Running" behavior"Melanie2012-07-161-10/+0
| | | | | | A better solution using the already present flags must be found. This reverts commit 6d3ee8bb39d47ed7b32e8905fa0b2fc31c5a9f80.
* Fix script "Running" behaviorBlueWall2012-06-231-0/+10
| | | | Unchecking "Running" box in script editor now persists. This fixes http://opensimulator.org/mantis/view.php?id=6057
* refactor: Eliminate local id parameter from api initialize.Justin Clark-Casey (justincc)2012-05-081-2/+1
| | | | This is always available from m_host.LocalId
* Instead of constantly looking up unchanging self item in script code, pass ↵Justin Clark-Casey (justincc)2012-05-081-7/+13
| | | | in self item on initialization.
* Aggregate script execution times by linksets rather than individual prims.Justin Clark-Casey (justincc)2012-03-161-0/+11
| | | | This is for the top scripts report.
* Replace script-lines-per-second with the script execution time scaled by its ↵Justin Clark-Casey (justincc)2012-03-161-0/+15
| | | | | | | | | | | measurement period and an idealised frame time. The previous lines-per-second measurement used for top scripts report was inaccurate, since lines executed does not reflect time taken to execute. Also, every fetch of the report would reset all the numbers limiting its usefulness and we weren't even guaranteed to see the top 100. The actual measurement value should be script execution time per frame but XEngine does not work this way. Therefore, we use actual script execution time scaled by the measurement period and an idealised frame time. This is still not ideal but gives reasonable results and allows scripts to be compared. This commit moves script execution time calculations from SceneGraph into IScriptModule implementations.
* Remove property/field duplication in ScriptInstance where it's unnecessary.Justin Clark-Casey (justincc)2012-03-151-0/+8
|
* refactor: rename ScriptInstance.m_CurrentResult to m_CurrentWorkItem to make ↵Justin Clark-Casey (justincc)2012-03-141-2/+6
| | | | | | it more understandable as to what it is and what it does (hold a thread pool work item for a waiting of in-progress event) Also add other various illustrative comments
* Register the UrlModule for script engine events OnScriptRemoved and ↵Justin Clark-Casey (justincc)2012-01-141-7/+0
| | | | | | | | | OnObjectRemoved just once in the UrlModule itself, rather than repeatedly for every script. Doing this in every script is unnecessary since the event trigger is parameterized by the item id. All that would happen is 2000 scripts would trigger 1999 unnecessary calls, and a large number of initialized scripts may eventually trigger a StackOverflowException. Registration moved to UrlModule so that the handler is registered for all script engine implementations. This required moving the OnScriptRemoved and OnObjectRemoved events (only used by UrlModule in core) from IScriptEngine to IScriptModule to avoid circular references.
* add current script status to "scripts show" command (running, suspended, etc.)Justin Clark-Casey (justincc)2011-10-191-1/+6
|
* Fix llAttachToAvatar()Justin Clark-Casey (justincc)2011-08-241-0/+11
| | | | | | Apart from one obvious bug, this was failing because attempting to serialize the script from inside the script (as part of saving the attachment as an inventory asset) was triggering an extremely long delay. So we now don't do this. The state will be serialized anyway when the avatar normally logs out. The worst that can happen is that if the client/server crashes, the attachment scripts start without previous state.
* Trigger changed event with CHANGED_TELEPORT when teleporting to another region.Marck2010-11-261-1/+2
|
* Add configurable path to script engine assembliesBlueWall2010-09-261-0/+1
| | | | | | | | | Adding ability to place script engine assemblies outside the codebase directories. Uses new [XEngine] option: ScriptEnginesPath = "path_to_assemblies" Signed-off-by: Melanie <melanie@t-data.com>
* People can't leave their hands ooff "well enough". StateSource 0 was regionMelanie2010-08-061-4/+5
| | | | | | start, and they started at 1 for real values. Whoever changed that enum to start at 0 should bow their head in shame. They broke the region start event. This puts it right again. Meow!
* All scripts are now created suspended and are only unsuspended when the objectMelanie2010-04-191-0/+3
| | | | | | is fully rezzed and all scripts in it are instantiated. This ensures that link messages will not be lost on rez/region crossing and makes heavily scripted objects reliable.
* Revert "Remove an insterface member that was never used"Melanie2009-12-221-0/+1
| | | | | | | It was used. By the API, which is dynamically loaded. So it didn't complain until it hit Bamboo This reverts commit 33d5018e94e52cb875bf43bced623bdc6aa41ef0.
* Remove an insterface member that was never usedMelanie2009-12-221-1/+0
|
* Remove the old (Remoting) region crossing code. Fix the new code toMelanie2009-11-261-1/+0
| | | | | | | | | | pass script state and assembly again properly. Reintroduce respecting tht TrustBinaries flag. Changes the interregion protocol! No version bump because it was broken anyway, so with a version mismatch it will simply stay broken, but not crash. Region corssing still doesn't work because there is still monkey business with both rezzed prims being pushed across a border and attached prims when walking across a border. Teleport is untested by may work.
* OptimizationsDan Lake2009-10-291-3/+1
|
* Experimental. Set attachment flag early on rezzing from inventory.Melanie2009-09-011-1/+0
|
* Change the return value if the compiler to "object" to allow compilersMelanie2009-08-311-2/+2
| | | | to return dynamic method objects
* Another stab at cmickeyb's patch for script GC.Melanie2009-08-071-0/+2
| | | | | Moved the Close() for the appdomain-hosted parts into a new destructor on ScriptInstance.
* Revert the XEngine memleak patch, it causes premature GC.Melanie2009-08-071-2/+0
| | | | | This matches behavior seen with an earlier attempt to do this, apparently the sponsor mechanism does't work in Mono
* |From: James J Greensky <jame.j.greensky@intel.com>Melanie2009-08-061-0/+2
| | | | | | | | | | | | | | | | | | | |Date: Wed, 5 Aug 2009 09:51:52 -0700 |Subject: [PATCH] Closed two major memory leaks for scripted objects | |Two major memory leaks for the scripted objects were fixed |- One leak had to do with remoting acrossing app domains. When a script and | its controlling agent communicate across an application boundary, it calls | functions on a stub proxy object that then invokes the remote method on | the object in the other app domain. These stub objects (two for each script) | were setup to have infinate lifetimes and were never being garbage collected. |- The second leak was the result of adding a scene object part instance method | to a scene event and never removing it. This cause the event's delegate list | to maintain a link to that object which is then never freed as the scene event | object is never destroyed. Patch applied, please direct feedback to me. Possible issue: Longtime idle scripts like vendors may fail.
* Slight change to state management for attach scheduling.Alan Webb2009-08-041-1/+2
| | | | Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
* Add plumbing for the SceneObjectDeleter to wait for the script engine toMelanie2009-08-041-0/+1
| | | | allow final deletion of objects. Meant to support the attach(NULL_KEY) event,
* Publish a method on ICompiler to generate the CIL assembly pathMelanie Thielker2009-06-211-0/+1
| | | | | | Cause group deeding to apply next owner perms
* Correct an error where the config file name was always considered to be aMelanie Thielker2009-06-061-0/+1
| | | | | | | local file. This caused llHttpRequest and llSetInventoryPermsMask to fail on regions that load their config from a web server
* Thank you, thomax, for a patch to provide finer-grained access control toMelanie Thielker2009-06-051-1/+2
| | | | | | | scripting. Fixes Mantis #2862
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-015-5/+5
| | | | LICENSE.txt.
* Convert both script engines to new region module format. Add proper unloadMelanie Thielker2009-04-151-0/+1
| | | | | | handling to XEngine. Add needed stubs to DotNetEngine.
* Introduce IXmlRpcRouter, an interface that allows registering XMLRPCMelanie Thielker2009-04-101-0/+3
| | | | | | | UUIDs with a central marshaller for grids, or publish the ULS for objects elsewhere.
* Add events to IScriptEngine to notify scripting modules of the removalMelanie Thielker2009-04-101-0/+7
| | | | | | | | | of objects from the scene, and of scripts from objects. This facilitates the development of modules that can register prims with externall servers for inbound email and XMLRPC. Currently implemented in XEngine only. Also applying cmickeyb's compiler locking patch, since it seems risk-free.
* Mantis#3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke2009-02-231-0/+1
| | | | | | | Adds a warning for an LSL construct that exploits a popular list memory saving hack.
* Refactor log4net logger handling in script engine. (#3148)Jeff Ames2009-02-221-1/+0
|
* This changeset is the step 1 of 2 in refactoringDr Scofield2009-02-062-2/+2
| | | | | | | | | | | | | | | | | | | | OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
* From: Christopher Yeoh <yeohc@au1.ibm.com>Dr Scofield2009-01-281-0/+1
| | | | | | | | | | | | | | | | | | | This changeset fixes a race condition where a script (XEngine run) can startup before a reference is added to it in all of the required places in the XEngine class. The effect of this is that a script can sometimes on startup miss script events. For example a script which starts up and initialises itself from a notecard may never receive the dataserver event containing the notecard information. The patch isn't as clean as I'd like - I've split the constructor of ScriptInstance up so it does everything it did before except call Startup and post events like state_entry and on_rez. An Init function has been added which is called after the ScriptInstance object has been added to the necessary data structures in XEngine. Happy to rework it if someone suggests a better way of doing it.
* An initial implementation of llMinEventDelay in XEngine.idb2008-12-212-0/+2
| | | | | | Not implemented yet in DotNetEngine. Fixes Mantis #2830
* Start scripts in attachments only after a successful attach. ElimininateMelanie Thielker2008-11-291-1/+1
| | | | | | a gratuitious asset fetch when region crossing.
* Make scripts in objects rezzed from script compile synchronously to closeMelanie Thielker2008-11-131-1/+2
| | | | | | a timing gap. Still not 100%, but getting there
* Script region crossing. This has not user functionality, but lays all theMelanie Thielker2008-11-091-2/+1
| | | | | | groundwork.
* Work in progress on SECS stuff. Have been holding it off until after 0.6 ↵Tedd Hansen2008-11-081-2/+0
| | | | release. Still messy as hell and doesn't really work yet. Will undergo dramatic changes. AND MOST IMPORTANTLY: Will be conformed to work in coop with todays DNE and XEngine, hopefully one day providing a common interface for all components.
* Add some discovery code, laying groundwork for region-crossing scriptsMelanie Thielker2008-11-081-3/+0
| | | | | | No user functionality yet
* Refactor IEventReceiver back into IScriptEngineMelanie Thielker2008-11-084-73/+34
|
* Reintroduces the discovery mechanism to use llRequestSimulatorData("", 128)Melanie Thielker2008-10-032-2/+1
| | | | | | | Causes the dataserver event to return "OpenSim" when running on OpenSim. Requires ThreatLevel to be "High" or above to function.