diff options
Diffstat (limited to '')
40 files changed, 234 insertions, 293 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 1c924c0..6ffb8ec 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -206,7 +206,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
206 | throw new Exception("wrong password"); | 206 | throw new Exception("wrong password"); |
207 | 207 | ||
208 | string file = (string)requestData["filename"]; | 208 | string file = (string)requestData["filename"]; |
209 | UUID regionID = (string) requestData["regionid"]; | 209 | UUID regionID = (UUID)(string) requestData["regionid"]; |
210 | m_log.InfoFormat("[RADMIN]: Terrain Loading: {0}", file); | 210 | m_log.InfoFormat("[RADMIN]: Terrain Loading: {0}", file); |
211 | 211 | ||
212 | responseData["accepted"] = "true"; | 212 | responseData["accepted"] = "true"; |
@@ -389,7 +389,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
389 | if (requestData.ContainsKey("region_id") && | 389 | if (requestData.ContainsKey("region_id") && |
390 | !String.IsNullOrEmpty((string)requestData["region_id"])) | 390 | !String.IsNullOrEmpty((string)requestData["region_id"])) |
391 | { | 391 | { |
392 | regionID = (string)requestData["region_id"]; | 392 | regionID = (UUID)(string)requestData["region_id"]; |
393 | if (m_app.SceneManager.TryGetScene(regionID, out scene)) | 393 | if (m_app.SceneManager.TryGetScene(regionID, out scene)) |
394 | throw new Exception(String.Format("region UUID already in use by region {0}, UUID {1}, <{2},{3}>", | 394 | throw new Exception(String.Format("region UUID already in use by region {0}, UUID {1}, <{2},{3}>", |
395 | scene.RegionInfo.RegionName, scene.RegionInfo.RegionID, | 395 | scene.RegionInfo.RegionName, scene.RegionInfo.RegionID, |
@@ -810,7 +810,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
810 | Scene scene = null; | 810 | Scene scene = null; |
811 | if (requestData.Contains("region_uuid")) | 811 | if (requestData.Contains("region_uuid")) |
812 | { | 812 | { |
813 | UUID region_uuid = (string)requestData["region_uuid"]; | 813 | UUID region_uuid = (UUID)(string)requestData["region_uuid"]; |
814 | if (!m_app.SceneManager.TryGetScene(region_uuid, out scene)) | 814 | if (!m_app.SceneManager.TryGetScene(region_uuid, out scene)) |
815 | throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString())); | 815 | throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString())); |
816 | } | 816 | } |
@@ -870,7 +870,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
870 | string filename = (string)requestData["filename"]; | 870 | string filename = (string)requestData["filename"]; |
871 | if (requestData.Contains("region_uuid")) | 871 | if (requestData.Contains("region_uuid")) |
872 | { | 872 | { |
873 | UUID region_uuid = (string)requestData["region_uuid"]; | 873 | UUID region_uuid = (UUID)(string)requestData["region_uuid"]; |
874 | if (!m_app.SceneManager.TrySetCurrentScene(region_uuid)) | 874 | if (!m_app.SceneManager.TrySetCurrentScene(region_uuid)) |
875 | throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString())); | 875 | throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString())); |
876 | m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString()); | 876 | m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString()); |
@@ -951,7 +951,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
951 | string filename = (string)requestData["filename"]; | 951 | string filename = (string)requestData["filename"]; |
952 | if (requestData.Contains("region_uuid")) | 952 | if (requestData.Contains("region_uuid")) |
953 | { | 953 | { |
954 | UUID region_uuid = (string)requestData["region_uuid"]; | 954 | UUID region_uuid = (UUID)(string)requestData["region_uuid"]; |
955 | if (!m_app.SceneManager.TrySetCurrentScene(region_uuid)) | 955 | if (!m_app.SceneManager.TrySetCurrentScene(region_uuid)) |
956 | throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString())); | 956 | throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString())); |
957 | m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString()); | 957 | m_log.InfoFormat("[RADMIN] Switched to region {0}", region_uuid.ToString()); |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs index a6d5b01..11a749c 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs | |||
@@ -494,7 +494,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
494 | } | 494 | } |
495 | if (xml.MoveToAttribute("Owner")) | 495 | if (xml.MoveToAttribute("Owner")) |
496 | { | 496 | { |
497 | rdata.userAppearance.Owner = xml.Value; | 497 | rdata.userAppearance.Owner = (UUID)xml.Value; |
498 | indata = true; | 498 | indata = true; |
499 | } | 499 | } |
500 | if (xml.MoveToAttribute("Serial")) | 500 | if (xml.MoveToAttribute("Serial")) |
@@ -506,156 +506,156 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
506 | case "Body" : | 506 | case "Body" : |
507 | if (xml.MoveToAttribute("Item")) | 507 | if (xml.MoveToAttribute("Item")) |
508 | { | 508 | { |
509 | rdata.userAppearance.BodyItem = xml.Value; | 509 | rdata.userAppearance.BodyItem = (UUID)xml.Value; |
510 | indata = true; | 510 | indata = true; |
511 | } | 511 | } |
512 | if (xml.MoveToAttribute("Asset")) | 512 | if (xml.MoveToAttribute("Asset")) |
513 | { | 513 | { |
514 | rdata.userAppearance.BodyAsset = xml.Value; | 514 | rdata.userAppearance.BodyAsset = (UUID)xml.Value; |
515 | indata = true; | 515 | indata = true; |
516 | } | 516 | } |
517 | break; | 517 | break; |
518 | case "Skin" : | 518 | case "Skin" : |
519 | if (xml.MoveToAttribute("Item")) | 519 | if (xml.MoveToAttribute("Item")) |
520 | { | 520 | { |
521 | rdata.userAppearance.SkinItem = xml.Value; | 521 | rdata.userAppearance.SkinItem = (UUID)xml.Value; |
522 | indata = true; | 522 | indata = true; |
523 | } | 523 | } |
524 | if (xml.MoveToAttribute("Asset")) | 524 | if (xml.MoveToAttribute("Asset")) |
525 | { | 525 | { |
526 | rdata.userAppearance.SkinAsset = xml.Value; | 526 | rdata.userAppearance.SkinAsset = (UUID)xml.Value; |
527 | indata = true; | 527 | indata = true; |
528 | } | 528 | } |
529 | break; | 529 | break; |
530 | case "Hair" : | 530 | case "Hair" : |
531 | if (xml.MoveToAttribute("Item")) | 531 | if (xml.MoveToAttribute("Item")) |
532 | { | 532 | { |
533 | rdata.userAppearance.HairItem = xml.Value; | 533 | rdata.userAppearance.HairItem = (UUID)xml.Value; |
534 | indata = true; | 534 | indata = true; |
535 | } | 535 | } |
536 | if (xml.MoveToAttribute("Asset")) | 536 | if (xml.MoveToAttribute("Asset")) |
537 | { | 537 | { |
538 | rdata.userAppearance.HairAsset = xml.Value; | 538 | rdata.userAppearance.HairAsset = (UUID)xml.Value; |
539 | indata = true; | 539 | indata = true; |
540 | } | 540 | } |
541 | break; | 541 | break; |
542 | case "Eyes" : | 542 | case "Eyes" : |
543 | if (xml.MoveToAttribute("Item")) | 543 | if (xml.MoveToAttribute("Item")) |
544 | { | 544 | { |
545 | rdata.userAppearance.EyesItem = xml.Value; | 545 | rdata.userAppearance.EyesItem = (UUID)xml.Value; |
546 | indata = true; | 546 | indata = true; |
547 | } | 547 | } |
548 | if (xml.MoveToAttribute("Asset")) | 548 | if (xml.MoveToAttribute("Asset")) |
549 | { | 549 | { |
550 | rdata.userAppearance.EyesAsset = xml.Value; | 550 | rdata.userAppearance.EyesAsset = (UUID)xml.Value; |
551 | indata = true; | 551 | indata = true; |
552 | } | 552 | } |
553 | break; | 553 | break; |
554 | case "Shirt" : | 554 | case "Shirt" : |
555 | if (xml.MoveToAttribute("Item")) | 555 | if (xml.MoveToAttribute("Item")) |
556 | { | 556 | { |
557 | rdata.userAppearance.ShirtItem = xml.Value; | 557 | rdata.userAppearance.ShirtItem = (UUID)xml.Value; |
558 | indata = true; | 558 | indata = true; |
559 | } | 559 | } |
560 | if (xml.MoveToAttribute("Asset")) | 560 | if (xml.MoveToAttribute("Asset")) |
561 | { | 561 | { |
562 | rdata.userAppearance.ShirtAsset = xml.Value; | 562 | rdata.userAppearance.ShirtAsset = (UUID)xml.Value; |
563 | indata = true; | 563 | indata = true; |
564 | } | 564 | } |
565 | break; | 565 | break; |
566 | case "Pants" : | 566 | case "Pants" : |
567 | if (xml.MoveToAttribute("Item")) | 567 | if (xml.MoveToAttribute("Item")) |
568 | { | 568 | { |
569 | rdata.userAppearance.PantsItem = xml.Value; | 569 | rdata.userAppearance.PantsItem = (UUID)xml.Value; |
570 | indata = true; | 570 | indata = true; |
571 | } | 571 | } |
572 | if (xml.MoveToAttribute("Asset")) | 572 | if (xml.MoveToAttribute("Asset")) |
573 | { | 573 | { |
574 | rdata.userAppearance.PantsAsset = xml.Value; | 574 | rdata.userAppearance.PantsAsset = (UUID)xml.Value; |
575 | indata = true; | 575 | indata = true; |
576 | } | 576 | } |
577 | break; | 577 | break; |
578 | case "Shoes" : | 578 | case "Shoes" : |
579 | if (xml.MoveToAttribute("Item")) | 579 | if (xml.MoveToAttribute("Item")) |
580 | { | 580 | { |
581 | rdata.userAppearance.ShoesItem = xml.Value; | 581 | rdata.userAppearance.ShoesItem = (UUID)xml.Value; |
582 | indata = true; | 582 | indata = true; |
583 | } | 583 | } |
584 | if (xml.MoveToAttribute("Asset")) | 584 | if (xml.MoveToAttribute("Asset")) |
585 | { | 585 | { |
586 | rdata.userAppearance.ShoesAsset = xml.Value; | 586 | rdata.userAppearance.ShoesAsset = (UUID)xml.Value; |
587 | indata = true; | 587 | indata = true; |
588 | } | 588 | } |
589 | break; | 589 | break; |
590 | case "Socks" : | 590 | case "Socks" : |
591 | if (xml.MoveToAttribute("Item")) | 591 | if (xml.MoveToAttribute("Item")) |
592 | { | 592 | { |
593 | rdata.userAppearance.SocksItem = xml.Value; | 593 | rdata.userAppearance.SocksItem = (UUID)xml.Value; |
594 | indata = true; | 594 | indata = true; |
595 | } | 595 | } |
596 | if (xml.MoveToAttribute("Asset")) | 596 | if (xml.MoveToAttribute("Asset")) |
597 | { | 597 | { |
598 | rdata.userAppearance.SocksAsset = xml.Value; | 598 | rdata.userAppearance.SocksAsset = (UUID)xml.Value; |
599 | indata = true; | 599 | indata = true; |
600 | } | 600 | } |
601 | break; | 601 | break; |
602 | case "Jacket" : | 602 | case "Jacket" : |
603 | if (xml.MoveToAttribute("Item")) | 603 | if (xml.MoveToAttribute("Item")) |
604 | { | 604 | { |
605 | rdata.userAppearance.JacketItem = xml.Value; | 605 | rdata.userAppearance.JacketItem = (UUID)xml.Value; |
606 | indata = true; | 606 | indata = true; |
607 | } | 607 | } |
608 | if (xml.MoveToAttribute("Asset")) | 608 | if (xml.MoveToAttribute("Asset")) |
609 | { | 609 | { |
610 | rdata.userAppearance.JacketAsset = xml.Value; | 610 | rdata.userAppearance.JacketAsset = (UUID)xml.Value; |
611 | indata = true; | 611 | indata = true; |
612 | } | 612 | } |
613 | break; | 613 | break; |
614 | case "Gloves" : | 614 | case "Gloves" : |
615 | if (xml.MoveToAttribute("Item")) | 615 | if (xml.MoveToAttribute("Item")) |
616 | { | 616 | { |
617 | rdata.userAppearance.GlovesItem = xml.Value; | 617 | rdata.userAppearance.GlovesItem = (UUID)xml.Value; |
618 | indata = true; | 618 | indata = true; |
619 | } | 619 | } |
620 | if (xml.MoveToAttribute("Asset")) | 620 | if (xml.MoveToAttribute("Asset")) |
621 | { | 621 | { |
622 | rdata.userAppearance.GlovesAsset = xml.Value; | 622 | rdata.userAppearance.GlovesAsset = (UUID)xml.Value; |
623 | indata = true; | 623 | indata = true; |
624 | } | 624 | } |
625 | break; | 625 | break; |
626 | case "UnderShirt" : | 626 | case "UnderShirt" : |
627 | if (xml.MoveToAttribute("Item")) | 627 | if (xml.MoveToAttribute("Item")) |
628 | { | 628 | { |
629 | rdata.userAppearance.UnderShirtItem = xml.Value; | 629 | rdata.userAppearance.UnderShirtItem = (UUID)xml.Value; |
630 | indata = true; | 630 | indata = true; |
631 | } | 631 | } |
632 | if (xml.MoveToAttribute("Asset")) | 632 | if (xml.MoveToAttribute("Asset")) |
633 | { | 633 | { |
634 | rdata.userAppearance.UnderShirtAsset = xml.Value; | 634 | rdata.userAppearance.UnderShirtAsset = (UUID)xml.Value; |
635 | indata = true; | 635 | indata = true; |
636 | } | 636 | } |
637 | break; | 637 | break; |
638 | case "UnderPants" : | 638 | case "UnderPants" : |
639 | if (xml.MoveToAttribute("Item")) | 639 | if (xml.MoveToAttribute("Item")) |
640 | { | 640 | { |
641 | rdata.userAppearance.UnderPantsItem = xml.Value; | 641 | rdata.userAppearance.UnderPantsItem = (UUID)xml.Value; |
642 | indata = true; | 642 | indata = true; |
643 | } | 643 | } |
644 | if (xml.MoveToAttribute("Asset")) | 644 | if (xml.MoveToAttribute("Asset")) |
645 | { | 645 | { |
646 | rdata.userAppearance.UnderPantsAsset = xml.Value; | 646 | rdata.userAppearance.UnderPantsAsset = (UUID)xml.Value; |
647 | indata = true; | 647 | indata = true; |
648 | } | 648 | } |
649 | break; | 649 | break; |
650 | case "Skirt" : | 650 | case "Skirt" : |
651 | if (xml.MoveToAttribute("Item")) | 651 | if (xml.MoveToAttribute("Item")) |
652 | { | 652 | { |
653 | rdata.userAppearance.SkirtItem = xml.Value; | 653 | rdata.userAppearance.SkirtItem = (UUID)xml.Value; |
654 | indata = true; | 654 | indata = true; |
655 | } | 655 | } |
656 | if (xml.MoveToAttribute("Asset")) | 656 | if (xml.MoveToAttribute("Asset")) |
657 | { | 657 | { |
658 | rdata.userAppearance.SkirtAsset = xml.Value; | 658 | rdata.userAppearance.SkirtAsset = (UUID)xml.Value; |
659 | indata = true; | 659 | indata = true; |
660 | } | 660 | } |
661 | break; | 661 | break; |
diff --git a/OpenSim/Data/MSSQL/MSSQLRegionData.cs b/OpenSim/Data/MSSQL/MSSQLRegionData.cs index ae94252..65f301f 100644 --- a/OpenSim/Data/MSSQL/MSSQLRegionData.cs +++ b/OpenSim/Data/MSSQL/MSSQLRegionData.cs | |||
@@ -850,7 +850,7 @@ VALUES | |||
850 | 850 | ||
851 | newData.Name = (String)row["Name"]; | 851 | newData.Name = (String)row["Name"]; |
852 | newData.Description = (String)row["Description"]; | 852 | newData.Description = (String)row["Description"]; |
853 | newData.OwnerID = (String)row["OwnerUUID"]; | 853 | newData.OwnerID = (UUID)(String)row["OwnerUUID"]; |
854 | newData.IsGroupOwned = Convert.ToBoolean(row["IsGroupOwned"]); | 854 | newData.IsGroupOwned = Convert.ToBoolean(row["IsGroupOwned"]); |
855 | newData.Area = Convert.ToInt32(row["Area"]); | 855 | newData.Area = Convert.ToInt32(row["Area"]); |
856 | newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented | 856 | newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented |
@@ -910,7 +910,7 @@ VALUES | |||
910 | { | 910 | { |
911 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); | 911 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); |
912 | entry.AgentID = new UUID((string)row["AccessUUID"]); | 912 | entry.AgentID = new UUID((string)row["AccessUUID"]); |
913 | entry.Flags = (ParcelManager.AccessList)Convert.ToInt32(row["Flags"]); | 913 | entry.Flags = (AccessList)Convert.ToInt32(row["Flags"]); |
914 | entry.Time = new DateTime(); | 914 | entry.Time = new DateTime(); |
915 | return entry; | 915 | return entry; |
916 | } | 916 | } |
diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index 6352cce..cbb7368 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs | |||
@@ -1052,7 +1052,7 @@ ELSE | |||
1052 | retval.LogoutTime = Convert.ToInt32(reader["logoutTime"].ToString()); | 1052 | retval.LogoutTime = Convert.ToInt32(reader["logoutTime"].ToString()); |
1053 | 1053 | ||
1054 | // Current position | 1054 | // Current position |
1055 | retval.Region = (string)reader["currentRegion"]; | 1055 | retval.Region = (UUID)(string)reader["currentRegion"]; |
1056 | retval.Handle = Convert.ToUInt64(reader["currentHandle"].ToString()); | 1056 | retval.Handle = Convert.ToUInt64(reader["currentHandle"].ToString()); |
1057 | Vector3 tmp_v; | 1057 | Vector3 tmp_v; |
1058 | Vector3.TryParse((string)reader["currentPos"], out tmp_v); | 1058 | Vector3.TryParse((string)reader["currentPos"], out tmp_v); |
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs index c94e6a3..e6a9686 100644 --- a/OpenSim/Data/MySQL/MySQLRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLRegionData.cs | |||
@@ -1329,10 +1329,10 @@ namespace OpenSim.Data.MySQL | |||
1329 | 1329 | ||
1330 | newData.Name = (String) row["Name"]; | 1330 | newData.Name = (String) row["Name"]; |
1331 | newData.Description = (String) row["Description"]; | 1331 | newData.Description = (String) row["Description"]; |
1332 | newData.OwnerID = (String) row["OwnerUUID"]; | 1332 | newData.OwnerID = (UUID)(String)row["OwnerUUID"]; |
1333 | newData.IsGroupOwned = Convert.ToBoolean(row["IsGroupOwned"]); | 1333 | newData.IsGroupOwned = Convert.ToBoolean(row["IsGroupOwned"]); |
1334 | newData.Area = Convert.ToInt32(row["Area"]); | 1334 | newData.Area = Convert.ToInt32(row["Area"]); |
1335 | newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented | 1335 | newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unimplemented |
1336 | newData.Category = (Parcel.ParcelCategory) Convert.ToInt32(row["Category"]); | 1336 | newData.Category = (Parcel.ParcelCategory) Convert.ToInt32(row["Category"]); |
1337 | //Enum libsecondlife.Parcel.ParcelCategory | 1337 | //Enum libsecondlife.Parcel.ParcelCategory |
1338 | newData.ClaimDate = Convert.ToInt32(row["ClaimDate"]); | 1338 | newData.ClaimDate = Convert.ToInt32(row["ClaimDate"]); |
@@ -1387,7 +1387,7 @@ namespace OpenSim.Data.MySQL | |||
1387 | { | 1387 | { |
1388 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); | 1388 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); |
1389 | entry.AgentID = new UUID((string) row["AccessUUID"]); | 1389 | entry.AgentID = new UUID((string) row["AccessUUID"]); |
1390 | entry.Flags = (ParcelManager.AccessList) Convert.ToInt32(row["Flags"]); | 1390 | entry.Flags = (AccessList) Convert.ToInt32(row["Flags"]); |
1391 | entry.Time = new DateTime(); | 1391 | entry.Time = new DateTime(); |
1392 | return entry; | 1392 | return entry; |
1393 | } | 1393 | } |
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs index b9fda04..fe1edde 100644 --- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs | |||
@@ -422,7 +422,7 @@ namespace OpenSim.Data.SQLite | |||
422 | public List<InventoryFolderBase> getInventoryFolders(UUID parentID) | 422 | public List<InventoryFolderBase> getInventoryFolders(UUID parentID) |
423 | { | 423 | { |
424 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); | 424 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); |
425 | getInventoryFolders(ref folders, Util.ToRawUuidString(parentID)); | 425 | getInventoryFolders(ref folders, parentID); |
426 | return folders; | 426 | return folders; |
427 | } | 427 | } |
428 | 428 | ||
@@ -623,10 +623,10 @@ namespace OpenSim.Data.SQLite | |||
623 | /// <todo>this is horribly inefficient, but I don't want to ruin the overall structure of this implementation</todo> | 623 | /// <todo>this is horribly inefficient, but I don't want to ruin the overall structure of this implementation</todo> |
624 | private void deleteItemsInFolder(UUID folderId) | 624 | private void deleteItemsInFolder(UUID folderId) |
625 | { | 625 | { |
626 | List<InventoryItemBase> items = getInventoryInFolder(Util.ToRawUuidString(folderId)); | 626 | List<InventoryItemBase> items = getInventoryInFolder(folderId); |
627 | 627 | ||
628 | foreach (InventoryItemBase i in items) | 628 | foreach (InventoryItemBase i in items) |
629 | deleteInventoryItem(Util.ToRawUuidString(i.ID)); | 629 | deleteInventoryItem(i.ID); |
630 | } | 630 | } |
631 | 631 | ||
632 | /// <summary> | 632 | /// <summary> |
@@ -667,7 +667,7 @@ namespace OpenSim.Data.SQLite | |||
667 | { | 667 | { |
668 | lock (ds) | 668 | lock (ds) |
669 | { | 669 | { |
670 | List<InventoryFolderBase> subFolders = getFolderHierarchy(Util.ToRawUuidString(folderID)); | 670 | List<InventoryFolderBase> subFolders = getFolderHierarchy(folderID); |
671 | 671 | ||
672 | DataTable inventoryFolderTable = ds.Tables["inventoryfolders"]; | 672 | DataTable inventoryFolderTable = ds.Tables["inventoryfolders"]; |
673 | DataRow inventoryRow; | 673 | DataRow inventoryRow; |
@@ -678,7 +678,7 @@ namespace OpenSim.Data.SQLite | |||
678 | inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(f.ID)); | 678 | inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(f.ID)); |
679 | if (inventoryRow != null) | 679 | if (inventoryRow != null) |
680 | { | 680 | { |
681 | deleteItemsInFolder(Util.ToRawUuidString(f.ID)); | 681 | deleteItemsInFolder(f.ID); |
682 | inventoryRow.Delete(); | 682 | inventoryRow.Delete(); |
683 | } | 683 | } |
684 | } | 684 | } |
@@ -687,7 +687,7 @@ namespace OpenSim.Data.SQLite | |||
687 | inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(folderID)); | 687 | inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(folderID)); |
688 | if (inventoryRow != null) | 688 | if (inventoryRow != null) |
689 | { | 689 | { |
690 | deleteItemsInFolder(Util.ToRawUuidString(folderID)); | 690 | deleteItemsInFolder(folderID); |
691 | inventoryRow.Delete(); | 691 | inventoryRow.Delete(); |
692 | } | 692 | } |
693 | 693 | ||
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 7eeefbd..157a4b8 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs | |||
@@ -258,7 +258,7 @@ namespace OpenSim.Data.SQLite | |||
258 | { | 258 | { |
259 | DataTable regionsettings = ds.Tables["regionsettings"]; | 259 | DataTable regionsettings = ds.Tables["regionsettings"]; |
260 | 260 | ||
261 | DataRow settingsRow = regionsettings.Rows.Find(rs.RegionUUID.ToString()); | 261 | DataRow settingsRow = regionsettings.Rows.Find(Util.ToRawUuidString(rs.RegionUUID)); |
262 | if (settingsRow == null) | 262 | if (settingsRow == null) |
263 | { | 263 | { |
264 | settingsRow = regionsettings.NewRow(); | 264 | settingsRow = regionsettings.NewRow(); |
@@ -439,7 +439,7 @@ namespace OpenSim.Data.SQLite | |||
439 | group.AddPart(prim); | 439 | group.AddPart(prim); |
440 | group.RootPart = prim; | 440 | group.RootPart = prim; |
441 | 441 | ||
442 | createdObjects.Add(Util.ToRawUuidString(group.UUID), group); | 442 | createdObjects.Add(group.UUID, group); |
443 | retvals.Add(group); | 443 | retvals.Add(group); |
444 | } | 444 | } |
445 | else | 445 | else |
@@ -1268,7 +1268,7 @@ namespace OpenSim.Data.SQLite | |||
1268 | 1268 | ||
1269 | newData.Name = (String) row["Name"]; | 1269 | newData.Name = (String) row["Name"]; |
1270 | newData.Description = (String) row["Desc"]; | 1270 | newData.Description = (String) row["Desc"]; |
1271 | newData.OwnerID = (String) row["OwnerUUID"]; | 1271 | newData.OwnerID = (UUID)(String) row["OwnerUUID"]; |
1272 | newData.IsGroupOwned = (Boolean) row["IsGroupOwned"]; | 1272 | newData.IsGroupOwned = (Boolean) row["IsGroupOwned"]; |
1273 | newData.Area = Convert.ToInt32(row["Area"]); | 1273 | newData.Area = Convert.ToInt32(row["Area"]); |
1274 | newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented | 1274 | newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented |
@@ -1288,7 +1288,7 @@ namespace OpenSim.Data.SQLite | |||
1288 | newData.MusicURL = (String) row["MusicURL"]; | 1288 | newData.MusicURL = (String) row["MusicURL"]; |
1289 | newData.PassHours = Convert.ToSingle(row["PassHours"]); | 1289 | newData.PassHours = Convert.ToSingle(row["PassHours"]); |
1290 | newData.PassPrice = Convert.ToInt32(row["PassPrice"]); | 1290 | newData.PassPrice = Convert.ToInt32(row["PassPrice"]); |
1291 | newData.SnapshotID = (String) row["SnapshotUUID"]; | 1291 | newData.SnapshotID = (UUID)(String) row["SnapshotUUID"]; |
1292 | try | 1292 | try |
1293 | { | 1293 | { |
1294 | 1294 | ||
@@ -1365,7 +1365,7 @@ namespace OpenSim.Data.SQLite | |||
1365 | { | 1365 | { |
1366 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); | 1366 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); |
1367 | entry.AgentID = new UUID((string) row["AccessUUID"]); | 1367 | entry.AgentID = new UUID((string) row["AccessUUID"]); |
1368 | entry.Flags = (ParcelManager.AccessList) row["Flags"]; | 1368 | entry.Flags = (AccessList) row["Flags"]; |
1369 | entry.Time = new DateTime(); | 1369 | entry.Time = new DateTime(); |
1370 | return entry; | 1370 | return entry; |
1371 | } | 1371 | } |
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 32a6c7d..1a442ea 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs | |||
@@ -523,7 +523,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
523 | /// <param name="transferRequest"></param> | 523 | /// <param name="transferRequest"></param> |
524 | public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest) | 524 | public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest) |
525 | { | 525 | { |
526 | UUID requestID = null; | 526 | UUID requestID = UUID.Zero; |
527 | byte source = 2; | 527 | byte source = 2; |
528 | if (transferRequest.TransferInfo.SourceType == 2) | 528 | if (transferRequest.TransferInfo.SourceType == 2) |
529 | { | 529 | { |
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index 8d27a23..7a39a97 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs | |||
@@ -165,7 +165,7 @@ namespace OpenSim.Framework.Communications | |||
165 | } | 165 | } |
166 | else if (requestData.Contains("web_login_key")) | 166 | else if (requestData.Contains("web_login_key")) |
167 | { | 167 | { |
168 | UUID webloginkey = null; | 168 | UUID webloginkey = UUID.Zero; |
169 | try | 169 | try |
170 | { | 170 | { |
171 | webloginkey = new UUID((string)requestData["web_login_key"]); | 171 | webloginkey = new UUID((string)requestData["web_login_key"]); |
@@ -268,9 +268,9 @@ namespace OpenSim.Framework.Communications | |||
268 | logResponse.CircuitCode = Util.RandomClass.Next(); | 268 | logResponse.CircuitCode = Util.RandomClass.Next(); |
269 | logResponse.Lastname = userProfile.SurName; | 269 | logResponse.Lastname = userProfile.SurName; |
270 | logResponse.Firstname = userProfile.FirstName; | 270 | logResponse.Firstname = userProfile.FirstName; |
271 | logResponse.AgentID = agentID.ToString(); | 271 | logResponse.AgentID = agentID; |
272 | logResponse.SessionID = userProfile.CurrentAgent.SessionID.ToString(); | 272 | logResponse.SessionID = userProfile.CurrentAgent.SessionID; |
273 | logResponse.SecureSessionID = userProfile.CurrentAgent.SecureSessionID.ToString(); | 273 | logResponse.SecureSessionID = userProfile.CurrentAgent.SecureSessionID; |
274 | logResponse.Message = GetMessage(); | 274 | logResponse.Message = GetMessage(); |
275 | logResponse.BuddList = ConvertFriendListItem(m_userManager.GetUserFriendList(agentID)); | 275 | logResponse.BuddList = ConvertFriendListItem(m_userManager.GetUserFriendList(agentID)); |
276 | logResponse.StartLocation = startLocationRequest; | 276 | logResponse.StartLocation = startLocationRequest; |
@@ -436,9 +436,9 @@ namespace OpenSim.Framework.Communications | |||
436 | logResponse.CircuitCode = (Int32)Util.RandomClass.Next(); | 436 | logResponse.CircuitCode = (Int32)Util.RandomClass.Next(); |
437 | logResponse.Lastname = userProfile.SurName; | 437 | logResponse.Lastname = userProfile.SurName; |
438 | logResponse.Firstname = userProfile.FirstName; | 438 | logResponse.Firstname = userProfile.FirstName; |
439 | logResponse.AgentID = agentID.ToString(); | 439 | logResponse.AgentID = agentID; |
440 | logResponse.SessionID = userProfile.CurrentAgent.SessionID.ToString(); | 440 | logResponse.SessionID = userProfile.CurrentAgent.SessionID; |
441 | logResponse.SecureSessionID = userProfile.CurrentAgent.SecureSessionID.ToString(); | 441 | logResponse.SecureSessionID = userProfile.CurrentAgent.SecureSessionID; |
442 | logResponse.Message = GetMessage(); | 442 | logResponse.Message = GetMessage(); |
443 | logResponse.BuddList = ConvertFriendListItem(m_userManager.GetUserFriendList(agentID)); | 443 | logResponse.BuddList = ConvertFriendListItem(m_userManager.GetUserFriendList(agentID)); |
444 | logResponse.StartLocation = startLocationRequest; | 444 | logResponse.StartLocation = startLocationRequest; |
diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index 8921c6d..8cd876a 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs | |||
@@ -434,28 +434,28 @@ namespace OpenSim.Framework | |||
434 | switch (configuration_key) | 434 | switch (configuration_key) |
435 | { | 435 | { |
436 | case "region_flags": | 436 | case "region_flags": |
437 | Simulator.RegionFlags flags = (Simulator.RegionFlags)(uint)configuration_result; | 437 | RegionFlags flags = (RegionFlags)(uint)configuration_result; |
438 | if ((flags & (Simulator.RegionFlags)(1<<29)) != 0) | 438 | if ((flags & (RegionFlags)(1<<29)) != 0) |
439 | m_AllowVoice = true; | 439 | m_AllowVoice = true; |
440 | if ((flags & Simulator.RegionFlags.AllowDirectTeleport) != 0) | 440 | if ((flags & RegionFlags.AllowDirectTeleport) != 0) |
441 | m_AllowDirectTeleport = true; | 441 | m_AllowDirectTeleport = true; |
442 | if ((flags & Simulator.RegionFlags.DenyAnonymous) != 0) | 442 | if ((flags & RegionFlags.DenyAnonymous) != 0) |
443 | m_DenyAnonymous = true; | 443 | m_DenyAnonymous = true; |
444 | if ((flags & Simulator.RegionFlags.DenyIdentified) != 0) | 444 | if ((flags & RegionFlags.DenyIdentified) != 0) |
445 | m_DenyIdentified = true; | 445 | m_DenyIdentified = true; |
446 | if ((flags & Simulator.RegionFlags.DenyTransacted) != 0) | 446 | if ((flags & RegionFlags.DenyTransacted) != 0) |
447 | m_DenyTransacted = true; | 447 | m_DenyTransacted = true; |
448 | if ((flags & Simulator.RegionFlags.AbuseEmailToEstateOwner) != 0) | 448 | if ((flags & RegionFlags.AbuseEmailToEstateOwner) != 0) |
449 | m_AbuseEmailToEstateOwner = true; | 449 | m_AbuseEmailToEstateOwner = true; |
450 | if ((flags & Simulator.RegionFlags.BlockDwell) != 0) | 450 | if ((flags & RegionFlags.BlockDwell) != 0) |
451 | m_BlockDwell = true; | 451 | m_BlockDwell = true; |
452 | if ((flags & Simulator.RegionFlags.EstateSkipScripts) != 0) | 452 | if ((flags & RegionFlags.EstateSkipScripts) != 0) |
453 | m_EstateSkipScripts = true; | 453 | m_EstateSkipScripts = true; |
454 | if ((flags & Simulator.RegionFlags.ResetHomeOnTeleport) != 0) | 454 | if ((flags & RegionFlags.ResetHomeOnTeleport) != 0) |
455 | m_ResetHomeOnTeleport = true; | 455 | m_ResetHomeOnTeleport = true; |
456 | if ((flags & Simulator.RegionFlags.TaxFree) != 0) | 456 | if ((flags & RegionFlags.TaxFree) != 0) |
457 | m_TaxFree = true; | 457 | m_TaxFree = true; |
458 | if ((flags & Simulator.RegionFlags.PublicAllowed) != 0) | 458 | if ((flags & RegionFlags.PublicAllowed) != 0) |
459 | m_PublicAccess = true; | 459 | m_PublicAccess = true; |
460 | break; | 460 | break; |
461 | case "billable_factor": | 461 | case "billable_factor": |
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 0e6a9da..3b5bcaa 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs | |||
@@ -558,8 +558,7 @@ namespace OpenSim.Framework | |||
558 | void SendLayerData(float[] map); | 558 | void SendLayerData(float[] map); |
559 | void SendLayerData(int px, int py, float[] map); | 559 | void SendLayerData(int px, int py, float[] map); |
560 | 560 | ||
561 | void SendWindData(float[] map); | 561 | void SendWindData(Vector2[] windSpeeds); |
562 | void SendWindData(int p1x, int p1y, int p2x, int p2y, float[] map); | ||
563 | 562 | ||
564 | void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look); | 563 | void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look); |
565 | void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint); | 564 | void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint); |
diff --git a/OpenSim/Framework/LLGroup.cs b/OpenSim/Framework/LLGroup.cs index 53d42a4..7405b97 100644 --- a/OpenSim/Framework/LLGroup.cs +++ b/OpenSim/Framework/LLGroup.cs | |||
@@ -40,7 +40,7 @@ namespace OpenSim.Framework | |||
40 | public UUID GroupID; | 40 | public UUID GroupID; |
41 | public List<UUID> GroupMembers; | 41 | public List<UUID> GroupMembers; |
42 | public string groupName; | 42 | public string groupName; |
43 | public uint groupPowers = (uint)(GroupPowers.LandAllowLandmark | GroupPowers.LandAllowSetHome); | 43 | public uint groupPowers = (uint)(GroupPowers.AllowLandmark | GroupPowers.AllowSetHome); |
44 | public List<string> GroupTitles; | 44 | public List<string> GroupTitles; |
45 | public bool AcceptNotices = true; | 45 | public bool AcceptNotices = true; |
46 | public bool AllowPublish = true; | 46 | public bool AllowPublish = true; |
diff --git a/OpenSim/Framework/RegionSettings.cs b/OpenSim/Framework/RegionSettings.cs index 5eb7209..64f6768 100644 --- a/OpenSim/Framework/RegionSettings.cs +++ b/OpenSim/Framework/RegionSettings.cs | |||
@@ -138,32 +138,32 @@ namespace OpenSim.Framework | |||
138 | switch (key) | 138 | switch (key) |
139 | { | 139 | { |
140 | case "region_flags": | 140 | case "region_flags": |
141 | Simulator.RegionFlags flags = (Simulator.RegionFlags)(uint)value; | 141 | RegionFlags flags = (RegionFlags)(uint)value; |
142 | 142 | ||
143 | m_BlockTerraform = | 143 | m_BlockTerraform = |
144 | (flags & Simulator.RegionFlags.BlockTerraform) != 0; | 144 | (flags & RegionFlags.BlockTerraform) != 0; |
145 | m_BlockFly = | 145 | m_BlockFly = |
146 | (flags & Simulator.RegionFlags.NoFly) != 0; | 146 | (flags & RegionFlags.NoFly) != 0; |
147 | m_AllowDamage = | 147 | m_AllowDamage = |
148 | (flags & Simulator.RegionFlags.AllowDamage) != 0; | 148 | (flags & RegionFlags.AllowDamage) != 0; |
149 | m_RestrictPushing = | 149 | m_RestrictPushing = |
150 | (flags & Simulator.RegionFlags.RestrictPushObject) != 0; | 150 | (flags & RegionFlags.RestrictPushObject) != 0; |
151 | m_AllowLandResell = | 151 | m_AllowLandResell = |
152 | (flags & Simulator.RegionFlags.BlockLandResell) == 0; | 152 | (flags & RegionFlags.BlockLandResell) == 0; |
153 | m_AllowLandJoinDivide = | 153 | m_AllowLandJoinDivide = |
154 | (flags & Simulator.RegionFlags.AllowParcelChanges) != 0; | 154 | (flags & RegionFlags.AllowParcelChanges) != 0; |
155 | m_BlockShowInSearch = | 155 | m_BlockShowInSearch = |
156 | ((uint)flags & (1 << 29)) != 0; | 156 | ((uint)flags & (1 << 29)) != 0; |
157 | m_DisableScripts = | 157 | m_DisableScripts = |
158 | (flags & Simulator.RegionFlags.SkipScripts) != 0; | 158 | (flags & RegionFlags.SkipScripts) != 0; |
159 | m_DisableCollisions = | 159 | m_DisableCollisions = |
160 | (flags & Simulator.RegionFlags.SkipCollisions) != 0; | 160 | (flags & RegionFlags.SkipCollisions) != 0; |
161 | m_DisablePhysics = | 161 | m_DisablePhysics = |
162 | (flags & Simulator.RegionFlags.SkipPhysics) != 0; | 162 | (flags & RegionFlags.SkipPhysics) != 0; |
163 | m_FixedSun = | 163 | m_FixedSun = |
164 | (flags & Simulator.RegionFlags.SunFixed) != 0; | 164 | (flags & RegionFlags.SunFixed) != 0; |
165 | m_Sandbox = | 165 | m_Sandbox = |
166 | (flags & Simulator.RegionFlags.Sandbox) != 0; | 166 | (flags & RegionFlags.Sandbox) != 0; |
167 | break; | 167 | break; |
168 | case "max_agents": | 168 | case "max_agents": |
169 | m_AgentLimit = (int)value; | 169 | m_AgentLimit = (int)value; |
diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs index 457142f..e805001 100644 --- a/OpenSim/Grid/AssetServer/RestService.cs +++ b/OpenSim/Grid/AssetServer/RestService.cs | |||
@@ -70,7 +70,7 @@ namespace OpenSim.Grid.AssetServer | |||
70 | 70 | ||
71 | if (p.Length > 0) | 71 | if (p.Length > 0) |
72 | { | 72 | { |
73 | UUID assetID = null; | 73 | UUID assetID = UUID.Zero; |
74 | 74 | ||
75 | if (!UUID.TryParse(p[0], out assetID)) | 75 | if (!UUID.TryParse(p[0], out assetID)) |
76 | { | 76 | { |
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index b437f59..05e70db 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs | |||
@@ -614,7 +614,7 @@ namespace OpenSim.Grid.GridServer | |||
614 | // | 614 | // |
615 | // this particular section of the mod attempts to receive a value from the region's xml file by way of | 615 | // this particular section of the mod attempts to receive a value from the region's xml file by way of |
616 | // OSG1GridServices for the region's owner | 616 | // OSG1GridServices for the region's owner |
617 | sim.owner_uuid = (string)requestData["master_avatar_uuid"]; | 617 | sim.owner_uuid = (UUID)(string)requestData["master_avatar_uuid"]; |
618 | 618 | ||
619 | try | 619 | try |
620 | { | 620 | { |
diff --git a/OpenSim/Grid/MessagingServer/PresenceBackreferenceEntry.cs b/OpenSim/Grid/MessagingServer/PresenceBackreferenceEntry.cs index 4d6f3de..7ea1ac7 100644 --- a/OpenSim/Grid/MessagingServer/PresenceBackreferenceEntry.cs +++ b/OpenSim/Grid/MessagingServer/PresenceBackreferenceEntry.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Grid.MessagingServer | |||
52 | 52 | ||
53 | public UUID getitem(int index) | 53 | public UUID getitem(int index) |
54 | { | 54 | { |
55 | UUID result = null; | 55 | UUID result = UUID.Zero; |
56 | lock (AgentList) | 56 | lock (AgentList) |
57 | { | 57 | { |
58 | if (index > 0 && index < AgentList.Count) | 58 | if (index > 0 && index < AgentList.Count) |
diff --git a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs index 3b433ba..9d3f2bf 100644 --- a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs +++ b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs | |||
@@ -63,7 +63,7 @@ namespace OpenSim.Grid.MessagingServer | |||
63 | 63 | ||
64 | if (p.Length > 0) | 64 | if (p.Length > 0) |
65 | { | 65 | { |
66 | UUID assetID = null; | 66 | UUID assetID = UUID.Zero; |
67 | 67 | ||
68 | if (!UUID.TryParse(p[0], out assetID)) | 68 | if (!UUID.TryParse(p[0], out assetID)) |
69 | { | 69 | { |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 4027377..5a48c90 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -1232,43 +1232,40 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1232 | /// <summary> | 1232 | /// <summary> |
1233 | /// Send the region heightmap to the client | 1233 | /// Send the region heightmap to the client |
1234 | /// </summary> | 1234 | /// </summary> |
1235 | /// <param name="map">heightmap</param> | 1235 | /// <param name="windSpeeds">16x16 array of wind speeds</param> |
1236 | public virtual void SendWindData(float[] map) | 1236 | public virtual void SendWindData(Vector2[] windSpeeds) |
1237 | { | 1237 | { |
1238 | //ThreadPool.QueueUserWorkItem(new WaitCallback(DoSendWindData), (object)map); | 1238 | ThreadPool.QueueUserWorkItem(new WaitCallback(DoSendWindData), (object)windSpeeds); |
1239 | } | 1239 | } |
1240 | 1240 | ||
1241 | /// <summary> | 1241 | /// <summary> |
1242 | /// Send terrain layer information to the client. | 1242 | /// Send terrain layer information to the client. |
1243 | /// </summary> | 1243 | /// </summary> |
1244 | /// <param name="o"></param> | 1244 | /// <param name="o"></param> |
1245 | //private void DoSendWindData(object o) | 1245 | private void DoSendWindData(object o) |
1246 | //{ | 1246 | { |
1247 | //float[] map = (float[])o; | 1247 | Vector2[] windSpeeds = (Vector2[])o; |
1248 | 1248 | ||
1249 | //try | 1249 | TerrainPatch[] patches = new TerrainPatch[2]; |
1250 | //{ | 1250 | patches[0] = new TerrainPatch(); |
1251 | //for (int y = 0; y < 16; y++) | 1251 | patches[0].Data = new float[16 * 16]; |
1252 | //{ | 1252 | patches[1] = new TerrainPatch(); |
1253 | // For some terrains, sending more than one terrain patch at once results in a libsecondlife exception | 1253 | patches[1].Data = new float[16 * 16]; |
1254 | // see http://opensimulator.org/mantis/view.php?id=1662 | 1254 | |
1255 | //for (int x = 0; x < 16; x += 4) | 1255 | for (int y = 0; y < 16; y++) |
1256 | //{ | 1256 | { |
1257 | // SendLayerPacket(map, y, x); | 1257 | for (int x = 0; x < 16; x++) |
1258 | // Thread.Sleep(150); | 1258 | { |
1259 | //} | 1259 | patches[0].Data[y * 16 + x] = windSpeeds[y * 16 + x].X; |
1260 | // for (int x = 0; x < 16; x++) | 1260 | patches[1].Data[y * 16 + x] = windSpeeds[y * 16 + x].Y; |
1261 | //{ | 1261 | } |
1262 | //SendWindData(x, y, map); | 1262 | } |
1263 | //Thread.Sleep(35); | 1263 | |
1264 | //} | 1264 | LayerDataPacket layerpack = TerrainCompressor.CreateLayerDataPacket(patches, TerrainPatch.LayerType.Wind); |
1265 | //} | 1265 | layerpack.Header.Zerocoded = true; |
1266 | //} | 1266 | |
1267 | //catch (Exception e) | 1267 | OutPacket(layerpack, ThrottleOutPacketType.Wind); |
1268 | //{ | 1268 | } |
1269 | // m_log.Warn("[CLIENT]: ClientView.API.cs: SendLayerData() - Failed with exception " + e.ToString()); | ||
1270 | // } | ||
1271 | //} | ||
1272 | 1269 | ||
1273 | /// <summary> | 1270 | /// <summary> |
1274 | /// Sends a set of four patches (x, x+1, ..., x+3) to the client | 1271 | /// Sends a set of four patches (x, x+1, ..., x+3) to the client |
@@ -1289,41 +1286,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1289 | // } | 1286 | // } |
1290 | 1287 | ||
1291 | /// <summary> | 1288 | /// <summary> |
1292 | /// Sends a specified patch to a client | ||
1293 | /// </summary> | ||
1294 | /// <param name="px">Patch coordinate (x) 0..15</param> | ||
1295 | /// <param name="py">Patch coordinate (y) 0..15</param> | ||
1296 | /// <param name="map">heightmap</param> | ||
1297 | public void SendWindData(int p1x, int p1y, int p2x, int p2y, float[] map) | ||
1298 | { | ||
1299 | try | ||
1300 | { | ||
1301 | int[] patches = new int[2]; | ||
1302 | int patch1x, patch1y, patch2x, patch2y; | ||
1303 | patch1x = p1x; | ||
1304 | patch1y = p1y; | ||
1305 | patch2x = p2x; | ||
1306 | patch2y = p2y; | ||
1307 | |||
1308 | |||
1309 | patches[0] = patch1x + 0 + patch1y * 16; | ||
1310 | patches[1] = patch2x + 0 + patch2y * 16; | ||
1311 | |||
1312 | LayerDataPacket layerpack = TerrainCompressor.CreateWindPacket(map, patches); | ||
1313 | layerpack.Header.Zerocoded = true; | ||
1314 | |||
1315 | OutPacket(layerpack, ThrottleOutPacketType.Wind); | ||
1316 | |||
1317 | } | ||
1318 | catch (Exception e) | ||
1319 | { | ||
1320 | m_log.Warn("[client]: ClientView.API.cs: SendLayerData() - Failed with exception " + e.ToString()); | ||
1321 | } | ||
1322 | } | ||
1323 | |||
1324 | |||
1325 | |||
1326 | /// <summary> | ||
1327 | /// Tell the client that the given neighbour region is ready to receive a child agent. | 1289 | /// Tell the client that the given neighbour region is ready to receive a child agent. |
1328 | /// </summary> | 1290 | /// </summary> |
1329 | /// <param name="neighbourHandle"></param> | 1291 | /// <param name="neighbourHandle"></param> |
@@ -2940,13 +2902,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2940 | updatePacket.ParcelData.PassPrice = landData.PassPrice; | 2902 | updatePacket.ParcelData.PassPrice = landData.PassPrice; |
2941 | updatePacket.ParcelData.PublicCount = 0; //unemplemented | 2903 | updatePacket.ParcelData.PublicCount = 0; //unemplemented |
2942 | 2904 | ||
2943 | updatePacket.ParcelData.RegionDenyAnonymous = ((regionFlags & (uint)Simulator.RegionFlags.DenyAnonymous) > | 2905 | updatePacket.ParcelData.RegionDenyAnonymous = ((regionFlags & (uint)RegionFlags.DenyAnonymous) > |
2944 | 0); | 2906 | 0); |
2945 | updatePacket.ParcelData.RegionDenyIdentified = ((regionFlags & (uint)Simulator.RegionFlags.DenyIdentified) > | 2907 | updatePacket.ParcelData.RegionDenyIdentified = ((regionFlags & (uint)RegionFlags.DenyIdentified) > |
2946 | 0); | 2908 | 0); |
2947 | updatePacket.ParcelData.RegionDenyTransacted = ((regionFlags & (uint)Simulator.RegionFlags.DenyTransacted) > | 2909 | updatePacket.ParcelData.RegionDenyTransacted = ((regionFlags & (uint)RegionFlags.DenyTransacted) > |
2948 | 0); | 2910 | 0); |
2949 | updatePacket.ParcelData.RegionPushOverride = ((regionFlags & (uint)Simulator.RegionFlags.RestrictPushObject) > | 2911 | updatePacket.ParcelData.RegionPushOverride = ((regionFlags & (uint)RegionFlags.RestrictPushObject) > |
2950 | 0); | 2912 | 0); |
2951 | 2913 | ||
2952 | updatePacket.ParcelData.RentPrice = 0; | 2914 | updatePacket.ParcelData.RentPrice = 0; |
@@ -3586,7 +3548,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
3586 | { | 3548 | { |
3587 | string name = (string)nod.Attributes["name"].Value.ToLower(); | 3549 | string name = (string)nod.Attributes["name"].Value.ToLower(); |
3588 | string id = (string)nod.InnerText; | 3550 | string id = (string)nod.InnerText; |
3589 | m_defaultAnimations.Add(name, id); | 3551 | m_defaultAnimations.Add(name, (UUID)id); |
3590 | } | 3552 | } |
3591 | } | 3553 | } |
3592 | } | 3554 | } |
@@ -4936,9 +4898,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4936 | // | 4898 | // |
4937 | if (transfer.TransferInfo.SourceType == 3) | 4899 | if (transfer.TransferInfo.SourceType == 3) |
4938 | { | 4900 | { |
4939 | UUID taskID = null; | 4901 | UUID taskID = UUID.Zero; |
4940 | UUID itemID = null; | 4902 | UUID itemID = UUID.Zero; |
4941 | UUID requestID = null; | 4903 | UUID requestID = UUID.Zero; |
4942 | taskID = new UUID(transfer.TransferInfo.Params, 48); | 4904 | taskID = new UUID(transfer.TransferInfo.Params, 48); |
4943 | itemID = new UUID(transfer.TransferInfo.Params, 64); | 4905 | itemID = new UUID(transfer.TransferInfo.Params, 64); |
4944 | requestID = new UUID(transfer.TransferInfo.Params, 80); | 4906 | requestID = new UUID(transfer.TransferInfo.Params, 80); |
@@ -5569,7 +5531,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5569 | { | 5531 | { |
5570 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); | 5532 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); |
5571 | entry.AgentID = block.ID; | 5533 | entry.AgentID = block.ID; |
5572 | entry.Flags = (ParcelManager.AccessList)block.Flags; | 5534 | entry.Flags = (AccessList)block.Flags; |
5573 | entry.Time = new DateTime(); | 5535 | entry.Time = new DateTime(); |
5574 | entries.Add(entry); | 5536 | entries.Add(entry); |
5575 | } | 5537 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs index d885e3b..149fa9a 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | |||
@@ -109,6 +109,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
109 | 109 | ||
110 | public Packet Packet; | 110 | public Packet Packet; |
111 | public Object Identifier; | 111 | public Object Identifier; |
112 | public int TickCount; | ||
112 | } | 113 | } |
113 | 114 | ||
114 | private Dictionary<uint, AckData> m_NeedAck = | 115 | private Dictionary<uint, AckData> m_NeedAck = |
@@ -293,12 +294,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
293 | Packet packet, ThrottleOutPacketType throttlePacketType, | 294 | Packet packet, ThrottleOutPacketType throttlePacketType, |
294 | Object id) | 295 | Object id) |
295 | { | 296 | { |
296 | packet.TickCount = System.Environment.TickCount; | ||
297 | |||
298 | LLQueItem item = new LLQueItem(); | 297 | LLQueItem item = new LLQueItem(); |
299 | item.Packet = packet; | 298 | item.Packet = packet; |
300 | item.Incoming = false; | 299 | item.Incoming = false; |
301 | item.throttleType = throttlePacketType; | 300 | item.throttleType = throttlePacketType; |
301 | item.TickCount = System.Environment.TickCount; | ||
302 | item.Identifier = id; | 302 | item.Identifier = id; |
303 | 303 | ||
304 | m_PacketQueue.Enqueue(item); | 304 | m_PacketQueue.Enqueue(item); |
@@ -341,7 +341,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
341 | 341 | ||
342 | // Packets this old get resent | 342 | // Packets this old get resent |
343 | // | 343 | // |
344 | if ((now - packet.TickCount) > m_ResendTimeout) | 344 | if ((now - data.TickCount) > m_ResendTimeout) |
345 | { | 345 | { |
346 | // Resend the packet. Set the packet's tick count to | 346 | // Resend the packet. Set the packet's tick count to |
347 | // now, and keep it marked as resent. | 347 | // now, and keep it marked as resent. |
@@ -357,7 +357,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
357 | // pipes. Most likely, the client is gone | 357 | // pipes. Most likely, the client is gone |
358 | // Drop the packets | 358 | // Drop the packets |
359 | // | 359 | // |
360 | if ((now - packet.TickCount) > m_DiscardTimeout) | 360 | if ((now - data.TickCount) > m_DiscardTimeout) |
361 | { | 361 | { |
362 | if (!m_ImportantPackets.Contains(packet.Type)) | 362 | if (!m_ImportantPackets.Contains(packet.Type)) |
363 | m_NeedAck.Remove(packet.Header.Sequence); | 363 | m_NeedAck.Remove(packet.Header.Sequence); |
@@ -729,7 +729,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
729 | Packet packet = item.Packet; | 729 | Packet packet = item.Packet; |
730 | 730 | ||
731 | // Keep track of when this packet was sent out | 731 | // Keep track of when this packet was sent out |
732 | packet.TickCount = System.Environment.TickCount; | 732 | item.TickCount = System.Environment.TickCount; |
733 | 733 | ||
734 | // Assign sequence number here to prevent out of order packets | 734 | // Assign sequence number here to prevent out of order packets |
735 | if (packet.Header.Sequence == 0) | 735 | if (packet.Header.Sequence == 0) |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index 32b4bc1..81c789a 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | |||
@@ -36,6 +36,7 @@ using OpenSim.Framework.Statistics; | |||
36 | using OpenSim.Framework.Statistics.Interfaces; | 36 | using OpenSim.Framework.Statistics.Interfaces; |
37 | using Timer=System.Timers.Timer; | 37 | using Timer=System.Timers.Timer; |
38 | 38 | ||
39 | |||
39 | namespace OpenSim.Region.ClientStack.LindenUDP | 40 | namespace OpenSim.Region.ClientStack.LindenUDP |
40 | { | 41 | { |
41 | public class LLPacketQueue : IPullStatsProvider | 42 | public class LLPacketQueue : IPullStatsProvider |
@@ -45,7 +46,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
45 | 46 | ||
46 | private bool m_enabled = true; | 47 | private bool m_enabled = true; |
47 | 48 | ||
48 | private BlockingQueue<LLQueItem> SendQueue; | 49 | private OpenSim.Framework.BlockingQueue<LLQueItem> SendQueue; |
49 | 50 | ||
50 | private Queue<LLQueItem> IncomingPacketQueue; | 51 | private Queue<LLQueItem> IncomingPacketQueue; |
51 | private Queue<LLQueItem> OutgoingPacketQueue; | 52 | private Queue<LLQueItem> OutgoingPacketQueue; |
@@ -91,7 +92,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
91 | // in it to process. it's an on-purpose threadlock though because | 92 | // in it to process. it's an on-purpose threadlock though because |
92 | // without it, the clientloop will suck up all sim resources. | 93 | // without it, the clientloop will suck up all sim resources. |
93 | 94 | ||
94 | SendQueue = new BlockingQueue<LLQueItem>(); | 95 | SendQueue = new OpenSim.Framework.BlockingQueue<LLQueItem>(); |
95 | 96 | ||
96 | IncomingPacketQueue = new Queue<LLQueItem>(); | 97 | IncomingPacketQueue = new Queue<LLQueItem>(); |
97 | OutgoingPacketQueue = new Queue<LLQueItem>(); | 98 | OutgoingPacketQueue = new Queue<LLQueItem>(); |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs b/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs index 3bb0b7a..494d62b 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs | |||
@@ -40,6 +40,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
40 | public Packet Packet; | 40 | public Packet Packet; |
41 | public bool Incoming; | 41 | public bool Incoming; |
42 | public ThrottleOutPacketType throttleType; | 42 | public ThrottleOutPacketType throttleType; |
43 | public int TickCount; | ||
43 | public Object Identifier; | 44 | public Object Identifier; |
44 | } | 45 | } |
45 | } | 46 | } |
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index 3d09729..2d5c92e 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs | |||
@@ -311,11 +311,11 @@ namespace OpenSim.Region.Communications.Local | |||
311 | user.CurrentAgent.Handle = regionInfo.RegionHandle; | 311 | user.CurrentAgent.Handle = regionInfo.RegionHandle; |
312 | // Prepare notification | 312 | // Prepare notification |
313 | Login loginParams = new Login(); | 313 | Login loginParams = new Login(); |
314 | loginParams.Session = user.CurrentAgent.SessionID.ToString(); | 314 | loginParams.Session = user.CurrentAgent.SessionID; |
315 | loginParams.SecureSession = user.CurrentAgent.SecureSessionID.ToString(); | 315 | loginParams.SecureSession = user.CurrentAgent.SecureSessionID; |
316 | loginParams.First = user.FirstName; | 316 | loginParams.First = user.FirstName; |
317 | loginParams.Last = user.SurName; | 317 | loginParams.Last = user.SurName; |
318 | loginParams.Agent = user.ID.ToString(); | 318 | loginParams.Agent = user.ID; |
319 | loginParams.CircuitCode = Convert.ToUInt32(response.CircuitCode); | 319 | loginParams.CircuitCode = Convert.ToUInt32(response.CircuitCode); |
320 | loginParams.StartPos = user.CurrentAgent.Position; | 320 | loginParams.StartPos = user.CurrentAgent.Position; |
321 | loginParams.CapsPath = capsPath; | 321 | loginParams.CapsPath = capsPath; |
diff --git a/OpenSim/Region/Environment/Interfaces/ILandObject.cs b/OpenSim/Region/Environment/Interfaces/ILandObject.cs index 96fa378..85da000 100644 --- a/OpenSim/Region/Environment/Interfaces/ILandObject.cs +++ b/OpenSim/Region/Environment/Interfaces/ILandObject.cs | |||
@@ -54,7 +54,7 @@ namespace OpenSim.Region.Environment.Interfaces | |||
54 | bool isBannedFromLand(UUID avatar); | 54 | bool isBannedFromLand(UUID avatar); |
55 | bool isRestrictedFromLand(UUID avatar); | 55 | bool isRestrictedFromLand(UUID avatar); |
56 | void sendLandUpdateToClient(IClientAPI remote_client); | 56 | void sendLandUpdateToClient(IClientAPI remote_client); |
57 | List<UUID> createAccessListArrayByFlag(ParcelManager.AccessList flag); | 57 | List<UUID> createAccessListArrayByFlag(AccessList flag); |
58 | void sendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client); | 58 | void sendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client); |
59 | void updateAccessList(uint flags, List<ParcelManager.ParcelAccessEntry> entries, IClientAPI remote_client); | 59 | void updateAccessList(uint flags, List<ParcelManager.ParcelAccessEntry> entries, IClientAPI remote_client); |
60 | void updateLandBitmapByteArray(); | 60 | void updateLandBitmapByteArray(); |
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs index 3b521c3..f907ecd 100644 --- a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs | |||
@@ -109,7 +109,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload | |||
109 | /// <param name="transferRequest"></param> | 109 | /// <param name="transferRequest"></param> |
110 | public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest) | 110 | public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest) |
111 | { | 111 | { |
112 | UUID requestID = null; | 112 | UUID requestID = UUID.Zero; |
113 | byte source = 2; | 113 | byte source = 2; |
114 | if (transferRequest.TransferInfo.SourceType == 2) | 114 | if (transferRequest.TransferInfo.SourceType == 2) |
115 | { | 115 | { |
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs index 813d271..ed714ba 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs | |||
@@ -33,6 +33,7 @@ using Nini.Config; | |||
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Region.Environment.Interfaces; | 34 | using OpenSim.Region.Environment.Interfaces; |
35 | using OpenSim.Region.Environment.Scenes; | 35 | using OpenSim.Region.Environment.Scenes; |
36 | using BlockingQueue = OpenSim.Framework.BlockingQueue<OpenSim.Region.Environment.Interfaces.ITextureSender>; | ||
36 | 37 | ||
37 | namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | 38 | namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload |
38 | { | 39 | { |
@@ -44,8 +45,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
44 | /// <summary> | 45 | /// <summary> |
45 | /// There is one queue for all textures waiting to be sent, regardless of the requesting user. | 46 | /// There is one queue for all textures waiting to be sent, regardless of the requesting user. |
46 | /// </summary> | 47 | /// </summary> |
47 | private readonly BlockingQueue<ITextureSender> m_queueSenders | 48 | private readonly OpenSim.Framework.BlockingQueue<ITextureSender> m_queueSenders |
48 | = new BlockingQueue<ITextureSender>(); | 49 | = new OpenSim.Framework.BlockingQueue<ITextureSender>(); |
49 | 50 | ||
50 | /// <summary> | 51 | /// <summary> |
51 | /// Each user has their own texture download service. | 52 | /// Each user has their own texture download service. |
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs index c38bc62..93f4d1b 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs | |||
@@ -35,6 +35,7 @@ using OpenSim.Framework.Statistics; | |||
35 | using OpenSim.Region.Environment.Interfaces; | 35 | using OpenSim.Region.Environment.Interfaces; |
36 | using OpenSim.Region.Environment.Scenes; | 36 | using OpenSim.Region.Environment.Scenes; |
37 | 37 | ||
38 | |||
38 | namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | 39 | namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload |
39 | { | 40 | { |
40 | /// <summary> | 41 | /// <summary> |
@@ -75,7 +76,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
75 | /// Texture Senders are placed in this queue once they have received their texture from the asset | 76 | /// Texture Senders are placed in this queue once they have received their texture from the asset |
76 | /// cache. Another module actually invokes the send. | 77 | /// cache. Another module actually invokes the send. |
77 | /// </summary> | 78 | /// </summary> |
78 | private readonly BlockingQueue<ITextureSender> m_sharedSendersQueue; | 79 | private readonly OpenSim.Framework.BlockingQueue<ITextureSender> m_sharedSendersQueue; |
79 | 80 | ||
80 | /// <summary> | 81 | /// <summary> |
81 | /// Holds texture senders before they have received the appropriate texture from the asset cache. | 82 | /// Holds texture senders before they have received the appropriate texture from the asset cache. |
@@ -91,7 +92,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
91 | = new RepeatLimitStrategy<UUID>(MAX_ALLOWED_TEXTURE_REQUESTS); | 92 | = new RepeatLimitStrategy<UUID>(MAX_ALLOWED_TEXTURE_REQUESTS); |
92 | 93 | ||
93 | public UserTextureDownloadService( | 94 | public UserTextureDownloadService( |
94 | IClientAPI client, Scene scene, BlockingQueue<ITextureSender> sharedQueue) | 95 | IClientAPI client, Scene scene, OpenSim.Framework.BlockingQueue<ITextureSender> sharedQueue) |
95 | { | 96 | { |
96 | m_client = client; | 97 | m_client = client; |
97 | m_scene = scene; | 98 | m_scene = scene; |
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs index 8b7df9e..ea2fc04 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs | |||
@@ -298,7 +298,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | |||
298 | int funds = 0; | 298 | int funds = 0; |
299 | 299 | ||
300 | Hashtable hbinfo = | 300 | Hashtable hbinfo = |
301 | GetBalanceForUserFromMoneyServer(client.AgentId, client.SecureSessionId, s.RegionInfo.originRegionID.ToString(), | 301 | GetBalanceForUserFromMoneyServer(client.AgentId, client.SecureSessionId, s.RegionInfo.originRegionID, |
302 | s.RegionInfo.regionSecret); | 302 | s.RegionInfo.regionSecret); |
303 | if ((bool) hbinfo["success"] == true) | 303 | if ((bool) hbinfo["success"] == true) |
304 | { | 304 | { |
@@ -722,7 +722,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney | |||
722 | if (m_MoneyAddress.Length > 0) | 722 | if (m_MoneyAddress.Length > 0) |
723 | { | 723 | { |
724 | Hashtable hbinfo = | 724 | Hashtable hbinfo = |
725 | GetBalanceForUserFromMoneyServer(aClient.AgentId, aClient.SecureSessionId, s.RegionInfo.originRegionID.ToString(), | 725 | GetBalanceForUserFromMoneyServer(aClient.AgentId, aClient.SecureSessionId, s.RegionInfo.originRegionID, |
726 | s.RegionInfo.regionSecret); | 726 | s.RegionInfo.regionSecret); |
727 | if ((bool) hbinfo["success"] == true) | 727 | if ((bool) hbinfo["success"] == true) |
728 | { | 728 | { |
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs index ad0cac0..053eeef 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs | |||
@@ -67,7 +67,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups | |||
67 | OpenSimulatorGroup.ActiveGroupTitle = "OpenSimulator Tester"; | 67 | OpenSimulatorGroup.ActiveGroupTitle = "OpenSimulator Tester"; |
68 | OpenSimulatorGroup.GroupID = opensimulatorGroupID; | 68 | OpenSimulatorGroup.GroupID = opensimulatorGroupID; |
69 | OpenSimulatorGroup.groupName = "OpenSimulator Testing"; | 69 | OpenSimulatorGroup.groupName = "OpenSimulator Testing"; |
70 | OpenSimulatorGroup.ActiveGroupPowers = GroupPowers.LandAllowSetHome; | 70 | OpenSimulatorGroup.ActiveGroupPowers = GroupPowers.AllowSetHome; |
71 | OpenSimulatorGroup.GroupTitles.Add("OpenSimulator Tester"); | 71 | OpenSimulatorGroup.GroupTitles.Add("OpenSimulator Tester"); |
72 | if (!m_groupUUIDGroup.ContainsKey(opensimulatorGroupID)) | 72 | if (!m_groupUUIDGroup.ContainsKey(opensimulatorGroupID)) |
73 | m_groupUUIDGroup.Add(opensimulatorGroupID, OpenSimulatorGroup); | 73 | m_groupUUIDGroup.Add(opensimulatorGroupID, OpenSimulatorGroup); |
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs index eeff62d..cb525cc 100644 --- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs +++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs | |||
@@ -787,7 +787,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
787 | UUID userUUID = UUID.Zero; | 787 | UUID userUUID = UUID.Zero; |
788 | if (UUID.TryParse(uuidString, out userUUID)) | 788 | if (UUID.TryParse(uuidString, out userUUID)) |
789 | { | 789 | { |
790 | UUID RemoteID = uuidString; | 790 | UUID RemoteID = (UUID)uuidString; |
791 | UUID LocalID = RemoteID; | 791 | UUID LocalID = RemoteID; |
792 | // FIXME: TODO: Routine to map RemoteUUIDs to LocalUUIds | 792 | // FIXME: TODO: Routine to map RemoteUUIDs to LocalUUIds |
793 | // would be done already.. but the client connects with the Aditi UUID | 793 | // would be done already.. but the client connects with the Aditi UUID |
diff --git a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs index bec1300..3dddc2b 100644 --- a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs | |||
@@ -732,40 +732,40 @@ namespace OpenSim.Region.Environment.Modules.World.Estate | |||
732 | 732 | ||
733 | public uint GetRegionFlags() | 733 | public uint GetRegionFlags() |
734 | { | 734 | { |
735 | Simulator.RegionFlags flags = Simulator.RegionFlags.None; | 735 | RegionFlags flags = RegionFlags.None; |
736 | 736 | ||
737 | // Fully implemented | 737 | // Fully implemented |
738 | // | 738 | // |
739 | if (m_scene.RegionInfo.RegionSettings.AllowDamage) | 739 | if (m_scene.RegionInfo.RegionSettings.AllowDamage) |
740 | flags |= Simulator.RegionFlags.AllowDamage; | 740 | flags |= RegionFlags.AllowDamage; |
741 | if (m_scene.RegionInfo.RegionSettings.BlockTerraform) | 741 | if (m_scene.RegionInfo.RegionSettings.BlockTerraform) |
742 | flags |= Simulator.RegionFlags.BlockTerraform; | 742 | flags |= RegionFlags.BlockTerraform; |
743 | if (!m_scene.RegionInfo.RegionSettings.AllowLandResell) | 743 | if (!m_scene.RegionInfo.RegionSettings.AllowLandResell) |
744 | flags |= Simulator.RegionFlags.BlockLandResell; | 744 | flags |= RegionFlags.BlockLandResell; |
745 | if (m_scene.RegionInfo.RegionSettings.DisableCollisions) | 745 | if (m_scene.RegionInfo.RegionSettings.DisableCollisions) |
746 | flags |= Simulator.RegionFlags.SkipCollisions; | 746 | flags |= RegionFlags.SkipCollisions; |
747 | if (m_scene.RegionInfo.RegionSettings.DisableScripts) | 747 | if (m_scene.RegionInfo.RegionSettings.DisableScripts) |
748 | flags |= Simulator.RegionFlags.SkipScripts; | 748 | flags |= RegionFlags.SkipScripts; |
749 | if (m_scene.RegionInfo.RegionSettings.DisablePhysics) | 749 | if (m_scene.RegionInfo.RegionSettings.DisablePhysics) |
750 | flags |= Simulator.RegionFlags.SkipPhysics; | 750 | flags |= RegionFlags.SkipPhysics; |
751 | if (m_scene.RegionInfo.RegionSettings.BlockFly) | 751 | if (m_scene.RegionInfo.RegionSettings.BlockFly) |
752 | flags |= Simulator.RegionFlags.NoFly; | 752 | flags |= RegionFlags.NoFly; |
753 | if (m_scene.RegionInfo.RegionSettings.RestrictPushing) | 753 | if (m_scene.RegionInfo.RegionSettings.RestrictPushing) |
754 | flags |= Simulator.RegionFlags.RestrictPushObject; | 754 | flags |= RegionFlags.RestrictPushObject; |
755 | if (m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide) | 755 | if (m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide) |
756 | flags |= Simulator.RegionFlags.AllowParcelChanges; | 756 | flags |= RegionFlags.AllowParcelChanges; |
757 | if (m_scene.RegionInfo.RegionSettings.BlockShowInSearch) | 757 | if (m_scene.RegionInfo.RegionSettings.BlockShowInSearch) |
758 | flags |= (Simulator.RegionFlags)(1 << 29); | 758 | flags |= (RegionFlags)(1 << 29); |
759 | 759 | ||
760 | if (m_scene.RegionInfo.RegionSettings.FixedSun) | 760 | if (m_scene.RegionInfo.RegionSettings.FixedSun) |
761 | flags |= Simulator.RegionFlags.SunFixed; | 761 | flags |= RegionFlags.SunFixed; |
762 | if (m_scene.RegionInfo.RegionSettings.Sandbox) | 762 | if (m_scene.RegionInfo.RegionSettings.Sandbox) |
763 | flags |= Simulator.RegionFlags.Sandbox; | 763 | flags |= RegionFlags.Sandbox; |
764 | 764 | ||
765 | // Fudge these to always on, so the menu options activate | 765 | // Fudge these to always on, so the menu options activate |
766 | // | 766 | // |
767 | flags |= Simulator.RegionFlags.AllowLandmark; | 767 | flags |= RegionFlags.AllowLandmark; |
768 | flags |= Simulator.RegionFlags.AllowSetHome; | 768 | flags |= RegionFlags.AllowSetHome; |
769 | 769 | ||
770 | // TODO: SkipUpdateInterestList | 770 | // TODO: SkipUpdateInterestList |
771 | 771 | ||
@@ -779,35 +779,35 @@ namespace OpenSim.Region.Environment.Modules.World.Estate | |||
779 | 779 | ||
780 | public uint GetEstateFlags() | 780 | public uint GetEstateFlags() |
781 | { | 781 | { |
782 | Simulator.RegionFlags flags = Simulator.RegionFlags.None; | 782 | RegionFlags flags = RegionFlags.None; |
783 | 783 | ||
784 | if (m_scene.RegionInfo.EstateSettings.FixedSun) | 784 | if (m_scene.RegionInfo.EstateSettings.FixedSun) |
785 | flags |= Simulator.RegionFlags.SunFixed; | 785 | flags |= RegionFlags.SunFixed; |
786 | if (m_scene.RegionInfo.EstateSettings.PublicAccess) | 786 | if (m_scene.RegionInfo.EstateSettings.PublicAccess) |
787 | flags |= (Simulator.RegionFlags.PublicAllowed | | 787 | flags |= (RegionFlags.PublicAllowed | |
788 | Simulator.RegionFlags.ExternallyVisible); | 788 | RegionFlags.ExternallyVisible); |
789 | if (m_scene.RegionInfo.EstateSettings.AllowVoice) | 789 | if (m_scene.RegionInfo.EstateSettings.AllowVoice) |
790 | flags |= Simulator.RegionFlags.AllowVoice; | 790 | flags |= RegionFlags.AllowVoice; |
791 | if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport) | 791 | if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport) |
792 | flags |= Simulator.RegionFlags.AllowDirectTeleport; | 792 | flags |= RegionFlags.AllowDirectTeleport; |
793 | if (m_scene.RegionInfo.EstateSettings.DenyAnonymous) | 793 | if (m_scene.RegionInfo.EstateSettings.DenyAnonymous) |
794 | flags |= Simulator.RegionFlags.DenyAnonymous; | 794 | flags |= RegionFlags.DenyAnonymous; |
795 | if (m_scene.RegionInfo.EstateSettings.DenyIdentified) | 795 | if (m_scene.RegionInfo.EstateSettings.DenyIdentified) |
796 | flags |= Simulator.RegionFlags.DenyIdentified; | 796 | flags |= RegionFlags.DenyIdentified; |
797 | if (m_scene.RegionInfo.EstateSettings.DenyTransacted) | 797 | if (m_scene.RegionInfo.EstateSettings.DenyTransacted) |
798 | flags |= Simulator.RegionFlags.DenyTransacted; | 798 | flags |= RegionFlags.DenyTransacted; |
799 | if (m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner) | 799 | if (m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner) |
800 | flags |= Simulator.RegionFlags.AbuseEmailToEstateOwner; | 800 | flags |= RegionFlags.AbuseEmailToEstateOwner; |
801 | if (m_scene.RegionInfo.EstateSettings.BlockDwell) | 801 | if (m_scene.RegionInfo.EstateSettings.BlockDwell) |
802 | flags |= Simulator.RegionFlags.BlockDwell; | 802 | flags |= RegionFlags.BlockDwell; |
803 | if (m_scene.RegionInfo.EstateSettings.EstateSkipScripts) | 803 | if (m_scene.RegionInfo.EstateSettings.EstateSkipScripts) |
804 | flags |= Simulator.RegionFlags.EstateSkipScripts; | 804 | flags |= RegionFlags.EstateSkipScripts; |
805 | if (m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport) | 805 | if (m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport) |
806 | flags |= Simulator.RegionFlags.ResetHomeOnTeleport; | 806 | flags |= RegionFlags.ResetHomeOnTeleport; |
807 | if (m_scene.RegionInfo.EstateSettings.TaxFree) | 807 | if (m_scene.RegionInfo.EstateSettings.TaxFree) |
808 | flags |= Simulator.RegionFlags.TaxFree; | 808 | flags |= RegionFlags.TaxFree; |
809 | if (m_scene.RegionInfo.EstateSettings.DenyMinors) | 809 | if (m_scene.RegionInfo.EstateSettings.DenyMinors) |
810 | flags |= (Simulator.RegionFlags)(1 << 30); | 810 | flags |= (RegionFlags)(1 << 30); |
811 | 811 | ||
812 | return (uint)flags; | 812 | return (uint)flags; |
813 | } | 813 | } |
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index bf51edb..6ab5a57 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | |||
@@ -263,12 +263,12 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
263 | { | 263 | { |
264 | if (checkBan.isBannedFromLand(avatar.AgentId)) | 264 | if (checkBan.isBannedFromLand(avatar.AgentId)) |
265 | { | 265 | { |
266 | checkBan.sendLandProperties(-30000, false, (int)ParcelManager.ParcelResult.Single, avatar); | 266 | checkBan.sendLandProperties(-30000, false, (int)ParcelResult.Single, avatar); |
267 | return; //Only send one | 267 | return; //Only send one |
268 | } | 268 | } |
269 | if (checkBan.isRestrictedFromLand(avatar.AgentId)) | 269 | if (checkBan.isRestrictedFromLand(avatar.AgentId)) |
270 | { | 270 | { |
271 | checkBan.sendLandProperties(-40000, false, (int)ParcelManager.ParcelResult.Single, avatar); | 271 | checkBan.sendLandProperties(-40000, false, (int)ParcelResult.Single, avatar); |
272 | return; //Only send one | 272 | return; //Only send one |
273 | } | 273 | } |
274 | } | 274 | } |
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs index 640b665..89d7b69 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs | |||
@@ -162,16 +162,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
162 | public void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client) | 162 | public void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client) |
163 | { | 163 | { |
164 | IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); | 164 | IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); |
165 | uint regionFlags = 336723974 & ~((uint)(Simulator.RegionFlags.AllowLandmark | Simulator.RegionFlags.AllowSetHome)); | 165 | uint regionFlags = 336723974 & ~((uint)(RegionFlags.AllowLandmark | RegionFlags.AllowSetHome)); |
166 | if (estateModule != null) | 166 | if (estateModule != null) |
167 | regionFlags = estateModule.GetRegionFlags(); | 167 | regionFlags = estateModule.GetRegionFlags(); |
168 | 168 | ||
169 | // In a perfect world, this would have worked. | 169 | // In a perfect world, this would have worked. |
170 | // | 170 | // |
171 | // if ((landData.Flags & (uint)Parcel.ParcelFlags.AllowLandmark) != 0) | 171 | // if ((landData.Flags & (uint)Parcel.ParcelFlags.AllowLandmark) != 0) |
172 | // regionFlags |= (uint)Simulator.RegionFlags.AllowLandmark; | 172 | // regionFlags |= (uint)RegionFlags.AllowLandmark; |
173 | // if (landData.OwnerID == remote_client.AgentId) | 173 | // if (landData.OwnerID == remote_client.AgentId) |
174 | // regionFlags |= (uint)Simulator.RegionFlags.AllowSetHome; | 174 | // regionFlags |= (uint)RegionFlags.AllowSetHome; |
175 | remote_client.SendLandProperties(remote_client, sequence_id, | 175 | remote_client.SendLandProperties(remote_client, sequence_id, |
176 | snap_selection, request_result, landData, | 176 | snap_selection, request_result, landData, |
177 | (float)m_scene.RegionInfo.RegionSettings.ObjectBonus, | 177 | (float)m_scene.RegionInfo.RegionSettings.ObjectBonus, |
@@ -252,7 +252,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
252 | { | 252 | { |
253 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); | 253 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); |
254 | entry.AgentID = avatar; | 254 | entry.AgentID = avatar; |
255 | entry.Flags = ParcelManager.AccessList.Ban; | 255 | entry.Flags = AccessList.Ban; |
256 | entry.Time = new DateTime(); | 256 | entry.Time = new DateTime(); |
257 | if (landData.ParcelAccessList.Contains(entry)) | 257 | if (landData.ParcelAccessList.Contains(entry)) |
258 | { | 258 | { |
@@ -269,7 +269,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
269 | { | 269 | { |
270 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); | 270 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); |
271 | entry.AgentID = avatar; | 271 | entry.AgentID = avatar; |
272 | entry.Flags = ParcelManager.AccessList.Access; | 272 | entry.Flags = AccessList.Access; |
273 | entry.Time = new DateTime(); | 273 | entry.Time = new DateTime(); |
274 | if (!landData.ParcelAccessList.Contains(entry)) | 274 | if (!landData.ParcelAccessList.Contains(entry)) |
275 | { | 275 | { |
@@ -322,7 +322,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
322 | 322 | ||
323 | #region AccessList Functions | 323 | #region AccessList Functions |
324 | 324 | ||
325 | public List<UUID> createAccessListArrayByFlag(ParcelManager.AccessList flag) | 325 | public List<UUID> createAccessListArrayByFlag(AccessList flag) |
326 | { | 326 | { |
327 | List<UUID> list = new List<UUID>(); | 327 | List<UUID> list = new List<UUID>(); |
328 | foreach (ParcelManager.ParcelAccessEntry entry in landData.ParcelAccessList) | 328 | foreach (ParcelManager.ParcelAccessEntry entry in landData.ParcelAccessList) |
@@ -344,16 +344,16 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
344 | IClientAPI remote_client) | 344 | IClientAPI remote_client) |
345 | { | 345 | { |
346 | 346 | ||
347 | if (flags == (uint) ParcelManager.AccessList.Access || flags == (uint) ParcelManager.AccessList.Both) | 347 | if (flags == (uint) AccessList.Access || flags == (uint) AccessList.Both) |
348 | { | 348 | { |
349 | List<UUID> avatars = createAccessListArrayByFlag(ParcelManager.AccessList.Access); | 349 | List<UUID> avatars = createAccessListArrayByFlag(AccessList.Access); |
350 | remote_client.SendLandAccessListData(avatars,(uint) ParcelManager.AccessList.Access,landData.LocalID); | 350 | remote_client.SendLandAccessListData(avatars,(uint) AccessList.Access,landData.LocalID); |
351 | } | 351 | } |
352 | 352 | ||
353 | if (flags == (uint) ParcelManager.AccessList.Ban || flags == (uint) ParcelManager.AccessList.Both) | 353 | if (flags == (uint) AccessList.Ban || flags == (uint) AccessList.Both) |
354 | { | 354 | { |
355 | List<UUID> avatars = createAccessListArrayByFlag(ParcelManager.AccessList.Ban); | 355 | List<UUID> avatars = createAccessListArrayByFlag(AccessList.Ban); |
356 | remote_client.SendLandAccessListData(avatars, (uint)ParcelManager.AccessList.Ban, landData.LocalID); | 356 | remote_client.SendLandAccessListData(avatars, (uint)AccessList.Ban, landData.LocalID); |
357 | } | 357 | } |
358 | } | 358 | } |
359 | 359 | ||
@@ -369,7 +369,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
369 | List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>(); | 369 | List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>(); |
370 | foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList) | 370 | foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList) |
371 | { | 371 | { |
372 | if (entry.Flags == (ParcelManager.AccessList) flags) | 372 | if (entry.Flags == (AccessList) flags) |
373 | { | 373 | { |
374 | toRemove.Add(entry); | 374 | toRemove.Add(entry); |
375 | } | 375 | } |
@@ -384,7 +384,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
384 | ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry(); | 384 | ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry(); |
385 | temp.AgentID = entry.AgentID; | 385 | temp.AgentID = entry.AgentID; |
386 | temp.Time = new DateTime(); //Pointless? Yes. | 386 | temp.Time = new DateTime(); //Pointless? Yes. |
387 | temp.Flags = (ParcelManager.AccessList) flags; | 387 | temp.Flags = (AccessList) flags; |
388 | 388 | ||
389 | if (!newData.ParcelAccessList.Contains(temp)) | 389 | if (!newData.ParcelAccessList.Contains(temp)) |
390 | { | 390 | { |
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index a8ed498..92214b9 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | |||
@@ -482,8 +482,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
482 | { | 482 | { |
483 | } | 483 | } |
484 | 484 | ||
485 | public virtual void SendWindData(float[] map) { } | 485 | public virtual void SendWindData(Vector2[] windSpeeds) { } |
486 | public virtual void SendWindData(int p1x, int p1y, int p2x, int p2y, float[] map) { } | ||
487 | 486 | ||
488 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) | 487 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) |
489 | { | 488 | { |
diff --git a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs index fced389..5495c1d 100644 --- a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs | |||
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Environment.Modules | |||
45 | private Random rndnums = new Random(System.Environment.TickCount); | 45 | private Random rndnums = new Random(System.Environment.TickCount); |
46 | private Scene m_scene = null; | 46 | private Scene m_scene = null; |
47 | private bool ready = false; | 47 | private bool ready = false; |
48 | private float[] windarr = new float[256*256]; | 48 | private Vector2[] windSpeeds = new Vector2[16 * 16]; |
49 | 49 | ||
50 | private Dictionary<UUID, ulong> m_rootAgents = new Dictionary<UUID, ulong>(); | 50 | private Dictionary<UUID, ulong> m_rootAgents = new Dictionary<UUID, ulong>(); |
51 | 51 | ||
@@ -54,7 +54,6 @@ namespace OpenSim.Region.Environment.Modules | |||
54 | 54 | ||
55 | public void Initialise(Scene scene, IConfigSource config) | 55 | public void Initialise(Scene scene, IConfigSource config) |
56 | { | 56 | { |
57 | |||
58 | m_log.Debug("[WIND] Initializing"); | 57 | m_log.Debug("[WIND] Initializing"); |
59 | 58 | ||
60 | m_scene = scene; | 59 | m_scene = scene; |
@@ -120,15 +119,13 @@ namespace OpenSim.Region.Environment.Modules | |||
120 | 119 | ||
121 | public void WindToClient(IClientAPI client) | 120 | public void WindToClient(IClientAPI client) |
122 | { | 121 | { |
123 | |||
124 | if (ready) | 122 | if (ready) |
125 | { | 123 | { |
126 | //if (!sunFixed) | 124 | //if (!sunFixed) |
127 | //GenWindPos(); // Generate shared values once | 125 | //GenWindPos(); // Generate shared values once |
128 | client.SendWindData(windarr); | 126 | client.SendWindData(windSpeeds); |
129 | m_log.Debug("[WIND] Initial update for new client"); | 127 | m_log.Debug("[WIND] Initial update for new client"); |
130 | } | 128 | } |
131 | |||
132 | } | 129 | } |
133 | 130 | ||
134 | public void WindUpdate() | 131 | public void WindUpdate() |
@@ -149,11 +146,7 @@ namespace OpenSim.Region.Environment.Modules | |||
149 | { | 146 | { |
150 | if (!avatar.IsChildAgent) | 147 | if (!avatar.IsChildAgent) |
151 | { | 148 | { |
152 | 149 | avatar.ControllingClient.SendWindData(windSpeeds); | |
153 | avatar.ControllingClient.SendWindData( | ||
154 | 0, | ||
155 | 0,0,1, | ||
156 | windarr); | ||
157 | } | 150 | } |
158 | } | 151 | } |
159 | 152 | ||
@@ -169,7 +162,7 @@ namespace OpenSim.Region.Environment.Modules | |||
169 | foreach (ScenePresence avatar in avatars) | 162 | foreach (ScenePresence avatar in avatars) |
170 | { | 163 | { |
171 | if (!avatar.IsChildAgent) | 164 | if (!avatar.IsChildAgent) |
172 | avatar.ControllingClient.SendWindData(windarr); | 165 | avatar.ControllingClient.SendWindData(windSpeeds); |
173 | } | 166 | } |
174 | 167 | ||
175 | // set estate settings for region access to sun position | 168 | // set estate settings for region access to sun position |
@@ -182,35 +175,14 @@ namespace OpenSim.Region.Environment.Modules | |||
182 | 175 | ||
183 | private void GenWindPos() | 176 | private void GenWindPos() |
184 | { | 177 | { |
185 | //windarr = new float[256*256]; | 178 | for (int y = 0; y < 16; y++) |
186 | |||
187 | Array.Clear(windarr, 0, 256 * 256); | ||
188 | //float i = 0f; | ||
189 | //float i2 = 2f; | ||
190 | |||
191 | for (int x = 0; x < 16; x++) | ||
192 | { | 179 | { |
193 | for (int y = 0; y < 16; y++) | 180 | for (int x = 0; x < 16; x++) |
194 | { | 181 | { |
195 | 182 | windSpeeds[y * 16 + x].X = (float)(rndnums.NextDouble() * 2d - 1d); | |
196 | windarr[x * 256 + y] = (float)(rndnums.NextDouble() * 2d - 1d); | 183 | windSpeeds[y * 16 + x].Y = (float)(rndnums.NextDouble() * 2d - 1d); |
197 | |||
198 | } | 184 | } |
199 | |||
200 | } | 185 | } |
201 | for (int x = 16; x < 32; x++) | ||
202 | { | ||
203 | for (int y = 0; y < 16; y++) | ||
204 | { | ||
205 | |||
206 | windarr[x * 256 + y] = (float)(rndnums.NextDouble() * 2d - 1d); | ||
207 | |||
208 | } | ||
209 | |||
210 | } | ||
211 | |||
212 | |||
213 | // m_log.Debug("[SUN] Velocity("+Velocity.X+","+Velocity.Y+","+Velocity.Z+")"); | ||
214 | } | 186 | } |
215 | 187 | ||
216 | private void ClientLoggedOut(UUID AgentId) | 188 | private void ClientLoggedOut(UUID AgentId) |
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 50122f5..1c421b7 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -1494,7 +1494,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1494 | protected internal void MakeObjectSearchable(IClientAPI remoteClient, bool IncludeInSearch, uint localID) | 1494 | protected internal void MakeObjectSearchable(IClientAPI remoteClient, bool IncludeInSearch, uint localID) |
1495 | { | 1495 | { |
1496 | UUID user = remoteClient.AgentId; | 1496 | UUID user = remoteClient.AgentId; |
1497 | UUID objid = null; | 1497 | UUID objid = UUID.Zero; |
1498 | SceneObjectPart obj = null; | 1498 | SceneObjectPart obj = null; |
1499 | 1499 | ||
1500 | List<EntityBase> EntityList = GetEntities(); | 1500 | List<EntityBase> EntityList = GetEntities(); |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 186e13e..560e17e 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -1371,7 +1371,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1371 | taskItem.Flags = itemBase.Flags; | 1371 | taskItem.Flags = itemBase.Flags; |
1372 | taskItem.PermsGranter = UUID.Zero; | 1372 | taskItem.PermsGranter = UUID.Zero; |
1373 | taskItem.PermsMask = 0; | 1373 | taskItem.PermsMask = 0; |
1374 | taskItem.AssetID = asset.ID; | 1374 | taskItem.AssetID = asset.FullID; |
1375 | 1375 | ||
1376 | part.AddInventoryItem(taskItem); | 1376 | part.AddInventoryItem(taskItem); |
1377 | part.GetProperties(remoteClient); | 1377 | part.GetProperties(remoteClient); |
@@ -1616,7 +1616,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1616 | // FIXME: This needs to be fixed. | 1616 | // FIXME: This needs to be fixed. |
1617 | m_log.ErrorFormat( | 1617 | m_log.ErrorFormat( |
1618 | "[AGENT INVENTORY]: Queued deletion of scene object to agent {0} {1} failed: {2}", | 1618 | "[AGENT INVENTORY]: Queued deletion of scene object to agent {0} {1} failed: {2}", |
1619 | (x != null ? x.remoteClient.Name : "unavailable"), (x != null ? x.remoteClient.AgentId : "unavailable"), e.ToString()); | 1619 | (x != null ? x.remoteClient.Name : "unavailable"), (x != null ? x.remoteClient.AgentId.ToString() : "unavailable"), e.ToString()); |
1620 | } | 1620 | } |
1621 | 1621 | ||
1622 | m_log.Info("No objects left in inventory delete queue."); | 1622 | m_log.Info("No objects left in inventory delete queue."); |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 08de087..f08f4a4 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -915,7 +915,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
915 | { | 915 | { |
916 | return part.UUID; | 916 | return part.UUID; |
917 | } | 917 | } |
918 | return null; | 918 | return UUID.Zero; |
919 | } | 919 | } |
920 | 920 | ||
921 | public void ObjectGrabHandler(uint localId, Vector3 offsetPos, IClientAPI remoteClient) | 921 | public void ObjectGrabHandler(uint localId, Vector3 offsetPos, IClientAPI remoteClient) |
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index a3f6763..3f1823a 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -396,8 +396,7 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
396 | { | 396 | { |
397 | } | 397 | } |
398 | 398 | ||
399 | public virtual void SendWindData(float[] map) { } | 399 | public virtual void SendWindData(Vector2[] windSpeeds) { } |
400 | public virtual void SendWindData(int p1x, int p1y, int p2x, int p2y, float[] map) { } | ||
401 | 400 | ||
402 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) | 401 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) |
403 | { | 402 | { |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 5a265d1..6215710 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -269,7 +269,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
269 | if (inv.Value.Type != type) | 269 | if (inv.Value.Type != type) |
270 | return UUID.Zero; | 270 | return UUID.Zero; |
271 | 271 | ||
272 | return inv.Value.AssetID.ToString(); | 272 | return inv.Value.AssetID; |
273 | } | 273 | } |
274 | } | 274 | } |
275 | return UUID.Zero; | 275 | return UUID.Zero; |
@@ -282,7 +282,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
282 | { | 282 | { |
283 | if (inv.Value.Name == name) | 283 | if (inv.Value.Name == name) |
284 | { | 284 | { |
285 | return inv.Value.AssetID.ToString(); | 285 | return inv.Value.AssetID; |
286 | } | 286 | } |
287 | } | 287 | } |
288 | return UUID.Zero; | 288 | return UUID.Zero; |
@@ -2766,7 +2766,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2766 | 2766 | ||
2767 | m_host.AddScriptLPS(1); | 2767 | m_host.AddScriptLPS(1); |
2768 | 2768 | ||
2769 | if (m_host.ParentGroup.RootPart.IsAttachment && agent == m_host.ParentGroup.RootPart.AttachedAvatar) | 2769 | if (m_host.ParentGroup.RootPart.IsAttachment && (UUID)agent == m_host.ParentGroup.RootPart.AttachedAvatar) |
2770 | { | 2770 | { |
2771 | // When attached, certain permissions are implicit if requested from owner | 2771 | // When attached, certain permissions are implicit if requested from owner |
2772 | int implicitPerms = ScriptBaseClass.PERMISSION_TAKE_CONTROLS | | 2772 | int implicitPerms = ScriptBaseClass.PERMISSION_TAKE_CONTROLS | |
@@ -2919,7 +2919,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2919 | return; | 2919 | return; |
2920 | } | 2920 | } |
2921 | IClientAPI client = World.GetScenePresence(m_host.TaskInventory[invItemID].PermsGranter).ControllingClient; | 2921 | IClientAPI client = World.GetScenePresence(m_host.TaskInventory[invItemID].PermsGranter).ControllingClient; |
2922 | SceneObjectPart targetPart = World.GetSceneObjectPart(target); | 2922 | SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)target); |
2923 | SceneObjectGroup parentPrim = null, childPrim = null; | 2923 | SceneObjectGroup parentPrim = null, childPrim = null; |
2924 | if (targetPart != null) | 2924 | if (targetPart != null) |
2925 | { | 2925 | { |
@@ -3131,7 +3131,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3131 | if (World.GetScenePresence(destId) != null) | 3131 | if (World.GetScenePresence(destId) != null) |
3132 | { | 3132 | { |
3133 | // destination is an avatar | 3133 | // destination is an avatar |
3134 | World.MoveTaskInventoryItem(destId, null, m_host, objId); | 3134 | World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId); |
3135 | } | 3135 | } |
3136 | else | 3136 | else |
3137 | { | 3137 | { |
@@ -3180,11 +3180,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3180 | { | 3180 | { |
3181 | m_host.AddScriptLPS(1); | 3181 | m_host.AddScriptLPS(1); |
3182 | 3182 | ||
3183 | UUID uuid = (UUID)id; | ||
3184 | |||
3183 | UserProfileData userProfile = | 3185 | UserProfileData userProfile = |
3184 | World.CommsManager.UserService.GetUserProfile(id); | 3186 | World.CommsManager.UserService.GetUserProfile(uuid); |
3185 | 3187 | ||
3186 | UserAgentData userAgent = | 3188 | UserAgentData userAgent = |
3187 | World.CommsManager.UserService.GetAgentByUUID(id); | 3189 | World.CommsManager.UserService.GetAgentByUUID(uuid); |
3188 | 3190 | ||
3189 | if (userProfile == null || userAgent == null) | 3191 | if (userProfile == null || userAgent == null) |
3190 | return UUID.Zero.ToString(); | 3192 | return UUID.Zero.ToString(); |
@@ -3503,7 +3505,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3503 | public void llPushObject(string target, LSL_Vector impulse, LSL_Vector ang_impulse, int local) | 3505 | public void llPushObject(string target, LSL_Vector impulse, LSL_Vector ang_impulse, int local) |
3504 | { | 3506 | { |
3505 | m_host.AddScriptLPS(1); | 3507 | m_host.AddScriptLPS(1); |
3506 | SceneObjectPart targ = World.GetSceneObjectPart(target); | 3508 | SceneObjectPart targ = World.GetSceneObjectPart((UUID)target); |
3507 | if (targ == null) | 3509 | if (targ == null) |
3508 | return; | 3510 | return; |
3509 | targ.ApplyImpulse(new Vector3((float)impulse.x, (float)impulse.y, (float)impulse.z), local != 0); | 3511 | targ.ApplyImpulse(new Vector3((float)impulse.x, (float)impulse.y, (float)impulse.z), local != 0); |
@@ -4683,7 +4685,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4683 | public LSL_Vector llGetAgentSize(string id) | 4685 | public LSL_Vector llGetAgentSize(string id) |
4684 | { | 4686 | { |
4685 | m_host.AddScriptLPS(1); | 4687 | m_host.AddScriptLPS(1); |
4686 | ScenePresence avatar = World.GetScenePresence(id); | 4688 | ScenePresence avatar = World.GetScenePresence((UUID)id); |
4687 | LSL_Vector agentSize; | 4689 | LSL_Vector agentSize; |
4688 | if (avatar == null) | 4690 | if (avatar == null) |
4689 | { | 4691 | { |
@@ -5164,7 +5166,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5164 | if (UUID.TryParse(avatar, out key)) | 5166 | if (UUID.TryParse(avatar, out key)) |
5165 | { | 5167 | { |
5166 | entry.AgentID = key; | 5168 | entry.AgentID = key; |
5167 | entry.Flags = ParcelManager.AccessList.Access; | 5169 | entry.Flags = AccessList.Access; |
5168 | entry.Time = DateTime.Now.AddHours(hours); | 5170 | entry.Time = DateTime.Now.AddHours(hours); |
5169 | land.ParcelAccessList.Add(entry); | 5171 | land.ParcelAccessList.Add(entry); |
5170 | } | 5172 | } |
@@ -5365,7 +5367,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5365 | { | 5367 | { |
5366 | m_host.AddScriptLPS(1); | 5368 | m_host.AddScriptLPS(1); |
5367 | IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); | 5369 | IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); |
5368 | xmlrpcMod.CloseXMLRPCChannel(channel); | 5370 | xmlrpcMod.CloseXMLRPCChannel((UUID)channel); |
5369 | // ScriptSleep(1000); | 5371 | // ScriptSleep(1000); |
5370 | } | 5372 | } |
5371 | 5373 | ||
@@ -6081,7 +6083,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6081 | m_host.AddScriptLPS(1); | 6083 | m_host.AddScriptLPS(1); |
6082 | 6084 | ||
6083 | LSL_List l = new LSL_List(); | 6085 | LSL_List l = new LSL_List(); |
6084 | ScenePresence av = World.GetScenePresence(id); | 6086 | ScenePresence av = World.GetScenePresence((UUID)id); |
6085 | if (av == null) | 6087 | if (av == null) |
6086 | return l; | 6088 | return l; |
6087 | UUID[] anims; | 6089 | UUID[] anims; |
@@ -7544,7 +7546,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7544 | if (UUID.TryParse(avatar, out key)) | 7546 | if (UUID.TryParse(avatar, out key)) |
7545 | { | 7547 | { |
7546 | entry.AgentID = key; | 7548 | entry.AgentID = key; |
7547 | entry.Flags = ParcelManager.AccessList.Ban; | 7549 | entry.Flags = AccessList.Ban; |
7548 | entry.Time = DateTime.Now.AddHours(hours); | 7550 | entry.Time = DateTime.Now.AddHours(hours); |
7549 | land.ParcelAccessList.Add(entry); | 7551 | land.ParcelAccessList.Add(entry); |
7550 | } | 7552 | } |
@@ -7563,7 +7565,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7563 | { | 7565 | { |
7564 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) | 7566 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) |
7565 | { | 7567 | { |
7566 | if (entry.AgentID == key && entry.Flags == ParcelManager.AccessList.Access) | 7568 | if (entry.AgentID == key && entry.Flags == AccessList.Access) |
7567 | { | 7569 | { |
7568 | land.ParcelAccessList.Remove(entry); | 7570 | land.ParcelAccessList.Remove(entry); |
7569 | break; | 7571 | break; |
@@ -7585,7 +7587,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7585 | { | 7587 | { |
7586 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) | 7588 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) |
7587 | { | 7589 | { |
7588 | if (entry.AgentID == key && entry.Flags == ParcelManager.AccessList.Ban) | 7590 | if (entry.AgentID == key && entry.Flags == AccessList.Ban) |
7589 | { | 7591 | { |
7590 | land.ParcelAccessList.Remove(entry); | 7592 | land.ParcelAccessList.Remove(entry); |
7591 | break; | 7593 | break; |
@@ -7795,7 +7797,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7795 | { | 7797 | { |
7796 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) | 7798 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) |
7797 | { | 7799 | { |
7798 | if (entry.Flags == ParcelManager.AccessList.Ban) | 7800 | if (entry.Flags == AccessList.Ban) |
7799 | { | 7801 | { |
7800 | land.ParcelAccessList.Remove(entry); | 7802 | land.ParcelAccessList.Remove(entry); |
7801 | } | 7803 | } |
@@ -7812,7 +7814,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7812 | { | 7814 | { |
7813 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) | 7815 | foreach (ParcelManager.ParcelAccessEntry entry in land.ParcelAccessList) |
7814 | { | 7816 | { |
7815 | if (entry.Flags == ParcelManager.AccessList.Access) | 7817 | if (entry.Flags == AccessList.Access) |
7816 | { | 7818 | { |
7817 | land.ParcelAccessList.Remove(entry); | 7819 | land.ParcelAccessList.Remove(entry); |
7818 | } | 7820 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 7888a63..536bdd2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -496,10 +496,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
496 | { | 496 | { |
497 | CheckThreatLevel(ThreatLevel.VeryHigh, "osAvatarPlayAnimation"); | 497 | CheckThreatLevel(ThreatLevel.VeryHigh, "osAvatarPlayAnimation"); |
498 | 498 | ||
499 | UUID avatarID = (UUID)avatar; | ||
500 | |||
499 | m_host.AddScriptLPS(1); | 501 | m_host.AddScriptLPS(1); |
500 | if (World.Entities.ContainsKey(avatar) && World.Entities[avatar] is ScenePresence) | 502 | if (World.Entities.ContainsKey((UUID)avatar) && World.Entities[avatarID] is ScenePresence) |
501 | { | 503 | { |
502 | ScenePresence target = (ScenePresence)World.Entities[avatar]; | 504 | ScenePresence target = (ScenePresence)World.Entities[avatarID]; |
503 | target.AddAnimation(animation); | 505 | target.AddAnimation(animation); |
504 | } | 506 | } |
505 | } | 507 | } |
@@ -508,10 +510,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
508 | { | 510 | { |
509 | CheckThreatLevel(ThreatLevel.VeryHigh, "osAvatarStopAnimation"); | 511 | CheckThreatLevel(ThreatLevel.VeryHigh, "osAvatarStopAnimation"); |
510 | 512 | ||
513 | UUID avatarID = (UUID)avatar; | ||
514 | |||
511 | m_host.AddScriptLPS(1); | 515 | m_host.AddScriptLPS(1); |
512 | if (World.Entities.ContainsKey(avatar) && World.Entities[avatar] is ScenePresence) | 516 | if (World.Entities.ContainsKey(avatarID) && World.Entities[avatarID] is ScenePresence) |
513 | { | 517 | { |
514 | ScenePresence target = (ScenePresence)World.Entities[avatar]; | 518 | ScenePresence target = (ScenePresence)World.Entities[avatarID]; |
515 | target.RemoveAnimation(animation); | 519 | target.RemoveAnimation(animation); |
516 | } | 520 | } |
517 | } | 521 | } |