Commit Graph

6004 Commits (ce6fecbc93c81b0da5f101487e8c3ff4ec617e11)

Author SHA1 Message Date
Melanie Thielker 2bcf315ea2 Revert 7754 and 7755 pending a rework 2008-12-17 20:34:37 +00:00
Melanie Thielker 5320f0f33c Stop packets that may be resent from being returned to the packet pool.
FWIW
2008-12-17 20:21:48 +00:00
Justin Clarke Casey 2108d328df * revert r7724 so that PresenceChildStatus() starts throwing NRE's again
* apparantly logout code relies on this happening in certain circumstances.  Really, the root issue needs to be investigated.
2008-12-17 19:12:56 +00:00
Melanie Thielker 7ef5a79fef Change the PacketQueue to use the stored size as well 2008-12-17 19:01:47 +00:00
Melanie Thielker 0d3a9b45ae Marry AckData to LLQueItem, and store packet data and length there for
use everywhere. Each packet gets serialized only once now in PacketHandler
2008-12-17 18:56:47 +00:00
Justin Clarke Casey ff7c8551ba * remove mono compiler warnings
* should work - the last compile failure looks like a random glitch...
2008-12-17 18:42:23 +00:00
Justin Clarke Casey b37c8d6cbd * minor: Comment out high volume 'Getting MapItems' messages
* make worldmap module log tags consistent
2008-12-17 18:20:33 +00:00
diva 7b6471f642 Kicking child agents off on the first login after a client crash. The child agents kickoff was
missing from when this is run in grid mode. But, worse, turns out that this whole feature of kicking
off the user after a crash was entirely missing from standalone mode.
2008-12-17 17:44:00 +00:00
Justin Clarke Casey ab77b22f0f * Only serialize packets once for the length calculation for throttle queues rather than twice 2008-12-17 17:33:57 +00:00
Melanie Thielker 35ec496f98 Revamp packet handler to smooth out the stream of resent packets.
Eliminates the bursting in resends observed in the prior implementation
2008-12-17 17:19:14 +00:00
Justin Clarke Casey 72ff5322f5 * Replace manually zeroing with Array.Clear(). Thanks cmickeyb 2008-12-17 17:18:52 +00:00
Melanie Thielker 8e5fe0257c Mantis #2850
Applying the patch to reduce the load caused by the throttle loop even more
2008-12-17 17:05:12 +00:00
Justin Clarke Casey 2e79fd0f0c * minor: Minor documentation and small minor change on LLPacketThrottle to remove some unnecessary lines 2008-12-17 17:01:02 +00:00
Justin Clarke Casey ac451485d6 * minor: Remove unused AppearanceTableMapper as pointed out by jonc in http://opensimulator.org/mantis/view.php?id=2843 2008-12-17 16:47:38 +00:00
Justin Clarke Casey 890d8d4215 * Simply friends code by only sending notifications to a newly logged on user for other users who are online.
* No need to send offline notifications since the client assumes this (and future clients should be able to do the same).
2008-12-17 16:34:11 +00:00
Justin Clarke Casey b4680f653d * Implement 'Save Object Back to My Inventory'. On the Linden client this is in the Tools menu available when editing an object
* This facility allows you to save changes to an object that you've rezzed into a region back into their original inventory item without having to take a copy of the rezzed 
object.
2008-12-17 16:11:03 +00:00
Teravus Ovares ca0de93d9a * Adding some locks to XEngine's m_PrimObjects which were prone to 'the collection was modified' 2008-12-17 15:30:26 +00:00
MW 027ae58dc4 Stop users taking a copy of a in world prim that contains inventory items that have no copy permission set. 2008-12-17 13:32:01 +00:00
MW 6c8f9078ef Added a check to CanDuplicateObject(), to stop duplicating prims that contains inventory items that you don't have permission to copy 2008-12-17 12:53:47 +00:00
Melanie Thielker 1c30111c7a Stop owners from duplicating no-copy objects in-world 2008-12-17 12:12:23 +00:00
Melanie Thielker a5343c5404 Add repecting the min and max values back in 2008-12-17 09:55:10 +00:00
Melanie Thielker e394e1c06f Remove a major bottleneck in throttling code. 2008-12-17 09:52:52 +00:00
Melanie Thielker 02a28a6992 Avoid checking the throttle limit for empty queues 2008-12-17 09:30:56 +00:00
diva 4b81ec02d7 Avoid sending DisableSimulator event to the root agent upon logout. 2008-12-16 19:44:32 +00:00
Melanie Thielker 36ee0e8fb9 Fix script controls for weapons 2008-12-16 04:12:40 +00:00
diva 223b6f63af Attempt at fixing the HG home jump by looking up hyperlink regions before grid-local regions. 2008-12-15 22:17:40 +00:00
MW 1110ee877f More work on moving Xfer file transfer handling code to the Client stack from the various region modules that it is currently in.
Still not enabled yet.
2008-12-15 21:46:57 +00:00
diva 8fffdac7fa Attempt at restoring inventory access after TPs/crossings. RemoveClient in Scene was being too
aggressive at nixing the user out of the cache. We're now relying on NeedSceneCacheClear to decide
whether to nix it or not. All other mods in other files are for better debugging messages.
2008-12-15 20:45:40 +00:00
Justin Clarke Casey 41ad030a5a * minor: method documentation and miscellaneous tidy 2008-12-15 20:32:49 +00:00
Justin Clarke Casey 3b0db66b92 * Apply http://opensimulator.org/mantis/view.php?id=2775 with small tweaks
* This pushes an identifier for the OpenSim scene to the physics scene.  This allows log messages from the physics scene to identify which OpenSim scene they relate to.
* Thanks Gerhard
2008-12-15 18:39:54 +00:00
Justin Clarke Casey 2e288fade1 * minor: Stop presence child status suffering an NRE if the agent uuid given is not represent at all 2008-12-15 18:11:47 +00:00
diva 4b71b88114 Bug fix in new child agents management. Thanks DigiDaz for helping identify this issue.
We need to update all child agents whenever the root agent crosses regions. The update
now includes child agents in common neighbours. This is so that those get updated with the
seeds of the new child agents that are spawned from the receiving region.
This also fixes some timing issues. We need to close child agents from the originating region
before we update child agents in the receiving region.
2008-12-15 16:23:34 +00:00
MW a933ca842b Removed some instances of "<3 OpenSim Developers" (why were they there?) being in alert messages from the LandManagementModile. 2008-12-15 12:47:16 +00:00
diva d6d4c267e0 Bug fix for Hypergrid. This bug was introduced by the recent TP fixes, and affected the jump back home. 2008-12-15 00:06:52 +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
Homer Horwitz ef2c0d115a Color was set twice, first correctly, then incorrectly, in SQLiteRegionData.
Removed the second set. Fixes Mantis#2380.
2008-12-14 18:17:35 +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
Teravus Ovares b5dec9a37f * Added Avatar minimum size in the ODEPlugin and a stern warning about setting the capsule size too low in OpenSim.ini 2008-12-14 07:29:40 +00:00
Teravus Ovares 6f7a560c04 * A Few physical prim + linkset fixes. Prevent some crashes 2008-12-14 06:34:05 +00:00
Melanie Thielker b32f72a438 Adds the "Send Teleport" module 2008-12-14 05:56:33 +00:00
Melanie Thielker 008e1fe8df Plumb the TP-Sending packets 2008-12-14 05:49:07 +00:00
Charles Krinke e6eb571c1d Mantis#2725. Thank you kindly, Diva, for a patch that:
Adds missing protocol pieces for EstablishAgentCommunication
event which allows the client to activate CAPS and the EQ for 
child agents.
2008-12-14 02:17:12 +00:00
Charles Krinke 6cf0b81864 Mantis#2811. Thank you kindly, Diva for a patch that resolves
some of our DNS/dotted decimal issues that plague teleporting.
We are increasing the MajorInterfaceVersion from 1 to 2 in the
gridserver, so sims will need to be updated on various grids.
2008-12-13 16:25:20 +00:00
MW 40bbf886f2 more work on moving FileTransfer code to the clientstack.
Still not enabled.
2008-12-13 15:04:24 +00:00
Jeff Ames 8929bfc369 Add copyright headers. 2008-12-13 12:30:46 +00:00
Jeff Ames 4f9d5d955b Update svn properties. 2008-12-13 12:22:52 +00:00
MW e0765fa6c8 more work on moving FileTransfer code to the clientstack.
Although its still not enabled.
2008-12-12 22:20:13 +00:00
Justin Clarke Casey 3aaf303a75 * minor: Downgrade friends module 'client logging out' notice from error to debug 2008-12-12 21:24:39 +00:00
Justin Clarke Casey 80f285a2aa * minor: Be a little more informative when a region fails to connect because it fails to implement the required OGS interface version 2008-12-12 21:21:35 +00:00
MW 6e07ef9cb9 Add OpenSim.Framework.IClientFileTransfer. 2008-12-12 21:17:49 +00:00
Justin Clarke Casey 96ea54409f * minor: remove mono compiler warning 2008-12-12 21:14:27 +00:00
MW e9d905f48c Started to move xfer file transfer code to the LLClientStack, rather than having it in a region module (like it was).
Note:None of this is enabled yet.
2008-12-12 21:08:23 +00:00
Justin Clarke Casey 71960f17bc * Extend update test to test situation where it also moves the folder
* Correct logic so that update folder behaves as expected
2008-12-12 21:06:07 +00:00
Justin Clarke Casey b1f018aa26 * Create update folder test
* Correct small logic elidation
2008-12-12 20:43:42 +00:00
Justin Clarke Casey 42ec7f4935 * minor: make AddRequest() protected since in principle it shouldn't be used outside the class and its descendents 2008-12-12 20:10:39 +00:00
Justin Clarke Casey 1531035b14 * Actually properly enable the purge folders test and correct some problems 2008-12-12 20:04:58 +00:00
Homer Horwitz 185ad8edcb Add missing scene reference. Fixes a NRE. SimpleModule now works again (sort of). 2008-12-12 20:01:04 +00:00
Homer Horwitz 66791c90e4 Replace the throwing of a NonImplementedException in MyNpcCharacter, so that
the SimpleModule doesn't prevent the start of the region server, if used.
Note: This module doesn't do anything sensible; it only serves as an example.
2008-12-12 19:39:48 +00:00
Justin Clarke Casey 9f6e567cb1 * add purge folder test 2008-12-12 19:37:51 +00:00
Justin Clarke Casey 7bbab12158 * Add user info move inventory folder test 2008-12-12 19:24:45 +00:00
Justin Clarke Casey f8ce498755 * extend user profile create folder test to check that one can't create a folder with a non-existant parent folder id 2008-12-12 19:04:10 +00:00
Justin Clarke Casey b60d980f7c * Add file missing from last commit 2008-12-12 18:59:06 +00:00
Justin Clarke Casey a7e145bdfd * refactor: pull out common user profile test code into utility functions 2008-12-12 18:48:29 +00:00
Sean Dague 7a4f11b94d * Deleted old EntiyList tests, added new EntityManager tests
* Edited EntityManager to treat Exceptions

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-12-12 18:33:16 +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
Sean Dague 624423deb1 apparently opensim only works if secure_inventory_server = true, who
knew?  Reverting that.
2008-12-12 00:57:48 +00:00
Homer Horwitz 7672bdb0a3 Add hostnames in addition to IP address to some more places. This continues r7676.
NOTE: Changes UGAIM.
2008-12-11 21:49:11 +00:00
Justin Clarke Casey 80e267dcfe * refactor: Stop exposing InventoryFolderImpl.SubFolders publicly 2008-12-11 20:58:11 +00:00
Sean Dague 616cf74e73 make a couple of other config default to make the example ini to give us
a better chance of working out of the box
2008-12-11 20:43:21 +00:00
Justin Clarke Casey f23856a575 * Add get child folder test 2008-12-11 20:36:46 +00:00
Sean Dague a02efe6dcc after much discussion, and overwhelming +1 on the -dev list, switch the
default script engine to XEngine.  This won't change anything if you
already specified the default in your OpenSim.ini.
2008-12-11 20:32:57 +00:00
idb 31bccdffd9 Add a null check. Mantis #2798 2008-12-11 20:20:21 +00:00
Homer Horwitz 51427bae9f Correct the last checkin. 2008-12-11 19:57:45 +00:00
Justin Clarke Casey 30213e141b * Add create folder userinfo test 2008-12-11 19:57:12 +00:00
Homer Horwitz d943abea57 Move from IP to hostname for seed caps on login, for gridmode and standalone.
All the other caps (except the initial one) are already sent with hostname
instead of IP.
NOTE: This changes gridserver and userserver
2008-12-11 19:52:29 +00:00
Justin Clarke Casey c9aabe2b90 * Pop in a missing using statement without which UserProfileCacheServiceTests.cs fails on Windows (but not mono) 2008-12-11 19:11:19 +00:00
Justin Clarke Casey 04a07daa5b minor: Add request inventory test 2008-12-11 18:56:04 +00:00
Justin Clarke Casey 0e870400ca * Delete currently unrun TestInventory.cs superseded by BasicInventoryTests 2008-12-11 18:30:57 +00:00
Justin Clarke Casey bec3993849 * Fold mock classes into existing OpenSim/Tests/Common assembly rather than sprouting another one 2008-12-11 18:07:23 +00:00
Justin Clarke Casey 230eb06d34 * Extend test to probe for user details that should exist 2008-12-11 17:30:57 +00:00
Justin Clarke Casey c4b45449ee * test: Add simple user profile test that checks for non-existing users 2008-12-11 17:23:55 +00:00
Justin Clarke Casey e02aaaf9db * minor: Move mock test classes into mock namespace 2008-12-11 16:40:22 +00:00
MW fa28d1ab7d Reimplemented running of ShutdownCommandFile. Mantis #2800 2008-12-11 14:31:58 +00:00
Jeff Ames a8fff196f5 Update svn properties, minor formatting cleanup. 2008-12-11 02:35:51 +00:00
Melanie Thielker 2101680094 Make object return actually use the CanReturnObject permission, rather than
the CanDelete one.
2008-12-11 01:03:53 +00:00
Teravus Ovares 7f80eff067 * Committing a slightly distilled version of nlin's ODECharacter race condition eliminator.
* The modifications that I made were only so that it didn't require changes to the public physics api.
2008-12-10 23:46:20 +00:00
Justin Clarke Casey c9ae8fce5e * refactor: Move test infrastructure code to its own package so that it can be reused by more than Environment tests
* This shuffles the test packages in prebuild.xml below it so they can all potentially reference it
2008-12-10 20:57:15 +00:00
Justin Clarke Casey f38c35b609 * refactor: Move inventory handlers out from UserProfileCacheService
* This means that UserProfileCacheService no longer needs to know about IClientAPI and can leave it to callers to do their own error logging
* This is also more consistent with the way that item inventory manipulation is handled
* I don't really think Scene.PacketHandlers.cs should be a permanent home for these handlers - this is just for convenience
2008-12-10 19:12:59 +00:00
Justin Clarke Casey 93977c2d47 * Establish OpenSim.Framework.Communications.Tests beachhead
* No valid tests yet
2008-12-10 17:43:45 +00:00
Justin Clarke Casey 9e02a639e5 * Apply the other patch from http://opensimulator.org/mantis/view.php?id=2315
* This means that LL RAW terrains (one source being the upload/download buttons on the estate dialog in the viewer) are now imported the 'right' way around rather than being 
flipped on the y axis
* Existing RAW terrains before this patch will need to be flipped with the "terrain flip y" command from the console after import
* More details on the mailing lists soon.
-This line, and those below, will be ignored--

