Commit Graph

9740 Commits (d1f772cffd85fddfad2cb4447a53f4a96b438b24)

Author SHA1 Message Date
Justin Clarke Casey 5a6bc26600 * Address http://opensimulator.org/mantis/view.php?id=3207
* A saved archive now immediately expires the data in the asset cache that it used, rather than retaining all the assets (esp textures) in the cache.
* This is an imperfect solution.  Ideally we would only expire the assets newly requested for the archive (not existing ones).  But doing that would require a lot more 
restructuring.
* I don't believe there are any locking issues due to the locking performed by the underlying memory cache, but please report any issues.
2009-03-09 17:55:08 +00:00
Sean Dague a2ff2e9000 * Added TXXX in front of unit tests to make sure they are running in the correct order. Although it might not make a difference here, this pattern should be followed to avoid further issues.
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-03-09 15:20:36 +00:00
Mike Mazur 5bee29e036 Refactor login test class.
There were multiple tests in one test method (T011_Auth_Login). This
test has been refactored into multiple tests. Common setup code was
placed into a SetUp method executed before each test.
2009-03-09 08:07:12 +00:00
Mike Mazur 66120f5a40 Fix tests broken in r8732.
Recent changes in the code handling login_to_simulator XMLRPC method
calls caused two tests to fail because not enough parameters were being
supplied with the method call. The parameters added in this patch work,
but I'm not sure whether they are actually correct or even relevant.
Diva, please look over this.
2009-03-09 07:29:53 +00:00
Mike Mazur a2f07ecd2e Implemented FetchAssetMetadataSet in DB backends.
This method fetches metadata for a subset of the entries in the assets
database. This functionality is used in the ForEach calls in the asset
storage providers in AssetInventoryServer. With this implemented,
frontends such as the BrowseFrontend should now work.

- MySQL: implemented, sanity tested
- SQLite: implemented, sanity tested
- MSSQL: implemented, not tested
- NHibernate: not implemented
2009-03-09 07:29:34 +00:00
Teravus Ovares f9ebdee1d2 * Tweak llMoveToTarget per mantis 3265
* Add some comments to the Wind Module
* Add the BinBVH decoder/encoder as a scene object (to encode/decode animations programmatically).
* Add m_sitState for upcoming code to improve sit results.
2009-03-09 04:33:53 +00:00
diva 6f4051c932 Making the web_login_key code work, even if the LL Viewer doesn't support it. Other clients can launch the LL Viewer with something like this, for example:
Process.Start("C:\\Program Files\\SecondLife\\SecondLife.exe", 
"-loginuri " + loginuri + "?web_login_key=" + web_login_key + " -login " + firstName + " " + lastName + " -multiple");
This requires a prior step for actually getting the key, which can be done like this:
http://localhost:9000/?method=login&firstname=barak&lastname=obama&password=123&show_login_form=FALSE
2009-03-08 23:17:49 +00:00
lbsa71 4f23718102 Thank you tlaukkan for a patch that: Upgraded to MXP 0.4 version and cleaned up field naming.
* Updated code to compile against MXP 0.4 version.
* Cleaned up field naming conventions.
* Added support for logging in with region name.
* Filled in new fields of JoinResponseMEssage.
* Added support for SynchronizationBeginEvent and SynchronizationEndEvent.
* Commented out periodic debug log.
* Added networking startup log messages.

