Commit Graph

2384 Commits (cf7560d1aaa12d9f705efd08a9a36498f332afd9)

Author SHA1 Message Date
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
Adam Frisby 919aed1058 * And more 2008-04-30 21:23:37 +00:00
Adam Frisby 4a8c1e4393 * Commiting a bunch of missed files. 2008-04-30 21:22:29 +00:00
Adam Frisby 8b0c795a5e * Previous commit managed to miss some files despite me hitting 'Select all'.
* Attached.
2008-04-30 21:17:32 +00:00
Adam Frisby f5c312bc3c * Refactored Environment/Modules directory - modules now reside in their own directory with any associated module-specific classes.
* Each module directory is currently inside one of the following category folders: Agent (Anything relating to do with Client<->Server communications.), Avatar (Anything to do with the avatar or presence inworld), Framework (Classes modules can use), Grid (Grid traffic, new OGS2 grid comms), Scripting (Scripting functions, etc), World (The enrivonment/scene, IE Sun/Tree modules.)
* This should be moved into a seperate project file.
2008-04-30 21:16:36 +00:00
Justin Clarke Casey 9817363b93 * Completely inconsequential inventory odds and ends (actual impact - only one log message changed) 2008-04-30 19:08:48 +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 a9cc76e0ef * Long awaited patch from A_Biondi Mantis 923. Kept alive by Melanie. Thanks A_Biondi and Melanie!
* This builds but might not work.   JustinCC will examine..   it may work out of the box.
2008-04-30 16:08:24 +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
Adam Frisby 0880abc402 * Disabled IntergridModule until a Mono bug can be isolated. 2008-04-29 19:10:15 +00:00
Adam Frisby 3bcb75acfe * One more attempted fix. 2008-04-29 18:52:19 +00:00
Adam Frisby d05c443b71 * Made a change to InterGrid module to prevent duplicate registrations. 2008-04-29 18:46:15 +00:00
Adam Frisby 03155e362c * Implemented new InterRegion comms method in the form of InterregionModule
* Interfaces and methods have been defined for basic operation, however a replacement grid module is required to share region URIs with neighbours for this module to work.
* Tackling that next.
2008-04-29 17:50:29 +00:00
Teravus Ovares 3326effb5f Stuck an exception handler in the friends routine until I have time to debug it more seriously.(or someone else does). It prints a 'Unable to enumerate' message on the console.. so it won't be forgotten.
It isn't critical data atm though.
2008-04-29 16:26:49 +00:00
Justin Clarke Casey 763ae779ff From: Dr Scofield <hud@zurich.ibm.com>
* Fixes the admin_shutdown xmlrpc method
* Adds a share/python/console/shutdown.py script for shutting down a background OpenSim
* For more details see http://xyzzyxyzzy.net/2008/04/29/console-less-opensim/
* There should also be instructions in the opensimulator wiki soon as well
2008-04-29 14:50:27 +00:00
Teravus Ovares 97db1e8af0 Committing Dee100's balance update patch with a few bug fixes and a twist. Thanks Dee100! 2008-04-29 14:12:21 +00:00
Teravus Ovares 9907c0fd10 Patch from Melanie: 0001087: Crash to bash de-linking objects. Thanks Melanie! 2008-04-29 13:53:24 +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 80ea0b94b9 * Fixes child prim not editable as an attachment. You can right click on child prim in an attachment and get the proper pie menu. You get the attachment axis scope in the edit box. 2008-04-29 13:12:36 +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
Justin Clarke Casey dbdeb40d46 * Lash up mantis 1064 - nre thrown in LandObject.sendLandObjectOwners()
* From reading the code, the cause must be that a 'show objects on my parcel' is performed when there are objects belonging to more than 32 people
* I'm not sure why there is a hardcoded 32 limit but I'm leaving it in place for now.  I don't regard this mantis as resolved.
2008-04-28 22:21:42 +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
Justin Clarke Casey 776b1f341a From: Dr Scofield <hud@zurich.ibm.com>
Note: This is the first part of some changes from Dr Scofield to support console-less operation of an OpenSim region server.
The changes are not yet complete.

* refactors OpenSimMain into two classes: OpenSimMain and
  OpenSimMainConsole. OpenSimMainConsole derives from OpenSimMain
  and basically is the "old" OpenSimMain
