Commit Graph

112 Commits

Author SHA1 Message Date
John Hurliman
48aa4a6c19 * Encode uints as LLSDBinary instead of LLSDInteger so high values can be properly stored
* Added LLSD.ToObject() that does the opposite of LLSD.FromObject()
* Added LLSD.SerializeMembers() and LLSD.DeserializeMembers() to allow automatic serialization of simple container objects
* Fixed Utils.BytesToHexString() to not output trailing whitespace

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2236 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-23 23:26:39 +00:00
John Hurliman
8e70446f3c * Added Utils.CopyBytes() to OpenMetaverseTypes, should be used any time a byte array is grabbed from a packet member and directly assigned to another variable
* Moved Simulator enums (RegionFlags and SimAccess) into the main OpenMetaverse namespace
* More comments

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2233 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-22 15:05:14 +00:00
John Hurliman
6b040fd03a * Moved ParcelManager enums out into the main OpenMetaverse namespace
* Removed some members from the Parcel struct that shouldn't be there

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2232 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-22 13:02:27 +00:00
John Hurliman
640ccaf2ee Added Parcel.LandingType enum, changed Parcel.LandingType to Parcel.Landing
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2231 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-22 08:49:34 +00:00
Jim Radford
8876dd9363 LIBOMV-385 Corrects incorrect seed caps names, Thanks Brandon Lockaby for the patch
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2229 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-17 00:40:33 +00:00
John Hurliman
2b8196c8d9 Fixing bugs in the previous commit for refreshing texture downloads
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2228 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-16 01:48:27 +00:00
John Hurliman
6497ef03ca * Modified ImageDownload to hold ImageType and DiscardLevel
* RequestImage() now takes a starting packet number as a parameter
* Image download refresh timer calculates which packet to restart the transfer at

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2227 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-16 00:31:55 +00:00
John Hurliman
3ef7649a81 * Defaulting AgentManager.Movement.AutoResetControls to false since most non-interactive bots will expect this behavior. May break a few bots that expect movement flags to be reset every update!
* Fixed a crashing typo in TestClient ScriptCommand

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2225 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-15 23:37:35 +00:00
Jim Radford
c277025287 LIBOMV-196 Exposes various group cache data we store to public using our InternalDictionary class
* Adds ActiveGroupPowers field to AgentManager which holds currently active groups GroupPowers for current avatar

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2221 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-14 08:12:51 +00:00
Jim Radford
038c6eede0 LIBOMV-379 Added Animation type support to wrapper creation in AssetManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2218 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-13 03:16:21 +00:00
Jim Radford
cc91647129 Fixed UUID comparison in agentmanager, Strings need to be typecast to (UUID) (or better yet compare against UUID.Zero instead of null)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2217 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-13 00:10:47 +00:00
Jim Radford
9ef3255474 LIBOMV-377 Increasing UDPPacketBuffer size to 4096, fixes exceptions being thrown when large inventory packet is received exceeding the previous buffer size. This will increase memory usage slightly
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2215 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-12 21:36:44 +00:00
John Hurliman
e0cfefc977 Applying patch by Brandon Lockaby in [LIBOMV-376] to fix BinaryBucket parsing in ChatterBoxInvitation events
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2214 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-12 19:31:30 +00:00
John Hurliman
25fbd86836 Fixed Vector2.DistanceSquared() in OpenMetaverseTypes, thank you Francis
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2213 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-12 18:40:18 +00:00
Jim Radford
d25f89d854 Fixed another LLSD type conversion issue
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2211 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-12 00:39:58 +00:00
Jim Radford
03b6a4a9a1 * Fixed up some XML Comments in InventoryManager to clear up compile time warnings,
* Fixed casting issue in AgentManager which was causing compile issues on some platforms

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2210 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-12 00:32:05 +00:00
John Hurliman
4f94adf5ec * IMPORTANT OpenMetaverseTypes CHANGE! Changed string to UUID typecast operator from implicit to explicit. This prevents accidents like "if (myUUID == null)" from compiling
* Added ImageCodec enum

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2209 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-10 18:42:11 +00:00
Jim Radford
857b78c2cf Adds additional inline XML documentation to GroupManager, Fixes group notice serialization routine to use our StructuredData tools (needs to be verified working)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2208 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-09 07:30:04 +00:00
Jim Radford
1a886fb085 LIBOMV-375 Removes duplicate GroupPowers struct, adds XML comments to the one that stayed
LIBOMV-374 Adds new ModerateChatSessions method to AgentManager which allows a group member with Moderator rights to silence idiots
LIBOMV-372 Fixes exception thrown while using Group Chat functions caused by recent changes to the LL Simulator, Also fixes TestClient IMGroup command
* Adds (2) Events OnGroupChatJoin/OnGroupChatLeft fired when a member enters or leaves a group chat session



