Jeff Ames
c995d60d37
Formatting cleanup.
2008-05-14 05:11:23 +00:00
Teravus Ovares
8fd0378ae6
* Removed 19 warnings
2008-05-14 04:06:33 +00:00
Teravus Ovares
3c7e6b0c1e
* Tweaked a regex that was returning invalid results in some cases.
2008-05-13 23:19:18 +00:00
Justin Clarke Casey
3025dafa92
* Refactor: Stop exposing the inner scene's ScenePresence dictionary directly to the world
2008-05-13 18:25:15 +00:00
mingchen
32785921d0
*Complete redo of the permissions module
...
*Removed hardcoded permissions checks
*Added permissions checks where needed
2008-05-13 16:22:57 +00:00
Jeff Ames
2382342c65
Formatting cleanup.
2008-05-12 01:23:03 +00:00
Teravus Ovares
a01b415d6c
0001199: [PATCH] Add support for default animations
...
From Melanie... Thanks Melanie!
.
2008-05-11 21:27:12 +00:00
Teravus Ovares
efc680f45b
* Changed implicit string conversion to LSL_Types.LSLString in money event of the key of the payer to an Explicit one.
...
* Fixes Mantis: #1045
2008-05-11 12:01:12 +00:00
Justin Clarke Casey
893d40639c
* Resolve mantis 1182. Doesn't actually implement llGiveInventoryList - merely corrects the signature so that "not implemented" message is displayed rather than a script
...
compile failure
2008-05-09 22:45:40 +00:00
Justin Clarke Casey
d9dffc4a9a
From: Michael Osias <mosias@us.ibm.com>
...
Stop .net generating ambiguous operator errors when two integers are compared for equality in LSL
2008-05-09 17:23:27 +00:00
Charles Krinke
74df815630
Thank you, Melanie for a patch that helps conversion
...
from a string to a vector in OSSL.
2008-05-09 03:23:52 +00:00
Charles Krinke
6ce00ce460
Thank you, Melanie for a patch that:
...
Patch fixes the pesky "Cannot implicitly convert to bool" issue for function returns
2008-05-09 03:20:29 +00:00
mingchen
6c71a04da8
*Added all the permission checks to the sceneexternalchecks and modified permission module to follow this.
...
*This makes permission checking much more modular; allows restrictive and granting module to be made without modifying the existing permission module
2008-05-08 19:37:57 +00:00
Adam Frisby
31c4d599a0
* Applying patch #1156 - More implementation work on llGetPrimitiveParams (Thanks middlelink!)
2008-05-08 13:49:19 +00:00
Adam Frisby
dc21e8d5e2
* Applying patch #1121 - Fixes for llListen() (Thanks Middlelink!)
2008-05-08 13:41:10 +00:00
Sean Dague
a1f1c7f5c2
From: Alan M Webb <awebb@vnet.ibm.com>
...
Introduce time dilation in scripts.
2008-05-08 12:23:47 +00:00
Adam Frisby
4fa0cbdfbb
* You can haz more spring cleaning.
...
* Eventually this codebase will be clean. >_>
2008-05-08 05:35:01 +00:00
Adam Frisby
80cbd468ea
* Some refactorings.
...
* Added shell of new Python scripting engine. Similar in design to the one used by Rex, but will be structured at a region rather than object level, also is a region module.
2008-05-08 04:34:02 +00:00
Justin Clarke Casey
e49bdd2628
* Change LSL -> C# translated script console output to use the logger (at DEBUG level) rather than Console.Writeline
2008-05-07 23:21:24 +00:00
Teravus Ovares
86669a1664
* Other then the prim update experiments that are going on now, llTakeControls works now along with the 'release controls button'. llReleaseControls() works mostly :D.
2008-05-07 19:41:03 +00:00
Teravus Ovares
ab5556055e
* Theoretically, everything is in place for scripted take controls... Theoretically.
...
* I've still got to test, it's still theoretical code :D. Good thing it isn't enabled by default!
2008-05-07 18:23:46 +00:00
Sean Dague
edd6577f84
while I'm not convinced this is causing my current run away
...
loop, this queue manipulation is dead wrong as Queue is not
a synchronized data structure. Hopefully this helps.
2008-05-07 18:10:18 +00:00
Charles Krinke
2cf025d9cb
Thank you very much, Xantor for a patch to improve
...
llParticleSystem().
2008-05-07 16:05:42 +00:00
Charles Krinke
dc80fd2048
Thank you, Middelink for a patch that fixes the regular expresion
...
missing the numbers after the initial letter of the identifier.
2008-05-07 15:51:50 +00:00
Sean Dague
e1e4fe7361
replace 2 instances of "0000...." with LLUUID.Zero.ToSting() because
...
I was in the file and noticed them.
2008-05-07 15:07:46 +00:00
Jeff Ames
0ea48cf786
De-tabify source.
2008-05-06 22:41:38 +00:00
Adam Frisby
31cd162d34
* Cleaning up code, making it conform to OpenSim standards.
2008-05-06 04:56:48 +00:00
Teravus Ovares
add13276a9
* Committing a bunch of work for control snatching. Not done yet. No visible features.
2008-05-06 02:47:14 +00:00
Justin Clarke Casey
9655cf2807
* Refactor: Break out permissions code into a separate region PermissionsModule
2008-05-05 20:14:53 +00:00
Teravus Ovares
ce19234dc8
* Unraveled the DEBUG_CHANNEL mystery.
...
* Moved script errors to the debug channel.
* Typing '/2147483647 OK' results in a debug_channel message.
* Expanded the available parameters that are send-able through IClientAPI
2008-05-05 15:53:11 +00:00
Teravus Ovares
1130c3067c
* A bit of spice from here, a pinch of salt from there, some brains that attracts zombies.. a recipe for llRezObject
...
* Original patch by YZh Thanks YZH!!!!
* object_rez event patch by Melanie, Thanks Melanie!!!
* Some fixups, some missing things(velocity,rotation)
* script delay
* Recoil
* Standard error messages
* Standard silent failures
* Easter egg management
2008-05-05 00:03:30 +00:00
Teravus Ovares
7b446aba91
* Implemented DIE_AT_EDGE and Temporary objects don't save to the database.
2008-05-04 22:55:52 +00:00
mingchen
4a87d96c17
*Moved EstateManager into a region module
2008-05-03 17:11:21 +00:00
Charles Krinke
18362b25bf
Thank you kindly, Melanie for a patch to solve
...
llParticleSystem and osDynamicTexture issues.
2008-05-02 23:23:39 +00:00
Justin Clarke Casey
8cf2630dc9
From: Kurt Taylor <krtaylor@us.ibm.com>
...
Adds "not implemented" stubs for llSetVehicleFloatParam() and llSetLinkTexture()
Some cleanup of LSO script enums
2008-05-02 15:29:09 +00:00
Sean Dague
7cace57ecc
revert changeset 4469 as this breaks the script engine.
2008-05-01 21:53:14 +00:00
Justin Clarke Casey
d21b3ea9c7
From: Kurt Taylor <krtaylor@us.ibm.com>
...
MInor patch - more script function cleanup and comments
2008-05-01 19:22:17 +00:00
Adam Frisby
bcab39831e
* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int cast more generic (Thanks Melanie!)
2008-05-01 18:55:36 +00:00
Adam Frisby
76d8eaa406
* Thanks to Mic Bowman for inspiring me to look at that we are still using ASCIIEncoder in places we shouldn't.
2008-05-01 18:50:44 +00:00
Teravus Ovares
c803e0cca1
* Deletes my EventReader ScriptRewriter. It isn't required to rewrite the script to publish the events anymore.
...
* Introduces a language(regex) independent event recognizer and publishes the events the script listens.
2008-05-01 16:39:02 +00:00
Adam Frisby
01f31fd933
* Breaking all the code, breaking all the code..!
...
* Made a bunch more members static, removed some dead code, general cleaning.
2008-05-01 16:23:53 +00:00
Adam Frisby
a1c8aa4050
* Cleaned namespaces of entire solution. OpenSim directories now correspond with namespaces.
2008-05-01 15:36:39 +00:00
Adam Frisby
4692e92312
* Assorted spring cleanings.
2008-05-01 14:45:56 +00:00
Adam Frisby
7bcdec4e8f
* Applying Mantis#1097 - Thanks Xantor!
...
- Fix for llRound (now rounds in LL-compatible fashion, rather than using bankers rounding)
- Implementation of llAngleBetween
2008-05-01 12:11:34 +00:00
Adam Frisby
3da6a05eaa
* Sometimes you know, you do something really stupid.
...
* This is one of those times (should fix build)
2008-04-30 21:32:14 +00:00
Teravus Ovares
b70da6ac19
* Patch by Melanie. Implements proper objectflags on child objects. Thanks Melanie!
...
RE: 0001079: r4387. touch() event does not fire when touch script is in root prim and child prims are touched
2008-04-30 16:52:12 +00:00
Teravus Ovares
36bf16d35e
Patch from Melanie: 0001077: [PATCH] LSL types cannot be cast implicitly or explicitly in many cases Thanks Melanie!
...
* Also, I moved the event parser and re-writer to a separate static object. More work will be done here shortly.
2008-04-30 03:36:13 +00:00
Teravus Ovares
2ae933a88b
* Applying Xantor's patch 0001089 - Added llRot2Angle, llRot2Axis,llAxisAngle2Rot. Re-implemented llRot2Euler, llEuler2Rot
2008-04-29 13:40:58 +00:00
Teravus Ovares
06a367be19
* Applying melanie's List2Vector and List2Rot patch. Added a routine in the Quaternion constructors to catch 0,0,0,0 quaternions and convert them to 0,0,0,1 (as 0,0,0,0 is implicitly converted to 0,0,0,1 in LSL and will crash libsl if left which will in turn crash the simulator)
2008-04-29 12:09:55 +00:00
Sean Dague
3ddbf28cd0
wrap a common exception that we get on shutdown of the script engine to keep
...
people from thinking it's a real issue.
2008-04-28 14:50:09 +00:00
Teravus Ovares
54563d8dea
* Patch from XenReborn to make remove-region work properly without needing to do a change-region first. Careful though. I still suggest you do a change-region first.
...
* Patch from Melanie to implement touch_end.
* Thanks XenReborn!. Thanks Melanie!
2008-04-27 22:15:38 +00:00
Charles Krinke
7cb78d73eb
Thank you Melanie for implementing
...
llListSort() in linear and strided modes.
2008-04-26 20:49:38 +00:00
Adam Frisby
3dc60c1433
* Committing Mantis #1061 - llRegionSay and llSetPrimitiveParams implementations. Thanks Melanie!
2008-04-26 12:40:14 +00:00
Teravus Ovares
8f6d508b43
* For info about this commit, see last commit.
2008-04-26 07:43:11 +00:00
Teravus Ovares
a53cc8fbfa
* Error on System. references with 'CS20003: 'System' is null or not an object"
2008-04-26 06:56:50 +00:00
Adam Frisby
87e2793ca6
* Applying mantis#1048 - Patch for osSetRegionWaterHeight()
2008-04-25 10:37:22 +00:00
Teravus Ovares
9468917b5f
* Implements llTarget, llTargetRemove, at_target(), not_at_target()
2008-04-25 01:00:55 +00:00
Teravus Ovares
5c660ea0c5
* Patch from Melanie. Mantis: 1040. Thanks Melanie!
...
* Implements llDeleteSubList in all it's modes. Corrects type selection in inventory functions. Adds support for INVENTORY_ALL selector
2008-04-24 15:11:19 +00:00
Sean Dague
2a2ef42e64
replace hard tabs with 4 spaces to be consistant in the source.
...
Please adjust your editors to not use hard tabs.
2008-04-24 12:27:24 +00:00
Justin Clarke Casey
c49b25f19e
* From: Alan M Webb <awebb.vnet.ibm.com>
...
* Patch to fix negative indices bug in llListInsertList
2008-04-24 10:17:33 +00:00
Teravus Ovares
12bba3da4b
* Fixed an annoying pop-up box when crossing borders.
2008-04-23 23:55:02 +00:00
Teravus Ovares
1909d74d5f
* Patch from Melanie. Mantis 0001037: Add various internal plumbing to the example economy module, implements llSetPayPrice(), money() and llGiveMoney() in scripts. Thanks Melanie!
...
* Moves module loading before the script engine so the script engine can pick up events from modules registering interfaces with scene.
2008-04-23 22:44:59 +00:00
Teravus Ovares
e108133d91
* Fixes lsl scripts with no state_entry event at all
...
* Fixes event reporting on states with no state_entry in lsl scripts.
2008-04-23 22:04:45 +00:00
Teravus Ovares
2a3bdde0fa
* Adds llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z,TF)
...
* Currently if you apply that to only one or two axis you get unpredictable and sometimes explosive results.
* Three axis works well enough to play with it anyway. More work is needed here.
* Fixed an incorrectly named method in ODE.NET
2008-04-23 15:32:19 +00:00
Adam Frisby
3370d581e1
* Patch #1026 - llDialog support -- Thanks Melanie!
2008-04-23 12:21:54 +00:00
Adam Frisby
163d254bb9
* Applying Mantis #1021 (llStartAnimation/llStopAnimation) - Thanks Melanie!
2008-04-23 11:53:16 +00:00
Adam Frisby
bca7ab7e36
* Applying Mantis #1020 (Animations) - Thanks Melanie.
2008-04-23 11:52:25 +00:00
Justin Clarke Casey
6efb16689a
From: Kurt Taylor <krtaylor@us.ibm.com>
...
Attached is a patch for adding the llGetSunDirection functionality. It was implemented by adding a parameter to estate settings for storing the sun position. The sun position is calculated and stored via the sun module everytime the client's sun position is updated. It was tested with several different srcipts on Linux and Windows
2008-04-23 10:16:26 +00:00
Teravus Ovares
61f23fa045
* Implements llScriptDanger
...
* Made the scene's scriptDanger method more generic so both the llScriptDanger method and the Script engine method use the same private method.
2008-04-22 10:11:29 +00:00
Teravus Ovares
809447ac32
* Implemented NoScript areas (without loosing script state).
2008-04-22 09:28:58 +00:00
Teravus Ovares
9b696a1d5c
* Patch from Mic Bowman(cmickeyb) that implements llUnsit. Thanks Mic!
...
* I expanded upon his patch just a bit to incorporate the following.
* if the avatar is sitting on this object, then we can unsit them.
* If the object owner also owns the parcel or if the land is group owned and the object is group owned by the same group or if the object is owned by a person with estate access, then we can unsit them.
2008-04-22 08:15:44 +00:00
Adam Frisby
01663cb612
* Committing fix for previous build breakage. Sorry!
...
* Committing namespace/usings fixes for ThirdParty directory, missed in previous commit.
2008-04-21 07:16:30 +00:00
Adam Frisby
fef3b36894
* Optimised using statements and namespace references across entire project (this took a while to run).
2008-04-21 07:09:17 +00:00
Tedd Hansen
16275ca26d
Removed some script engine noise from console
2008-04-20 11:58:14 +00:00
Tedd Hansen
8a13edb115
Moved script engine os* commands to OSSL_BuilIn_Commands.cs and OSSL_BuilIn_Commands_Interface.cs where they belong.
2008-04-20 10:40:39 +00:00
Teravus Ovares
a5bf229cbd
* Fixed up event discovery regexes to work with a specific string format m#1012
2008-04-20 10:18:40 +00:00
Teravus Ovares
3358d70c5b
* Updates LSL2CS converter
...
* All objects are not touchable by default now
* When a script listens for one of the touch events in the state, an object becomes touchable.
* All LSL scripts report which events they consume now
** This uses semi-complicated Regex to discover the events, stick them in a dictionary, and then write a method call into each script state's state_entry() event.
** Tedd may figure out a better way to do this in the future. For now, this works for LSL.
2008-04-20 04:19:44 +00:00
Justin Clarke Casey
cd09677469
From: Alan M Webb <awebb@vnet.ibm.com>
...
Robust implementations of GetSubString, InsertString, and
DeleteSubstring. The existing implementations only worked for arguments
consistent with the underlying .Net implementation and did not
accomodate LL's negative indices.
2008-04-18 19:03:28 +00:00
Tedd Hansen
acb0b06fed
Mantis #851 , 100% CPU on unhandlet HTTP event. Thanks cmickeyb.
2008-04-18 15:25:43 +00:00
Charles Krinke
ea8b6a28ed
Thank you, Melanie, very kindly for a patch that :
...
Implements llGetInventoryKey with perms checking.
Adds perms checking to llGetTexture, adds type checking to llStartSound,
allows llSetTexture to reference textures by name
2008-04-18 02:23:48 +00:00
Justin Clarke Casey
15b36498be
From: Alan M Webb <awebb@vnet.ibm.com>
...
This provides fixed implementations for llListReplaceList and llList2CSV.
llListReplaceList was broken except for simple indices. llList2CSV did not handle processing of an empty list.
2008-04-17 14:34:30 +00:00
Justin Clarke Casey
e3a6a370fa
* From: Alan M Webb <awebb@vnet.ibm.com>
...
* Here's an updated ListInsertList implementation, tested to be LL
compliant.
2008-04-16 16:07:34 +00:00
Justin Clarke Casey
9cb9dcb9da
From: Alan M Webb <awebb@vnet.ibm.com>
...
This fixes a bug in LSL_Types.list GetSublist that was manifest if the
source list was empty and negative indices were used.
2008-04-16 15:57:55 +00:00
Justin Clarke Casey
4f8943da67
* From Kurt Taylor <krtaylor@us.ibm.com>
...
* Yet more script function cleanup - Patch fixes many different script functions: NotImplemented that weren't there at all, redundant or unneeded m_host.AddScriptLPS, etc
2008-04-16 15:54:32 +00:00
Teravus Ovares
331f26548b
Fixed LSL State support.
...
* Re-applied Tedd's patch that got overwritten.
* Replaced (state)\s+([^;\n\r]+)([\r\n\s];) with (state)\s+([^;\n\r]+)(;[\r\n\s])
* Added a state(string) method to BuiltIn_Commands_BaseClass
2008-04-15 16:49:06 +00:00
Sean Dague
f337cb205d
From: Kurt Taylor <krtaylor@us.ibm.com>
...
Attached is the second half of the fix for 821 - this is the null reference
check for llDetectedName and the other *Detected* function.
2008-04-11 13:51:11 +00:00
Charles Krinke
f565f44d89
Thank you Justin for a patch that solves the issue of: When a sensor detects an Avatar,
...
and llDetectedOwner is called on the script, the current implementation attempts to
find the detected avatar as a SceneObjectPart and return the owner of that part.
2008-04-10 15:38:33 +00:00
Sean Dague
c176caeb05
moved fields to properties for UserDataProfile, which was
...
actually a little more work than I expected given the copious
use of out params.
2008-04-10 13:53:06 +00:00
Justin Clarke Casey
8bd1f1c7c3
* Put explicit braces in for single line blocks
2008-04-09 15:36:10 +00:00
Justin Clarke Casey
f9646a0c81
From: Michael Osias <mosias@us.ibm.com>
...
"This is llDetectedKey for touch_start - it is already implemented for sensor."
Thanks Michael
2008-04-09 15:33:04 +00:00
Justin Clarke Casey
f512502e51
From: Kurt Taylor <krtaylor@us.ibm.com>
...
"a patch to add a deprecated call to throw an LSL deprecated specific exception, and the associated code cleanup in the functions."
Thanks!
2008-04-09 15:28:51 +00:00
Adam Frisby
996309a6e1
* Various terrain engine fixes
...
* Includes patch #894 fixes for terrain load-tile
* Large number of other terrain fixes and new commands included.
2008-04-06 13:48:28 +00:00
Justin Clarke Casey
57afbdbdbd
From: Kurt Taylor <krtaylor@us.ibm.com>
...
Patch to remove commented NotImpemented calls from within implemented script functions
2008-04-04 19:09:56 +00:00
Sean Dague
341664eabc
from krtaylor
...
Fixe for Mantis 821
2008-04-02 18:58:57 +00:00
Adam Frisby
fadd19f314
**Big ass update warning**
...
* Renamed plugin console message, to send a message to a plugin, use either "plugin <message>", or any unrecognised message will be sent ("plugin" sends explicitly) This replaces the old "script <message>".
* Terrain commands - "terrain <command>" now works again. "Script terrain <command>" does not. Many of the commands have now been reimplemented, eg load-tile. However some have new syntax.
* New console command handler, you can now use things like "terrain help" or "terrain save help". See TerrainModule.cs for an example of how to use the new "Commander" class.
* Commander class - advanced processing of console input and also enables a script API to be generated from registered console commands.
2008-03-30 09:03:38 +00:00
alondria
0e0445573e
Patches llAvatarOnSitTarget to return NULL_KEY opposed to a blank string. Should fix Mantis 838
2008-03-29 19:49:07 +00:00
MW
a13d68d98c
fixes mantis #778 and shoots himself for making such a mistake to begin with, but also blames Tedd for the way the script functions have wrapper methods that call the same named method in a different class, is it my fault if in two such functions, I forget to add "m_LSL_Functions." and instead cause a recursive loop until the stack overflows.
2008-03-28 15:32:46 +00:00
Sean Dague
2eda6a1296
From: Michael Osias <mosias@us.ibm.com>
...
This patch implements llMessageLinked.
I had to make a change to llGetLinkNumber to return m_host.LinkNum + 1 for
link sets of more than 1 prim, or 0 for a single object, since according
to:
http://rpgstats.com/wiki/index.php?title=LlMessageLinked
linksets with 2 or more prims start the link numbering at 1, but a single
prims link number is 0.
2008-03-28 12:47:03 +00:00
Jeff Ames
9d1b42c39a
Comment out unused private methods.
2008-03-25 03:49:08 +00:00
Jeff Ames
a8d9a58dd2
Fix a couple more warnings.
2008-03-25 03:43:24 +00:00
Teravus Ovares
a21112ccee
* Adds llMoveToTarget and llStopMoveToTarget support to the ODEPlugin.
...
* It doesn't generate at_target events, because they don't exist yet in the script engine.
* The Tau is different, however, compatible with scripts I tested.
* Not perfect... but pretty good.
2008-03-25 03:36:31 +00:00
Teravus Ovares
dd6e6e7bdf
* Added llApplyImpulse in the local frame.
2008-03-24 22:48:34 +00:00
alondria
15a22e993d
Implements llGetInventoryPermMask()
2008-03-24 21:56:52 +00:00
alondria
2b4915ef27
Modified llGetInventoryName() so it indexes inventory in the same manner the LL grid does. (Thanks Teravus for pointing this out.)
2008-03-24 21:19:01 +00:00
alondria
3be815b206
Implements llGetInventoryName() - the order is based upon inventory key, which probably doesn't match 100% with LL's grid.
2008-03-24 19:58:53 +00:00
alondria
9117dfc858
Implements llGetInventoryNumber()
2008-03-24 19:29:35 +00:00
alondria
8a39d04f6d
Implements llGetInventoryType()
2008-03-24 19:11:56 +00:00
alondria
3423ed4739
Implements llGetInventoryCreator()
2008-03-24 19:05:44 +00:00
alondria
68d016517d
Implements llGetParcelPrimOwners()
2008-03-23 18:15:08 +00:00
alondria
5deca3f0c5
Implements (I hope): llRemoveFromLandBanList, llRemoveFromLandPassList, llAddToLandBanList, llAddToLandPassList, llResetLandPassList, llResetLandBanList
2008-03-23 06:08:52 +00:00
Jeff Ames
0d43aaa337
Fix llParseString2List bug when separator is longer than 1 character.
2008-03-23 00:39:35 +00:00
Jeff Ames
9a2b289e32
Fix compiler warnings in pCampBot, TestSuite, and ScriptEngine/RemoteServer. Thanks daTwitch!
2008-03-22 23:52:48 +00:00
mingchen
71ca162821
*Moved LandManagement into its own region module (spiffy!)
2008-03-22 23:10:22 +00:00
alondria
5ebef6410e
Implements llLoopSound(), llStopSound(), and llAdjustSoundVolume().
2008-03-22 23:02:41 +00:00
alondria
6ac21141c6
Adds in +, -, and / operators for Rotations (and fixes Mantis 671)
2008-03-21 21:31:18 +00:00
alondria
d3515bf22e
Woops - forgot to call m_host.AddScriptLPS(1) in llGetObjectDetails....
2008-03-21 20:20:39 +00:00
alondria
181c5ab7d7
Implements llGetObjectDetails()
2008-03-21 20:04:52 +00:00
alondria
d76c6ee140
Implements llKey2Name().
2008-03-21 18:45:09 +00:00
alondria
5c41051fda
Implemented llOverMyLand() and correct llGetOwnerKey() to properly return the information for the argument key, opposed to the object the script is in.
2008-03-21 15:34:51 +00:00
Adam Frisby
7286bd60b0
* Converted a large number of ASCII encodings to UTF8.
...
* We should not be using ASCII anywhere except for legacy compatibility reasons.
* A large number of UTF8 Encoders are being used in places where we should be using Util.StringToField instead. These have been tagged with // ENCODING FAULT
* This should fix Mantis#799 - Japanese Profile Text does not work.
2008-03-21 02:26:00 +00:00
Teravus Ovares
dc79146d01
* Fix for #499 : linked primsets don't rotate properly when using a door script that works OK on SL
...
* Fix for #693 : llSetRot malfunction in linked prims causing instance of invisible prim
2008-03-21 00:52:41 +00:00
Justin Clarke Casey
f747687c8f
* Patch to add llSetLinkPrimitiveParams stub
...
* Thanks krtaylor
2008-03-19 17:28:21 +00:00
Justin Clarke Casey
16cd6cd82e
* Documentation patch from krtaylor. Thanks!
2008-03-19 10:47:40 +00:00
Jeff Ames
a0e1be3280
Fixed some comparisons of LLUUIDs to null.
...
Thanks to DrSchofld for pointing this out.
2008-03-19 09:36:13 +00:00
Jeff Ames
e5b9144282
Formatting cleanup.
2008-03-18 15:30:38 +00:00
Jeff Ames
bf8b5844f2
Formatting cleanup. Minor refactoring.
2008-03-18 14:51:42 +00:00
lbsa71
9c428d9935
* Applied Grumly57 patch for #781 ; Thanks, Grumly!
2008-03-18 13:39:29 +00:00
Justin Clarke Casey
f81c491725
Patch from DrSchofld (IBM). In his own words
...
structs (such as LLUUID) are considered values by mono. comparing them against null makes no sense and the mono compiler will flag that as evaluating to always false --- except if "cleverly" disguised. the attached patch fixes such an occurrence in OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs.
[yes, i'm on a crusade against comparing structs against null, go ask jradford from libsl ;-)]
2008-03-18 11:32:44 +00:00
Jeff Ames
47180080f0
Formatting cleanup.
2008-03-18 05:16:43 +00:00
Jeff Ames
a8aeec29da
Fix a few mono compiler warnings. Minor cleanup.
2008-03-17 17:39:42 +00:00
Sean Dague
dba37a8722
From: Alan M Webb <awebb@vnet.ibm.com>
...
Here's a diff of the changes I have made in support of the following LSL
script functions.
llSetScriptState
llGetScriptState
llCSV2List
llListRandomize
llList2ListStrided
llListFindList
llResetOtherScript
llGetScriptName
It was necessary to modify ExecutorBase in support of the ScriptState
implementations.
I also modified SceneObjectPart and SceneObjectPart.Inventory to
corrects a quoting mismatch in the commentary that through off live
parsing of the files.
I also simplified the State definition at the start of BuiltinCommands.
2008-03-17 15:11:36 +00:00
MW
58ce8f3818
added some os helper functions for the texture drawing module. see http://opensimulator.org/wiki/OSSL_TextureDrawing for function prototypes and example script. Will expand that page later.
2008-03-15 13:52:57 +00:00
Teravus Ovares
ae9a98ceb1
* Added proper handling of llSetStatus(STATUS_PHYSICS,BOOL)
2008-03-14 06:20:50 +00:00
Teravus Ovares
abacfba287
* Preliminary work with the ODEPlugin to collect collision data.
2008-03-14 05:22:52 +00:00
Sean Dague
31cdb1afb0
there was a single instance where the log4net object was not
...
static readonly. I suspect this was the cause of mantis #500 .
2008-03-12 21:09:56 +00:00
Jeff Ames
6da664edbe
Refactor out some duplicate code.
2008-03-11 22:15:28 +00:00
Adam Frisby
11ba471bcc
* Applying patch #754 - Fix for Vector Magnitude operation. Thanks cmickeyb!
2008-03-11 16:19:01 +00:00
Teravus Ovares
f46fcbb9d2
* Added Linear Acceleration reporting to the ODEPlugin.
...
* Added support for LSL llGetOmega (Rotational/Angular Velocity)- ODEPlugin is the only physics plugin that reports it.
2008-03-10 14:14:44 +00:00
Teravus Ovares
d0123a796b
ODEPlugin
...
* Added osSetPrimFloatOnWater(BOOL) to make Physical prim float at the water level.
* osSetPrimFloatOnWater(TRUE); or osSetPrimFloatOnWater(FALSE);
* By default, prim do not float at the water level.
* More work is needed on the floating, but it's a start.
2008-03-10 05:56:58 +00:00
Teravus Ovares
8bea3dbdb9
* Added ODEPlugin Support for llSetBuoyancy. Set Buoyancy to 1 for space prim.
...
* Added WaterLevel support to the ODEPlugin. More on this later.
2008-03-10 05:23:43 +00:00
Charles Krinke
39684496eb
Remove two warnings with unused variables.
2008-03-08 23:12:25 +00:00
Charles Krinke
ff75ba99a9
Thank you very much, Ldviopeng for :
...
Patch to implement the following LSL functions:
llGetObjectPermMask()
llSetObjectPermMask()
2008-03-08 22:26:25 +00:00
MW
d340820826
Added Frist basic version on the VectorRenderModule, that allows scripts to do some basic drawing onto textures. Currently the method the scripts have to use is most likely not the most user friendly, but this should improve soon. And hope to allow SVG files (either loaded from a web site, or even script created) to be used. I will add a page to the wiki tomorrow, until then http://www.pastebin.ca/934425 is a example c# script that can be used to get a bit of a idea.
...
Also added osSetDynamicTextureDataBlend and osSetDynamicTextureURLBlend that will allow the various textures to be blended together, but currently there are still a few bugs in them. So not ready for use yet.
2008-03-08 20:54:34 +00:00
Charles Krinke
3151e302ca
Thank you kindly, Ldviopeng for:
...
Patch to implement the following LSL / OS functions
llParcelPrimCount(60%)
osSetParcelMediaURL
2008-03-08 18:06:10 +00:00
lbsa71
f76bc24de7
* Applied patch #719 from lvoidpeng.
...
* Implements llGetOwnerKey
Thanks, lvoidpeng!
2008-03-07 14:26:27 +00:00
Adam Frisby
a360116502
* Disabled ancient TerrainEngine.
...
* Enabled new TerrainModule. (The king is dead, long live the king!)
* Use the console command: "script terrain save file.r32" / "script terrain load file.r32" to load/save terrain. Now uses the extension to determine file format.
* MANY of the old terrain features do not have a replacement function in the new module yet, this needs to be corrected, but has not been done so far. This being said, the new module is faster and more efficient and should be a good replacement.
2008-03-06 15:49:53 +00:00
Jeff Ames
cd6f4a57e7
Added copyright heaaders. Minor cleanup.
2008-03-04 04:11:37 +00:00
Adam Frisby
415fc22e5e
* Removed a bunch of compiler warnings.
2008-03-03 09:54:39 +00:00
Charles Krinke
56697133d4
Thank you very much, Kinoc for:
...
* Impelements llInstantMessage
* Reimplements llOwnerSay as llInstantMessage(llGetOWner(),msg).
* Try's to better identify the "True Name" of objects in llDetectedName
by checking for avatar name, scene Object Part name and entity name.
* Uses similar logic in the llSensor and llSensorRepeat functions.
2008-03-01 00:59:23 +00:00
Sean Dague
de1024adf7
From: Alan M Webb <awebb@vnet.ibm.com>
...
This patch is intended to implement the following functions:
llIntegerToBase64
llBase64ToInteger
llParseStringKeepNulls
None of these functions are dependent upon state elsewhere in the SIM,
so they are appropriately self-contained. I've tested them out of
context, and from a script attached to an object in my test region.
2008-02-28 21:25:28 +00:00
Tedd Hansen
dbb205c181
Moved AsyncCommandManager into separate classes under "plugins".
2008-02-25 20:10:17 +00:00
Tedd Hansen
366e607608
eol
2008-02-25 19:53:11 +00:00
Tedd Hansen
ce9c74a83c
Step 1 in reorganizing AsyncCommandManager
2008-02-25 19:45:34 +00:00
Tedd Hansen
5739e13f5b
Initial patch for llSensor*
...
llSensor, llSensorRepeat, llSensorRemove, llDetectedName, llDetectedKey, llDetectedOwner, llDetectedType, llDetectedPos, llDetectedVel, llDetectedRot
Thank you very much kinoc! :)
2008-02-25 19:34:38 +00:00
Tedd Hansen
66cc8f99f6
I'm the stupidest stupid in the whole world. :)
...
Fixed a bug in new Prim where I actually ADDED new values to old values instead of directly assigning them... Now that was a waste of time! :P
2008-02-25 11:29:24 +00:00
Jeff Ames
61200b469c
Update svn properties.
2008-02-25 01:59:14 +00:00
Tedd Hansen
909796f615
Added limits to Prim.Position.X/Y/Z (0-255) so that your prims won't wander off into eternity
2008-02-24 17:46:28 +00:00
Tedd Hansen
4f4dfa8e82
Fixed startup logo size to match a Win CMD window.
...
Fixed bugs in new OOP commands.
Prim.Rotation.X += 45;
Prim.Position.X += 10;
Now how do I find the prim I asked to += 10 every 1 second???
2008-02-24 17:29:59 +00:00
Tedd Hansen
f10d895105
Ok, so NOW scripts work. New patch to break them coming soon.
2008-02-24 17:01:20 +00:00
Tedd Hansen
8af64c979f
By now you all have learned that when I'm committing scripting usually doesn't work, so no big surprise. :)
...
Modified baseclass for compiled script to incorp new OSSL commands class and renamed it to follow standards and all that. Scripts may work again. :)
2008-02-24 16:41:56 +00:00
Tedd Hansen
952c8de189
Forgot to change what class compiled scripts must inherit from to get their commands :)
2008-02-24 16:23:02 +00:00
Tedd Hansen
08131614c9
Implemented object oriented Prim.Position, Prim.Rotation and Prim.Text.
...
Example:
Prim.Position.X += 10;
2008-02-24 16:16:00 +00:00
Tedd Hansen
b533517037
eol
2008-02-24 15:55:04 +00:00
Tedd Hansen
2cd85e15dc
Changed so "BuiltIn_Commands" given to scripts is easily extendable. Added new OSSL_BuilIn_Commands class where we can start adding our own modular commands.
2008-02-24 15:45:20 +00:00
Tedd Hansen
5eff68e6bb
Fix for error message during startup (shared thread started processing region queue before queue objects were fully operational)
2008-02-22 23:45:17 +00:00
Tedd Hansen
46cfc475aa
ScriptEngine works again (startup-nully-error gone)
2008-02-22 22:53:19 +00:00
Tedd Hansen
f06a6573bb
One more: Async LSL command thread is also shared now.
2008-02-22 22:24:12 +00:00
Tedd Hansen
0fc6b2a429
Bugfixes - Scripting works again
2008-02-22 20:58:25 +00:00
Tedd Hansen
e741dcde6a
Some misplaced code made scripts never start :)
2008-02-22 20:06:44 +00:00
Tedd Hansen
0fb4374c1a
Better timing of MaintenanceThread's tasks (uses less CPU)
...
Updated OpenSim.ini.example
2008-02-22 19:46:13 +00:00
Tedd Hansen
42bcd76b36
Bugfixes - wasn't counting threads right++
2008-02-22 16:15:08 +00:00
Tedd Hansen
879a260498
Minor annoying Exception-bug fixed
2008-02-22 14:53:26 +00:00
Tedd Hansen
a43bb10000
Execution threads are now shared between regions too. Default thread count 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.
2008-02-22 14:09:38 +00:00
Tedd Hansen
3bb0fe098f
Maintenance thread in charge of loading/unloading of scripts. 1 thread less per region.
...
Total so far: 2 threads less per region
Note: Currently causes delay in load/unload of scripts
2008-02-22 13:23:45 +00:00
Tedd Hansen
9f7366210a
Now last commit will compile too... The features just keep on coming!
2008-02-22 13:15:01 +00:00
Tedd Hansen
a040008cb9
From this commit and a few hours into the future ScriptEngine will be unstable:
...
* 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.
2008-02-22 12:50:24 +00:00
Tedd Hansen
f75e418211
Fixes to ScriptEngine thread cleanup on destructor
2008-02-21 23:43:58 +00:00
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
Tedd Hansen
5a99a96fed
Temporarily disabled shared threads because of a bug. Script were only working on 1 region. :)
...
Using default warning level on C#/VB compile
2008-02-03 09:35:50 +00:00
alondria
742ed9537d
Implements LSL function llDialog().
...
The ScriptDialogReply packet handler is a bit of a hack job. It is currently handled similar to ChatFromViewer, which will trigger the listen() event, however this is not exactly how LL's implementation works and will/can be fixed up later.
2008-02-02 22:53:01 +00:00
alondria
0ea708c133
Added llParseString2List (and a few extra methods to LSL_Types.list).
2008-02-02 18:52:07 +00:00
Teravus Ovares
2d6c21e8fc
* Added Full support for llSetTextureAnim. To ckrinke: Let the fountains of Wright Plaza flow!
...
* Fixed another bug in LibSL. This is the same version, as before just with a bug fix.
2008-02-02 08:11:14 +00:00
Tedd Hansen
785b641272
fixed a timing bug in config re-read. Apparently there is 1000000000 ns in one second...
2008-02-02 07:53:13 +00:00
Tedd Hansen
2db5de3e72
Added commands to change config file from console:
...
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.
2008-02-02 07:35:51 +00:00
Jeff Ames
b1a6f4821b
Updated svn properties.
2008-02-02 07:13:37 +00:00
Tedd Hansen
b57d9be856
Re-enabled AllowedCompilers function
...
Added notice in OpenSim.ini that config refresh function is disabled
2008-02-02 05:07:02 +00:00
Tedd Hansen
a004ea5f17
Almost forgot to check in:
...
OpenSim.32BitLaunch.exe is a 32-bit application that loads OpenSim.exe using .Net framework, hence it is JIT-compiled to 32-bit.
Use this app to start OpenSim on 64-bit systems (works great on Vista 64 :))
2008-02-02 05:03:28 +00:00
Tedd Hansen
1ecdaf333f
Note to self: Next time read debug-files on correct computer. It makes bughunting SO much easier! *jeesh*
2008-02-02 04:45:18 +00:00
Tedd Hansen
7bd3ecfc2a
Bugfixes. Now it even reads configuration before it uses it! ;)
2008-02-02 04:35:08 +00:00
Tedd Hansen
b1f97f9e77
Temporarily disabled AllowedCompilers so all 3 compilers are allowed.
...
Fixed bug in how code is handled, hopefully we can now run all 3 languages? :)
2008-02-02 04:06:51 +00:00
Teravus Ovares
d4f32649cd
* Committing some untested stuff regarding texture animations. This won't break anything, but the llSetTextureAnim function is completely untested.. (though it may be functional once the script engine works again)
2008-02-02 03:57:57 +00:00
Tedd Hansen
8dc5153ad7
Added header/footer of scripts to make C# and VB scripts much easier to write.
...
Added some logging on what is happening during compile.
2008-02-02 03:42:35 +00:00
Tedd Hansen
5c8abed450
Bugfix: LSL was mapped to VB.Net compiler ... that didn't work out so well :)
2008-02-02 03:17:38 +00:00
Tedd Hansen
e06ee9fd4b
Added load/unload queue size limit
...
Added option to share script load/unload thread between regions
Added event execution queue size limit
+ some bugfixes from all the changes
2008-02-02 03:11:06 +00:00
Tedd Hansen
8ccc12d642
Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run 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
2008-02-02 02:35:56 +00:00
Tedd Hansen
667197f24d
Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run OpenSim in 32-bit mode.
...
Fixed ScriptEngine.Common startup problems.
2008-02-02 00:59:22 +00:00
Tedd Hansen
ea74f97e9b
Forgot to create an object before use. Now why can't .Net just do that itself? :)
2008-02-02 00:20:31 +00:00
Tedd Hansen
34d21ac94b
Added some error checking to MaintenanceThread, no-crash (just log) loading of script engines, and support to load multiple script engines
2008-02-02 00:09:55 +00:00
Tedd Hansen
694642a482
Moved iniFilePath to a static and put it in OpenSim.Application.iniFilePath.
...
Refreshing config based on this.
Temporarily disabled feature to refresh config file while running.
2008-02-01 23:56:09 +00:00
Tedd Hansen
4715453159
Bugfix, maybe it won't crash during startup and crash somewhere else instead? :)
2008-02-01 23:44:02 +00:00
Tedd Hansen
d02a90823f
SCRIPTING STILL BROKEN
...
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-01 23:36:36 +00:00
Tedd Hansen
a6726b0c9d
SCRIPT SUPPORT IS STILL BROKEN.
...
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
2008-02-01 22:18:55 +00:00
Tedd Hansen
0c0286911d
Config option to set number of scripts per AppDomain
2008-02-01 20:52:00 +00:00
Tedd Hansen
e14c8f59f7
Added config options:
...
ScriptThreadPriority to set script thread priority
DeactivateScriptOnTimeout to remove script if it is executing too long
2008-02-01 20:45:15 +00:00
Tedd Hansen
f4ddf5cf28
Removed "Loading inventory for Primitive" message.
...
Fixed small bug in thread counter.
2008-02-01 20:19:29 +00:00
Tedd Hansen
a9c1f3fdb4
Experimental
...
Moved DotNetScriptEngine configuration to config file.
Added option to share script execution threads between regions.
2008-02-01 20:12:25 +00:00
Tedd Hansen
5d6e89eaf9
Highly experimental
...
A separate thread is used to enforce max function (event) execution time for scripts.
2008-02-01 19:07:05 +00:00
alondria
43ecb1b4d2
Fixed errors being thrown by invalid PSYS_SRC_TARGET_KEY's in llParticleSystem - defaults to source prim (consistent with LL grid).
...
Should fix mantis 427.
2008-02-01 15:22:11 +00:00
alondria
0eb4e85988
Thanks to Hashbox for a patch to:
...
Implementing llStringTrim and hooking in osRegionNotice
2008-02-01 14:18:00 +00:00
Teravus Ovares
bec71977ab
* Added more supported feature to particlesystems. While this appears to have a libsl update... it's really a fix to the libsl version we're already using because of a bug in the particlesystem implementation
...
* Added two new simstat counters in the simstat enum for the RCCS. (I'll find something cool to put in them)
* fixed a time waster in ODEPlugin.cs
2008-02-01 04:22:20 +00:00
Teravus Ovares
e2f783789c
* Adding limited support for LLParticleSystem.
...
* We still need to set the 'default particle' texture as, a particle system with no texture set doesn't work.
* The particle System Flags don't seem to be quite right yet as some flags don't seem to have an effect. So no alpha in/out, color change, affected by the wind, etc.. yet
* Thanks to Alondria for some massive work here. This update just tweaks a few things that she did.
2008-01-31 18:27:11 +00:00
alondria
62ae3c9bf5
Hit a dead end with llParticleSystem (libsecondlife issues) so no functionality added yet, but did not want to loose work.
2008-01-31 06:59:48 +00:00
Tedd Hansen
50dcd33bab
Giving Mantis #388 a shot
2008-01-22 09:00:49 +00:00
Tedd Hansen
da8923450a
Small bug in ResetScript
2008-01-21 12:00:27 +00:00
Charles Krinke
a759ff5ea3
Surround the "non implemented" in an else clause if face is inappropriate for:
...
llSetColor, llSetAlpha, llGetColor, llSetTexture, llOffsetTexture,
llRotateTexture & llGetTexture
2008-01-21 03:14:38 +00:00
Teravus Ovares
8fdeab57b1
* Potential fix to the 'can't run a script anymore bug'
2008-01-19 02:58:19 +00:00
Tedd Hansen
82d43db1cc
Added data structure to be passed through event execution queue so that events can use llDetect*-commands to find information about event.
2008-01-17 15:22:35 +00:00
Teravus Ovares
18c959df12
* Added llApplyImpulse in the global frame. The object must be physical before this'll do anything. Be careful with this function as it's easy to loose prim.
2008-01-17 14:59:05 +00:00
Teravus Ovares
c2863df49d
* Added and implemented the LSL changed event.
...
* 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
2008-01-17 02:23:48 +00:00
Adam Frisby
b25f9f322c
* Mother of all commits:
...
* 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.
2008-01-15 02:09:55 +00:00
Tedd Hansen
370e79cd9e
ZERO_ROTATION set to 0,0,0,1 -- not 0,0,0,0 ;)
2008-01-14 15:37:00 +00:00
Charles Krinke
fa83249db8
Thank you very much, Kinoc for implementing llGetSubString and llDeleteSubString:
...
from the c# implementations of string.SubString(start,len) and string.Remove(start,len).
Especially since negative indexing and exclusion are included in the LSL versions.
This patch is closer to the LSL version. Maybe an osSubString and osRemoveString
would be appropriate?
2008-01-12 22:25:10 +00:00
Tedd Hansen
f9c981007d
Set eol
2008-01-12 15:52:34 +00:00
Tedd Hansen
27859faf7a
Welcome back LSO.
...
Added old LSO code, will use it as base to create new LSO VM.
2008-01-12 15:49:41 +00:00
Tedd Hansen
0081c060d0
Set eol
2008-01-12 14:45:59 +00:00
Tedd Hansen
33d82aa532
Added license to new files
2008-01-12 14:40:28 +00:00
Tedd Hansen
bacbade369
Major reorganizing of DotNetEngine. Moved common script engine parts to 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-12 14:30:22 +00:00
Tedd Hansen
a993d0d335
ScriptServer communication is ok. Script is creatd on onrez. But since it can not access Scene it sort of crashes right away ;)
...
Added some sample placeholders for implementing rest of LSL events.
2008-01-12 10:25:08 +00:00
Tedd Hansen
011abad053
ScriptServer protocol now correctly casts datatypes -- ready for implementing
2008-01-12 09:44:01 +00:00
alondria
90ccc248e8
Implements llModifyLand() - Still needs some tweaking to match LL's effect on how much to effect the land.
2008-01-12 04:30:47 +00:00
alondria
c2ca98519b
Linking osTerrainGetHeight, osTerrainSetHeight, and osRegionRestart to LSL_BaseClass to allow them to be called in LSL scripts.
2008-01-12 03:23:11 +00:00
Jeff Ames
5d7e120d56
Set svn:eol-style.
2008-01-12 01:35:25 +00:00
Tedd Hansen
e7dbaad04f
New ScriptServer protocol successfully implemented.
...
Still needs hooking up for all commands in both ends, separation of local and remote LSL-commands, etc.
2008-01-12 01:14:31 +00:00
Tedd Hansen
1e9a66cbaa
ScriptServer communication protocol (v1), primitive RPC-like TCP client/server
2008-01-12 00:48:58 +00:00
Jeff Ames
ef674acc24
Fix some warnings under mono.
2008-01-11 21:08:37 +00:00
Tedd Hansen
6bcf44e141
Added const definintions for sculpted prims.
2008-01-10 19:21:37 +00:00
Tedd Hansen
260145a7e6
Dynamic loading of ScriptEngine in ScriptServer
...
ScriptServer event pipe (OpenSim->ScriptServer->ScriptEngine) should in theory be done
2008-01-09 17:13:02 +00:00
Jeff Ames
3d7e6fc6d8
Set svn:eol-style.
2008-01-06 11:17:57 +00:00
Tedd Hansen
0fb0a6816d
Only one queue is used for load/unload of scripts.
...
So loading/unloading of scripts are now done in same sequence as they are called.
2008-01-05 20:05:29 +00:00
Tedd Hansen
966f639ad6
Changes to ScriptServer to (hopefully) make it compile on both .Net and Mono.
...
Some debug info for startup added to find bugs. ++
2008-01-05 15:48:02 +00:00
Tedd Hansen
4d3a8f4b52
Fixed nant compile problem
2008-01-01 15:28:16 +00:00
Tedd Hansen
d484df15c0
Trying to fix nant compile error
2008-01-01 15:18:36 +00:00
Tedd Hansen
7ef7caa200
Temp removed new data types patch from Mantis #272 , causing compile problems (nant)
2008-01-01 14:56:12 +00:00
Tedd Hansen
8d79a5d93c
Minor changes. Changed Prebuild.xml to avoid first-time-compile error because of dependencies. Made some changes to new LSLString.
2008-01-01 14:23:14 +00:00
Tedd Hansen
86a38dfd0f
Adrianas 0000272 -- I think we need to implement standard string/integer/float functions too.
2008-01-01 11:41:07 +00:00
Tedd Hansen
9eba3d2f89
Fixed string issue in compiler
2008-01-01 11:28:56 +00:00
Tedd Hansen
a8cb20355c
Correction of last commit
2007-12-31 19:31:40 +00:00
Tedd Hansen
ff4f2f5681
Changed type comparison from String to object type
2007-12-31 19:18:17 +00:00
Jeff Ames
3c9505199a
Set svn:eol-style and svn:ignore.
2007-12-31 12:00:40 +00:00
Teravus Ovares
b0a6299937
* Added a catch for RemotingErrors on the TCP init
2007-12-31 01:57:14 +00:00
Teravus Ovares
373d801c40
* Added graceful remote script server connection error handling
...
* Removed a friends module test that I had.
2007-12-30 23:56:29 +00:00
Teravus Ovares
57a1132585
* Fixed References in Prebuild so the project compiles
...
* Added Friends List methods to IUserData interface
* Created Stub friendslist Database Methods
2007-12-30 23:29:44 +00:00
Tedd Hansen
5b8620d82f
Comments + fix = in theory stand alone script server + "RemoteSevrver" ScriptEngine (as opposed to "DotNetEngine") should work for a single region. It will however not work because it doesn't have two-way communication.
2007-12-30 22:57:27 +00:00
Tedd Hansen
6055db2bc3
server->script event path almost ready for remote scriptengine (translation table between local script ID and remote script ID missing)
2007-12-30 22:37:07 +00:00
Tedd Hansen
c084c54fb5
Added ScriptEngine.RemoteServer module
2007-12-30 19:08:22 +00:00
Tedd Hansen
527b5f86a2
In this commit I am using an editor feature called "Save All" before I commit.
2007-12-30 16:34:54 +00:00
Tedd Hansen
7ef09a1202
Added comments to ScriptEngine classes that explains what their purpose is
2007-12-30 16:32:29 +00:00
Charles Krinke
3cf3b426b6
Thank you again, Alondria for:
...
Adding some more support to Vectors and Rotations
Description * String->Vector/Rotation added
* Vector * and / a double added.
2007-12-27 23:09:31 +00:00
lbsa71
efd90b56b7
* Optimized usings
...
* shortened references
* Removed redundant 'this'
* Normalized EOF
2007-12-27 21:41:48 +00:00
lbsa71
87e2a694e2
* AssetServerBase: _ProcessRequest is now called GetAsset
...
* PrimitiveBaseShape: The textures are now exposed as a 'TextureEntry Textures'; all serialization still using the 'byte[] TextureEntry' for backwards compatibility.
* Scene: Re-added AddTree, since the Tree type isn't gone from libsl, merely relocated.
2007-12-27 14:00:30 +00:00
Adam Frisby
2cb222806b
* Fixed compile issue caused by half-refactoring (sorrry!)
2007-12-27 05:48:27 +00:00
Adam Frisby
af406bf6fa
* Added osRegionRestart(float secs) to LSL Commands
...
* Added osRegionNotice(string msg) to LSL Commands
* Added PermissionManager checks for osTerrainSetHeight, osRegionRestart.
2007-12-27 05:26:52 +00:00
Adam Frisby
8b6dd623bd
* Added osTerrainSetHeight(int x, int y, double val) to LSL commands
...
* Added osTerrainGetHeight(int x, int y) to LSL commands
2007-12-27 05:20:03 +00:00
Teravus Ovares
87d55443d3
* Added slightly better object sit handling
...
* Added sit handling for sit targets
* Implemented llSitTarget()
* Implemented llAvatarOnSitTarget()
* Sit targets do not persist sim restart.
2007-12-27 03:25:00 +00:00
Charles Krinke
fa2495ae6b
Again, great thanks to Alondria for:
...
Adding:: llSetParcelMusicUrl(), llGetRootPosition(), llGetRootRotation(),
llGetGeometricCenter(), llSetLocalRot(), llListReplaceList(),
llGetObjectPrimCount(),llGetParcelDetails(), llGetParcelMaxPrims(),
llWater(), llGetLocalRot(), and llGetAccel()
2007-12-24 21:16:32 +00:00
Teravus Ovares
b2903c4a8a
* Patch from Alondria - Added LLFunctions llGetMass(), llGetLandOwnerAt(), llGetVel(), llGround()
2007-12-23 13:14:56 +00:00
Charles Krinke
5cd6f235ce
Thank you, Alondria for:
...
Reverts the LSL Texture/Color functions back to the original code, allowing them to function again
2007-12-22 22:49:37 +00:00
Jeff Ames
be2ad79e52
Added patch from Johan. First attempt to solve the LibSL.Packet GC problem. Works with LibSL rev>1532
2007-12-20 05:43:02 +00:00
Charles Krinke
94ec2a508a
Thank you very much, CharlieO for:
...
Added: llSetLinkAlpha() and finished off llSetLinkColor() by adding the ability to use LINK_SET.
2007-12-19 21:48:50 +00:00
Jeff Ames
6702b03733
Misc. cleanup:
...
* added Util.Clip(value, min, max)
* modified asset cache's numPackets calculation to use max packet size (600) instead of 1000
* removed a few magic numbers
2007-12-19 08:44:25 +00:00
Charles Krinke
16174dac6e
Thanks to CharlieO for:
...
llSetLinkColor() and a temp place holder for llOwnerSay() since many example scripts that are copy/pasted from outside sources have llOwnerSay() and its obnoxious to change in scripts each time.
2007-12-19 02:30:28 +00:00
Charles Krinke
6f389ba4cf
Many Thanks to Alondria for adding:
...
The list type and a bunch of support functions to LSL
Added/ReImplmented: llGetListLength(), llList2Integer(), osList2Double() (note rename),
llList2Float(), llList2String(), llList2Key(), llList2Vector(), llList2Rot(),
llList2List(), llDeleteSubList(), llGetListEntryType(), llList2CSV(), llCSV2List(),
llListInsertList(), llDumpList2String(),
Borked Still: llListSort(), llListRandomize(), llList2ListStrided(), llListFindList(),
Changed: llHTTPRequest() (Made wrapper of LSL_Types.list->List<string>)
2007-12-18 02:41:34 +00:00
Charles Krinke
8e8c26acac
Again, thanks to Alondria for:
...
Added: LinkNum to SceneObjectPart
Added: Bunch-o settings of LinkNum in SceneObjectGroup
Added: llGetNumberOfPrims()
Added: llGetLinkNumber()
Added: llGetLinkKey()
Added: llGetLinkName() (and change to string return type)
2007-12-17 02:30:03 +00:00
Charles Krinke
fd360406b9
Thanks again to Alondria for adding: math support for
...
rot * rot, vec / rot, == and != overriders for Rotations and Vectors.
Also: llRotBetween(), llGetRegionTimeDilation(). And fixing:
Error in LSL2CSConverter that botched a variable with a type name in it (ex: rotationCenter)
Fixed: Error in LSL2CSConverter that parsed which() loops incorrectly.
Fixed: Changed definition of Quaternion to <x, y, z, r> from <x, y, z, t> (As per LSL)
Finished: llEuler2Rot()
2007-12-15 16:26:32 +00:00
Charles Krinke
9ca70e029a
Again, thanks to Alondria for: adding llGetTime, llResetTime, and llGetAndResetTime.
...
Also for fixing Rot/Vector Regex from being too greedy by removing bug in the
LSL->C# converter that was causing the vector and rotation parser.
2007-12-14 16:10:56 +00:00
Sean Dague
f773733fcb
From Michael Osias (IBM)
...
This patch makes some enhancements to the llRemoteData functions. The
module is now a shared module, and allows remote data channels to be
created among multiple regions in the same sim. The port is controlled
from the remoteDataPort property under the [Network] section in
OpenSim.ini. If this setting is not present or = 0, the module is
disabled and no port is opened. llRemoteData commands have not effect
when module is disabled.
2007-12-13 19:50:21 +00:00
Sean Dague
7625438ade
From Michael Osias (IBM)
...
This patch implements the llHttpRequest function via a region module,
HttpScriptsRequest. There were bits and peices in LSLLong_cmd_handler,
which I moved into the region module, and just check for completed
requests and dispatch the http_response callback event instead.
works for me as of r2674
2007-12-12 22:14:43 +00:00
Charles Krinke
a0a189aed2
Thanks to Alondria for:
...
llResetScript() is now functional. With this patch, Kan-script 0000003 should run.
Noted the llListen(0,"","","") errored due to "" != UUID - patched to set to
NULL_KEY which then works to listen to everything.
2007-12-12 22:07:40 +00:00
Charles Krinke
47b091f663
Thanks to Alondria for: Adding vector->string and rotation->string,
...
float * vector, vector * float, vector / float, vector + vector,
vector - vector, vector * vector, vector % vector and changing
x, y, z, (and r) parts of vector and rotation to be lower case
(similar to LL's LSL vectors/rots). With these changes we should
expect to run kan-ed#1, kan-ed#2 and most of kan-ed#3.
2007-12-12 17:18:15 +00:00
lbsa71
ffd60baa48
* The 'Create' functions should be called to factor up a new, otherwise empty, but with the Id and 1-to-1 child fields instantiated and randomized.
...
* Added two shape constants that
2007-12-11 13:30:08 +00:00
Charles Krinke
22acc23755
Great Salutations to Alondria for providing implementations for:
...
llFrand, llSetColor, llGetColor, llSetTexture, llGetTexture,
llSetAlpha, llGetAlpha, llRotateTexture, llScaleTexture,
llOffsetTexture, llGetTextureOffset, llGetTextureScale, llGetTextureRot.
With these changes the "kan-ed" script #2 should be working.
2007-12-10 21:38:01 +00:00
Jeff Ames
081a66d570
added musings on llInstantMessage
2007-12-10 05:58:30 +00:00
Jeff Ames
af6eb67999
saved OpenSim source code from the giant rampaging unterminated copyright notice of doom
2007-12-10 05:25:16 +00:00
Jeff Ames
e278d07220
refactored ChatModule a bit.
...
misc cleanup and code convention fixes.
2007-12-10 02:29:42 +00:00
Charles Krinke
be5d8811be
Added a call to m_host.SendFullUpdateToAllClients().
...
Thank you to Alondria for suggesting this solution
to getting kan-ed#2 to work with the llSetScale call.
2007-12-09 23:48:27 +00:00
Charles Krinke
fbaa8bc9bd
Some progress on 4 of the llParticleSystem members
...
that needed to be cast to libsecondlife.LLColor.
2007-12-09 23:04:11 +00:00
Charles Krinke
2742be6675
"list" becomes "List" in LSL2CSConverter and (f,3) becomes (f,0) in llRound. Thanks to ChrisD/Gromit for pointing these out.
2007-12-09 21:52:01 +00:00
lbsa71
9414d6a1e1
* miniscule changes just to keep myself in synch
2007-12-07 13:49:33 +00:00
Adam Frisby
be7ae3dd3e
* Removed 12 compiler warnings.
2007-12-04 08:18:09 +00:00
Sean Dague
ee8512ee20
patch for llDie from Kurt Taylor (IBM)
2007-11-20 21:19:45 +00:00
Jeff Ames
0b4e15bc35
converted hard-coded chat type values to ChatTypeEnum
2007-11-08 03:11:10 +00:00
Tedd Hansen
dcf41cb683
ScriptServer fixes: Added more debug logging, mutex lock (to be extra-super-sure) on script load/unload, removed experimental Grid-scriptengine from compile because of dynamic module loader, and added random string to script filename to bypass module loader file lock.
...
Please delete your copy of bin/ScriptEngine/OpenSim.Grid.ScriptEngine.DotNetEngine.dll.
2007-11-01 19:27:03 +00:00
Tedd Hansen
2aa9440437
Goodbye LSO to .Net translator. May your bits live on in our memories.
2007-11-01 15:13:04 +00:00
lbsa71
67e12b95ea
* Optimized usings
...
* Shortened type references
* Removed redundant 'this' qualifier
2007-10-30 09:05:31 +00:00
MW
3d8219f6c7
as per the "Filesystem cleanup for OpenSim repository" mailing list thread. Have flattened the OpenSim.Framework project/namespace. The problem is that the namespace is still wrong as its "OpenSim.Framework" while the directory is "OpenSim\Framework\General" , so we need to decide if we change the directory or correct the namespace.
...
Note this has lead to a big flat project, but I think a lot of the files we most likely don't even use any longer. And others belong in other projects/namespaces anyway.
2007-10-29 21:46:25 +00:00
Sean Dague
139994757c
changes to pass nini config object to the modules that get
...
loaded so that they may read out any bits they are interested in
2007-10-19 20:27:34 +00:00
Tleiades Hax
05df857132
Possible fix for: Remoting exceptions with adjacent non-running sims.
...
Bugs 449, 454, 408, 244, 197
implemented InformClientOfNeighbours as an asynchroneous process, handling timeouts without blocking the main thread.
Improved logging of errors, removed catch all in try catch
2007-10-18 15:10:43 +00:00
lbsa71
849eaffbe5
* Applied patch #418 : copyright-r2012.patch - some errors, but got most thru
2007-10-15 07:10:21 +00:00
lbsa71
a40e7100a2
* Gave ModuleLoader some good lovin'
...
* Introduced ModuleLoader.PickupModules that currently picks up IRegionModule:s from /bin
* Made LogBase thread-safe (or at least not thread-ignorant)
* Ignored some genned files
2007-10-10 18:24:13 +00:00
Sean Dague
29aa41daa0
Code from Illumious Beltran (IBM) implementing more LSL
...
The functions implemented are:
llListen
llListenControl
llListenRemove
llOpenRemoteDataChannel
llCloseRemoteDataChannel
llRemoteDataReply
The events implemented are:
listen
remote_data
2007-10-05 19:33:26 +00:00
Sean Dague
c3d8f1f425
getting all our line endings consistant again
2007-10-05 15:45:45 +00:00
Dalien Talbot
d1df81c221
Applied ckrinke's patch for #453 . Thanks Charles! :)
2007-09-30 09:01:51 +00:00
lbsa71
3c7161d128
* Rewired Touch to route to group/part (Still triggering EventManager as well)
2007-09-20 05:22:18 +00:00
lbsa71
a963b3057b
* Replaced usage of ClientView with IClientAPI
...
* Some propertification and hideousness of fields.
2007-09-18 09:59:33 +00:00
Sean Dague
b8d9737a47
fixing me some line endings
2007-09-17 12:52:03 +00:00
Brian McBee
279177219e
Fixed missing Axiom references.
2007-09-16 13:02:16 +00:00
Tedd Hansen
c654506b18
Implemented: llSetText, llResetScript
...
Implemented: llHTTPRequest (queue, thread, etc -- but not actuall call)
2007-09-16 03:36:13 +00:00
Tedd Hansen
88968622ea
Implemented: llStringToBase64, llBase64ToString, llXorBase64Strings, llXorBase64StringsCorrect, llGetTimestamp
2007-09-15 16:45:37 +00:00
Tedd Hansen
cff586df68
Bugfixed: llListRandomize
...
Implemented: llListSort, llList2ListStrided, llDeleteSubString, llInsertString
2007-09-15 16:16:57 +00:00
Tedd Hansen
c6344fcf94
llList2Key, llList2Rot, llList2List
2007-09-15 15:55:40 +00:00
Tedd Hansen
ad042f1d75
Implemented llList2CSV, llCSV2List, llListRandomize, llList2Vector, llListFindList, llListInsertList, llDeleteSubList
2007-09-15 15:45:20 +00:00
Tedd Hansen
1e0f9604a6
Will display error in main chat if unsupported llFunction is used.
2007-09-15 14:57:07 +00:00
Tedd Hansen
ed68a3894c
Now loading "OpenSim.Region.ScriptEngine.Common.dll" into scripts AppDomain and "using OpenSim.Region.ScriptEngine.Common;" at start of script when converted from LSL. Vectors and rotations now works.
2007-09-15 14:22:38 +00:00
lbsa71
f8ddf7429e
* Wired up chat so that channel goes into OnChatFromViewer. However:
...
* There's no libsl reply packet field for it, I guess other channels than 0 makes no sense sending back to clients.
* We do not currently support objects listening, so there's really no way of actually using this feature.
So; somebody please wire chat all the way to the scripts.
2007-09-14 13:46:05 +00:00
lbsa71
1b1808d45d
* fixed script compilation
...
* reversed //c# - if
* rightifyed what's actually converted
2007-09-14 09:25:07 +00:00
Sean Dague
8849637493
more fun with LSL implementations
2007-09-14 08:57:13 +00:00
Sean Dague
23b8e39c1b
llSetPos(), llGetPos(), llGetLocalPos() now implemented
2007-09-13 14:19:57 +00:00
Tedd Hansen
0709d96716
If first 4 characters in script is "//C#" script will be treated as pure C# instead of LSL/C# hybrid. This means no preprocessing before compile.
2007-09-13 14:15:02 +00:00
Sean Dague
af6c9d355d
implement llGetScale and llSetScale
...
drop IScriptHost for now and just use SceneObjectPart, given how many of
SceneObjectPart's properties we need for the script engine
2007-09-13 13:06:54 +00:00
Sean Dague
afea5f2205
remove ^M, as native storage should be UNIX format, and ^M in/out mashing
...
will happen on the windows side now that eol-style is correct
2007-09-13 11:41:42 +00:00
Tedd Hansen
cef8c5e9d7
Hiding evidence that I once was a VB coder (thanks to refactoring). Renamed member names to smallcapsy.
2007-09-13 11:11:08 +00:00
MW
3a1ddca8a1
Fixing namespace problems
2007-09-11 14:33:32 +00:00
MW
04cf04600c
Applied ldvoipeng's patch [ #360 ], sorry for it taking so long to apply it. If in future anyone's patch hasn't been applied within a few days, please can someone kick one of the developers with svn access.
2007-09-11 14:18:34 +00:00
lbsa71
b134617e07
* Took a stab at #388
2007-09-10 13:42:11 +00:00
Sean Dague
ffe9c9374a
mass update of urls in source code to new website
2007-09-10 08:14:38 +00:00
MW
5020e4e602
Cut down on the number of compile warnings. Now down to 5: 4 are related to unused events on IClientAPI and 1 is a unused variable in LSL_BuiltIn_Commands (which I'll leave to Tedd, as he will know if it will be used in the future or not).
2007-09-08 08:12:19 +00:00
MW
c29df824c2
Converted the LSL scripting engine into a IRegionModule, so now all "modules" share a common base interface and are loaded from the single loader. (It seems to work fine, but I have left the old scriptengine loader, incase we have to change back).
...
Removed the reference to OpenJpeg in the DynamicTextureModule, to see if that was causing the build problem someone is having.
Added a Temporary fix for the "existing connection was forcibly closed by the remote host" exception on windows when a user logs out of a multiregion instance.
Some early work to prepare for improving the way clients are updated (about prims etc).
2007-09-08 07:50:31 +00:00
MW
bfd36e2e83
Some work on Module loading/management.
...
Some more modules templates classes (hoping that someone will pick some of these and work on implementing them).
Early version of the "Dynamic Texture Module", although currently there are no render modules included (so not really functional without them).
Added osSetDynamicTextureURL script function, for attaching a dynamic texture to a prim.
Some work on the console command handling. Added "change-region <regionname>" and "exit-region" so that after the use of change-region, the commands entered will apply to that region only. Then use exit-region to return to the top level (so commands then function as they did before and either apply to all regions or to the first region) (Note: this hasn't been tested very much)
2007-09-04 13:43:56 +00:00
Tedd Hansen
5a149084d4
startup event on script added to object, not all inside object.
2007-08-28 18:22:48 +00:00
MW
6181191a03
Stopped EntityBase from implementing IScriptHost, as don't think it should, multiple objects are based on entitybase and they all don't want the baggage from IScriptHost. SceneObjectPart already implements it anyway.
...
Added llGetOwner function, and tested the ll functions that I added in last commit.
2007-08-27 11:18:50 +00:00
MW
4c3be4e91f
Another small tweak to image sending.
...
Implemented a few ll Functions, llSetObjectName llGetObjectName, llLoadURL (all currently untested).
2007-08-27 10:34:28 +00:00
Brian McBee
f6706e6cf8
Fixing llList2double issue (Thanks ldvoipeng)
2007-08-27 01:58:56 +00:00
Tedd Hansen
7e06df5f83
llList-commands from ldvoipeng, new Default.lsl from dalien
2007-08-26 21:21:21 +00:00
MW
291eb48fb0
Another attempt to fix the image sending bug (next week, I intend to rewrite the assetcache and asset server).
...
Attempt to fix bug # 326. (crashing when using save-xml and hollow prims)
Attempt to fix bug # 328 (limit of 50 items in a folder)
2007-08-26 17:57:25 +00:00
Tedd Hansen
83d5df3979
in-world run-time error-message no-w con-tains function-name.
2007-08-26 14:04:22 +00:00
Tedd Hansen
ebb0099816
Run-time script errors are now shown in-world. No line number though, might require script to be compiled with (slow) debug information.
2007-08-26 13:31:58 +00:00
Tedd Hansen
fda97aa3c5
Bugfix for last commit, { instead of (
2007-08-26 08:43:46 +00:00
Tedd Hansen
25e200c46a
Fixed bug that occurs sometimes on script unload where queued script event was attempted executed after AppDomain was unloaded.
2007-08-26 08:20:48 +00:00
Tedd Hansen
0cd6d26adb
Fixed error on shutdown caused by ThreadAbortException sending message through already disposed logger. Thanks ckrinke
2007-08-25 22:26:27 +00:00
Tedd Hansen
53ef427e9e
Forgot mutex lock on List<> for timers
2007-08-25 21:50:28 +00:00
Tedd Hansen
d9b9b16513
Script compiler should now show error on correct line number in original LSL-script.
2007-08-25 21:35:03 +00:00
MW
4b42bc5311
oops , shouldn't have committed my local testing changes
2007-08-25 20:38:57 +00:00
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
05a7f44d73
testing Tedds temporary CIA-standin
2007-08-25 20:07:46 +00:00
Tedd Hansen
370f36e4e1
testing Tedds temporary CIA-standin
2007-08-25 20:04:05 +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
caee73353d
Debug shows how many bytes (total) a script (assembly) uses after compile and load.
2007-08-22 20:01:04 +00:00
Tedd Hansen
4beef91d00
GC.GetTotalMemory(true) was blocking.
...
We now support individual scripts on individual prims. Do the script dance... \o/ \o\ /o/ \o/ .o.
2007-08-22 19:33:10 +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
lbsa71
5403153c15
A case of 'while I was working someone set me up the bomb'.
2007-08-22 16:04:04 +00:00
lbsa71
22537aa620
* Added stub OnRezScript handler with plentiful of comments
2007-08-22 15:29:47 +00:00
Tedd Hansen
33326c1a70
Some minor changes + krinkec's updates to ll* functions.
2007-08-20 10:58:51 +00:00
Tedd Hansen
1b826c2fdc
Added "StopScriot()" to ScriptManager. Stops Executor from executing events in script, removes script from EventQueueManagers target list, tells AppDomainManager that script is no longer active (and ready for unload).
2007-08-19 17:47:47 +00:00
Tedd Hansen
eeaac68d73
Code comments on recent changes in EventQueueManager
2007-08-19 11:38:58 +00:00
Tedd Hansen
7770c65a7e
Sped up EventQueueManager response time (scripts now respond quickly). Added support for multiple threads executing events on objects, but only one thread on one script at the time (to utilize MultiCore/hyperthreading CPU's).
2007-08-19 11:09:54 +00:00
Tedd Hansen
e70cdbc5ac
Added event method invoke cache to Executor. "Bind once, Invoke multiple times". Will speed up script event execution considerable. But at the cost of some memory (will be optimized later with RuntimeXHandle).
2007-08-19 10:28:27 +00:00
Tedd Hansen
1893164d26
Moved script loading from ScriptManager to AppDomainManager. Now increases scripts loaded count in AppDomain properly.
2007-08-19 06:52:59 +00:00
Tedd Hansen
489803e6bc
Did I forget to add IScript.cs? Yes I did...
2007-08-18 23:38:03 +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
1ae73931da
Added (theoretical) AppDomain cleanup code.
2007-08-18 22:33:06 +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
f2dd6c86f7
Added RAIL.dll
...
Updated DotSets.dll and Mono.PEToolkit.dll
Started on microthreading - currently display exception during startup
2007-08-17 18:39:04 +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
09e1f5f22e
Correct caps of Default.lsl for Linux. Thanks again krinkec. :)
2007-08-14 16:42:00 +00:00
Tedd Hansen
2a892eb736
Removed some debugging. Removed *.lso from project include in prebuild.xml.
2007-08-14 16:25:22 +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
876f71cf93
(DotNet) ScriptEngine is now loaded and added to Scene during startup.
2007-08-13 19:39:51 +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
6829c45cb3
ScriptEngine just needs 2 events hooked up and llSay() implemented to work. See TODO.txt for details.
2007-08-09 18:57:41 +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
MW
cf203cf5ee
The startup set of assets in the local asset server can now be set from a xml file (OpenSimAssetSet.xml). (remember to make changes to the set, you will also need to delete the old asset .yap file, so that it is recreated).
...
Also the set of items in the OpenSim inventory Library can also now be set from a xml file (OpenSimLibrary.xml).
2007-08-08 17:11:02 +00:00
Tedd Hansen
1a9966abac
Commit works?
2007-08-08 15:40:35 +00:00
MW
a3b1a61e6a
Removed System.Windows.Form reference from DotNetEngine.Compiler.LSL , it didn't seem to be needed anyway.
2007-08-08 15:26:19 +00:00
Tedd Hansen
356f59ac45
Added ScriptEngine to solution (prebuild.xml)
2007-08-08 14:36:54 +00:00
Tedd Hansen
2a0e157985
Added ScriptEngine.DotNetEngine
2007-08-08 14:05:13 +00:00