* drops StartConsole from RegionApplicationBase (was only called
  from the "old" OpenSimMain anyhow)
* reverts the changes to TryGetScene(string, out scene) as that
  seems to work perfectly fine
* adds a check to region-remove to see whether
  m_sceneManger.CurrentScene is non-null before comparing it against
  the region-to-be-removed
2008-04-28 14:41:46 +00:00
Teravus Ovares 7e3506e296 * Fixed 'Welcome to Krynn' default that I missed and got stuck in by a patch.
* Changed it to 'Welcome to OpenSimulator' as opposed to 'Welcome to OpenSim'
2008-04-28 14:11:29 +00:00
Teravus Ovares 1fb54b074c * Added basic 3-5 level undo on prim position/rotation/scale.
* In the future this should be a config option...   and, hopefully this tides the builders over for a little while.
2008-04-28 01:48:21 +00:00
Adam Frisby 7693a7dac9 * Added String(FileExtension) property to ITerrainLoader to allow us to determine which file extension this loader is capable of handling.
* Added ITerrainLoader import capability to Terrain Plugins module - this allows you to write new terrain format plugins without modifying the terrain module directly.
2008-04-27 23:54:16 +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
Teravus Ovares 911e63765c * Single Attachments now work from inventory. You can attach from inventory and detach from inventory.
* Detaching from right clicking in world, detaches to your inventory.
* If you go up to a prim and attach it from in world, it appears in your inventory.
* Attachment placement is saved when you detach them. 
* Choosing wear remembers your last attachment point from inventory.
* Wrote a method to update an inventory item's asset and sends the updated inventory item to the Client
* Wrote a recursive method to find the folder of a known existing inventory item.
* Removed a block on physics object position on creation.  This might crash a region or two, let us know via Mantis if your region crashes because of a physics out of bounds error.
* Drop doesn't work.  The menu item doesn't even come up.  Don't know why :P.
2008-04-27 20:10:28 +00:00
Jeff Ames 56497c9615 Minor svn, formatting cleanup. 2008-04-27 18:35:00 +00:00
Teravus Ovares f71871bca3 * More attachment stuff, reworked some of the inventory routines to be what I need them to be for attachments. 2008-04-27 14:37:51 +00:00
Charles Krinke 7cb78d73eb Thank you Melanie for implementing
llListSort() in linear and strided modes.
2008-04-26 20:49:38 +00:00
Justin Clarke Casey b1632bd222 * Tidy up and comments related to last inventory related commit 2008-04-26 20:44:27 +00:00
Justin Clarke Casey accd89b3f1 * First draft implementation of copying prim inventory items back to agent inventory
* Now, if you own an item in a prim, you should be able to successfully drag it back into your inventory
* Temporarily, users which are not owners of the item cannot copy it, even if 'everyone can copy' is set
* This is pending fixes/implementation of upstream permission implementation
2008-04-26 20:31:01 +00:00
Teravus Ovares 323038ceb9 * Ooops, attachments now teleport/cross region borders along with your avatar. Those dastardly objects stick to you. 2008-04-26 17:36:30 +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
Teravus Ovares a534257b0e * Fixes prim crossing. See bug 1050.
* Causes the internal handling of attachments to put the prim group conceptually at the position of the avatar instead of 0,0,0
2008-04-25 21:41:55 +00:00
Justin Clarke Casey 6fec9c789b * Check in odds and ends which remain as an attempt to get the item properties panel for a prim's contents working
* Temporarily hacked things to bring our protocol data flow to be pretty much completely identical to the Linden's for this - to absolutely no avail.
* Leaving commented code in as a springboard for some future attempt
2008-04-25 21:31:40 +00:00
Teravus Ovares 298870b177 * Fixes Mantis: 1049. Y Texture repeat not being applied to resulting animation. 2008-04-25 19:48:47 +00:00
Justin Clarke Casey 46c8d7a5e1 From: Dr Scofield <hud@zurich.ibm.com>
the patch below adds support for start_location = uri:region&x&y&z to 
OpenSim which allows us to provide -url secondlife:///region/X/Y/Z to 
the SecondLife client during start up --- which will take you directly 
to region "region" at position X, Y, Z.

