Commit Graph

52 Commits

Author SHA1 Message Date
Michael Cortez
b686cebf3d Begining major rework of Asset/Inventory code. Doing a lot of refectoing. What's in here so far?
+ Inventory, Asset and Image managers are now directly apart of the SecondLife class
+ Root Inventory folder has been added to MainAvatar and is set upon login
+ Inventory is no longer downloaded all at once, you have to request the download of individual folders
+ Folder downloading is available Asynchronously, and returns a object that has a ManualResetEvent that you can use to optionally block with
+ The code for AssetManager has been reworked some in prep for allowing Wearables to be Saved/Loaded to/from disk, and for creating new wearables.


git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@742 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-19 23:13:04 +00:00
Michael Cortez
df1ac0424f Make AssetManager attempt to deal with potentially stale SecondLife instances
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@741 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-19 18:32:59 +00:00
Michael Cortez
de6be98eae Shhhh. Don't tell Qode, but I forgot to face it actually specify that Face ID it was that was having problems...
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@719 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-12 00:49:33 +00:00
Michael Cortez
6938c0335b It ain't broke, I didn't see it broke, it could never be broke. So ... it Ain't!!!
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@717 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-12 00:23:46 +00:00
Michael Cortez
8da8e4d314 Calculate Size vector based on VisualParam values
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@716 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-12 00:17:26 +00:00
Michael Cortez
ca6ef98efc + Added in the order for 3 more layers of the avatar textures as submitted by (Myrddin Ambrose)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@714 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-11 22:33:11 +00:00
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
Michael Cortez
7ab14b8ed0 AppearanceManager is closer to 95% working... Only thing missing is the order of some of the textures (faces 8-11, and 16, 17) and how to get the LLVector3 for Size.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@686 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-06 03:30:00 +00:00
Michael Cortez
11e0420d1c + Added code to handle asset info packets arriving *after* asset data has started to arrive.
+ Fixed a bug that was resulting in incorrect visualparam values.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@683 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-05 23:01:06 +00:00
Michael Cortez
962113a0ea Simplify access to the AssetManager so you don't have to use InventoryManager.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@679 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-05 00:21:45 +00:00
Michael Cortez
0c011fc846 + New AppearanceManager to allow you to have your bot's set their appearance based on what is currently set in the data server (*think outfit saved and left "wearing"*)
+ Added code to IManager (IA_InventoryManager) that uses the AppearanceManager, simply log in with Imanager and use the command "getlook" to have your avatar set it's appearance based on what's stored on the data server.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@678 52acb1d6-8a22-11de-b505-999d5b087335
2006-12-05 00:07:30 +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
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
otakup0pe
dcdbb6e256 submitted patch from flexi. was experiencing some kind of packet flood on uploads. see http://cl1p.net/kthxcrash/
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@644 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-28 01:47:24 +00:00
qode
3b3a552317 *added BodyPart -> Byte[] functionality
*added a (byte[]) constructor to the BodyPart class 

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@593 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-18 16:00:31 +00:00
bushing
cd729bade8 oops
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@590 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-17 02:58:15 +00:00
Michael Cortez
63ca911da5 Body params wasn't correctly detecting some parameters because they didn't specify labels
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@555 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-10 19:08:35 +00:00
Michael Cortez
06e8af7691 Making note that the AssetID only version of the TransferRequest packet does not work for Notecards
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@549 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-10 00:19:51 +00:00
Michael Cortez
450fa36c2c In BodyShapeParams
+ Fixed IsValid
+ Added a function to validate a Dictionary<uint,float> representing a bodyshape
+ Added a function to do a pretty print ToString() for a Dictionary bodyshape

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@548 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-10 00:10:48 +00:00
Michael Cortez
8c4c4d6256 Code for generating the _BodyShapeParams_.cs file, which contains information about body shape parameters mapping IDs to Labels, Names, Min/Max values, etc
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@547 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-09 23:47:47 +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
Michael Cortez
b36d92a585 Body part assets are retrieved using a different set of parameters and a different asset source. Started work on adding Body Part asset downloads.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@535 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-08 19:00:01 +00:00
w7cook
9f7cd3bc8c Add option to output packet headers.... but if you turn this option off, upload fails. Must be some kind of race condition.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@534 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-08 14:42:34 +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
Michael Cortez
2e763682e0 Image tool now supports downloading a list of textures provided in a text file, one UUID per line.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@515 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-07 01:17:10 +00:00
w7cook
4d66315cdd Put resend delay back to 2 seconds (I had changed it to 5)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@509 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-05 21:17:25 +00:00
w7cook
da7bcf370f Refactored image upload into a class. Any xfer packet
can now be resent. The upload request is not resent yet.
(I also added the "obj" directories to the SNV-ignore list)



