Commit Graph

272 Commits

Author SHA1 Message Date
Jim Radford
e2aac1a6d7 LIBOMV-465 Adds overload to OpbjectManager AddPrim method to allow user specified flags during creation. Thanks Douglas R Miles for the patch
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2562 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-31 19:23:27 +00:00
Jim Radford
4ab698a85f LIBOMV-470 OpenMetaverse/Helpers.cs: FloatToTerseString() screws up trying to trim trailing zeroes, Patch courtesy of Arthur Rodrigo S Valadares <arthursv@br.ibm.com> Thanks!
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2561 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-31 19:05:44 +00:00
Jim Radford
1b38edbdc3 LIBOMV-469 GroupManager throws Exception if RequestCurrentGroups is called immediately after login
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2560 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-31 19:00:14 +00:00
John Hurliman
3818fb2428 * Fixed a bug where the new server-side PrimFlags values were overlapping with existing values
* Added more documentation to TokenBucket

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2558 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-31 18:28:02 +00:00
Jim Radford
dd915f9080 Remove cruft debug messages in AvatarManager to get rid of the spam when making avatar name lookup requests
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2556 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-31 17:12:04 +00:00
d5704737fd Fixes a bug where a collection was being modified during enumeration in recent commit for LIBOMV-450 (CoarseLocationUpdates)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2555 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-31 16:32:45 +00:00
3541f2bab5 Fixed some documentation and code artifacts left from previous commit
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2550 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-27 19:35:35 +00:00
154d2ef319 [Simulator.cs]
* Changed simulator.AvatarPositions from Dictionary to InternalDictionary
* Resolves LIBOMV-450 by removing simulator.PositionIndexYou and .PositionIndexPrey in favor of Client.Self.AgentID and simulator.PreyID for indexing AvatarPositions
[InternalDictionary.cs]
* Added lock to .TryGetValue
* Added .FindAll overload for using a key as the predicate instead of value
[OpenMetaverse.GUI]
* Visual and functional enhancements to Minimap and AvatarList (takes advantage of new AvatarPositions code)
* Added failed login retry dialog to Dashboard
* Added more documentation to public classes

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2549 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-27 18:29:32 +00:00
Jim Radford
8b2f3b6df8 * Fixed verbosity error in notation unit tests
* Disabled Network Tests in Automated builds
* Fixed minor compile time warning due to XML comment mismatch

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2547 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-27 17:33:54 +00:00
Jim Radford
2180899da3 LIBOMV-180 Adds support for uploading terrain raw files, includes new TestClient uploadterrain command.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2545 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-26 22:56:44 +00:00
John Hurliman
42cc1ee3b7 * Fixed a bug converting an empty OSD element to a Uri
* Lock the old CircularQueue in the CircularQueue copy constructor

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2543 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-26 05:13:07 +00:00
John Hurliman
21de923e42 * Added CircularHashedQueue to OpenMetaverseTypes. Provides a circular queue with a hash-based Contains function, useful for ACK accounting (not implemented in libomv yet)
* Added TokenBucket to OpenMetaverseTypes. Provides a hierarchical token bucket for bandwidth throttling (not implemented in libomv yet)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2542 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-26 04:29:17 +00:00
John Hurliman
987f504e86 * Made Primitive.GetHashCode() much more thorough. Could reasonably be used as a prim CRC now
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2540 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-26 02:18:43 +00:00
Jim Radford
a9e38221f3 LIBOMV-180 Adds packet handler for InitiateDownload packet which the simulator sends in response to a request for a raw terrain download via the EstateMessage packet
Adds new downloadterrain TestClient Command

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2539 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-25 21:39:24 +00:00
John Hurliman
5cbdc8fdd0 Adding Packet.Length to get the length of a packet without serializing to bytes
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2537 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-25 20:19:25 +00:00
Jim Radford
d98e36491f Fixes several comment warnings
Re-enables <nowarn> element when compiling with nant (re-added code to prebuild to support this)
Update prebuild binary to fixed version

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2528 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-21 17:28:17 +00:00
John Hurliman
26e0e50615 * Fixed two failing OSD tests. OSDReal.AsString() now uses a slower but more accurate method to produce values that will always round-trip. A random "B" character was removed from the XmlSD DeserializeLLSDSample() test
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2508 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-19 18:15:49 +00:00
John Hurliman
46450da1ee * Reverts an accidental change to Utils.IntToBytes()
* Adds Utils.IntToBytesBig and Utils.DoubleToBytesBig()
* OSD.AsBinary() functions use big-endian functions where necessary

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2507 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-19 17:57:12 +00:00
Jim Radford
fb6376d2b6 LIBOMV-460 LIBOMV-423 BinaryLLSD Unit Tests Failing, this appears to be caused by an Endian issue
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2506 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-19 17:19:23 +00:00
Jim Radford
b418d85e00 Adds XML documentation to the Asset* Classes
Removes ObjectType Enum which was renamed to InventoryItemType and is now contained in InventoryManager

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2505 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-19 01:25:28 +00:00
John Hurliman
cad2f351ca Updated documentation for InventoryItemFlags and removed references to (the now redundant) ObjectType enum. jradford will delete ObjectType soon
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2504 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-19 00:52:03 +00:00
John Hurliman
c20afbbf80 * Added InventoryItemFlags, which is actually only the upper half of the Flags field for inventory items. Stores slam bits, permission override flags, and other things we don't use at all right now
[Simian]
* Initial task inventory support. Move, remove, and RezScript are not supported yet
* SimulationObject Frozen and RotationAxis properties now point to the root prim in the linkset

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2503 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-19 00:25:03 +00:00
Jim Radford
190c1dab10 LIBOMV-393 Adds 2 new utility methods to ObjectManager to set the Shape and Material of an object. SetShape() and SetMaterial() are the new methods.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2501 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-18 19:31:39 +00:00
Jim Radford
f0e89cc184 Removed extraneous \ in new Animation decoder class
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2500 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-18 19:10:56 +00:00
Jim Radford
d8c57d73f1 LIBOMV-411 Added .BVH Decoder class for decoding Animations - Thanks Teravus for the patch!
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2498 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-18 18:58:33 +00:00
Jim Radford
63517c20c2 LIVOMV-451 Prevent DiscardLevel from being set to below 0 which can cause transfers to be very slow on busy simulators Thanks Snowdrop Short for the patch
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2495 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-18 18:11:31 +00:00
John Hurliman
fc1d9dedd1 [LIBOMV-459] Patch from Peter Tavinor to properly set material and media attributes for texture faces
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2492 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-18 00:58:07 +00:00
John Hurliman
d4e07b8c4d * Few more tweaks to event queue server to improve performance and thread safety
[Simian]
* Made default assets for map water overlay and HyperGrid portals
* Fixed asset store loading regression
* Start synchronization after RegionHandshakeReply instead of CompleteAgentMovement (allows the sync function to be called for child agents as well)
* Start informing clients of neighbor regions when AgentThrottle is received (prevents client crashes, and this will become necessary data in the future)
* Minor fixes in map handling

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2488 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-17 00:17:07 +00:00
John Hurliman
e69157a4af [Simian]
* Sim to sim caps for establishing child agents
* Still working out a bug in the libomv event queue, committing what is done for now

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2485 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-16 18:02:48 +00:00
Latif Khalifa
627e0dbef7 * Added DoubleDictionary.FindAll and DoubleDictionary.RemoveAll
[Simian]
* Fixed several Periscope regressions
* OAR file writing works now (from Periscope only, this will change soon)
* Added /objectkill [on/off] to Periscope, useful when saving OAR files
* Fixed miscellaneous issues (mostly with adding/removing agents in a scene)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2481 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-11 20:38:35 +00:00
John Hurliman
00ded81d19 * Sanity check that we are connected to a simulator before teleporting
* Gracefully handle zero length layers in JPEG2000 decoding
[Simian]
* Adding OAR file archive writing (untested)
* Add a /save command to Periscope to save an OAR archive of a scene

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2480 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-11 00:09:47 +00:00
John Hurliman
342008176e [Simian]
* Added IPhysicsProvider.TimeDilation (not functional yet)
* Completed ObjectUpdateCompressed implementation

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2479 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-10 18:40:11 +00:00
John Hurliman
8106fccdd2 * Changed Primitive.TextureEntry.ToBytes() to GetBytes() to follow naming conventions
* Added Primitive.TreeSpecies and Primitive.ScratchPad
* Converted Primitive.SoundFlags to the new SoundFlags enum
* Added a Utils.BytesToString() overload that accepts index and count parameters
* Added Utils.FloatToUInt16()
[Simian]
* Lots of changes in Simian to use the new unified ISceneProvider.ObjectAddOrUpdate() function
* Update flags are checked to determine the minimum sized packet that needs to be sent out for an update. ImprovedTerseObjectUpdate is working, and started work on ObjectUpdateCached (updates using this will currently not send)
* Adding three new variables to SimulationObject to store attachment-related state

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2478 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-10 01:54:45 +00:00
John Hurliman
692d2927a9 * Add a copy constructor to IRendering.SimpleMesh
[Simian]
* Avoid remeshing whenever possible by reverting back to using the untransformed mesh for the world mesh generation
* Add forceMeshing and forceTransform booleans to SimulationObject to specify when a new untransformed mesh needs to be generated and when the transformation needs to be reapplied

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2477 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-09 18:20:19 +00:00
Robin Cornelius
4973542628 Do not force the group flag to true in the ChatterBoxInvitationHandler, but instead use what the CAPS reply told us, as its the only way to tell the difference between a group IM invite and a friends confrence invite
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2475 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-07 18:37:51 +00:00
John Hurliman
ac784d54aa Thank you nephrael for pointing out a bug where Avatar.RegionHandle was always 0 for incoming avatars
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2472 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 01:58:58 +00:00
John Hurliman
ac354b5fb0 * Cleaned up GetBytes/ToBytes in OMV types to eliminate duplicate code
* Fixed a typo in the previous commit for Utils.EmptyBytes
* Switched _Packets_.cs over to the new ToBytes() functions, should significantly reduce the number of temporary byte arrays allocated

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2471 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 01:55:22 +00:00
John Hurliman
3ad7551a4a * Added Utils.EmptyBytes which is equal to new byte[0] and replaced all references of new byte[0] to Utils.EmptyBytes
* Added a CRC32 implementation to OpenMetaverseTypes.dll
* Added ToBytes() functions to most of the OMV types for writing bytes into an existing byte array

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2470 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 01:32:02 +00:00
John Hurliman
47c28cb568 Fixed an NRE on NameValues in the Avatar.Name getter
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2467 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-04 23:32:17 +00:00
John Hurliman
12375d40e9 * Added a server-side flag, ChatType.RegionSay
* AppearanceManager.AddAttachments() now uses the attachment point specified in the inventory item
* Completed the PrimFlags enum by filling in placeholders and inventing our own server-side flags (do not use the placeholder values, they will change)
* Added DoubleDictionary.FindValue()
* Added a random number function, SwapWords(), and SHA1/MD5 hash string functions to Utils

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2461 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-02 22:49:25 +00:00
Robin Cornelius
2358b16225 LIBOMV-454 Implement CAPS version of starting IM conferences and also implement CAPS ChatterBoxAcceptInvite for accepting invites to join conferences
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2459 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-02 11:53:26 +00:00
Robin Cornelius
993763515e Import Serialization support for InventoryNodes and things derived from InventoryBase, to allow serialization of inventory to and from disk
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2458 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-26 20:41:39 +00:00
John Hurliman
939d120059 * Added a CircularQueue to OpenMetaverseTypes
[Simian]
* Fixed a regression with ViewerEffect packet handling
* Added undo and redo support
* Changed ISceneProvider interfaces to be more consistent and avoid duplicate lookups
* Attempting to unify avatar and prim handling by storing agents as both a SimulationObject and an Agent in the scene
* Comment out noisy resend logging and catch broken packets in the resend queue
* Improved the README
* Avoid generating two meshes when a world-transformed mesh is generated (are these even necessary?)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2456 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-25 20:32:48 +00:00
John Hurliman
940b02f36a Applying patch from Ben Anhalt for [LIBOMV-455], which splits up UUIDNameRequests into multiple packets for long lists of UUIDs
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2455 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-25 20:09:58 +00:00
Robin Cornelius
0ed9ab8618 Implement RebakeAvatarTextures packet hander and refactor some appearance manager code to allow the necessary reuse of some functions in more than one place
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2454 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-22 20:24:13 +00:00
Latif Khalifa
b240c1442e Removed cruft from previois commit - LIBOMV-450
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2452 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-22 10:48:00 +00:00
Latif Khalifa
d116087ecb LIBOMV-450: Breaking change. Change avatar locations from List<Vector3> to Dictionary<UUID, Vector3> to enable more uses of CoarseLocationUpdateCallback.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2451 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-22 10:45:03 +00:00
Robin Cornelius
51a2768e90 Opensim does not yet send the MediaData section of ParcelProperties via LLSD, so make that block optional for compatability reasons.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2450 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-21 09:54:19 +00:00
John Hurliman
8f7775a7ac [LIBOMV-448] Applying a patch from Snowdrop Short to allow the TransactionID to be specified for asset uploads
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2445 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-18 19:07:06 +00:00
John Hurliman
39f154178b Implemented NetworkManager.OnPacketSent callback that is fired after every outgoing packet has been put on the wire. Adds the basic functionality requested in [LIBOMV-60]
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2444 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 19:22:07 +00:00