also, i did increase the default Z value from 70 to 128 as we otherwise 
have the problem that on some regions we'd end up inside a mountain 
instead of on top of it.
2008-04-25 13:37:43 +00:00
Teravus Ovares d3811f4747 * Fixes the object pay box to default to -2,-2,-2,-2,-2. Fixes mantis 1045. 2008-04-25 11:17:43 +00:00
Adam Frisby 87e2793ca6 * Applying mantis#1048 - Patch for osSetRegionWaterHeight() 2008-04-25 10:37:22 +00:00
Teravus Ovares 421730d972 * Used thomas' patch m884 as an example to make HUD attachments work. While I didn't use the patch directly, I did use the following from the patch to convert the uint value into the byte: (byte)((m_attachmentPoint % 16) * 16 + (m_attachmentPoint / 16)) 2008-04-25 09:47:21 +00:00
Teravus Ovares 9468917b5f * Implements llTarget, llTargetRemove, at_target(), not_at_target() 2008-04-25 01:00:55 +00:00
Teravus Ovares d023c331f8 * Tuned the llMove2Target PID controller to be more reasonable and not overshoot the target. 2008-04-24 22:26:26 +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
Teravus Ovares aa8aee90a3 * Adds much better support for attachments that you right click on in world.
* Your friends can see your attachments now.  People who appear in the sim after you've attached something can also see your attachments.
* You can position & rotate your attachments now.  Positions do *not* save.
* You can detach attachments now the regular way.
* Attachments do not cross into other regions with you..(this isn't too far off)
* Updated ODE to not request terse updates on child prim.
2008-04-24 11:32:41 +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
Justin Clarke Casey 40176c12f9 * Implement full grid mode Trash empty
* Now, emptying the trash should remove folders and the items they contain as well as items which were not in a subfolder.
* This will only work once both the region and grid servers have reached this revision.
* You may also need to clear your cache before this will work
* Refactoring to follow.
2008-04-23 22:13:57 +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
Sean Dague 361fbe97d4 fix for mantis 1036 2008-04-23 21:27:37 +00:00
Sean Dague c5e0b376d0 fixed mantis: 1035, as well as ordering commands
alphabetically because out of order lists bother me. :)
2008-04-23 21:20:51 +00:00
Sean Dague 3dd98a112f allow for Inventory database source to be specified in main
configs.  This works with sqlite and nhibernate backends, and
stays with default seperate ini files for mysql and mssql until
someone writes those.
2008-04-23 20:48:23 +00:00
Sean Dague a1cc0e436f changes to allow asset_source to be specified in the opensim.ini
this will work for sqlite and nhibernate, but will be ignored for
mysql and mssql (reverting to their ini files) until someone writes
that bit.
2008-04-23 19:13:06 +00:00
Justin Clarke Casey 4db839c3b8 * Implement proper emptying of trashcan on standalone
* On standalone, folders (and their items) should now be persistently deleted on trash emptying, as well as immediate child items
* An implementation for grid mode will follow.
2008-04-23 17:04:15 +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
Sean Dague d52fc2dc1a Two small changes:
1. add addin-db-001 to the delete list
 2. allow for connection strings for data sources in the config file
2008-04-23 15:15:11 +00:00
Adam Frisby e456cb7533 * Patch for #973 - Object Rez from Inventory ignores permissions - Thanks tglion! 2008-04-23 13:22:06 +00:00
Adam Frisby 3370d581e1 * Patch #1026 - llDialog support -- Thanks Melanie! 2008-04-23 12:21:54 +00:00
Adam Frisby 8425d53d68 * Applying Mantis #1022 - Thanks Melanie! 2008-04-23 11:54:35 +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
Adam Frisby 7c897043ba * Removing old libTerrainBSD and associated Plugin & Project.
* Updated prebuild.xml accordingly.
2008-04-23 10:55:04 +00:00
Justin Clarke Casey 2de6d09d74 * Get rid of missing texture notification drop messages for now - obscuring too many other debug messages. 2008-04-23 10:30:45 +00:00
Justin Clarke Casey 24cf685e55 From: Dr Schofield <hud@zurich.ibm.com>
the attached patch fixes http://opensimulator.org/mantis/view.php?id=936 
aka load-xml/load-xml2 crashing. problem lies with basic physics not 
creating physics actors. the solution was already present in 
SceneObjectPart.cs.
2008-04-23 10:20:38 +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
Jeff Ames 9fc6b783da Update svn properties. 2008-04-23 01:04:44 +00:00
Sean Dague cdcd092d9a doh, forgot that hg diffs don't do the adds correctly to svn 2008-04-22 20:43:38 +00:00
Sean Dague a66c43d450 From: Dr Scofield <hud@zurich.ibm.com>
some exceptional code ;-) i've added TerrainException and have modified
TerrainModule to now throw TerrainExceptions.

   cheers,
   dr scofield