This closes mantis #3277
2009-03-08 19:33:19 +00:00
Adam Johnson 2fa57a2970 Moving Windows Installer to forge. 2009-03-07 16:27:07 +00:00
Jeff Ames 385d3a467c Minor formatting cleanup. 2009-03-07 16:16:00 +00:00
idb 93a697b24d Correct a typo, purely cosmetic.
FixesMantis #3263
2009-03-07 14:39:42 +00:00
idb aab1601642 Limit the message length from llInstantMessage to 1024 characters http://wiki.secondlife.com/wiki/LlInstantMessage
Also truncate messages that may exceed the limit set by the packet size. The limit in OpenMetaverse is 1100 bytes including a zero byte terminator.
Fixes Mantis #3244
2009-03-07 14:16:26 +00:00
idb 23b247c519 Added the ability to set User-Agent in llHTTPRequest. No new default value has been set since having no User-Agent seems to work well but the facility is now available to set this if required. Using something based on the pattern of SLs User-Agent may well cause problems, not all web servers respond well to it. See the notes in the SL Wiki http://wiki.secondlife.com/wiki/LlHTTPRequest
Fixes Mantis #3143
2009-03-07 12:58:00 +00:00
idb 1fd57b39df Correct casts so that the target id in the at_target event matches the original target id.
Fixes Mantis #2861
2009-03-07 10:37:15 +00:00
Teravus Ovares 5a49c772ca * Making the minimum ground offset for flying a configurable offset in the OpenSim.ini. This is the code that causes you to rise off the ground when you press the fly button and attempts to keep you above ground automatically when flying in a simulator.
* minimum_ground_flight_offset, by default is 3 meters, as per Kitto Flora  See OpenSim.ini.example for an example.
2009-03-07 07:17:43 +00:00
Teravus Ovares 6c7151109b * fixes mantis 3259
* I'm concerned however that the 'minimum fly height' should really be implemented in ScenePresence and not in the specific physics plugin so that all of the physics plugins can take advantage of it and if desired, a person could swap out the 'minimum fly height' functionality with other functionality.
2009-03-07 06:51:27 +00:00
Teravus Ovares 5b8c925641 * Adding application/x-oar to the list of content types to which the HTTP Server will return the response as if it was a binary file pending discussion on the [opensim-dev] mailing list to be initiated by dmiles. 2009-03-07 06:14:31 +00:00
Jeff Ames 03076b0d33 Update svn properties, minor formatting cleanup. 2009-03-07 02:39:27 +00:00
Jeff Ames 3fe42386e4 Add copyright headers. 2009-03-07 02:11:50 +00:00
Jeff Ames e1f68145be Update svn properties. 2009-03-07 02:00:18 +00:00
Teravus Ovares ebe84907ae * Fixes mantis: #3241
* Uses 'mouselook' or left mouse button down, to determine when to use the camera's UP axis to determine the direction of movement.
* We crouch-slide no more.
2009-03-07 01:18:59 +00:00
Teravus Ovares 3a93bb992f * Added some limits to the maximum force applied per second by llMoveToTarget. Currently, it's 350 times the mass in newtons applied per second, maximum. 2009-03-07 00:27:56 +00:00
Charles Krinke b637a11b58 Fixes Mantis #3260. Thank you kindly, MCortez for a patch that:
llSetHoverHeight() should not clamp the x/y position of an object the way MoveTo does, 
and it should recalculate the absolute height to hover at as an object moves to reflect 
the current ground/water height under it.
Correctly implementing required adjusting the Physics interfaces and implementing at 
the physics plug-in level. The attached is a patch that correctly implements 
llSetHoverHeight() including updates to the ODE physics plug-in.
2009-03-06 23:01:35 +00:00
Sean Dague 05ebd44791 add back .config files for all tests in an attempt to debug why these
things crash so much.

