aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang1-3/+3
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel1-8/+37
2012-12-17Extend default 1 second wait for event completion to other thread script ↵Justin Clark-Casey (justincc)1-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.
2012-12-12Add "debug script log" command to allow setting a numeric debug level on ↵Justin Clark-Casey (justincc)1-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.
2012-12-05Add IScriptInstance.EventsQueued to match EventsProcessed instead of asking ↵Justin Clark-Casey (justincc)1-0/+5
callers to lock and directly inspect the EventQueue
2012-12-05Add IScriptInstance.EventsProcessed stat so that we can record this ↵Justin Clark-Casey (justincc)1-0/+5
information and display in "show scripts" for debug purposes
2012-07-16Revert "Fix script "Running" behavior"Melanie1-10/+0
A better solution using the already present flags must be found. This reverts commit 6d3ee8bb39d47ed7b32e8905fa0b2fc31c5a9f80.
2012-06-23Fix script "Running" behaviorBlueWall1-0/+10
Unchecking "Running" box in script editor now persists. This fixes http://opensimulator.org/mantis/view.php?id=6057
2012-03-16Aggregate script execution times by linksets rather than individual prims.Justin Clark-Casey (justincc)1-0/+11
This is for the top scripts report.
2012-03-16Replace script-lines-per-second with the script execution time scaled by its ↵Justin Clark-Casey (justincc)1-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.
2012-03-15Remove property/field duplication in ScriptInstance where it's unnecessary.Justin Clark-Casey (justincc)1-0/+8
2012-03-14refactor: rename ScriptInstance.m_CurrentResult to m_CurrentWorkItem to make ↵Justin Clark-Casey (justincc)1-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
2011-10-19add current script status to "scripts show" command (running, suspended, etc.)Justin Clark-Casey (justincc)1-1/+6
2011-08-24Fix llAttachToAvatar()Justin Clark-Casey (justincc)1-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.
2010-11-26Trigger changed event with CHANGED_TELEPORT when teleporting to another region.Marck1-1/+2
2010-08-06People can't leave their hands ooff "well enough". StateSource 0 was regionMelanie1-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!
2010-04-19All scripts are now created suspended and are only unsuspended when the objectMelanie1-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.
2009-11-26Remove the old (Remoting) region crossing code. Fix the new code toMelanie1-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.
2009-08-04 Slight change to state management for attach scheduling.Alan Webb1-1/+2
Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
2009-08-04Add plumbing for the SceneObjectDeleter to wait for the script engine toMelanie1-0/+1
allow final deletion of objects. Meant to support the attach(NULL_KEY) event,
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-04-15Convert both script engines to new region module format. Add proper unloadMelanie Thielker1-0/+1
handling to XEngine. Add needed stubs to DotNetEngine.
2009-01-28From: Christopher Yeoh <yeohc@au1.ibm.com>Dr Scofield1-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.
2008-12-21An initial implementation of llMinEventDelay in XEngine.idb1-0/+1
Not implemented yet in DotNetEngine. Fixes Mantis #2830
2008-11-29Start scripts in attachments only after a successful attach. ElimininateMelanie Thielker1-1/+1
a gratuitious asset fetch when region crossing.
2008-11-13Make scripts in objects rezzed from script compile synchronously to closeMelanie Thielker1-1/+2
a timing gap. Still not 100%, but getting there
2008-11-09Script region crossing. This has not user functionality, but lays all theMelanie Thielker1-2/+1
groundwork.
2008-11-08Refactor IEventReceiver back into IScriptEngineMelanie Thielker1-0/+3
2008-09-27Add friendly error messages to both engines.Melanie Thielker1-0/+3
2008-09-17Kan-Ed fix series. Fix llTakeControls to behave as documented.Melanie Thielker1-0/+1
XEngine fixes: prevent queue overruns, prevent spamming when no key is down. Release controls when conflicting permissions are requested or permissions are refused later. Release when prim or script are deleted. Fixes Scene script instance deletion semantics.
2008-09-16* minor: method documentationJustin Clarke Casey1-0/+8
2008-09-13Provide a GetApi method on the IScriptEngine to get a named API referenceMelanie Thielker1-0/+2
This allows cross-api method calls on the implementation and also allows "Meta APIs" that only provide common functionality to other APIs
2008-09-08Implement proper persistence of the following prim properties:Melanie Thielker1-0/+1
Floating text, Rotation, Texture animation, Particle System This will make "Eye Candy" scripts work without modification in XEngine. The use of the CHANGED_REGION_RESTART hack is no longer needed. Implemented in MySQL only, hovertext also in SQLite.
2008-09-06* This is the fabled LibOMV update with all of the libOMV types from JHurlimanTeravus Ovares1-6/+6
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
2008-08-28Refactor IScriptInstance / IScriptEngine to use a generic IScriptWorkItem,Melanie Thielker1-0/+7
which is a thin wrapper around a IWorkItemResult from the SmartThreadPool. However, it is very easy to reimplement on top of basic threading and therefore makes the IScriptInstance class independent of the specific threading implementation.
2008-08-27Refactor XScriptInstance to IScriptInstance and move into Shared/. NowMelanie Thielker1-26/+45
engines that want to use the XEngine's instance handling and state persistence can do so. IScriptInstance is optional, but it does require the SmartThreadPool if it is used.
2008-07-02Mantis#1648. Thank you, Melanie for a patch that:Charles Krinke1-0/+1
Fix a script Xengine deadlock/hang if llResetScript is used in changed()
2008-07-01From: kurt taylor (krtaylor)Dr Scofield1-0/+1
Another new OSSL function for returning the name of the script engine currently running, osGetScriptEngineName, added to both DotNet and XEngine OSSL API.
2008-06-28Mantis#1616. Applied Melanie's patch. This may or mayCharles Krinke1-0/+1
not break trunk.
2008-06-24* Applied patch from Melanie, mantis issue #1581 - "Refactor LSL language, ↵lbsa711-19/+23
api and compiler out of XEngine" "First stage in a major Script Engine refactor, that will result in the LSL implementaions ebing reconverged. Not there yet, but one major part is done." Thank you, Melanie!
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-3/+2
(this took a while to run).
2008-03-18Formatting cleanup.Jeff Ames1-27/+27
2008-02-05Converted logging to use log4net.Jeff Ames1-1/+1
Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
2008-02-02Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run ↵Tedd Hansen1-1/+1
OpenSim in 32-bit mode. Fixed ScriptEngine.Common startup problems.
2008-02-01SCRIPTING STILL BROKENTedd Hansen1-1/+1
Added comments and regions, restructured code Changed a lot of AppDomain junk from console from using Console.Write to Log.Verbose and set it to #if DEBUG All modules should now refresh their configuration runtime Made all logging in ScriptEngine.Common get script name from actual engine Renamed LSLLongCmdHandler to AsyncLSLCommandManager Added auto-recover with 5 sec throttle for new MaintenanceThread
2008-02-01ExperimentalTedd Hansen1-0/+6
Moved DotNetScriptEngine configuration to config file. Added option to share script execution threads between regions.
2008-01-21Small bug in ResetScriptTedd Hansen1-4/+0
2008-01-12Major reorganizing of DotNetEngine. Moved common script engine parts to ↵Tedd Hansen1-78/+8
ScriptEngine.Common, only .Net-specific code in DotNetEngine. AppDomains, event handling, event execution queue and multithreading, script load/unload queue, etc has been moved to ScriptEngine.Common. Loads of things has been put into interfaces instead of the specific class. We are now one step closer to ScriptServer, and its very easy to implement new script languages. Just a few lines required to make them a OpenSim script module with all its glory.
2008-01-12ScriptServer communication is ok. Script is creatd on onrez. But since it ↵Tedd Hansen1-3/+3
can not access Scene it sort of crashes right away ;) Added some sample placeholders for implementing rest of LSL events.
2008-01-09Dynamic loading of ScriptEngine in ScriptServerTedd Hansen1-1/+7
ScriptServer event pipe (OpenSim->ScriptServer->ScriptEngine) should in theory be done