2008-04-22 19:44:40 +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 c8eb8d66fd * Committing new terrain plugin effects system. Loads DLLs in /bin/Terrain/ as terrain module extensions. Committing sample plugin library.
* prebuild.xml changes.
2008-04-22 07:53:32 +00:00
Adam Frisby 385c1f5184 * Added missing reference to OpenSim.Framework.Communications to RemoteAdminPlugin to fix a compile error introduced by the Radmin patch. 2008-04-21 14:11:36 +00:00
Adam Frisby 0d27832d44 * Various compiler warning cleanups. 2008-04-21 13:16:00 +00:00
Sean Dague bf1580fba4 From: Dr Scofield <hud@zurich.ibm.com>
the attached patch set is centered around RemoteAdminPlugin and focuses
mainly on making it more robust (i.e. more parameter checking and better
error reporting) but also we've re-implemented the LoadTerrain stuff that
got disabled during the terrain code reworking:

   * missing PostInitialize() calls on region modules that were loaded
     for regions created via RemoteAdmin's CreateRegion XmlRpc call
   * re-implements RemoteAdmin's LoadTerrain XmlRpc call (probably lost
     during the TerrainModule rework)
   * adds lots more parameter checking and error reporting to RemoteAdmin
   * adds a read-only property to RegionApplicationBase so that we can
     access the CommsManager
   * adds Exceptions to TerrainModule so that we get better error case
     feedback (and can report more meaningful errors in turn)
   * adds a CheckForTerrainUpdate() call to
     TerrainModule.LoadFromFile() to make terrain changes effective
   * adds TryGetCurrentScene(LLUUID) to SceneManager so that we can
     retrieve Scenes not only by name but also by LLUUID


   cheers,
   dr scofield
