Commit Graph

70 Commits

Author SHA1 Message Date
lancej
9bf85d3f02 * Added SittingOn to Avatar. (Same as SittingOn in MainAvatar)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@726 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-15 02:46:07 +00:00
John Hurliman
baae5a17ed * Updated the message_template.msg to 1.13.1.4
* Moved MainAvatar delegates and enums in to the MainAvatar.cs file
* TestClient now stores prims in per-sim dictionaries
* TestClient throttles the connection at login
* OnTeleport callback passes a reference to the current Simulator
* Removed unneeded typecasts to Packet
* AutoPilotLocal() doesn't need the GridRegionData reference
* Disconnects and packets resent multiple times are handled better
* OnNewAvatar is fired for our own avatar as well, and our avatar position is updated all the time now, as well as confirming it's our avatar by UUID instead of name

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@721 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-13 21:15:49 +00:00
John Hurliman
c385a816a5 * Added an event and uint to MainAvatar for tracking whether the avatar is sitting on an object
* Added a NONE flag to AgentUpdateFlags

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@718 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-12 00:44:39 +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
bd632a0584 Applied JesseMalt's patch for requesting object properties (name, owner, permissions, etc)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@703 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-10 11:27:28 +00:00
John Hurliman
4881411127 * Helpers.StringToField() returns an empty byte array when given an empty string
* MediaUrl can be set with Objects.SetTextures() now
* TestClient no longer sets appearance at bot login, until the appearance code is more reliable
* Some ImportCommand improvements

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@699 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-09 14:39:17 +00:00
lancej
d109dcc1f8 * ImportCommand now creates prims.
* Added SetTextures, SetLight, SetFlexible functions to ObjectManager.
* Added XML defaults to ParticleSystem and TextureAnimation.
* Fixed an XML default for LLQuaternion.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@698 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-09 07:55:46 +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
7db025d58c XML export attacks for MASSIVE DAMAGE! Cleaned up the output further, PCode is no longer serialized, and linksets are now supported
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@666 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-01 00:28:53 +00:00
John Hurliman
ed6b88a017 libsecondlife:
* Added a SerializableDictionary class, implements a generic Dictionary<,> that can be serialized to xml
* Added all possible values for ObjectFlags to allow serializing
* Added a few initial xml serialization attributes to prim-related classes and structures
* Created ToXml() and FromXml() functions for PrimObject
TestClient:
* ExportCommand exports a single prim to an xml file
* quit and login commands now work when no avatars are logged in

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@662 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-30 03:35:36 +00:00
lonecoder
b81cb88b39 Added RegionsByHandle dictionary to GridManager
Added RegionHandle field and GridRegion property to PrimObject


git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@660 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-29 20:30:06 +00:00
John Hurliman
b025d0f1fb Merged the updates from the aditi branch in preparation for 1.13, and converted all the newline characters in mapgenerator to Environment.NewLine
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@656 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-29 14:44:23 +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
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
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
John Hurliman
7ea0e0e5c2 * Added GetXml() functions for several of the data types and most all of the prim-related classes
* Added a few FromXml() skeletons with FIXME notes
* Teleport example checks the current region name against "" instead of null (we need a callback here)
* Got rid of an SLProxy warning with an empty set of brackets

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@631 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-25 14:07:29 +00:00
John Hurliman
c947930192 * Added a CompressedFlags bitflag enum
* More debugging output in ObjectManager so we can nail down the remaining issues
* Prims, attached prims, avatars, and trees/grass (foliage) all have separate callbacks now. Prims and attached prims might be combined again since there are some design issues with attached linksets

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@620 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-22 13:21:21 +00:00
John Hurliman
12f256a1fe Moved the permissions enums to Helpers instead of ObjectManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@614 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-21 20:08:58 +00:00
John Hurliman
019d1397fa Typecast ObjectFlags.CreateSelected to a uint
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@578 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-13 10:38:56 +00:00
John Hurliman
d73699c7db * Unit tests for PrimObject byte and float conversion functions (most of them are broken right now)
* Removed the RezObject function which has been replaced by AddPrim

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@577 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-13 10:36:43 +00:00
lancej
321be8926c * Added SetPosition, SetRotation, AttachObject, DetachObjects functions to ObjectManager and made CopyBot use them.
* Fixed a bug involving TerseUpdateHandler and TextureEntry.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@574 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-13 08:52:41 +00:00
John Hurliman
ac7add070e Added an Animate() function, and less debugging noise in CopyBot
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@573 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-13 07:46:22 +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
4274589e15 Attempting to fix PathSkew and PathTaper float methods
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@563 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-11 22:54:43 +00:00
bushing
d1496430da switch() is your friend, yo
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@562 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-11 09:03:17 +00:00
lancej
0fcb2e3b72 * Added handling of UpdateFlags.
* Added functions AddPrim, LinkPrims, SetPermissions to ObjectManager.
* Implemented ToBytes for TextureEntry.


