Commit Graph

89 Commits

Author SHA1 Message Date
John Hurliman
28670e09fe Added a Settings class
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@711 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-11 12:46:58 +00:00
bushing
af5b757e86 cleaned up warnings
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@709 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-11 09:36:52 +00:00
John Hurliman
765fdda1b1 Fixed the sequence-rollover-network-explosion bug (needs confirmation). The sequence number is actually the second, third, and fourth bytes of the packet header, giving it a max value of 16777215, or approximately 26 days of connectivity to a single simulator.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@706 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-11 02:34:04 +00:00
John Hurliman
c60e041ad4 userAgent and start were backwards in one of the Login() methods, causing login to fail when a starting location was specified
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@700 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-10 00:00:28 +00:00
John Hurliman
b8b11a4094 Fixed a bug where arrays were not being added to the login xml (such as the options array)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@696 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-09 00:49:33 +00:00
lonecoder
d7931495d7 Fixed Prim Deserialization. The problem was with LLUUID.ReadXml not moving the reader position up, so anything read after that would be corrupt.
Changed vector types to structs.  LLUUID should probably be changed to a struct as well.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@694 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-08 09:06:13 +00:00
John Hurliman
eca9395b39 Buffer size for zerodecoding increased, and appended ACKs are accounted for in ZeroDecode() now. More testing needed
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@688 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-06 23:40:44 +00:00
John Hurliman
2b77d66de9 Upgraded to the latest version of XmlRpcCS, and removed a lot of the fancy XML serialization stuff to try and make it work
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@684 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-05 23:28:59 +00:00
John Hurliman
3dbdbec13b * Added more documentation to Types.cs
* Renamed LLUUID.GenerateUUID() to LLUUID.Random()
* Optimized the type classes hashing functions
* Fixed a bug where source packet data would be modified on big endian platforms when creating type classes
* Normalized the ToString() output of the type classes

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@677 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-04 00:19:58 +00:00
John Hurliman
4f4e0d0afe TextureEntryFace repeatU/V values default to 1.0 now, and the quotes around avatar first/last name bug is fixed
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@671 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-02 10:31:20 +00:00
Michael Cortez
659432feee * Fixed an infinite loop problem when requesting bodyshape Assets
* Added a variable to define XML/Login timeout -- boosted original default of 15 seconds to 60

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@665 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-30 21:19:45 +00:00
Michael Cortez
598b36ce68 Move magic numbers for network timeouts out of code into some constants.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@663 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-30 18:47:44 +00:00
70b10f6cad Raised login timeout from 8sec to 15sec
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@661 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-30 00:48:03 +00:00
John Hurliman
be6bcb07a1 More TestClient fixes, more networking tweaks, and AddPrim() no longer sets the TextureEntry field to accomodate for tomorrow's update
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@649 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-29 00:32:25 +00:00
John Hurliman
de56cee137 Minor fixes in NetworkManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@646 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-28 07:55:15 +00:00
John Hurliman
f55b8c8d18 libsecondlife:
* Publically exposed the Simulator reference to SecondLife
* SecondLife.Debug = false; actually works now
* All incoming packets are added to the simulator inbox now, and the inbox size has been cut in half to 100
TestClient:
* Completely revamped to support multiple clients
* Added login/logout Commands
* Added the all prefix for IM commands to send the command to all logged in bots

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@645 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-28 07:48:43 +00:00
John Hurliman
41c7c30b41 UnACKed packets are resent after 2500ms
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@640 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-27 21:51:28 +00:00
John Hurliman
d1b0da66d1 * A single buffer is reused for zerocoding outgoing packets now
* Various cleanups in NetworkManager
* Added small bits of documentation in SecondLife.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@637 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-26 23:42:20 +00:00
John Hurliman
c17074a645 primexport:
* Supports libprims and prim.blender output formats now
* Less noisy output, doesn't warn about missing parent prims for attachments
libsecondlife:
* Cleaned up the AgentThrottle class, it's now accessible through SecondLife.Throttle
* Fixed PrimObject null members
* Fixed PrimFlexibleData invalid XML
* Fixed invalid TextureAnimation XML
* Speckled documentation here and there

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@632 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-25 20:25:02 +00:00
Latif Khalifa
814db8ff45 * Changed Packet.BuildPacket to take an existing byte buffer for zerodecoding packets to avoid initializing a new buffer every packet. Added one zerobuffer per simulator to NetworkManager
* Cleaned up sldump slightly, added a "seconds to run" option to the command-line
* Cleaned up the AgentThrottle class, renamed variables to proper casing

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@611 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-21 15:24:17 +00:00
axial
0004af9114 applying Stefan / Duplo's InvariantCulture patch for libsecondlife-cs/NetworkManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@607 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-20 04:57:35 +00:00
bushing
7fd738ed94 Added full AgentThrottle support
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@585 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-14 16:03:06 +00:00
John Hurliman
8b0952ccfc * AddTree and AddGrass methods
* Added default constructors for more of the prim parameter classes and initialize them in the default prim constructor. Should reduce null reference issues
* TextureEntry.ToBytes() correctly handles null DefaultTexture

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@572 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-13 05:36:52 +00:00
John Hurliman
3ced78e8ff CopyBot:
* More aggressive AgentUpdate timer
* Workaround hack for prims appearing in the wrong position for other clients
* Fixed ViewerEffect handling to copy over multiple Effect blocks, and never send ViewerEffect packets with no blocks (which will crash the sim)
* CopyBot will rotate to face the original avatar (kind of, needs refining)
libsecondlife:
* Added an enum for AttachmentPoint
* Couple additional sanity checks for null simulators after disconnecting
* Can build a quaternion from normalized X/Y/Z only now

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@569 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-12 11:33:42 +00:00
John Hurliman
2ee4403238 * Added Self.TeleportLureRespond()
* Added a ToString() method for Simulator
* Fixed teleporting to a new region and AgentUpdates in CopyBot

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@565 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-12 01:49:47 +00:00
John Hurliman
d397ea1b18 Check for client sequence number rollover
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@564 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-12 00:43:48 +00:00
John Hurliman
01f6fbee1c * Much improved UpdateCamera() function
* Vector x Quaternion override in LLVector3
* Added a test case to make sure the avatar isn't blind

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@546 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-09 23:21:38 +00:00
John Hurliman
d54bbd9232 * Moved all the delegates and enumerations I could find inside of parent classes, part of a major cleanup
* Reverted the PathTaper / PathScale code
* Added small bits of xmldoc here and there, trying to clean up now that we have auto-generating docs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@542 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-09 10:18:03 +00:00
John Hurliman
134193e26d * Implemented the first real unit test that utilizes the SL grid and our unit testing bot to check for u64 endian issues
* Added new methods to NetworkManager to login with an md5 hash instead of a password

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@541 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-08 22:58:50 +00:00
John Hurliman
28ecfa5976 Updated the entire library (where appropriate) to use LLUUID.Zero, LLVector*.Zero, and LLQuaternion.Unit instead of creating new instances of the class
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@528 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-07 23:30:09 +00:00
John Hurliman
7e21d49311 Moved the MD5 hashing to the Helpers class
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@524 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-07 21:42:39 +00:00
qode
25378ee873 Added the SecondLife.Network.OnConnected() event to NetworkManager.cs.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@519 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-07 20:20:25 +00:00
John Hurliman
5a93c57501 Changed the Inbox in NetworkManager to use a fixed size Queue, we'll see if this fixes sequence number rollover issues
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@503 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-04 13:42:49 +00:00
qode
ea82ee3f5b *Added (string) NetworkManager.StartLocation(string sim, int x, int y, int z)
**This can be used in the newly created DefaultLoginValues(string first, string last, string password, string StartLocation, string useragent, string author)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@495 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 20:19:49 +00:00
John Hurliman
caca9ebdfd * Commented a few unused variables out in GroupManager
* ACKing performance enhancements in NetworkManager for high packet loads
* More sanity checking in Parcel.cs
* Added comment skeletons, reorganized member ordering, and added a ToBytes() skeleton function in Textures.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@408 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-27 21:42:23 +00:00
John Hurliman
3c08ee0252 Added a new Login() method that doesn't need a dictionary, and a RequestObjects() function in ObjectManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@407 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-27 12:35:57 +00:00
John Hurliman
f9c35ba4a2 Merged the aditi branch to the trunk, threw the latest protocol files in, generated a new _Packets_.cs and fixed the login url. We should be good to go
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@396 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-25 22:05:07 +00:00
John Hurliman
d71f44c55f Removed all the trailing residue from the mutexes, fixed a Logout bug with closing the sim socket
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@395 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-25 21:22:18 +00:00
John Hurliman
3a70f4090b Removed all mutexes from libsecondlife, replaced with lock()
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@393 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-25 10:41:43 +00:00
John Hurliman
9830bf85e4 On a mad coding spree.
* Implemented AvatarManager, added the async functions
* Rebuilt the key2name functionality
* Fixed and cleaned up a lot of the teleporting code
* More functions implemented in GroupManager
* Renamed SecondLife.Avatar to SecondLife.Self
* Updated the groupmanager example to list group members
* Renamed Form1.cs to AnimationSample.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@386 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-24 11:16:26 +00:00
John Hurliman
40f748f88c Added initial texture support to groupmanager, removed an unneeded SSL certificate override class from NetworkManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@373 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-22 20:27:59 +00:00
John Hurliman
59edffffe7 Converted libsecondlife to .NET 2.0, using generic containers exclusively
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@362 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-21 05:53:58 +00:00
bushing
4fa67d3b35 svn:eol-style native is your friend
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@360 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-21 02:52:28 +00:00
John Hurliman
25834b70bb * Added a 9 parameter DefaultLogin Values, weaning the example apps off of passing in a version number
* Fixed several SimulatorsMutex hacks now that the root issue is resolved
* Teleport example will let you know if you try to teleport to the local sim

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@350 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-20 19:42:09 +00:00
Michael Cortez
f05eb64dfd Fixed a mutex bug, and removed commenting hack
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@349 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-20 19:28:32 +00:00
Michael Cortez
c80e7b7721 Temporarily giving up on the "correct" solution to get teleport to work, and going with the comment hack (removing a mutex from the NetworkManager to prevent a deadlock.)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@342 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-19 19:01:42 +00:00
John Hurliman
3238049bc6 * Got rid of SecondLife.CurrentRegion (use SecondLife.Network.CurrentSim.Region instead)
* Initial framework for groups support
* Fixed Logout() issues with freezing or throwing exceptions
* slaccountant small cleanup (still doesn't run under .NET 2.0)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@338 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-19 08:37:46 +00:00
John Hurliman
1477bcbaa0 Fixed the colon-in-strings bug that was introduced a few commits back
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@328 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-18 07:24:11 +00:00
John Hurliman
f47477c9e0 * Initial support for ObjectUpdateCompressed packets
* Typecast only once in the main ParcelPropertiesHandler block
* Handle the new colons in region and avatar names

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@326 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-18 07:02:24 +00:00
John Hurliman
46ee60f13b General cleanup to remove some of the build warnings, mostly XML comment fixing and making public event handlers private. Also changed the asset uploading function to return the new asset ID instead of the transaction ID
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@321 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-17 09:03:28 +00:00