Commit Graph

284 Commits

Author SHA1 Message Date
Tedd Hansen
89665faeaf ScriptEngine changes in locking. Another step in direction of shared threads. 2008-02-21 11:28:34 +00:00
Tedd Hansen
7102ac7769 "threads" command now works. I've added manual tracking of threads (only if compiled in DEBUG mode)... Its ugly and even requires a separate thread to track the treads, but it will be very valuable in debugging. 2008-02-21 10:43:24 +00:00
Tedd Hansen
684059afdf div+
threads console command will list all threads. This + yesterdays naming threads patch will give a good overview of what threads we have running.
2008-02-20 20:22:15 +00:00
Jeff Ames
a8cfbbe963 Minor cleanup. 2008-02-20 18:38:20 +00:00
Tedd Hansen
416d752829 llSetTimerEvent updated to use ticks instead of DateTime for internal timing. 2008-02-20 17:35:28 +00:00
Tedd Hansen
96edcea3ae llSetTimerEvent was setting seconds as milliseconds causing major problems in timed scripts... 2008-02-20 17:14:01 +00:00
Sean Dague
530cc24884 From: Michael Osias <mosias@us.ibm.com>
This patch implements the llSendRemoteData command and fixes mantis 552,
and possibly 586.
2008-02-19 19:16:21 +00:00
Sean Dague
f47bcb0f98 bring back some script engine debugging, hoping this will help track down the randoms segfaults 2008-02-18 14:17:09 +00:00
Justin Clarke Casey
1cbef0b908 Patch from Michael Osias IBM (jimbo2120)
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.
2008-02-18 11:14:53 +00:00
Charles Krinke
3df36523cb Thank you very much, Hashbox for:
Changed the public IsAdministrator back to protected, 
now checks Config to see whether it is allowed to run or not. 
Defaults to false (not allowed).
To use add the following to OpenSim.ini
[LL-Functions]
AllowosConsoleCommand=true
2008-02-18 03:14:31 +00:00
Charles Krinke
e6a74344e7 Thank you Hashbox for adding the
osConsoleCommand Feature to ll-functions.
2008-02-17 21:15:43 +00:00
Jeff Ames
3b9d332f84 Added copyright notices. 2008-02-17 01:16:40 +00:00
Jeff Ames
e8225f2f81 Update svn properties. 2008-02-16 08:35:19 +00:00
Tedd Hansen
5e949d4700 Forgot one small but important line .. ;) 2008-02-16 08:22:29 +00:00
Tedd Hansen
169032b4a4 Fixed ScriptEngine config in OpenSim.ini.example that was out of place.
Added some info to failure on GridServices listening port so people can see what actually went wrong.
Moved most of the function/event execution module to a baseclass so other execution methods (instead of reflection) can be used with custom script modules run by ScriptEngine.Common.
+ some accumulated patches
2008-02-16 07:53:02 +00:00
Adam Frisby
f3afa68a2a * Made new Framework.Constants class, added RegionSize member.
* Converted all instances of "256" spotted to use RegionSize instead. Some approximations used for border crossings (ie 255.9f) are still using that value, but should be updated to use something based on RegionSize.
* Moving Terrain to a RegionModule, implemented ITerrainChannel and TerrainModule - nonfunctional, but will be soon.
2008-02-14 12:16:33 +00:00
Tedd Hansen
44058f8ae6 state_entry is now executed on state change. 2008-02-10 22:36:01 +00:00
Tedd Hansen
9a04e0e1c4 We now support LSL state 2008-02-10 22:25:59 +00:00
Dalien Talbot
c935b308e6 The very beginnings of attachments (no detachments! :) 2008-02-10 22:23:11 +00:00
Tedd Hansen
78363c3bab Bugfix to state command:
"state default;" rewrite to "state ("default");"
2008-02-10 21:55:26 +00:00
Tedd Hansen
f5cf5ad134 Bugfix on that last Quaternion/Vector patch 2008-02-10 21:43:53 +00:00
Tedd Hansen
3b844cb756 Untested bugfix in state support
Replaced (?<s1>(?![a-zA-Z_]+)\s*)" + @"([a-zA-Z_]+)(?<s2>[^a-zA-Z_\(\)]*){ with (?<s1>(?![a-zA-Z_]+)\s*)" + @"(state\s+)?([a-zA-Z_]+)(?<s2>[^a-zA-Z_\(\)]*){
Lets see what happens now... :)
2008-02-10 21:37:19 +00:00
Tedd Hansen
801e95bbe1 Added support for function calls as values in LSL-specific <0,0,0> and <0,0,0,0> Quaternion and Vector 2008-02-10 21:30:46 +00:00
alondria
758458121e Implements llListStatistics() and a bunch-o-LSL_Types.list statistical methods. Added LIST_STAT_HARMONIC_MEAN in addition to LL's LIST_STAT_* 2008-02-10 21:28:41 +00:00
alondria
c2632a2eb9 Implemented llGetParcelFlags() and llGetRegionFlags(). I don't think the RegionFlags are currently implemented within EstateSettings, thus this is always 0. 2008-02-10 18:08:02 +00:00
alondria
04a5a57b3d Implements llGetObjectMass() 2008-02-10 17:41:57 +00:00
Charles Krinke
cf284efcda Thank you very much, Hashbox for :
Add scene-debug command to Enable/Disable scripting, 
collision, and physics from console.
2008-02-10 16:03:58 +00:00
Jeff Ames
e207284fef Clean up logging calls using String.Format explicitly 2008-02-10 01:57:59 +00:00
Adam Frisby
a50a26f812 * Dun-dun-dun. JavaScript scripting now actually works. :) 2008-02-08 18:39:30 +00:00
Charles Krinke
dfca32b046 Missed one event message that needed to be
commented out.
2008-02-08 02:23:57 +00:00
Charles Krinke
2fb541cb2a Make timer events from scripts a little less chatty.
DEBUG is defined by default in the Linux build.
2008-02-08 01:42:56 +00:00
Tedd Hansen
97ec8cba62 Maybe VB.Net will compile now... who knows ;) 2008-02-07 16:37:28 +00:00
Tedd Hansen
ba846e62ef Same VB.Net patch done right. 2008-02-07 15:36:58 +00:00
Tedd Hansen
c997cc97bb VB.Net compiler might work on Windows now. 2008-02-07 15:31:22 +00:00
Adam Frisby
f93fdfa5af * Marking off which uses of catch (Exception e) is legit and which are not, for later removal/replacement. 2008-02-06 15:30:02 +00:00
Jeff Ames
4ec4e2cb32 Cleaned up some unreachable code warnings. 2008-02-06 08:31:29 +00:00
Jeff Ames
b68d2bd09a Fixed typo in Mag() (Thanks lc_tuco for pointing this out) 2008-02-06 08:26:09 +00:00
Teravus Ovares
9cd9e90e7f * Added Active Scripts to report the number of scripts running to Sim Stats
* Added Script Performance to report the number of functions run per second to Sim Stats.
* Removed a few warnings (@.@ up to 50 now)
2008-02-06 08:03:22 +00:00
alondria
52af264948 Fixed regex in LSL2CSConverter so it will properly handle casting to (string) part of vector (eg. vector.z)
This fixes Mantis 388
2008-02-06 02:30:05 +00:00
alondria
31576c8a26 Somehow llList2Float never made it into LSL_BaseClass and LSL_BuiltIn_Commands_Interface - it is now (and foxes Mantis 395) 2008-02-06 02:04:00 +00:00
Jeff Ames
6ed5283bc0 Converted logging to use log4net.
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-05 19:44:27 +00:00
alondria
36f7a087e6 Added explicit Quaternion->string and list->string conversions.
Some preliminary work on llSetStatus and llGetStatus.
2008-02-05 15:06:37 +00:00
Tedd Hansen
1d95f0521d Reverted MySQLDataStore.cs to not use static mutexes any more, patch didn't work anyway.
Added js to OpenSim.ini.example.
2008-02-05 12:18:50 +00:00
Teravus Ovares
ca5aadfbff * Refactored the sound calls to SceneObjectPart
* Fixed a few bugs
* Wrote an example module to make certain event systems more mature.
2008-02-05 05:26:18 +00:00
Jeff Ames
99844ee4c0 Added copyright statements. 2008-02-05 03:20:51 +00:00
Teravus Ovares
3ff5ad1ed3 Patch from mikkopa/_someone Thanks! adds support for llPreloadSound, llTriggerSound, llPlaySound, llPreloadSound.
* Time to make music boxes?
2008-02-04 14:40:46 +00:00
Adam Frisby
5ffc225545 * Replacing missing break statement from DotNetEngine/Compiler/LSL/Compiler.cs 2008-02-04 13:43:42 +00:00
Adam Frisby
ba16daff7c * Added JavaScript support to OpenSim scripting. Totally Untested. Enjoy. :) 2008-02-04 12:43:07 +00:00
Adam Frisby
6fbc64af5e * Whole buncha stuff. 2008-02-04 10:39:30 +00:00
alondria
bc3d0217af Added llRot2Fwd, llRot2Left, and llRot2Up as well as explicit vector->string casting.
(Thanks to dalien on informing me how easy the math was for these).
2008-02-03 16:42:43 +00:00