git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@508 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-05 21:05:25 +00:00
Michael Cortez
3448e9842a Added asset upload packet time-outs and resending code, also started refactoring AssetManager some.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@499 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-04 00:43:30 +00:00
Michael Cortez
837750757c Seperated and split TransferRequest into two small classes. Additional functions from AssetManager will likely be refactored into these.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@498 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-04 00:42:36 +00:00
Michael Cortez
eeec4c24f8 + RequestImage now blocks by using signals via ManualResetEvent.WaitOne()
+ Added ImageManager to SecondLife / is only initialized on first use
+ Updated async callbacks for ImageRequestAsync to include Status Message
+ Updated GroupManager to use ImageManager via Client.Images.*

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@496 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 20:42:37 +00:00
Michael Cortez
0eb4ab0b7f + Fixed a race condition where the second packet of an image download would come before the initial packet (where the initial packet caused the image buffer to be initialized)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@482 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 01:02:08 +00:00
qode
ca7ebd744f Removed FastImageApp and FastImageTool due to redundancy after changes to the ImageTool. Use ImageTool for now on.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@481 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-03 00:30:25 +00:00
Michael Cortez
6c0b335f85 Trying to get rid of while(){tick tick tick} by using more intelligent threading classes
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@474 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 22:28:46 +00:00
w7cook
579dc0d281 Use a ManualResetEvent to wait for upload to be complete, rather than using the busy wait and Tick() functions.
Seems faster, and uses much less CPU.



git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@473 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 20:29:33 +00:00
Michael Cortez
f55d44f8a9 + Fixed Image Upload
+ Made Rate for image compression optional and exposed via cmdline in ImageTool

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@472 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 20:05:03 +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
Michael Cortez
d7d61c7c22 Speed up the disk cache option, by having an in-memory cache of what files are available on disk. This may eventually get rolled into another "Mixed" cache type, rather then being a default for the disk cache.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@468 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-02 17:58:19 +00:00
Michael Cortez
839c7cfd7d + IA_TestAsyncImage tests the async download code of ImageManager, by downloading all textures encountered when listening to OnNewPrim
+ Removed KakaduWrap, no longer needed now that ImageTool uses Jasper

+ Exposed an accessor for Textures in TextureEntry

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@454 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-01 00:14:43 +00:00
Michael Cortez
6730dbd208 + Added Async download support to AssetSystem/ImageManager.cs
+ Started converting IA_ImageTool/ImageTool.cs to use the JasperLibrary, but was getting errors

TODO: Add an Async download option to the ImageTool download example application

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@448 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-31 20:08:02 +00:00
Michael Cortez
a77d99c568 + Removed debug output
+ Changed build target directory

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@443 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-30 21:47:24 +00:00
qode
acc4c30242 *Took out the experimental branch (wasn't really a need for it)
*Moved FastImageTool to /AssetSystem/ in the trunk.
*Moved FastImageApp to /examples/FastImageApp in the trunk

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@416 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-28 22:19:49 +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
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
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
bushing
2c9080561c It's Party Time\! (r213:HEAD)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@279 52acb1d6-8a22-11de-b505-999d5b087335
2006-10-14 05:13:39 +00:00
Michael Cortez
81d6670494 + Fixed a few issues with the Assets and Inventory systems
+ Renamed my utils class, and added unix time to it
+ Fixed the On_Chat event, it was assuming an old packet format

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@222 52acb1d6-8a22-11de-b505-999d5b087335
2006-09-26 20:10:37 +00:00
Michael Cortez
cf448c3e29 Fixing up Asset/Inventory Uploads so they work again.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@218 52acb1d6-8a22-11de-b505-999d5b087335
2006-09-25 21:33:50 +00:00
Michael Cortez
1dcc08735c Centralizing the Asset/Inventory Systems' packets to the main libsecondlife.Packet name space.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@160 52acb1d6-8a22-11de-b505-999d5b087335
2006-08-14 20:23:21 +00:00