aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bugfixes - wasn't counting threads right++Tedd Hansen2008-02-223-17/+17
|
* Minor annoying Exception-bug fixedTedd Hansen2008-02-222-2/+3
|
* Execution threads are now shared between regions too. Default thread count ↵Tedd Hansen2008-02-223-242/+229
| | | | | | | regardless of number of regions is now 3. This will save you around 33 threads for a normal 3x3 region server. But, this is totally completely untested. So it probably won't work for another patch or five.
* Maintenance thread in charge of loading/unloading of scripts. 1 thread less ↵Tedd Hansen2008-02-222-17/+28
| | | | | | | | per region. Total so far: 2 threads less per region Note: Currently causes delay in load/unload of scripts
* Now last commit will compile too... The features just keep on coming!Tedd Hansen2008-02-223-6/+12
|
* From this commit and a few hours into the future ScriptEngine will be unstable:Tedd Hansen2008-02-225-79/+87
| | | | | | | | * Speeding up ScriptEngine shutdown * Sharing threads so that minimum total thread count for any amount of regions will be 2. (1 maintenance, 1 script execution) You can choose more script exec threads if you want of course. In this commit: Sharing maintenance thread between all regions.
* Fixes to ScriptEngine thread cleanup on destructorTedd Hansen2008-02-214-17/+14
|
* ScriptEngine changes in locking. Another step in direction of shared threads.Tedd Hansen2008-02-212-24/+22
|
* "threads" command now works. I've added manual tracking of threads (only if ↵Tedd Hansen2008-02-214-0/+4
| | | | compiled in DEBUG mode)... Its ugly and even requires a separate thread to track the treads, but it will be very valuable in debugging.
* div+Tedd Hansen2008-02-201-1/+1
| | | | | threads console command will list all threads. This + yesterdays naming threads patch will give a good overview of what threads we have running.
* Minor cleanup.Jeff Ames2008-02-209-35/+19
|
* llSetTimerEvent updated to use ticks instead of DateTime for internal timing.Tedd Hansen2008-02-201-20/+37
|
* llSetTimerEvent was setting seconds as milliseconds causing major problems ↵Tedd Hansen2008-02-201-1/+1
| | | | in timed scripts...
* From: Michael Osias <mosias@us.ibm.com>Sean Dague2008-02-192-48/+112
| | | | | | | | This patch implements the llSendRemoteData command and fixes mantis 552, and possibly 586.
* bring back some script engine debugging, hoping this will help track down ↵Sean Dague2008-02-182-11/+11
| | | | the randoms segfaults
* Patch from Michael Osias IBM (jimbo2120)Justin Clarke Casey2008-02-181-0/+7
| | | | | | | | In his own words: If a prim becomes a listener or remote channel and the script is deleted, it cannot become a listener or channel again with a new script. This patch fixes that.
* state_entry is now executed on state change.Tedd Hansen2008-02-101-0/+6
|
* Missed one event message that needed to beCharles Krinke2008-02-081-8/+9
| | | | | commented out.
* Make timer events from scripts a little less chatty. Charles Krinke2008-02-081-6/+8
| | | | | DEBUG is defined by default in the Linux build.
* Converted logging to use log4net.Jeff Ames2008-02-058-82/+64
| | | | | | Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
* Added copyright statements.Jeff Ames2008-02-053-12/+88
|
* Temporarily disabled shared threads because of a bug. Script were only ↵Tedd Hansen2008-02-032-2/+4
| | | | | | | working on 1 region. :) Using default warning level on C#/VB compile
* fixed a timing bug in config re-read. Apparently there is 1000000000 ns in ↵Tedd Hansen2008-02-022-9/+10
| | | | one second...
* Added commands to change config file from console:Tedd Hansen2008-02-021-6/+6
| | | | | | | | | CONFIG SET section key value value value CONFIG GET section key CONFIG SAVE (it saves, but does it save correctly?:) ScriptEngine will react correctly to any config change made while it is running.
* Updated svn properties.Jeff Ames2008-02-024-800/+800
|
* Bugfixes. Now it even reads configuration before it uses it! ;)Tedd Hansen2008-02-021-0/+2
|
* Added load/unload queue size limitTedd Hansen2008-02-024-18/+83
| | | | | | | Added option to share script load/unload thread between regions Added event execution queue size limit + some bugfixes from all the changes
* Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run ↵Tedd Hansen2008-02-021-1/+6
| | | | | | | | | | | | OpenSim in 32-bit mode. Added VISUAL BASIC.NET-support //cs, //lsl and //vb as first characters of script will determine what compiler is used. Compile warnings are no longer treated as errors. Script will still run. Added a few useless and useful config options: Write script source to harddisk for debug, Default compile language, Allowed compilers (languages), compile in release or debug mode, clean up old scripts on startup Loads of warnings for incorrect config
* Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run ↵Tedd Hansen2008-02-022-19/+28
| | | | | | | OpenSim in 32-bit mode. Fixed ScriptEngine.Common startup problems.
* Forgot to create an object before use. Now why can't .Net just do that ↵Tedd Hansen2008-02-021-7/+10
| | | | itself? :)
* Added some error checking to MaintenanceThread, no-crash (just log) loading ↵Tedd Hansen2008-02-021-27/+31
| | | | of script engines, and support to load multiple script engines
* Moved iniFilePath to a static and put it in OpenSim.Application.iniFilePath.Tedd Hansen2008-02-011-2/+9
| | | | | | Refreshing config based on this. Temporarily disabled feature to refresh config file while running.
* Bugfix, maybe it won't crash during startup and crash somewhere else instead? :)Tedd Hansen2008-02-011-1/+2
|
* SCRIPTING STILL BROKENTedd Hansen2008-02-0110-395/+595
| | | | | | | | | | | 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
* SCRIPT SUPPORT IS STILL BROKEN.Tedd Hansen2008-02-014-189/+412
| | | | | | | | | | | | | | Bugfix: Scripts exceeding max and set to be killed were not killed, only removed. Added ability to re-read configuration while OpenSim is running All regions now sharing one MaintenanceThread New MaintenanceThread: - checks for script execution timeout - re-reads config - starts/stops threads if thread active count becomes too high/low compared to config Speed increase on event execution: - Reuse of try{}catch{} blocks - Time calculation on event execution
* Config option to set number of scripts per AppDomainTedd Hansen2008-02-012-2/+3
|
* Added config options:Tedd Hansen2008-02-012-2/+46
| | | | | | ScriptThreadPriority to set script thread priority DeactivateScriptOnTimeout to remove script if it is executing too long
* Removed "Loading inventory for Primitive" message.Tedd Hansen2008-02-011-1/+1
| | | | | Fixed small bug in thread counter.
* ExperimentalTedd Hansen2008-02-013-9/+55
| | | | | | Moved DotNetScriptEngine configuration to config file. Added option to share script execution threads between regions.
* Highly experimentalTedd Hansen2008-02-012-149/+300
| | | | | A separate thread is used to enforce max function (event) execution time for scripts.
* * Potential fix to the 'can't run a script anymore bug'Teravus Ovares2008-01-191-6/+7
|
* Added data structure to be passed through event execution queue so that ↵Tedd Hansen2008-01-174-44/+67
| | | | events can use llDetect*-commands to find information about event.
* * Added and implemented the LSL changed event.Teravus Ovares2008-01-171-0/+7
| | | | | | | * An example changed event syntax is at: http://opensimulator.org/wiki/Changed_Event_Example * You can use this to trigger actions in your script if someone sits on your object_rez * You can use this to figure out all of the CHANGED_ constants except for CHANGED_REGION, CHANGED_TELEPORT, and CHANGED_ALLOW_DROP
* * Mother of all commits:Adam Frisby2008-01-154-4/+4
| | | | | | | * Cleaned up copyright notices in AssemblyInfo.cs's * Added Copyright headers to a bunch of files missing them * Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
* Set eolTedd Hansen2008-01-127-1689/+1689
|
* Added license to new filesTedd Hansen2008-01-126-10/+16
|
* Major reorganizing of DotNetEngine. Moved common script engine parts to ↵Tedd Hansen2008-01-127-0/+1690
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.