This will generate a lot more log messages on make test, even some scary
looking exceptions.  Don't worry, that's normal.
2009-03-06 21:14:50 +00:00
Justin Clarke Casey fc2c73d5c6 * minor: remove some mono compiler warnings 2009-03-06 21:00:15 +00:00
Justin Clarke Casey f12619b786 * refactor: Remove GetLandOwner function from Scene
* Simplify since the land is never null
2009-03-06 20:44:31 +00:00
Justin Clarke Casey 85774de231 * Improve memory usage when writing OARs
* This should make saving large OARs a somewhat better experience
* However, the problem where saving an archive pulls large numbers of assets into the asset cache isn't yet resolved
* This patch also removes lots of archive writing spam that crept in
2009-03-06 20:12:08 +00:00
Sean Dague 08509d5cf2 * Protects RestClient from crashing with dictionary exception, which leads to the client thread crashing if uncaught. 2009-03-06 19:25:33 +00:00
MW 498dda1901 Added a output message to CreateCommsManagerPlugin for when a user tries to run with both -hypergrid=true and -background=true command line arguments. As these two don't work together as they initialise different root OpenSim classes. I was going to change it back to the old behaviour where in that usecase it would just startup in the background but without hyerpgrid enabled. But think its better to give a error about this and then exit, so the user knows to change their settings. Rather than later wondering why hypergrid isn't working. 2009-03-06 09:57:31 +00:00
Mike Mazur 16b6a00005 Add missing parameter to m_log.DebugFormat(). 2009-03-06 00:54:39 +00:00
Teravus Ovares ac84d3d26b * Fixing a few mass calculation errors suggested by jhurliman 2009-03-05 21:59:27 +00:00
Justin Clarke Casey ff7b20bef1 * Add more status information when an oar is being saved
* Among other messages, a log entry is posted for every 50 assets added to the archive
2009-03-05 21:36:48 +00:00
Melanie Thielker 3ad2fef2d3 Prevent ICommander-generated subcommand trees from generating an exception
when the tree root command is executes without another verb following it.
Fixes Mantis #3258
2009-03-05 21:20:57 +00:00
Justin Clarke Casey 11e1948b57 * Replace Scene.GetLandHeight() with a straight query to Scene.Heightmap (which is used in other contexts) 2009-03-05 21:10:39 +00:00
Justin Clarke Casey 3d70dbd01d * refactor: move media and music url setting from scene into LandObject 2009-03-05 20:53:23 +00:00
Justin Clarke Casey c213a12b57 * simplify media and music url setting since we never get back a null land object 2009-03-05 20:32:35 +00:00
Justin Clarke Casey 6c735e0828 * Replace some string to byte conversions for object/item name/description fields with the LLUtil function that prevents the max string size from being breached 2009-03-05 19:32:27 +00:00
Justin Clarke Casey 0de34e9a18 * remove now unused serialization code 2009-03-05 18:36:37 +00:00
Mike Mazur 7768f3aa8b Make DeserializeUUID explicitly private. 2009-03-05 12:57:27 +00:00
MW 732a4fd5fb Made the OpenSimInventoryFrontendPlugin.DeserializeUUID(Stream stream) method static to get past the build errors. Mikem really needs to check this change over to see its the right approach for what he wanted. 2009-03-05 11:23:31 +00:00
Mike Mazur 1894d69c8a Fix moving folders.
Casting from base class to inherited class is a no-no, and we must
preserve the folder type when moving folders, otherwise it gets set to a
Texture folder (type 0).
2009-03-05 08:30:23 +00:00
Mike Mazur 6994d9239d Fix creating inventory items and folders.
The order of deserialization needed to be changed. Also corrected a bug
that caused no inventory items to be returned on login.
2009-03-05 08:30:15 +00:00
Mike Mazur 56158443b3 Implemented all Inventory frontend handlers.
This doesn't mean they all work as expected, though. More changes to
come as testing unveils bugs.
2009-03-05 08:30:08 +00:00
Mike Mazur 293e70a666 Implementing more inventory storage methods. 2009-03-05 08:30:00 +00:00
Mike Mazur 3676062277 Use Inventory{Item,Folder}Base in AssetInventoryServer.
Also the first inventory storage methods are implemented.
2009-03-05 08:29:52 +00:00
Mike Mazur d38bddfb76 A couple cosmetic changes in inventory storage plugin. 2009-03-05 08:29:42 +00:00
Charles Krinke 62eaddbe14 Fixes Mantis #3255. Thank you kindly, MCortez, for a patch that:
Changes to IWindModule interface: Change from assuming a single array of 
256 Vector2 values to a lookup function that takes region x, y, z and returns a Vector3
* Changed llWind() to use new lookup method of IWindModule
* Moved logic for determining the wind at a given point in the data array from 
llWind() to the Wind Module itself.
2009-03-05 04:24:22 +00:00
Charles Krinke 365b5951ff Fixes Mantis #3194. Thank you kindly, Godfrey for a patch that:
fixes llSetLinkPrimitiveParams() - PRIM_ROTATION rotates the prim 
containing the script, rather than the specified child prim
2009-03-05 03:20:28 +00:00
Charles Krinke f7b914228b Fixes Mantis #3253. Thank you kindly, Godfrey, for a patch that:
Corrects the incomplete implementation of llXorBase64StringsCorrect()
so that it returns the proper reversible result.
2009-03-05 03:15:30 +00:00
Adam Frisby 65990de390 MRM Scripting Changes
* Renames MiniRegionModule to MRMModule to make it more distinct from the actual Mini Region Module[s] executed in Scene.
* Renames MiniRegionModuleBase to MRMBase for convenience. MRM's need to be adjusted to inherit from MRMBase.
2009-03-05 00:52:59 +00:00