Commit Graph

463 Commits (54c6a920baa0ef02a9ea09e08cc1effcef3b0a3a)

Author SHA1 Message Date
Melanie Thielker 54c6a920ba Replace the console for all OpenSim apps with a new console featuring command
line editing, context sensitive help (press ? at any time), command line
history, a new plugin command system and new appender features thet let you
type while the console is scrolling. Seamlessly integrates the ICommander
interfaces.
2009-02-07 12:25:39 +00:00
Dr Scofield 9b66108081 This changeset is the step 1 of 2 in refactoring
OpenSim.Region.Environment into a "framework" part and a modules only
part. This first changeset refactors OpenSim.Region.Environment.Scenes,
OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces
into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region
modules in OpenSim.Region.Environment.

The next step will be to move region modules up from
OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and
then sort out which modules are really core modules and which should
move out to forge.

I've been very careful to NOT BREAK anything. i hope i've
succeeded. as this is the work of a whole week i hope i managed to
keep track with the applied patches of the last week --- could any of
you that did check in stuff have a look at whether it survived? thx!
2009-02-06 16:55:34 +00:00
Mike Mazur 0c03a48fb2 - add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of it
- trim trailing whitespace
2009-02-04 00:01:36 +00:00
Justin Clarke Casey 2009d1aa01 * Fission SceneObjectTests into basic and linking sets 2009-02-03 20:13:34 +00:00
Justin Clarke Casey 984cf94375 * Lock the parts for the old group while we're clearing it as well - not much point doing one without the other
* Shouldn't result in any deadlocks as I don't think there are any locks in the calling code
2009-02-03 19:36:57 +00:00
Jeff Ames 496ed4488d Minor formatting cleanup. 2009-02-02 09:01:00 +00:00
Charles Krinke 50536c66a0 Thank you kindly, TLaukkan (Tommil) for a patch that:
Added osTeleportAgent with region coordinates to 
support hyper grid scripted teleports.
2009-02-01 17:41:33 +00:00
idb aad843fc2c Correct the method signature on llMakeFountain. 2009-02-01 15:12:32 +00:00
idb 1a14066aa6 Speed improvement mostly when sensing objects especially noticeable in a sim with many objects. 2009-01-31 19:02:09 +00:00
Charles Krinke 4a120e9dd5 Flesh out llGetAgentLanguage to return "en-us" until
we have an I18N committee for internationalization.
2009-01-31 18:27:44 +00:00
idb ea6e4a95ce Complete the implementation of llSHA1String. 2009-01-29 19:47:55 +00:00
Justin Clarke Casey 6e63e93ec7 * minor: just a few formatting changes and log quietening 2009-01-29 18:39:33 +00:00
Dr Scofield ce1e1854b1 From: Christopher Yeoh <yeohc@au1.ibm.com>
This changeset fixes a race condition where a script (XEngine run) can
startup before a reference is added to it in all of the required
places in the XEngine class. The effect of this is that a script can
sometimes on startup miss script events. For example a script which
starts up and initialises itself from a notecard may never receive the
dataserver event containing the notecard information.

The patch isn't as clean as I'd like - I've split the constructor of
ScriptInstance up so it does everything it did before except
call Startup and post events like state_entry and on_rez. An Init
function has been added which is called after the ScriptInstance
object has been added to the necessary data structures in XEngine.

Happy to rework it if someone suggests a better way of doing it.
2009-01-28 09:52:09 +00:00
Charles Krinke fe18adbc11 Add in a stub for llSHA1String. I believe it is the only one new
function we were missing.
2009-01-28 04:50:25 +00:00
idb b0cb272d12 Remove the addition of the region coordinates to obtain the absolute position of a prim/person on the grid. I believe it is superfluous and removes needed decimal places for short range sensors.
Fixes Manitis #3046
2009-01-25 21:13:42 +00:00
idb aa2521623c Add an override of the ! operator to lsl integer.
Fixes Mantis #3041
2009-01-25 10:17:26 +00:00
idb 04a565e6b1 Fix for llGetRot when the script is in a child prim. Also fixed llGetPrimitiveParams for PRIM_ROTATION.
Fixes Mantis #3023
2009-01-23 18:10:31 +00:00
Justin Clarke Casey ddff7ab20e * Add direct stream loading and saving methods to the archive module.
* The async stream method does not yet signal completion to interested calling code
2009-01-23 17:07:37 +00:00
idb 757762a630 Implement missing LSL TEXTURE_xxx constants including two new textures.
Fixes Mantis #3030
2009-01-22 23:58:46 +00:00
idb afc48ce39c Added overrides for == and != for list.
Fixes Mantis #3002
2009-01-20 00:10:39 +00:00
idb 63d2885008 Moved applying an impulse to a newly rezzed object to minimise the delay getting the object moving. 2009-01-18 14:46:43 +00:00
Melanie Thielker 96d6c6b1f3 Change list type to compare length instead of references.
Fixes Mantis #3002
2009-01-17 18:35:40 +00:00
Jeff Ames 23bd915ecd Minor formatting cleanup, add copyright header. 2009-01-16 04:42:24 +00:00
Dr Scofield 9bcaf98e37 From: Christopher Yeoh <yeohc@au1.ibm.com>
The attached patch adds the automatic granting of PERMISSION_CONTROL_CAMERA
on request to a script when an avatar is sitting on the object that the script
resides in.

