Commit Graph

41 Commits

Author SHA1 Message Date
Jim Radford
f55e261623 Mantis#215, LLUUID is now Serializable
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1729 52acb1d6-8a22-11de-b505-999d5b087335
2008-04-09 19:12:45 +00:00
Jim Radford
ed757e3263 patch from root66, adds some imaginary math, quat / operator overload, and a Conjugate overload.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1720 52acb1d6-8a22-11de-b505-999d5b087335
2008-04-08 01:15:43 +00:00
Jim Radford
e31d6a50a7 Applies patch #204 from Baba, fixes LLQuaternion multiplication in Types.cs
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1709 52acb1d6-8a22-11de-b505-999d5b087335
2008-04-06 02:00:48 +00:00
gareth
3e0c841a37 Fixing LLQuaternion.GetBytes() as per mantis #191. Patch by mjm
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1701 52acb1d6-8a22-11de-b505-999d5b087335
2008-04-04 19:14:25 +00:00
Jim Radford
6135b0c748 Cleanup patches from DrScofield, cleans up inline code comments and LLUUID Comparison against null. Mantis#138
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1656 52acb1d6-8a22-11de-b505-999d5b087335
2008-03-06 05:57:16 +00:00
Jim Radford
922239c802 fixes incorrect byte conversion on big endian systems. patch from DrScofield from Mantis#136
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1639 52acb1d6-8a22-11de-b505-999d5b087335
2008-02-13 07:24:54 +00:00
John Hurliman
a44ff50e76 * Fixing incorrect quaternion multiplication code
* Changing the foreach loops in ObjectManager.InterpolationTimer to use the ForEach() functions
* Avoid running packet.ToString() twice for every packet in SLProxy analyst

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1616 52acb1d6-8a22-11de-b505-999d5b087335
2008-01-11 23:49:28 +00:00
John Hurliman
7436157475 * Removed the last references to the deprecated author parameter in Login(), replaced with userVersion
* Changed the LLVector3 != operator to avoid an extra function call (in case it isn't automatically inlined)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1614 52acb1d6-8a22-11de-b505-999d5b087335
2008-01-10 23:40:13 +00:00
John Hurliman
a2909a317e Applying patch from issue #97 by mjm, allows LLVector3 to parse strings with spaces instead of commas
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1588 52acb1d6-8a22-11de-b505-999d5b087335
2008-01-03 21:39:48 +00:00
John Hurliman
3942802a4e Added the cross product operator (%) to LLVector3
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1572 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-30 01:29:29 +00:00
John Hurliman
036a40e204 All of the FromLLSD() functions in Types.cs were broken, fixed now
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1569 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-29 01:46:47 +00:00
John Hurliman
65f224ad2b * Updated the unit tests to compile and run
* Added several new methods for converting between euler angles (stored in LLVector3), quaternions and matrices. Most of the new methods are commented out as the math is currently buggy and needs more unit testing to fix

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1568 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-27 23:20:45 +00:00
John Hurliman
adae01ab87 Big cleanup of Types.cs that avoids initializing duplicate copies of structs and comes closer to a uniform naming convention
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1565 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-25 02:37:35 +00:00
John Hurliman
4efab81b86 Attempting to fix a ViewerEffect color bug, it looks like we're supposed to serialize colors as float arrays in the packet instead of the packed four byte format
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1549 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-21 21:39:55 +00:00
John Hurliman
c7234457cc * Made the LLSDMap indexer operator safe, now returns an empty LLSD element if the key does not exist
* Added flex/light/sculpt data to prim import/export
* Added a sanity check for the LLColor(float,float,float,float) constructor in case someone tries to initialize it with non-normalized values

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1548 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-21 21:09:58 +00:00
John Hurliman
dd9d90aed2 Applying patch from issue #67 by A_Biondi, fixes some glaring errors with LLQuaternion serialization
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1537 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-20 18:22:39 +00:00
John Hurliman
0f29e30ce0 Applying patch from issue #66 by johan, uses FromBytes methods for LL* types to allow object reuse
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1527 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-19 18:46:06 +00:00
John Hurliman
3c3285f7f5 * Removed a double lock on network shutdown and properly shut down the blocking queue
* Added LLQuaternion.SetQuaternion() functions and fixed the quaternion multiplication
* Updated importprimscript to an enum name change

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1524 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-19 01:11:16 +00:00
John Hurliman
c66b52e7a8 * Partial rewrite of LLObject to properly pack and unpack parameters
* Added the LLVector2 type
* Added some missing error handling to CapsClient
* Added an arithmetic rounding function and two Lerp() functions

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1523 52acb1d6-8a22-11de-b505-999d5b087335
2007-12-18 19:23:46 +00:00
John Hurliman
ba153c9749 * Removed LLUUID.ToStringHyphenated(), LLUUID.ToString() has hyphens now
* Fixed a CAPS crash when the callback was triggered with a null LLSD object
* Fixed TextureEntry bugs, added support for the new glow parameter
* Prim import and export are working now, but need rigorous testing

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1507 52acb1d6-8a22-11de-b505-999d5b087335
2007-11-30 13:15:31 +00:00
John Hurliman
9eecefb290 * Rewrote the LLSD system, changed the namespace name to libsecondlife.StructuredData and created an LLSD instance class
* Removed unused/deprecated login parameters user-agent and author
* More work on prim import/export
* Fixed up GridManager.GetGridRegion()
* Cleaning up AgentManager.LookAt mess
* Attempting to fix AgentManager.StopJump()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1498 52acb1d6-8a22-11de-b505-999d5b087335
2007-11-21 23:50:05 +00:00
phaik
16c711e610 Whiskey and patch friday, thanks to Thoys, Prometheus, Tleides, Dahlia and Ahzzmandi.
Covers issues 498, 499, 504, 570, 572

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1485 52acb1d6-8a22-11de-b505-999d5b087335
2007-11-10 03:21:32 +00:00
John Hurliman
3013742668 * Increased SIMULATOR_TIMEOUT to 30 seconds
* Converted all timers to System.Threading timers to fix problems running in services and the CF
* UDPBase now uses our own ReaderWriterLock that is more efficient, and CF compatible
* Login uses a hand-created LoginProxy object instead of dynamically building the class with reflection .Emit()
* Replaced ParameterizedThreadStart calls with class-wide variables for CF compat.
* Removed transfer timeout code (irrelevant now that uploads go through CAPS)
* Added several new Helpers methods to wrap desktop and CF conditional code
* Replaced Monitor calls with AutoResetEvent in BlockingQueue
* InventoryNodeDictionary uses generics now
* Removed final lingering piece of XML serialization
* Added CookComputing.XmlRpc.CF.dll for the CF

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1479 52acb1d6-8a22-11de-b505-999d5b087335
2007-11-06 09:26:10 +00:00
John Hurliman
b2ae922da2 More CoordinateFrame constructors then you can shake a stick at, and removed At/Left/UpAxis properties to reduce confusion (use X/Y/ZAxis instead)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1388 52acb1d6-8a22-11de-b505-999d5b087335
2007-09-02 22:41:22 +00:00
John Hurliman
da4155ffb6 Finished cleaning up Types.cs so all of the functions are uniform across types and the class layout is consistent
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1387 52acb1d6-8a22-11de-b505-999d5b087335
2007-09-02 22:02:35 +00:00
John Hurliman
b995eaf53c * Added LLMatrix3 struct
* Cleaned up Types.cs, moved type-specific math from Helpers to the individual types
* Added more functions to CoordinateFrame
* Added Helpers.Swap<>() and Helpers.IsFinite()
* Added agni and aditi constants to Settings

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1386 52acb1d6-8a22-11de-b505-999d5b087335
2007-09-02 04:45:12 +00:00
John Hurliman
975637b2a1 * Switched LLObject to using the Permissions struct
* Added CoordinateFrame class for camera management
* Added NetworkManager.OnSimConnecting that blocks before connecting to a new sim
* CurrentSim no longer goes null in between teleports
* Applied jradford's patch to fix the DeedObject patch
* UDP socket Bind() is used instead of Connect() now and sender verification is done in PacketReceived() to fix an apparent compatibility problem
* Added Helpers.VecCross() for vector cross products
* TextureEntryFace and TextureEntry now implement ICloneable

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1384 52acb1d6-8a22-11de-b505-999d5b087335
2007-09-01 07:52:55 +00:00
John Hurliman
61127e665e Patch from issue 309 submitted by brianw, LLUUID implements the IComparable interface now
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1366 52acb1d6-8a22-11de-b505-999d5b087335
2007-08-22 05:01:22 +00:00
John Hurliman
47f8a88162 * Moved all simulator statistic information to a new struct at Simulator.Stats
* Added per-sim avatar and prim tracking through Simulator.Objects, use Settings.ALWAYS_DECODE_OBJECTS = true to enable
* Handle DisconnectSim packet and don't send CloseCircuit packets on sim-triggered disconnects
* Interpolation timer now does angular velocity and linear movement interpolation for all objects in the object tracker(s)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1363 52acb1d6-8a22-11de-b505-999d5b087335
2007-08-20 09:26:21 +00:00
Latif Khalifa
f462f44d23 *BREAKING CHANGES* Merging jhurliman branch with the trunk. The old AssetManager, ImageManager, and InventoryManager systems have been phased out and replaced by the new AssetManager and InventoryManager classes. The lowest network layer has been abstracted out and replaced, new networking callbacks added, and many small bugfixes made. AppearanceManager.Wear* commands have been commented out until they are ported to the new inventory system
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1296 52acb1d6-8a22-11de-b505-999d5b087335
2007-07-13 14:49:36 +00:00
0101cd5ffb * Added FriendManager.cs
* Added Client.Friends.RequestFriendship(targetID) and .RemoveFriend(targetID)
* Updated all existing 2006 copyrights to 2006-2007

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1207 52acb1d6-8a22-11de-b505-999d5b087335
2007-05-28 17:22:14 +00:00
John Hurliman
3fbf2ef6aa XML importing and exporting should be functional again
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1137 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-22 14:14:32 +00:00
John Hurliman
48f7aa5d0f * Attempted fix for issue 87, login redirects failing (new parameters were added)
* Added Caps.IsEventQueueRunning
* Teleports now fail immediately unless the event queue is running
* All Array.Copy calls have been changed to Buffer.BlockCopy
* Improved the GotoCommand, synchronous teleports are used and better feedback is given

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1124 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-15 07:37:53 +00:00
John Hurliman
3b6bfbc1ce * Caps initial connection is now asynchronous. This will fix the last remaining occasional lockup on program exit
* Fixed a lockup on exit and NullReferenceException when using ParcelInfoCommand in TestClient
* Basic (but incomplete) support for decoding foliage in CompressedUpdateHandler
* More exception handling in Login.cs
* Housekeeping in MainAvatar.cs
* Increased teleport and caps timeouts
* Added an LLVector3 * LLVector3 operator overload

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1115 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-13 20:02:21 +00:00
John Hurliman
f44c012f60 * Client.Self.Position now does acceleration/velocity interpolation
* Added LLVector3 * float operator
* Adding Oven.cs to Baker (will be moved in to libsecondlife later) that does the first baby steps of baking
* Added the missing Helpers.GetResourceStream() function
* Changed readonly Settings values to const


git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1110 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-09 08:03:12 +00:00
John Hurliman
81472d88f4 * Incoming packets are put on a queue instead of processing immediately
* Two new classes added, a ManagedThreadPool that is a performance enhanced ThreadPool, and BlockingQueue which is a thread-safe queue that allows one end to block until something is added to the queue
* Added Simulator.ReceivedResends for tracking the number of resent packets received
* Added StatsCommand to TestClient to print out basic networking stats

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1101 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-03 05:47:09 +00:00
John Hurliman
e2ea425e2e struct LLUUID 2: NUnit Boogaloo (blame everything on bushing)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1098 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-02 09:34:16 +00:00
John Hurliman
77a9c8bd23 * XmlRpcCS has been replaced with custom XML handling, all login code has been moved to Login.cs
* XmlRpcCS moved to SLProxy folder, since SLProxy still relies on it
* Client.Network.LoginError is now obsolete, replaced by Client.Network.LoginErrorKey and Client.Network.LoginMessage
* Client.Self now has StartLocation and AgentAccess strings after a successful Login
* Removed the null LLUUID check in _Packets_.cs since LLUUID will be a struct soon
* Fixed directories in mapgen.bat
* AgentThrottle class lives in AgentThrottle.cs now

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1097 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-02 04:37:15 +00:00
jmalthus
e6b4375131 Reverted to r1093. Bushing should really test his changes, especially those that are as far-reaching as LLUUID.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1096 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-01 20:19:40 +00:00
bushing
4bdfd53fd7 Changed LLUUID's implementation to be a struct wrapping 'Guid', for performance
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1094 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-01 19:20:08 +00:00
John Hurliman
1cb7f4c253 Huge svn cleanup!
* libsecondlife-cs is now libsecondlife
* All applications that are staying have been moved to trunk/
* SLProxy loads Analyst plugin by default if no other plugin is specified on the command line

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1068 52acb1d6-8a22-11de-b505-999d5b087335
2007-03-26 23:12:39 +00:00