git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@550 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-10 09:50:54 +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
6df78bd4f8 No more PCode 143 noise
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@514 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-07 00:06:28 +00:00
John Hurliman
64527e500e Small typo in the last commit, gets rid of "Unknown PCode" messages for known PCodes
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@511 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-06 06:00:09 +00:00
John Hurliman
0ddf60e2f1 SecondLife.Objects.RequestAllObjects was added and defaults to false. Set this to true to download all objects from the sim. All of the object/avatar ObjectManager code is wrapped in callback checks, so the code will only run if you have the callbacks registered.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@510 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-06 05:42:10 +00:00
John Hurliman
f6c570b39c Sceneviewer:
* Enabled prim rendering (oops)
* Added linear taper support
* Slowed down the FPS counter, and disabled it by default. Press '2' to enable/disable it
libsecondlife:
* Improved the accuracy of PrimObject quantize/dequantize functions
* Switched PrimObject.Taper* to use PathScale* instead of the deprecated PathTaper*

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@506 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-05 09:18:14 +00:00
lancej
dbe2d814b5 * Added enums for Bumpiness, Shininess, and Mapping in Textures.cs
* Added decoding of prim text in UpdateHandler

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@501 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-04 07:42:53 +00:00
lancej
f5b3b9789f * Fixed order of two fields in CompressedUpdateHandler
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@494 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 19:28:07 +00:00
lancej
866195f5d5 * Minor fix to CompressedUpdateHandler that I forgot
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@490 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 09:45:18 +00:00
lancej
e8eb6ba469 * More updates to CompressedUpdateHandler
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@489 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 09:40:21 +00:00
lancej
0643565725 * Added decoding of SpecialCode&0x10 data in CompressedUpdateHandler.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@488 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 09:25:01 +00:00
lancej
5c970e3c7b * Added PCode for trees and grass.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@487 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 05:03:32 +00:00
lancej
9b7904a671 * Added PCode for Avatars.
* Changed UpdateHandler to decide object type by PCode instead of ObjectData length.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@486 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 04:46:04 +00:00
John Hurliman
50fe8cf480 Added a catch for PCode 255 to lower the debug spew
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@480 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 23:56:10 +00:00
John Hurliman
155683f1c1 * Added RezObject back in
* Removed avatar tracking from ObjectManager
* Added the PCode enum to PrimObject

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@476 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 22:42:36 +00:00
w7cook
7cfa95780c Revert change that should not have been checked in.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@471 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 18:38:38 +00:00
w7cook
8b98485d41 Fixed problem where only one image could be uploaded.
Also check for conversion errors, allow more types of 
files to be converted. Finally, use TryParse to avoid
exceptions in converting from strings to numbers.



git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@470 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 18:01:50 +00:00
John Hurliman
1463df36dd * Added addition overload to LLVector3
* Added multiplication overload to LLQuaternion
* Basic tree/foliage detection in ObjectManager
* Updated primexport to bring it up to speed with sceneviewer
* Implemented the logging callback in SecondLife, and added LogLevel.Debug

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@467 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 12:40:44 +00:00
John Hurliman
4e6dfab206 Removing the memory leak introduced in r461 (libsecondlife isn't responsible for tracking avatars)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@463 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-01 23:27:30 +00:00
lancej
350e26a9d4 * Added initial decoding of particle system data. Not yet fully functional.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@462 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-01 21:02:31 +00:00
Michael Cortez
d44fd1ee4e + AvatarManager & ObjectManager no longer assume each avatar seen is a new avatar, at least for ObjectUpdatePackets -- the other object packets still need to check for existing avatars before adding new ones.
+ Added back in KakaduWrap because the jasper wrapper doesn't support TGA/TIFF to J2C (yet) -- so it's needed for uploads

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@461 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-01 20:33:15 +00:00
lancej
e9e9a66437 * Added textures for the Avatar class
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@459 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-01 19:46:21 +00:00
lancej
9ed8e9c3ab * Added decoding of flexible and light data for prims.
* Added another unknown field in CompressedUpdateHandler.
* Reorganized some code in Textures.cs and CompressedUpdateHandler.  CompressedUpdateHandler now dumps data blocks that it fails to decode for easier debugging.


git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@457 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-01 08:31:26 +00:00
John Hurliman
ead5a71f34 PrimObject and TextureEntry require a reference to SecondLife now for logging purposes
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@424 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-29 08:50:05 +00:00