Commit Graph

47 Commits

Author SHA1 Message Date
Tedd Hansen
80234b98e5 Removal of script that was unable to compile no longer crashes server.
Displays script compile error messages in-world.
2007-08-25 20:34:54 +00:00
MW
65d6ef1bc1 Test to see if this change improves or makes worse the texture sending bug 2007-08-25 20:33:53 +00:00
Tedd Hansen
b75c1b2191 Added class for "long commands" (command that returns as event) with dedicated thread for processing. Added support for llSetTimerEvent(). Deleting old compiled scripts before new compile is attempted (avoids loading wrong script on compile error). 2007-08-25 19:08:15 +00:00
Tedd Hansen
53be4774b3 Scripts no longer crash sim after 5 minutes (override InitializeLifetimeService). Loading/Unloading of scripts are now handled in separate thread so server is no delayed because of this. Each script is loaded into a single AppDomain (temporary test for script unload, eats ~15KB more memory for each script). Unload of scripts has been verified to free up memory. 2007-08-25 15:31:47 +00:00
Tedd Hansen
07836b890c Lowered priority of script threads. Executing state_entry() event on script rez. 2007-08-23 18:43:11 +00:00
Brian McBee
107469ed93 More lsl functions (thanks to ldviopeng and wjordan!) 2007-08-23 05:26:02 +00:00
Tedd Hansen
0eadb7591e Added OnRemoveScript event handler to ScriptEngine. Fixed event queuing of empty objects crash. 2007-08-22 18:41:31 +00:00
Tedd Hansen
5a86fd2c31 (Untested) Scripts are individually loaded into objects (on rez), and event fired likewise. Bugfixes coming in next commit. 2007-08-22 18:09:38 +00:00
Tedd Hansen
33326c1a70 Some minor changes + krinkec's updates to ll* functions. 2007-08-20 10:58:51 +00:00
Tedd Hansen
37446b0392 Moved in-AppDomain event execution from Script to OpenSim.Region.ScriptEngine.Executor. Script no longer responsible for handling event calls to itself (and we can create reference cache in Executor). 2007-08-18 23:24:38 +00:00
Tedd Hansen
240712ca9f Scripts are working again. Scripts are now loaded into limited AppDomains (no security yet).
*phew* that only took me 12 hours of coding...
2007-08-18 22:09:07 +00:00
Tedd Hansen
6faa8d8d68 Script loads into separate AppDomain without errors. Events and llFunctions not working yet. 2007-08-18 21:31:35 +00:00
Tedd Hansen
f444fe4f87 Moved OpenSim.Region.ScriptEngine.Common.dll from bin\ScriptEngine\ to bin\ folder - hopefully solves compile problem on Linux. 2007-08-18 21:10:40 +00:00
Tedd Hansen
551f2af39f LSL Compiler now only referring required assemblies (DotNetEngine and Common). Changed Vector and Rotation to custom types (stored in Common) that needs to be changed later. No longer using Axiom. Script support still broken. 2007-08-18 20:53:13 +00:00
Tedd Hansen
1d41fd4984 Working on AppDomains. Scripting is now officially broken. :] 2007-08-18 19:54:04 +00:00
Tedd Hansen
6d10c65358 Moved LSL_BuiltIn_Commands_Interface.cs to a separate library (OpenSim.Region.ScriptEngine.Common). Fixed last compile error (forgot to include LSL_BuiltIn_Commands.cs). 2007-08-18 18:53:03 +00:00
Tedd Hansen
1284369a32 Started on AppDomains for ScriptEngine. Moved llFunctions in LSL_BaseClass.cs to LSL_BuiltIn_Commands.cs. Changed how scripts are loaded. 2007-08-18 18:18:14 +00:00
Brian McBee
fdd5602422 llstrenglength (thanks ldvoipeng!) 2007-08-18 16:56:05 +00:00
Brian McBee
8eb9952e5f lsl test cases, and llregioncorner (thanks Dalien!) 2007-08-18 02:15:21 +00:00
Tedd Hansen
fcf7db7272 Pimped up Default.lsl. Now featuring a touch counter.
Changed "ObjectID" in ScriptEngine to IScriptHost reference. Events will now be queued based on IScriptHost reference instead of string ID of object. Removed "root" object reference in script.
2007-08-17 21:24:38 +00:00
Tedd Hansen
577fb1a987 Removed RAIL test from startup for now... 2007-08-17 19:47:40 +00:00
Tedd Hansen
66695ded13 krinkec's updates to ll* interface and functions. 2007-08-17 17:33:18 +00:00
lbsa71
e53d680d41 * Now sending manager, host and root host to Script in constructor.
* Changed how Script accesses World
* Implemented llSay, llWhisper and llShout
* Added SetText() to IScriptHost, implemented llText
* Minor renamings to conform with code conventions
2007-08-16 18:40:44 +00:00
lbsa71
25fd8d0273 * Introduced IScriptHost as an interface to fetching object data from scripts.
* This meant introducing AbsolutePosition on all objects (since SimChat wants that)
2007-08-16 17:08:03 +00:00
Tedd Hansen
6831c42fe2 compile error removed :) 2007-08-15 19:30:19 +00:00
Tedd Hansen
9c3251b177 Bugfixes in LSL compiler. Changed most datatypes to int (instead of UInt32) and double (instead of float). 2007-08-15 19:25:29 +00:00
Adam Frisby
226339cd40 * Applying ckrinke's LSL baseclass changes (Thanks!) 2007-08-15 16:57:01 +00:00
Adam Frisby
bf60577e57 * Fixed bug with llModPow
* Implemented llSleep
* Implemented llGetEnergy (always returns 1.0)
* Implemented llGetRegionName
* Implemented llGetRegionTimeDilation (always returns 1.0)
* Implemented llGetRegionFPS (always returns 10.0)
2007-08-15 16:52:24 +00:00
Adam Frisby
ceb1c12bd1 * New LSL functions
+ llAsin / llAcos
+ llMD5String
+ llModPow
+ llGetUnixTime
2007-08-15 16:44:00 +00:00
Tedd Hansen
6b72ed01e3 Minor change to LSL_BaseClass adding pseudocode to World.SimChat 2007-08-14 19:36:43 +00:00
Tedd Hansen
16defc30eb krinkec's updates to ll* interface and functions 2007-08-14 19:06:57 +00:00
Tedd Hansen
9573aa7582 llSay() works again. Cleanup of debug messages. 2007-08-14 16:14:19 +00:00
Tedd Hansen
afaa12a9e2 ScriptEngine: Some error handling, logs to logger 2007-08-14 15:59:36 +00:00
Tedd Hansen
79dc1a4f7d Common script for all objects (Default.lsl). ScriptEngine touch_start event now works, but llSay only outputs to server console. 2007-08-13 20:55:07 +00:00
Tedd Hansen
050921d7b6 krinkec's updates to ll* interface and functions 2007-08-13 17:28:08 +00:00
Tedd Hansen
ed1208d043 ScriptEngine successfully compiles script, we are now even further than LSO was.
Also added C# script support.
2007-08-12 19:04:07 +00:00
Tedd Hansen
75c5bdbef9 ScriptManager now uses LSL-compiler.
LSL_BuiltIn_Commands_TestImplementation.cs no longer needs updating.
2007-08-12 18:36:42 +00:00
Tedd Hansen
d715b0f66c LSL_BaseClass now receives scene during init 2007-08-12 18:27:46 +00:00
Tedd Hansen
a968d05864 LSL BuiltIn implementation is now in Compiler\LSL\LSL_BaseClass. So users won't have to reference every internal command by object. 2007-08-12 18:06:02 +00:00
Tedd Hansen
fd63c0cd32 Code comments and cleanup, correct datatypes for key, vector, rotation, (hopefully) reference to Axiom during compile, passing of BuiltIns during script load, BuiltIn interface added, etc etc 2007-08-12 17:37:37 +00:00
Tedd Hansen
7a5474ec28 Script now compiles unsuccessfully
(unknown datatypes, no references)
2007-08-12 17:04:09 +00:00
Tedd Hansen
734f288290 LSL ScriptEngine now only needs to inherit from BaseClass and we will be MUCH closer to complete LSL support than we were yesterday. 2007-08-12 16:44:57 +00:00
Tedd Hansen
f5955ab539 Initial LSL to C# converter, not working yet! 2007-08-12 13:38:16 +00:00
Tedd Hansen
8b17e4da10 Renamed Compiler.LSL to Compiler.LSO 2007-08-10 16:22:20 +00:00
Tedd Hansen
ae970d4171 Removed 2 warnings. Added pointer comments to where to add hooks and modify functions to get SE working. 2007-08-09 20:59:35 +00:00
Tedd Hansen
c447c45895 Removed spaces from directory names 2007-08-09 18:07:22 +00:00
Tedd Hansen
bf69aca961 Merged OpenSim.ScriptEngine.DotNetEngine.Compiler.LSL into OpenSim.ScriptEngine.DotNetEngine to avoid the compile error 2007-08-09 18:03:24 +00:00