It also automatically removes PERMISSION_TAKE_CONTROLS and PERMISSION_CONTROL_CAMERA
from the scripts when an avatar stands up. It doesn't remove the other automatically
granted permissions but this follows LL server behavior. Removing these two
permissions avoids some potential race conditions (accidentally taking
control after the avatar has stood up) which may be why LL put
them in the first place.
2009-01-13 08:15:43 +00:00
Mike Mazur a7bc56073c Make ZERO_ROTATION.y a float. Fixes Mantis #2985. 2009-01-12 09:04:31 +00:00
Justin Clarke Casey af49acd6cc * refactor: move url sending from scene to DialogModule 2009-01-08 19:28:10 +00:00
Justin Clarke Casey e7bb27b5bd * refactor: move code to send a dialog to a user from scene to DialogModule 2009-01-08 19:14:52 +00:00
Justin Clarke Casey 1aa9e63428 * Move general alert code to DialogModule.
* Should be a clean build - last failure looked like a mantis hiccup
2009-01-07 20:29:09 +00:00
Teravus Ovares b1a677630f * Adding some recognizable and search-able test to some WriteLine(e.ToString()) messages so that when they occur, we can figure out what threw them. 2009-01-02 14:24:49 +00:00
Jeff Ames 2be0f7a6f0 Update svn properties, minor formatting cleanup. 2008-12-30 01:08:07 +00:00
Justin Clarke Casey c1320112a9 * Add a method to allow friendship offers to a logged in client from an offline user directly from the server 2008-12-23 17:16:47 +00:00
Melanie Thielker a7a0b5e1ae Fix the error i got sidetracked from :/ 2008-12-22 14:41:18 +00:00
Melanie Thielker a3b67ec8c7 Fix "from" link number in single prims to 0. Previously, this was 1,
causing sime scripts that expected the first param of the link_message
to match llGetLinkNumber() to fail in single prims
2008-12-22 13:03:30 +00:00
Dahlia Trimble d83d665186 Thanks to M. Igarashi and nlin for a patch that improves conformance of the funcion llAxes2Rot() 2008-12-22 03:08:39 +00:00
idb 3fe966d6b3 An initial implementation of llMinEventDelay in XEngine.
Not implemented yet in DotNetEngine.
Fixes Mantis #2830
2008-12-21 19:04:06 +00:00
idb d7a19adcac Persist script permission mask and granter 2008-12-21 13:28:51 +00:00
Charles Krinke 62dd67b8b8 Mantis#2796. Thank you kindly, Gerhard for a patch that addresses:
On a call of llVolumeDetect(1) (or any other number !=0) volume 
detection is enabled. Together with VD, the phantom flag is set to the GUI.
On a call of llVolumeDetect(0), vd detection is switched of again, 
also the phantom state is removed. On a call to llSetState(STATE_PHANTOM, 
false) while VD is active, also VD is switched off. The same is true for 
unchecking the phantom flag via GUI. This allows to take back VD without 
the need to script just by removing the phantom flag.
Things missing in this patch: persistance of the volume-detection flag. 
This needs more discussion and will be included in another patch soon.
2008-12-20 21:36:42 +00:00
Melanie Thielker 3aa7ad24da Make scripted item and folder gives pop up a "accept, decline" message
and allow deletion of the just received item.
2008-12-14 22:27:40 +00:00
idb 7c6c443503 Remove use of time dilation in llGetTimeOfDay, llGetTime and llGetAndResetTime.
It is not documented to be applied to llGetTimeOfDay at all and is not appropriate for the other two because dilation does not directly affect script speed in OS.
Fixes Mantis #2783 and #2162
2008-12-14 17:48:27 +00:00
Teravus Ovares 8ad6f575eb * Implements the torque/Rotational Impulse methods in the PhysicsAPI and the ODEPlugin and pipes them to their respective LSL method.
* NBody will need to be updated, this is an API change.   Torque property and AddAngularForce
2008-12-14 14:30:28 +00:00
idb 795cdf624b Added ATTACH_HUD_* constants fixes Mantis #2823 2008-12-14 12:14:23 +00:00
idb 1ba76f57ba Made the casting of stings to floats more robust and work more like SL.
Added some more tests that casts previously failed on.
Fixes Mantis #2789
2008-12-12 11:50:12 +00:00
Jeff Ames a8fff196f5 Update svn properties, minor formatting cleanup. 2008-12-11 02:35:51 +00:00
Sean Dague 04e8d624d6 From: Christopher Yeoh <yeohc@au1.ibm.com>
The attached patch ads an OpenSim.ini option (AutomaticLinkPermission)
which when enabled makes PERMISSION_CHANGE_LINKS to be granted to
scripts by default. When enabled llGetPermissions will always return it
as granted and llCreateLink//llBreakLink will succeed without
doing llRequestPermissions. ONLY ENABLE THIS IN TRUSTED ENVIRONMENTS.

The patch also fixes a minor bug in llCreateLink
related to a potential dereference of a null client object.
2008-12-09 13:24:01 +00:00
Teravus Ovares 3844e73d27 * Gerhard's patch m2781. Does some initial work for setting up llVolumeDetect.
* Warning! Physics API change. This means that the NBodySimulation needs to be updated!
* PhysicsActor -> void SetVolumeDetect(int) needs to go into classes that use PhysicsActor as their base class.
2008-12-09 11:11:16 +00:00
idb 8c33fcb321 Remove null checks on structs 2008-12-09 00:51:35 +00:00
Homer Horwitz 7083be07b0 Allow empty statements in LSL (; followed by ;). Fixes Mantis#2320 2008-12-07 19:20:45 +00:00
idb 7ae9ec217d Implementation of the llDetectedTouch* functions 2008-12-05 16:48:47 +00:00
Jeff Ames 1bd92a6d34 Minor formatting cleanup. 2008-12-03 23:48:24 +00:00
Dr Scofield 59b0ac846c From: Christopher Yeoh <cyeoh@au1.ibm.com>
The attached patch fixes the bug where llCreateLink will cause a null dereference
if the avatar who gave link permission for the object is no longer logged in.
2008-12-03 10:10:01 +00:00