git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2207 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-09 04:58:58 +00:00
John Hurliman
acda9ee118 * Asset decoding now returns true by default for assets that have no decoding routine
* Added AssetTexture.DecodeLayerBoundaries() for decoding the byte boundaries of quality layers

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2205 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-09 00:35:24 +00:00
John Hurliman
451015b674 Removing ResendCount and TickCount from Packet class, moved to OutgoingPAcket struct. This is necessary to prevent big problems when sending the same packet to multiple destinations
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2204 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-08 23:57:31 +00:00
John Hurliman
9e243fd131 * Added a copy constructor for Primitive
* Changed Simian ISceneProvider model to run all scene modifications through function calls, and give callbacks access to previous and new data
* Added copy constructor for Simian's SimulationObject

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2202 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-08 18:23:16 +00:00
John Hurliman
9b3545c52b Resolving [LIBOMV-373] by un-obsoleting some of the PrimFlags
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2201 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-06 22:38:17 +00:00
John Hurliman
53072cf669 * Adding GetHashCode override to Permissions
* Adding PrimFlags.None back (for OpenSim), marking as obsolete
* Slowly transitioning ISceneProvider to become the central resource of Simian (instead of the Simian class). The callbacks are going to change soon

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2200 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-06 18:02:38 +00:00
Jim Radford
78ef0621c9 LIBOMV-362 Adds some sanity checking and better logic to internal Parcel Dictionaries to prevent overloading the outbound packet queue with unnecessary requests.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2199 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-06 10:19:46 +00:00
John Hurliman
f656d185a3 * Removed unused AgentManager.AgentMovementCallback
* Added Avatar.ControlFlags (not used by libomv directly)
Simian:
* Added ISceneProvider interface
* Fixed ObjectSelect crash (due to a packet block not being filled out if the selected object was missing)
* Simplified BuildFullUpdate()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2196 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-04 21:09:44 +00:00
Jim Radford
bc593002ac LIBOMV-369 Applies Patch from Dr Scofield which sanity checks null values in primitive equality operator
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2195 52acb1d6-8a22-11de-b505-999d5b087335
2008-09-03 21:19:19 +00:00
John Hurliman
e28e62bac5 Defaulting four string values in Primitive.Properties to String.Empty instead of null in the Primitive() constructor
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2194 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-31 02:27:23 +00:00
John Hurliman
f1d183a40e * Removed ObjectManager.BuildCube and replaced with ObjectManager.BuildBasicShape() which should be capable of building the most basic shape types. Some shapes seen in the viewer like right triangles are not supported yet
* Added a debug line when a prim with the CreateSelected flag set is received

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2191 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-30 23:52:00 +00:00
John Hurliman
082bdf50ef Removing conversionBuffer caching from OpenMetaverseTypes to avoid interop issues and save memory for the 99.9% use case
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2187 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-29 23:11:57 +00:00
John Hurliman
0b751afd07 * Exposing Primitive.ConstructionData.profileCurve as public (Primitive.ConstructionData.ProfileCurve is still there)
* Added ObjectShapeHandler to Simian, basic prim editing is working

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2178 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-28 02:55:37 +00:00
John Hurliman
eb8ee37b34 libomv:
* Renaming ObjectPropertiesRequestType to ReportType, filling out the enum
Simian:
* Added UUIDNameRequest, MultipleObjectUpdate, ObjectDeselect, and RequestObjectPropertiesFamily handlers
* Fixed some bugs in object-object collision
* Slightly improved prim spawn location (will always be hacky until we have a collision system)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2177 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-28 02:38:32 +00:00
John Hurliman
5144fd6b32 * Added a null check in Utils.StringToBytes()
* Corrected Z position in Simian ObjectAddHandler

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2176 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-27 23:41:25 +00:00
John Hurliman
11776ef202 libomv:
* Completed DeRezDestination enum
Simian:
* Added IInventoryProvider to allow other extensions to create inventory items
* Basic derez support for deleting items (the new inventory items in the trash won't actually work because the assetID is meaningless until we have an IAssetProvider)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2175 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-27 23:27:48 +00:00
John Hurliman
35e6af9e3c * Updating OpenJPEG.cs to match the new openjpeg-dotnet changes
* Adding OpenJPEG.DecodeLayerBoundaries() to get the byte boundaries for each quality layer in a texture

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2173 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-27 02:47:46 +00:00
John Hurliman
565f604560 * Added AssetAnimation, cleaned up AssetSound and a few others
* AcceptAllCertificatePolicy is now public so other apps can use it (such as GridProxy)
* Fixed a Simian bug in failed asset upload handling, and added support for animation and sound uploads

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2170 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-25 22:56:00 +00:00
John Hurliman
8f3349d9ae Deleting unused Prims.cs
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2163 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-24 05:29:20 +00:00
John Hurliman
c7474faed6 * Fixed a typo in OpenMetaverse.ObjectManager
* Improved BuildFullUpdate in Simian
* Added ObjectManager in Simian, prim creation is working (no editing yet)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2162 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-24 05:21:42 +00:00
John Hurliman
07754f7016 OpenMetaverse:
* LLObject is gone, it is now merged into Primitive
* Avatar inherits from Primitive
Simian:
* Added SimulationObject to track prims
* Added IMeshingProvider and a connector to OpenMetaverse.Rendering plugins

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2161 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-24 05:06:51 +00:00
John Hurliman
175324af21 * Disabling the object pool while we debug various issues
* Fixing a race condition in PrimWorkshop
* Fixing a race condition in ParcelManager

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2154 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-22 02:39:46 +00:00
John Hurliman
6e4eb466ad * UDPPacketBuffer.Data and UDPPacketBuffer.ZeroData are now readonly to prevent mischief
* Removed UDPPacketBuffer constructors that let you initialize with empty buffer arrays, they are always initialized now for safety

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2150 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-22 00:19:44 +00:00
John Hurliman
f0ba48353b * Fixing a few lingering endian issues [LIBOMV-361]
* Removing all big endian methods from Helpers to avoid future confusion
* Sanity check in InventoryCommand.PrintFolder()
* Some GridProxy hackery to work with the OGP client, this will be cleaned up later

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2148 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 21:51:20 +00:00
John Hurliman
09582ed2b9 * Fixing several places where BytesToUIntBig() was being used because the endian order was wrong in that function. Now that the function is fixed, those places have been converted to using BytesToUInt()
* Implemented Utils.HexStringToBytes()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2145 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 20:01:16 +00:00
Latif Khalifa
a2f73833bd LIBOMV-360: sync up _Packets_.cs to 1.21.0
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2144 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 19:54:19 +00:00
Jim Radford
775b649368 LIBOMV-359 Removed unnecessary Inventory Objects from GridClient which are part of the new inventory system.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2141 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 18:37:44 +00:00
5eb3707804 Fixed terrain affecting Simian movement speed while flying, merged Chat extension into new Messaging extension, fixed resend timer not cleaning up when avatars are removed, fixed some xml comments
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2136 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 08:36:37 +00:00
John Hurliman
cc1c6762b7 Simian:
* Added default assets for avatar appearance
* Fixed default heightmap loading
* Removed ugly appearance hacks and replaced with hardcoded but not so ugly default assets
* Simplified the inventory classes to work with the libomv inventory system rollback

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2135 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 06:46:36 +00:00
John Hurliman
dec6db7aaf Marking InternalDictionary.Dictionary as public. Yes, this goes against the whole point of InternalDictionary, but without doing this InternalDictionary can't be used outside of libomv. A documentation comment has been added to warn users about locking
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2127 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 01:56:48 +00:00
Jim Radford
c551283fd8 LIBOMV-359 Reverting InventoryManager/Inventory system to old inventory system based on r2020, Disabled GUI library in prebuild.xml as its based on the new inventory system and needs to be rewritten to be used with the old inventorymanager (or re-enabled when new inventory system is added back to trunk
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2126 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-21 01:19:06 +00:00
John Hurliman
cfb75b85b0 * Fixed mapgenerator bug caused by types name change
* Fixed mapgenerator bug causing all packets to default to Unencoded
* Added Helpers.BytesToInt()
* Fixed endian problem in Helpers.BytesToUIntBig()
* Fixed LoginResponseData.ToXmlRpc() to return non-broken inventory skeleton
* Added EstateAssetType and TransferError enums
* Changed an Asset constructor to also take an AssetID

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2124 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-20 22:46:28 +00:00