M    OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs
M    OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
M    OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
2008-12-10 16:50:11 +00:00
Melanie Thielker e8a43b136b Applying diva's revert patch. Reverts closing child agents and makes
TP more reliable again.
2008-12-10 01:37:31 +00:00
Justin Clarke Casey dae84498ed * Enable agent to agent transfer of inventory folders
* It should now be possible to give an entire folder to another avatar instead of just single items at a time
2008-12-09 20:07:15 +00:00
Justin Clarke Casey 762712c02e * Actually update subfolders of parent folders in the inventory cache when a folder gets moved
* This was causing inventory folder transfer code to not work properly (this is still temporarily disabled)
2008-12-09 18:35:09 +00:00
Justin Clarke Casey 7c3bfdd8c9 * Apply terrain flip patch from http://opensimulator.org/mantis/view.php?id=2315
* This allows terrain to be flipped on the x or y axis with the command "terrain flip x" (or y)
* See terrain help from the command prompt
* This is in anticipation of change the way around in which terrain raw files are imported to match that of Second Life (to reduce user confusion and improve useability)
* Thanks jonc!
2008-12-09 17:00:42 +00:00
Teravus Ovares cb73cf1a92 * Fixes a few instances of llSetStatus with Axis lock gone wrong.
* Sums up the masses of the objects within a physical linkset
2008-12-09 16:27:07 +00:00
Justin Clarke Casey 557567dcf8 * minor: remove some old logging messages 2008-12-09 16:16:16 +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
Jeff Ames 3ba0bc8f44 Minor formatting cleanup. 2008-12-09 12:15:02 +00:00