2008-04-21 12:42:56 +00:00
Adam Frisby a0b8c46ef3 * Various refactorings. 2008-04-21 09:38:51 +00:00
Adam Frisby f741a62d54 * Formatted ExportSerialiserModule and SvnBackupModule
* Added a form of GZip compression support to object.xml files produced by exportserialiser. Will look towards standard GZip support. File compression seems to be highly worthwhile reducing a 1.5mb sim state to 62kb.
2008-04-21 09:12:47 +00:00
Jeff Ames a7cb2b8c30 Update svn properties. 2008-04-21 08:28:25 +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
Adam Frisby 05e24c8f58 * Terrain Module code has been reformatted to comply with guidelines.
* Fixed a variety of code quality issues. (Yes, I've found ReSharper.)
2008-04-21 06:39:16 +00:00
Adam Frisby 20a4a402f6 * Written a improved self-contained version of the XML Object Serialiser for the ExportSerialisationModule.
* This now outputs properly indented XML, that is sorted before construction. This produces a file which proper .diffs can be generated from - the end result being smaller more compact revisions when saving to SVN.
* Files are a little heavy still however, compression looks like a good method for packing sim-states for transport outside of SVN. Zip seems to be a good candidate and is on the TODO.
2008-04-21 04:36:32 +00:00
Adam Frisby 8cf42ddb84 * Added support for periodic autosaves - added to SvnBackupModule. Will cause a SVN revision to be saved every X minutes. (Default = 15)
* Added 'Autosave' options to OpenSim.ini.Example 
* Added 'ImportOnStartup' option to OpenSim.ini.example
2008-04-21 04:11:56 +00:00
Justin Clarke Casey 3d3eec436a * Remove user profile from cache when they log out from a region.
* A much more significant fix is required to clean up the cache when a user moves out of a region, but really better handling of delayed inventory cache updates needs to be 
written first, and possibly better affinity to cut down agent inventory requests when the move is between two regions hosted on the same server.
2008-04-20 20:36:06 +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
Adam Frisby 93efd6ff39 * Added some more fixes, refactored SVNModule slightly. 2008-04-20 05:44:54 +00:00
Adam Frisby b3e10debdd * Added support for new "svn load-region <region name> [svn revision]" command to SVN Backup Module. 2008-04-20 04:21:18 +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
Adam Frisby 7d18a93c2e * Added experimental "svn load <revision>" command to allow you to load a region from a specified SVN revision. Potentially useful for rollbacks. 2008-04-20 04:15:12 +00:00
Adam Frisby 1ca94ab5dd * Fixed three compiler warnings introduced in the previous commit. 2008-04-20 04:10:52 +00:00
Adam Frisby 462d03d926 * Various SvnBackupModule fixes. 2008-04-20 04:04:59 +00:00
Justin Clarke Casey 11f057f90b * Insert an OpenSim warning telling the user to ignore the ERROR assembly scanning messages. This is a temporary measure. 2008-04-19 22:03:34 +00:00
Charles Krinke 6865f1c67d Thank you kindly krtaylor for a patch to solve:
Linked objects won't scale together properly, only the root object scales. 
This happens with scaling both up and down or inputting numbers in the edit dialog.
2008-04-19 21:01:26 +00:00
Justin Clarke Casey b6f8777dde * Fix build break in previous revision 2008-04-19 20:44:24 +00:00
Adam Frisby 6f810a0613 * Several fixes for SvnBackupModule
* SVNBackup module now works correctly when you have more than one region.
* Various textual and feature improvements, including new 'ImportOnStartup' option for OpenSim.ini (place in [SVN] section)
2008-04-19 15:18:54 +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
Adam Frisby a2b32bdd6f * Fixed two compiler warnings dealing with IPAddress equality. 2008-04-18 09:35:24 +00:00
Teravus Ovares b280605237 * Added lock persistence
* Temporarily disabling click+drag+move for non physical things until more experimenting is done to figure out how to get a sideways hand cursor in the client.
2008-04-18 04:44:04 +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
Teravus Ovares dd4deebbcb * Re-Fixed caps
* This fixes chi11ken's/OpenViewer's libsl cap issue.
2008-04-17 19:42:54 +00:00
Teravus Ovares 4ee368785d * Acks the first UseCircuitCode packet
* Implements Teleport One Agent Home
2008-04-17 15:58:50 +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
Adam Frisby db9c919086 * Added "svn load" command to correspond "svn save". Will grab the latest revision.
* TODO: Specific revision support.
2008-04-17 14:26:19 +00:00
Adam Frisby 200b60bd48 * Added ITerrainModule interface to Terrain Module, and registered accordingly in Scene. 2008-04-17 14:22:48 +00:00
Adam Frisby a0fc29878e * Added a directory for the SVN module. More about to come.* SVNBackupModule
* See OpenSim.ini.example settings for how to use
* Only compatible with svn:// and http:// authentication for the moment (and only using simple authentication). SSL/SSH key support is supported by the library used (SvnDotNet), but is not yet supported in OpenSim.
* Use the command "svn save" to make a copy of your regions to SVN. Presently this is not an automatic process, but such a feature is on the todo list.
* It will in your repository create a subdirectory for each region with the regions UUID, inside there it will create a 'terrain load' compatible 'heightmap.r32', and a load-xml2 compatible 'objects.xml' plus information files.
* Untested on Linux, some compatibility work may be needed by Linux peoples. The dependencies will be the same as for SvnDotNet which is supposedly mono-compatible.
2008-04-17 13:20:06 +00:00
Jeff Ames fe3265f491 Update svn properties. Add copyright info to some source files. 2008-04-17 12:16:19 +00:00
Adam Frisby 664d4fc8a0 * Missed a file while committing. 2008-04-17 12:07:54 +00:00
Adam Frisby 05708771bb * Committing first version of SVN Backup Module
This is a module which allows you to periodically export a serialised version of your region to a SVN repository and store it there. It is still a work in progress and is currently disabled and incomplete, but some of the functionality is demonstratable.
* Enjoy.
2008-04-17 11:42:06 +00:00
Teravus Ovares 75df0c9000 * Patch from ChrisDown to fix odd results when using landmarks. Thanks Chris! (Tweaked slightly so avatar don't end up underground).
* Removed some testing notices I had in there that were obnoxious.
2008-04-17 05:23:43 +00:00
Teravus Ovares 244bfcde5b * Implements 'Set Home to Here'
* Implements 'Teleport Home'
* User Server has to be updated for it to save your home in grid mode
* home position accuracy is in int because the grid comms ExpectUser method tries to convert to Uint and crashes if it gets a float.  Added a convert to decimal in ExpectUser but to avoid a breaking change with old revisions, kept the save value in int for now.   Eventually it needs to be a float, but lets release another incremental version before doing that.
2008-04-17 05:07:14 +00:00
MW 770c395e86 moved the Thread.Sleep(500), to the correct side of the ar.AsyncWaitHandle.WaitOne(timeOut*1000, false); call. 2008-04-16 16:28:02 +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
MW 54eaadeb82 added a thread.Sleep(500) to OGS1GridServices.CheckRegion() , to try to help avoid a potential race condition. As IAsyncResult.AsyncWaitHandle.WaitOne before a AsyncCallback is called. So in this case, its a race to see who sets or reads the bool m_bAvailable first. 2008-04-16 15:49:28 +00:00
Teravus Ovares 7c1f17b994 * Applying melanie's Landmark patch. Thanks Melanie!
* To make a landmark, you currently have to enable admin options in the advanced menu first.  We're working on this..   however use the admin options solution in the mean time.
2008-04-16 14:10:54 +00:00
Sean Dague 1eb0fedd93 After reading Timer.cs in the mono source, I'm not
convinced that timer.Enabled modification is thread safe.
I suspect the statsHeartBeat call to be one of our hot spots
because is tries to synchronize not with a lock, but by
disabling and enabling itself.  I've replaced that with a lock
in the hopes that this affects either the 100% bug, or the
invoke_void bugs.
2008-04-16 10:54:32 +00:00
Charles Krinke bf7e7b2c57 Thank you very much, Kmeisthax for:
This patch makes the "Show in Search" checkbox on the viewer work. Additionally, I also discovered that show-in-search objects use the JointWheel flag, so this patch currently uses that flag. LibSL needs to add a flag to enum LLObject.ObjectFlags, "IncludeSearch = 32768" so we aren't using a legacy flag.

Additionally this patch also contains a small fix to BaseHTTPServer that lets the response content-type to be something other than text/html. For some reason this didn't get submitted with the DataSnapshot merge.
2008-04-16 03:55:21 +00:00
Teravus Ovares e777f88028 * A tweak of the caps system so that new caps have random paths instead of a fixed path
* This allows caps requests to be routed to regions where the agent is currently a root agent instead of the region that they logged into as it did previously.   
* This fixes a wide variety of bugs related to 'can't do X once i've crossed a border'.
* The first seed cap request fails, the second one works.  (this generates an error message on the console)
* Experimental.
2008-04-15 23:10:12 +00:00
Justin Clarke Casey 550ed7b9ec * Fix mantis 975 - prim text > 255 chars 2008-04-15 22:56:18 +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 6f8ff32630 From: Dr Scofield <hud@zurich.ibm.com>
ansgar and i have been working on an asterisk voice module that will allow
   us to couple opensim with an asterisk VoIP gateway.

   the patch below consists of
     * AsteriskVoiceModule region module: alternative to the plain-vanilla
       VoiceModule, will make XmlRpc calls out to an asterisk-opensim
       frontend
     * asterisk-opensim.py frontend, living in share/python/asterisk, takes
       XmlRpc calls from the AsteriskVoiceModule
          * account_update: to update/create a new SIP account (on
            ProvisionVoiceAccountRequest)
          * region_update: to update/create a new "region" conference call
            (on ParcelVoiceInfo)
     * a asterisk-opensim test client, living in share/python/asterisk, to
       exercise astersik-opensim.py
   this still does not give us voice in OpenSim, but it's another step on
   this path...
2008-04-15 14:24:15 +00:00
Sean Dague 62d02e079e From: dirk husemann <hud@zurich.ibm.com>
attached is a patch set that
     * adds further robustness checks for the CreateUser and CreateRegion
       XmlRpc
     * fixes SceneManager.TryGetScene(IPEndPoint, Scene) --- contrary to my
       expectation IPEndPoint.Address is not sufficient for a comparision,
       IPEndPoint.Address.Address (the long representation) does work
       however.
     * add [RemoteAdmin] section to OpenSim.ini.example
     * fixes XML doc comments
       good night,
       dirk
2008-04-15 14:18:37 +00:00
Jeff Ames 06d05bd339 Update svn properties. 2008-04-15 10:02:06 +00:00
Adam Frisby 0bec9f0551 * Added support for serialising objects to ExportSerialisationModule via SerialiseObjects.cs
* Cleaned up using tags on SerialiseTerrain.cs
* Minor tweaks to ExportSerialisationModule.cs
2008-04-15 09:55:47 +00:00
Teravus Ovares 682f4e9257 * Fixes an issue with the BaseHttpServer in Linux
* Fixes an estate naming issue
* Fixes a land issue with the landobject not reporting the proper parcel prim.
* A few other tweaks.
2008-04-15 06:21:44 +00:00
Adam Frisby 00dbca468a * Committing shell of a whole-region serialiser. This is not complete and will be worked on more over the next few days. Undocumented/trusted. Use at own risk, etc etc. 2008-04-15 04:26:39 +00:00
Adam Frisby 0b4a8191a1 * Quick patch before I start on a bigger project
* Renamed ITerrainTemp to IMapImageGenerator
* Renamed WriteJpegImage to WriteJpeg2000Image to better reflect it's function.
2008-04-15 03:07:31 +00:00
Justin Clarke Casey b7ae8701ce * Working towards notifying the client if the inventory service has failed, rather than simply returning 0 items.
* This is very early support which would only be triggered in a rather unlikely case (if the user server correctly received an inventory skeleton, but later on failed to return the whole inventory in a timely manner.  Also, this only applies to the 1.19.1.4 client onwards
* Code cleanup and support for other failure cases (failure of inventory caching on region crossing, failure to actually add a folder/item, etc, should follow.
2008-04-14 18:43:23 +00:00
Teravus Ovares e21886eea0 * Fixed a few warnings.
* Added license info to a few files it was missing from.
* Fleshed out the landbuy interfaces
* If you add '-helperuri http://127.0.0.1:9000/' to your list of parameters you tell the client to use when you start it up you can transfer ownership of parcels now in standalone.  Structured gridmode requires a lot more work, see the documentation in the example money module.   The example money module is not secure especially in standalone mode.
2008-04-14 17:13:38 +00:00
Sean Dague 1f5eb2ef65 make it so the IRC bridge only relays channel 0 messages
not all of them (like it was doing before)
2008-04-14 14:49:16 +00:00
Teravus Ovares 2b7419c7fb #952 again 2008-04-14 03:20:36 +00:00
Teravus Ovares 30f93b2201 Fix for mantis 952 2008-04-14 01:10:48 +00:00
Teravus Ovares be93c0f29a * Fix a bug in the friends module that causes a friend not to appear online when they were.
* A few things for testing.
* This makes a modification to the region registration with the grid server so that the region can send it a chosen password to identify itself.  It will not cause any errors, if either one are not updated.
2008-04-13 22:47:12 +00:00
Justin Clarke Casey 7dec345d9a * Temporarily, stop the exception of mantis #951 from killing the entire client session. 2008-04-13 22:25:23 +00:00
Adam Frisby 17507404b5 * Added some comments to terrain module.
* Fixed a range issue in the GenericSystemDrawing saving mechanism.
2008-04-13 01:36:03 +00:00
Justin Clarke Casey b3f783ae05 * Reduce publicly exposed fields on InventoryCollection, which was causing duplicate sets of inventory data to be sent over the grid
* Won't actually fix anything, since we were handling the problem anyway
* Also add more doc, fix up debugging messages, etc
2008-04-11 20:37:26 +00:00
Justin Clarke Casey 8f345d36d8 * Minor refactoring in OGS1InventoryService 2008-04-11 19:04:33 +00:00
Justin Clarke Casey 7ac7f79f88 * Eliminate a class of errors where an inventory request could be made before the region had completely received the inventory for the user.
* A much larger race condition where the inventory request could be made before the region gets any data at all will also be fixed in the near future.
* This change also fixes a regression from two patches ago where items stopped appearing in standalone inventory
2008-04-11 18:46:54 +00:00
Justin Clarke Casey 649f304e76 * Minor inventory code cleanup following on from last patch 2008-04-11 18:19:21 +00:00
Justin Clarke Casey a5176c2e2c * Change inventory async response deliver to deliver all items and folders at once, rather than each individual
* This is required in order to work towards eliminating some inventory race conditions and to better deal with situations where a grid inventory server is slow or not responding.
2008-04-11 18:13:10 +00:00
Teravus Ovares 9c5d0f50fa * fix bug 935 2008-04-11 17:51:36 +00:00