aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.API.cs12
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs2
-rw-r--r--OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs60
3 files changed, 67 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs
index 9a296f1..2733f0a 100644
--- a/OpenSim/Region/ClientStack/ClientView.API.cs
+++ b/OpenSim/Region/ClientStack/ClientView.API.cs
@@ -541,14 +541,14 @@ namespace OpenSim.Region.ClientStack
541 descend.ItemData[i].FolderID = item.parentFolderID; 541 descend.ItemData[i].FolderID = item.parentFolderID;
542 descend.ItemData[i].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); 542 descend.ItemData[i].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000");
543 descend.ItemData[i].GroupMask = 0; 543 descend.ItemData[i].GroupMask = 0;
544 descend.ItemData[i].InvType = (sbyte)item.type; 544 descend.ItemData[i].InvType = (sbyte)item.invType;
545 descend.ItemData[i].Name = enc.GetBytes(item.inventoryName+ "\0"); 545 descend.ItemData[i].Name = enc.GetBytes(item.inventoryName+ "\0");
546 descend.ItemData[i].NextOwnerMask = item.inventoryNextPermissions; 546 descend.ItemData[i].NextOwnerMask = item.inventoryNextPermissions;
547 descend.ItemData[i].OwnerID = item.avatarID; 547 descend.ItemData[i].OwnerID = item.avatarID;
548 descend.ItemData[i].OwnerMask = item.inventoryCurrentPermissions; 548 descend.ItemData[i].OwnerMask = item.inventoryCurrentPermissions;
549 descend.ItemData[i].SalePrice = 0; 549 descend.ItemData[i].SalePrice = 0;
550 descend.ItemData[i].SaleType = 0; 550 descend.ItemData[i].SaleType = 0;
551 descend.ItemData[i].Type = (sbyte)item.type; 551 descend.ItemData[i].Type = (sbyte)item.assetType;
552 descend.ItemData[i].CRC = Helpers.InventoryCRC(1000, 0, descend.ItemData[i].InvType, descend.ItemData[i].Type, descend.ItemData[i].AssetID, descend.ItemData[i].GroupID, 100,descend.ItemData[i].OwnerID, descend.ItemData[i].CreatorID, descend.ItemData[i].ItemID, descend.ItemData[i].FolderID, FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS); 552 descend.ItemData[i].CRC = Helpers.InventoryCRC(1000, 0, descend.ItemData[i].InvType, descend.ItemData[i].Type, descend.ItemData[i].AssetID, descend.ItemData[i].GroupID, 100,descend.ItemData[i].OwnerID, descend.ItemData[i].CreatorID, descend.ItemData[i].ItemID, descend.ItemData[i].FolderID, FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS);
553 553
554 i++; 554 i++;
@@ -577,14 +577,14 @@ namespace OpenSim.Region.ClientStack
577 inventoryReply.InventoryData[0].FolderID = item.parentFolderID; 577 inventoryReply.InventoryData[0].FolderID = item.parentFolderID;
578 inventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); 578 inventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000");
579 inventoryReply.InventoryData[0].GroupMask = 0; 579 inventoryReply.InventoryData[0].GroupMask = 0;
580 inventoryReply.InventoryData[0].InvType = (sbyte)item.type; 580 inventoryReply.InventoryData[0].InvType = (sbyte)item.invType;
581 inventoryReply.InventoryData[0].Name = enc.GetBytes(item.inventoryName + "\0"); 581 inventoryReply.InventoryData[0].Name = enc.GetBytes(item.inventoryName + "\0");
582 inventoryReply.InventoryData[0].NextOwnerMask = item.inventoryNextPermissions; 582 inventoryReply.InventoryData[0].NextOwnerMask = item.inventoryNextPermissions;
583 inventoryReply.InventoryData[0].OwnerID = item.avatarID; 583 inventoryReply.InventoryData[0].OwnerID = item.avatarID;
584 inventoryReply.InventoryData[0].OwnerMask = item.inventoryCurrentPermissions; 584 inventoryReply.InventoryData[0].OwnerMask = item.inventoryCurrentPermissions;
585 inventoryReply.InventoryData[0].SalePrice = 0; 585 inventoryReply.InventoryData[0].SalePrice = 0;
586 inventoryReply.InventoryData[0].SaleType = 0; 586 inventoryReply.InventoryData[0].SaleType = 0;
587 inventoryReply.InventoryData[0].Type = (sbyte)item.type; 587 inventoryReply.InventoryData[0].Type = (sbyte)item.assetType;
588 inventoryReply.InventoryData[0].CRC = Helpers.InventoryCRC(1000, 0, inventoryReply.InventoryData[0].InvType, inventoryReply.InventoryData[0].Type, inventoryReply.InventoryData[0].AssetID, inventoryReply.InventoryData[0].GroupID, 100, inventoryReply.InventoryData[0].OwnerID, inventoryReply.InventoryData[0].CreatorID, inventoryReply.InventoryData[0].ItemID, inventoryReply.InventoryData[0].FolderID, FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS); 588 inventoryReply.InventoryData[0].CRC = Helpers.InventoryCRC(1000, 0, inventoryReply.InventoryData[0].InvType, inventoryReply.InventoryData[0].Type, inventoryReply.InventoryData[0].AssetID, inventoryReply.InventoryData[0].GroupID, 100, inventoryReply.InventoryData[0].OwnerID, inventoryReply.InventoryData[0].CreatorID, inventoryReply.InventoryData[0].ItemID, inventoryReply.InventoryData[0].FolderID, FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS);
589 589
590 this.OutPacket(inventoryReply); 590 this.OutPacket(inventoryReply);
@@ -610,14 +610,14 @@ namespace OpenSim.Region.ClientStack
610 InventoryReply.InventoryData[0].FolderID = Item.parentFolderID; 610 InventoryReply.InventoryData[0].FolderID = Item.parentFolderID;
611 InventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); 611 InventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000");
612 InventoryReply.InventoryData[0].GroupMask = 0; 612 InventoryReply.InventoryData[0].GroupMask = 0;
613 InventoryReply.InventoryData[0].InvType =(sbyte) Item.type; 613 InventoryReply.InventoryData[0].InvType =(sbyte) Item.invType;
614 InventoryReply.InventoryData[0].Name = enc.GetBytes(Item.inventoryName + "\0"); 614 InventoryReply.InventoryData[0].Name = enc.GetBytes(Item.inventoryName + "\0");
615 InventoryReply.InventoryData[0].NextOwnerMask = Item.inventoryNextPermissions; 615 InventoryReply.InventoryData[0].NextOwnerMask = Item.inventoryNextPermissions;
616 InventoryReply.InventoryData[0].OwnerID = Item.avatarID; 616 InventoryReply.InventoryData[0].OwnerID = Item.avatarID;
617 InventoryReply.InventoryData[0].OwnerMask = Item.inventoryCurrentPermissions; 617 InventoryReply.InventoryData[0].OwnerMask = Item.inventoryCurrentPermissions;
618 InventoryReply.InventoryData[0].SalePrice = 100; 618 InventoryReply.InventoryData[0].SalePrice = 100;
619 InventoryReply.InventoryData[0].SaleType = 0; 619 InventoryReply.InventoryData[0].SaleType = 0;
620 InventoryReply.InventoryData[0].Type =(sbyte) Item.type; 620 InventoryReply.InventoryData[0].Type =(sbyte) Item.assetType;
621 InventoryReply.InventoryData[0].CRC = Helpers.InventoryCRC(1000, 0, InventoryReply.InventoryData[0].InvType, InventoryReply.InventoryData[0].Type, InventoryReply.InventoryData[0].AssetID, InventoryReply.InventoryData[0].GroupID, 100, InventoryReply.InventoryData[0].OwnerID, InventoryReply.InventoryData[0].CreatorID, InventoryReply.InventoryData[0].ItemID, InventoryReply.InventoryData[0].FolderID, FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS); 621 InventoryReply.InventoryData[0].CRC = Helpers.InventoryCRC(1000, 0, InventoryReply.InventoryData[0].InvType, InventoryReply.InventoryData[0].Type, InventoryReply.InventoryData[0].AssetID, InventoryReply.InventoryData[0].GroupID, 100, InventoryReply.InventoryData[0].OwnerID, InventoryReply.InventoryData[0].CreatorID, InventoryReply.InventoryData[0].ItemID, InventoryReply.InventoryData[0].FolderID, FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS);
622 622
623 OutPacket(InventoryReply); 623 OutPacket(InventoryReply);
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index 11c2030..70bd003 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -688,7 +688,7 @@ namespace OpenSim.Region.Environment.Scenes
688 item.assetID = asset.FullID; 688 item.assetID = asset.FullID;
689 item.inventoryDescription = description; 689 item.inventoryDescription = description;
690 item.inventoryName = name; 690 item.inventoryName = name;
691 item.type = invType; 691 item.assetType = invType;
692 item.parentFolderID = folderID; 692 item.parentFolderID = folderID;
693 item.inventoryCurrentPermissions = 2147483647; 693 item.inventoryCurrentPermissions = 2147483647;
694 item.inventoryNextPermissions = nextOwnerMask; 694 item.inventoryNextPermissions = nextOwnerMask;
diff --git a/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs b/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs
index 919ad6c..38bf9bf 100644
--- a/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs
+++ b/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs
@@ -246,6 +246,40 @@ namespace OpenSim.Region.GridInterfaces.Local
246 db.Set(store); 246 db.Set(store);
247 db.Commit(); 247 db.Commit();
248 248
249 Image = new AssetBase();
250 Image.FullID = new LLUUID("00000000-0000-1111-9999-000000000010");
251 Image.Name = "Female Body Texture";
252 this.LoadAsset(Image, true, "femalebody.jp2");
253 store = new AssetStorage();
254 store.Data = Image.Data;
255 store.Name = Image.Name;
256 store.UUID = Image.FullID;
257 db.Set(store);
258 db.Commit();
259
260 Image = new AssetBase();
261 Image.FullID = new LLUUID("00000000-0000-1111-9999-000000000011");
262 Image.Name = "Female Bottom Texture";
263 this.LoadAsset(Image, true, "femalebottom.jp2");
264 store = new AssetStorage();
265 store.Data = Image.Data;
266 store.Name = Image.Name;
267 store.UUID = Image.FullID;
268 db.Set(store);
269 db.Commit();
270
271 Image = new AssetBase();
272 Image.FullID = new LLUUID("00000000-0000-1111-9999-000000000012");
273 Image.Name = "Female Face Texture";
274 this.LoadAsset(Image, true, "femaleface.jp2");
275 store = new AssetStorage();
276 store.Data = Image.Data;
277 store.Name = Image.Name;
278 store.UUID = Image.FullID;
279 db.Set(store);
280 db.Commit();
281
282
249 /* 283 /*
250 Image = new AssetBase(); 284 Image = new AssetBase();
251 Image.FullID = new LLUUID("00000000-0000-0000-9999-000000000008"); 285 Image.FullID = new LLUUID("00000000-0000-0000-9999-000000000008");
@@ -286,6 +320,32 @@ namespace OpenSim.Region.GridInterfaces.Local
286 db.Commit(); 320 db.Commit();
287 321
288 Image = new AssetBase(); 322 Image = new AssetBase();
323 Image.FullID = new LLUUID("00000000-38f9-1111-024e-222222111110");
324 Image.Name = "Shirt";
325 Image.Type = 5;
326 Image.InvType = 18;
327 this.LoadAsset(Image, false, "newshirt.dat");
328 store = new AssetStorage();
329 store.Data = Image.Data;
330 store.Name = Image.Name;
331 store.UUID = Image.FullID;
332 db.Set(store);
333 db.Commit();
334
335 Image = new AssetBase();
336 Image.FullID = new LLUUID("00000000-38f9-1111-024e-222222111120");
337 Image.Name = "Shirt";
338 Image.Type = 5;
339 Image.InvType = 18;
340 this.LoadAsset(Image, false, "newpants.dat");
341 store = new AssetStorage();
342 store.Data = Image.Data;
343 store.Name = Image.Name;
344 store.UUID = Image.FullID;
345 db.Set(store);
346 db.Commit();
347
348 Image = new AssetBase();
289 Image.FullID = new LLUUID("00000000-0000-2222-3333-000000000001"); 349 Image.FullID = new LLUUID("00000000-0000-2222-3333-000000000001");
290 Image.Name = "WelcomeNote"; 350 Image.Name = "WelcomeNote";
291 Image.Type = 7; 351 Image.Type = 7;