diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps')
19 files changed, 126 insertions, 126 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs index aabdb51..8f65a69 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs | |||
@@ -133,7 +133,7 @@ namespace OpenSim.Region.ClientStack.LindenCaps | |||
133 | { | 133 | { |
134 | data = new AgentPrefs(agent); | 134 | data = new AgentPrefs(agent); |
135 | } | 135 | } |
136 | 136 | ||
137 | if (req.ContainsKey("access_prefs")) | 137 | if (req.ContainsKey("access_prefs")) |
138 | { | 138 | { |
139 | OSDMap accessPrefs = (OSDMap)req["access_prefs"]; // We could check with ContainsKey... | 139 | OSDMap accessPrefs = (OSDMap)req["access_prefs"]; // We could check with ContainsKey... |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/AvatarPickerSearchModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/AvatarPickerSearchModule.cs index bbadc55..e3c430c 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/AvatarPickerSearchModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/AvatarPickerSearchModule.cs | |||
@@ -53,7 +53,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
53 | public class AvatarPickerSearchModule : INonSharedRegionModule | 53 | public class AvatarPickerSearchModule : INonSharedRegionModule |
54 | { | 54 | { |
55 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 55 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
56 | 56 | ||
57 | private Scene m_scene; | 57 | private Scene m_scene; |
58 | private IPeople m_People; | 58 | private IPeople m_People; |
59 | private bool m_Enabled = false; | 59 | private bool m_Enabled = false; |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index 14a4873..8cb40e1 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
97 | private ModelCost m_ModelCost; | 97 | private ModelCost m_ModelCost; |
98 | 98 | ||
99 | // private static readonly string m_remoteParcelRequestPath = "0009/";// This is in the LandManagementModule. | 99 | // private static readonly string m_remoteParcelRequestPath = "0009/";// This is in the LandManagementModule. |
100 | 100 | ||
101 | // These are callbacks which will be setup by the scene so that we can update scene data when we | 101 | // These are callbacks which will be setup by the scene so that we can update scene data when we |
102 | // receive capability calls | 102 | // receive capability calls |
103 | public NewInventoryItem AddNewInventoryItem = null; | 103 | public NewInventoryItem AddNewInventoryItem = null; |
@@ -119,7 +119,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
119 | 119 | ||
120 | private bool m_enableModelUploadTextureToInventory = false; // place uploaded textures also in inventory | 120 | private bool m_enableModelUploadTextureToInventory = false; // place uploaded textures also in inventory |
121 | // may not be visible till relog | 121 | // may not be visible till relog |
122 | 122 | ||
123 | private bool m_RestrictFreeTestUploadPerms = false; // reduces also the permitions. Needs a creator defined!! | 123 | private bool m_RestrictFreeTestUploadPerms = false; // reduces also the permitions. Needs a creator defined!! |
124 | private UUID m_testAssetsCreatorID = UUID.Zero; | 124 | private UUID m_testAssetsCreatorID = UUID.Zero; |
125 | 125 | ||
@@ -138,7 +138,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
138 | processUpload = 3 | 138 | processUpload = 3 |
139 | } | 139 | } |
140 | private FileAgentInventoryState m_FileAgentInventoryState = FileAgentInventoryState.idle; | 140 | private FileAgentInventoryState m_FileAgentInventoryState = FileAgentInventoryState.idle; |
141 | 141 | ||
142 | public BunchOfCaps(Scene scene, UUID agentID, Caps caps) | 142 | public BunchOfCaps(Scene scene, UUID agentID, Caps caps) |
143 | { | 143 | { |
144 | m_Scene = scene; | 144 | m_Scene = scene; |
@@ -147,7 +147,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
147 | 147 | ||
148 | // create a model upload cost provider | 148 | // create a model upload cost provider |
149 | m_ModelCost = new ModelCost(scene); | 149 | m_ModelCost = new ModelCost(scene); |
150 | 150 | ||
151 | m_PrimScaleMin = m_ModelCost.PrimScaleMin; | 151 | m_PrimScaleMin = m_ModelCost.PrimScaleMin; |
152 | 152 | ||
153 | IConfigSource config = m_Scene.Config; | 153 | IConfigSource config = m_Scene.Config; |
@@ -216,7 +216,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
216 | 216 | ||
217 | public string GetNewCapPath() | 217 | public string GetNewCapPath() |
218 | { | 218 | { |
219 | return "/CAPS/" + UUID.Random(); | 219 | return "/CAPS/" + UUID.Random(); |
220 | } | 220 | } |
221 | 221 | ||
222 | /// <summary> | 222 | /// <summary> |
@@ -271,7 +271,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
271 | "POST", GetNewCapPath(), HomeLocation, "HomeLocation", null); | 271 | "POST", GetNewCapPath(), HomeLocation, "HomeLocation", null); |
272 | m_HostCapsObj.RegisterHandler("HomeLocation", HomeLocationHandler); | 272 | m_HostCapsObj.RegisterHandler("HomeLocation", HomeLocationHandler); |
273 | } | 273 | } |
274 | 274 | ||
275 | if(m_AllowCapGroupMemberData) | 275 | if(m_AllowCapGroupMemberData) |
276 | { | 276 | { |
277 | IRequestHandler GroupMemberDataHandler = new RestStreamHandler( | 277 | IRequestHandler GroupMemberDataHandler = new RestStreamHandler( |
@@ -314,7 +314,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
314 | IRequestHandler CopyInventoryFromNotecardHandler = new RestStreamHandler( | 314 | IRequestHandler CopyInventoryFromNotecardHandler = new RestStreamHandler( |
315 | "POST", GetNewCapPath(), CopyInventoryFromNotecard, "CopyInventoryFromNotecard", null); | 315 | "POST", GetNewCapPath(), CopyInventoryFromNotecard, "CopyInventoryFromNotecard", null); |
316 | m_HostCapsObj.RegisterHandler("CopyInventoryFromNotecard", CopyInventoryFromNotecardHandler); | 316 | m_HostCapsObj.RegisterHandler("CopyInventoryFromNotecard", CopyInventoryFromNotecardHandler); |
317 | 317 | ||
318 | } | 318 | } |
319 | catch (Exception e) | 319 | catch (Exception e) |
320 | { | 320 | { |
@@ -568,8 +568,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
568 | { | 568 | { |
569 | string error; | 569 | string error; |
570 | int modelcost; | 570 | int modelcost; |
571 | 571 | ||
572 | 572 | ||
573 | if (!m_ModelCost.MeshModelCost(llsdRequest.asset_resources, baseCost, out modelcost, | 573 | if (!m_ModelCost.MeshModelCost(llsdRequest.asset_resources, baseCost, out modelcost, |
574 | meshcostdata, out error, ref warning)) | 574 | meshcostdata, out error, ref warning)) |
575 | { | 575 | { |
@@ -639,7 +639,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
639 | client.SendAgentAlertMessage(warning, true); | 639 | client.SendAgentAlertMessage(warning, true); |
640 | } | 640 | } |
641 | } | 641 | } |
642 | 642 | ||
643 | string assetDes = llsdRequest.description; | 643 | string assetDes = llsdRequest.description; |
644 | UUID newAsset = UUID.Random(); | 644 | UUID newAsset = UUID.Random(); |
645 | UUID newInvItem = UUID.Random(); | 645 | UUID newInvItem = UUID.Random(); |
@@ -813,7 +813,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
813 | 813 | ||
814 | List<UUID> textures = new List<UUID>(); | 814 | List<UUID> textures = new List<UUID>(); |
815 | 815 | ||
816 | 816 | ||
817 | // if (doTextInv) | 817 | // if (doTextInv) |
818 | m_Scene.TryGetClient(m_HostCapsObj.AgentID, out client); | 818 | m_Scene.TryGetClient(m_HostCapsObj.AgentID, out client); |
819 | 819 | ||
@@ -895,7 +895,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
895 | meshAvatarSkeletons.Add(curAvSkeleton); | 895 | meshAvatarSkeletons.Add(curAvSkeleton); |
896 | meshAvatarColliders.Add(curAvCollider); | 896 | meshAvatarColliders.Add(curAvCollider); |
897 | 897 | ||
898 | // test code | 898 | // test code |
899 | if (curAvSkeleton && client != null) | 899 | if (curAvSkeleton && client != null) |
900 | { | 900 | { |
901 | string name = assetName; | 901 | string name = assetName; |
@@ -1054,7 +1054,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1054 | prim.LastOwnerID = creatorID; | 1054 | prim.LastOwnerID = creatorID; |
1055 | prim.RezzerID = creatorID; | 1055 | prim.RezzerID = creatorID; |
1056 | prim.CreationDate = Util.UnixTimeSinceEpoch(); | 1056 | prim.CreationDate = Util.UnixTimeSinceEpoch(); |
1057 | 1057 | ||
1058 | if (grp == null) | 1058 | if (grp == null) |
1059 | prim.Name = assetName; | 1059 | prim.Name = assetName; |
1060 | else | 1060 | else |
@@ -1437,7 +1437,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1437 | public string GetObjectCost(string request, string path, | 1437 | public string GetObjectCost(string request, string path, |
1438 | string param, IOSHttpRequest httpRequest, | 1438 | string param, IOSHttpRequest httpRequest, |
1439 | IOSHttpResponse httpResponse) | 1439 | IOSHttpResponse httpResponse) |
1440 | { | 1440 | { |
1441 | OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); | 1441 | OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); |
1442 | OSDMap resp = new OSDMap(); | 1442 | OSDMap resp = new OSDMap(); |
1443 | 1443 | ||
@@ -1446,7 +1446,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1446 | for (int i = 0; i < object_ids.Count; i++) | 1446 | for (int i = 0; i < object_ids.Count; i++) |
1447 | { | 1447 | { |
1448 | UUID uuid = object_ids[i].AsUUID(); | 1448 | UUID uuid = object_ids[i].AsUUID(); |
1449 | 1449 | ||
1450 | SceneObjectPart part = m_Scene.GetSceneObjectPart(uuid); | 1450 | SceneObjectPart part = m_Scene.GetSceneObjectPart(uuid); |
1451 | SceneObjectGroup grp = null; | 1451 | SceneObjectGroup grp = null; |
1452 | if (part != null) | 1452 | if (part != null) |
@@ -1479,7 +1479,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1479 | resp[UUID.Zero.ToString()] = object_data; | 1479 | resp[UUID.Zero.ToString()] = object_data; |
1480 | } | 1480 | } |
1481 | string response = OSDParser.SerializeLLSDXmlString(resp); | 1481 | string response = OSDParser.SerializeLLSDXmlString(resp); |
1482 | return response; | 1482 | return response; |
1483 | } | 1483 | } |
1484 | 1484 | ||
1485 | public string ResourceCostSelected(string request, string path, | 1485 | public string ResourceCostSelected(string request, string path, |
@@ -1548,7 +1548,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1548 | resp["selected"] = object_data; | 1548 | resp["selected"] = object_data; |
1549 | // resp["transaction_id"] = "undef"; | 1549 | // resp["transaction_id"] = "undef"; |
1550 | string response = OSDParser.SerializeLLSDXmlString(resp); | 1550 | string response = OSDParser.SerializeLLSDXmlString(resp); |
1551 | return response; | 1551 | return response; |
1552 | } | 1552 | } |
1553 | 1553 | ||
1554 | public string UpdateAgentInformation(string request, string path, | 1554 | public string UpdateAgentInformation(string request, string path, |
@@ -1564,7 +1564,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1564 | resp["access_prefs"] = accessPrefs; | 1564 | resp["access_prefs"] = accessPrefs; |
1565 | 1565 | ||
1566 | string response = OSDParser.SerializeLLSDXmlString(resp); | 1566 | string response = OSDParser.SerializeLLSDXmlString(resp); |
1567 | return response; | 1567 | return response; |
1568 | } | 1568 | } |
1569 | 1569 | ||
1570 | public bool OSDMapTOVector3(OSDMap map, out Vector3 v) | 1570 | public bool OSDMapTOVector3(OSDMap map, out Vector3 v) |
@@ -1598,19 +1598,19 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1598 | 1598 | ||
1599 | IClientAPI client = null; | 1599 | IClientAPI client = null; |
1600 | ScenePresence sp; | 1600 | ScenePresence sp; |
1601 | 1601 | ||
1602 | while(true) | 1602 | while(true) |
1603 | { | 1603 | { |
1604 | if(m_Scene.GridUserService == null) | 1604 | if(m_Scene.GridUserService == null) |
1605 | break; | 1605 | break; |
1606 | 1606 | ||
1607 | if(m_Scene.UserManagementModule == null) | 1607 | if(m_Scene.UserManagementModule == null) |
1608 | break; | 1608 | break; |
1609 | 1609 | ||
1610 | m_Scene.TryGetScenePresence(m_AgentID, out sp); | 1610 | m_Scene.TryGetScenePresence(m_AgentID, out sp); |
1611 | if(sp == null || sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit) | 1611 | if(sp == null || sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit) |
1612 | break; | 1612 | break; |
1613 | 1613 | ||
1614 | client = sp.ControllingClient; | 1614 | client = sp.ControllingClient; |
1615 | 1615 | ||
1616 | if(!m_Scene.UserManagementModule.IsLocalGridUser(m_AgentID)) | 1616 | if(!m_Scene.UserManagementModule.IsLocalGridUser(m_AgentID)) |
@@ -1637,7 +1637,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1637 | ILandObject land = m_Scene.LandChannel.GetLandObject(pos); | 1637 | ILandObject land = m_Scene.LandChannel.GetLandObject(pos); |
1638 | if(land == null) | 1638 | if(land == null) |
1639 | break; | 1639 | break; |
1640 | 1640 | ||
1641 | ulong gpowers = client.GetGroupPowers(land.LandData.GroupID); | 1641 | ulong gpowers = client.GetGroupPowers(land.LandData.GroupID); |
1642 | SceneObjectGroup telehub = null; | 1642 | SceneObjectGroup telehub = null; |
1643 | if (m_Scene.RegionInfo.RegionSettings.TelehubObject != UUID.Zero) | 1643 | if (m_Scene.RegionInfo.RegionSettings.TelehubObject != UUID.Zero) |
@@ -1648,7 +1648,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1648 | !m_Scene.Permissions.IsGod(m_AgentID) && | 1648 | !m_Scene.Permissions.IsGod(m_AgentID) && |
1649 | m_AgentID != land.LandData.OwnerID && // (b) land owners can set home | 1649 | m_AgentID != land.LandData.OwnerID && // (b) land owners can set home |
1650 | // (c) members of the land-associated group in roles that can set home | 1650 | // (c) members of the land-associated group in roles that can set home |
1651 | ((gpowers & (ulong)GroupPowers.AllowSetHome) != (ulong)GroupPowers.AllowSetHome) && | 1651 | ((gpowers & (ulong)GroupPowers.AllowSetHome) != (ulong)GroupPowers.AllowSetHome) && |
1652 | // (d) parcels with telehubs can be the home of anyone | 1652 | // (d) parcels with telehubs can be the home of anyone |
1653 | (telehub == null || !land.ContainsPoint((int)telehub.AbsolutePosition.X, (int)telehub.AbsolutePosition.Y))) | 1653 | (telehub == null || !land.ContainsPoint((int)telehub.AbsolutePosition.X, (int)telehub.AbsolutePosition.Y))) |
1654 | { | 1654 | { |
@@ -1675,7 +1675,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1675 | 1675 | ||
1676 | break; | 1676 | break; |
1677 | } | 1677 | } |
1678 | 1678 | ||
1679 | string response; | 1679 | string response; |
1680 | 1680 | ||
1681 | if(fail) | 1681 | if(fail) |
@@ -1728,11 +1728,11 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1728 | m_GroupsModule = m_Scene.RequestModuleInterface<IGroupsModule>(); | 1728 | m_GroupsModule = m_Scene.RequestModuleInterface<IGroupsModule>(); |
1729 | if(m_GroupsModule == null) | 1729 | if(m_GroupsModule == null) |
1730 | break; | 1730 | break; |
1731 | 1731 | ||
1732 | m_Scene.TryGetScenePresence(m_AgentID, out sp); | 1732 | m_Scene.TryGetScenePresence(m_AgentID, out sp); |
1733 | if(sp == null || sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit) | 1733 | if(sp == null || sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit) |
1734 | break; | 1734 | break; |
1735 | 1735 | ||
1736 | client = sp.ControllingClient; | 1736 | client = sp.ControllingClient; |
1737 | 1737 | ||
1738 | OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); | 1738 | OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); |
@@ -1866,12 +1866,12 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1866 | OSDMap osdname = new OSDMap(); | 1866 | OSDMap osdname = new OSDMap(); |
1867 | if(parts[0] == "Unknown") | 1867 | if(parts[0] == "Unknown") |
1868 | { | 1868 | { |
1869 | osdname["display_name_next_update"] = OSD.FromDate(DateTime.UtcNow.AddHours(1)); | 1869 | osdname["display_name_next_update"] = OSD.FromDate(DateTime.UtcNow.AddHours(1)); |
1870 | osdname["display_name_expires"] = OSD.FromDate(DateTime.UtcNow.AddHours(2)); | 1870 | osdname["display_name_expires"] = OSD.FromDate(DateTime.UtcNow.AddHours(2)); |
1871 | } | 1871 | } |
1872 | else | 1872 | else |
1873 | { | 1873 | { |
1874 | osdname["display_name_next_update"] = OSD.FromDate(DateTime.UtcNow.AddDays(8)); | 1874 | osdname["display_name_next_update"] = OSD.FromDate(DateTime.UtcNow.AddDays(8)); |
1875 | osdname["display_name_expires"] = OSD.FromDate(DateTime.UtcNow.AddMonths(1)); | 1875 | osdname["display_name_expires"] = OSD.FromDate(DateTime.UtcNow.AddMonths(1)); |
1876 | } | 1876 | } |
1877 | osdname["display_name"] = OSD.FromString(kvp.Value); | 1877 | osdname["display_name"] = OSD.FromString(kvp.Value); |
@@ -1916,7 +1916,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1916 | private string m_assetType = String.Empty; | 1916 | private string m_assetType = String.Empty; |
1917 | private int m_cost; | 1917 | private int m_cost; |
1918 | private string m_error = String.Empty; | 1918 | private string m_error = String.Empty; |
1919 | 1919 | ||
1920 | private Timer m_timeoutTimer = new Timer(); | 1920 | private Timer m_timeoutTimer = new Timer(); |
1921 | private UUID m_texturesFolder; | 1921 | private UUID m_texturesFolder; |
1922 | private int m_nreqtextures; | 1922 | private int m_nreqtextures; |
@@ -1928,7 +1928,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1928 | private int m_groupMask; | 1928 | private int m_groupMask; |
1929 | private int m_everyoneMask; | 1929 | private int m_everyoneMask; |
1930 | 1930 | ||
1931 | 1931 | ||
1932 | public AssetUploader(string assetName, string description, UUID assetID, UUID inventoryItem, | 1932 | public AssetUploader(string assetName, string description, UUID assetID, UUID inventoryItem, |
1933 | UUID parentFolderID, string invType, string assetType, string path, | 1933 | UUID parentFolderID, string invType, string assetType, string path, |
1934 | IHttpServer httpServer, bool dumpAssetsToFile, | 1934 | IHttpServer httpServer, bool dumpAssetsToFile, |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs index 5b4e0da..683c3d5 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs | |||
@@ -63,7 +63,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
63 | { | 63 | { |
64 | } | 64 | } |
65 | 65 | ||
66 | public void Close() { } | 66 | public void Close() { } |
67 | 67 | ||
68 | public void AddRegion(Scene scene) | 68 | public void AddRegion(Scene scene) |
69 | { | 69 | { |
@@ -80,7 +80,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
80 | } | 80 | } |
81 | 81 | ||
82 | public void PostInitialise() { } | 82 | public void PostInitialise() { } |
83 | #endregion | 83 | #endregion |
84 | 84 | ||
85 | private void OnRegisterCaps(UUID agentID, Caps caps) | 85 | private void OnRegisterCaps(UUID agentID, Caps caps) |
86 | { | 86 | { |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs index fb22694..eb1ab45 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
51 | { | 51 | { |
52 | public struct ModelPrimLimits | 52 | public struct ModelPrimLimits |
53 | { | 53 | { |
54 | 54 | ||
55 | } | 55 | } |
56 | 56 | ||
57 | public class ModelCost | 57 | public class ModelCost |
@@ -82,9 +82,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
82 | const float lowestSizeWth = 2f; // 3x | 82 | const float lowestSizeWth = 2f; // 3x |
83 | // favor potencially physical optimized meshs versus automatic decomposition | 83 | // favor potencially physical optimized meshs versus automatic decomposition |
84 | const float physMeshSizeWth = 6f; // counts 7x | 84 | const float physMeshSizeWth = 6f; // counts 7x |
85 | const float physHullSizeWth = 8f; // counts 9x | 85 | const float physHullSizeWth = 8f; // counts 9x |
86 | 86 | ||
87 | // stream cost area factors | 87 | // stream cost area factors |
88 | // more or less like SL | 88 | // more or less like SL |
89 | const float highLodFactor = 17.36f; | 89 | const float highLodFactor = 17.36f; |
90 | const float midLodFactor = 277.78f; | 90 | const float midLodFactor = 277.78f; |
@@ -108,7 +108,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
108 | PrimScaleMin = scene.m_minNonphys; | 108 | PrimScaleMin = scene.m_minNonphys; |
109 | NonPhysicalPrimScaleMax = scene.m_maxNonphys; | 109 | NonPhysicalPrimScaleMax = scene.m_maxNonphys; |
110 | PhysicalPrimScaleMax = scene.m_maxPhys; | 110 | PhysicalPrimScaleMax = scene.m_maxPhys; |
111 | ObjectLinkedPartsMax = scene.m_linksetCapacity; | 111 | ObjectLinkedPartsMax = scene.m_linksetCapacity; |
112 | } | 112 | } |
113 | 113 | ||
114 | public void Econfig(IConfig EconomyConfig) | 114 | public void Econfig(IConfig EconomyConfig) |
@@ -121,7 +121,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
121 | bytecost = EconomyConfig.GetFloat("ModelMeshByteCost", bytecost); | 121 | bytecost = EconomyConfig.GetFloat("ModelMeshByteCost", bytecost); |
122 | } | 122 | } |
123 | 123 | ||
124 | // storage for a single mesh asset cost parameters | 124 | // storage for a single mesh asset cost parameters |
125 | private class ameshCostParam | 125 | private class ameshCostParam |
126 | { | 126 | { |
127 | // LOD sizes for size dependent streaming cost | 127 | // LOD sizes for size dependent streaming cost |
@@ -140,7 +140,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
140 | // resources input LLSD request | 140 | // resources input LLSD request |
141 | // basicCost input region assets upload cost | 141 | // basicCost input region assets upload cost |
142 | // totalcost returns model total upload fee | 142 | // totalcost returns model total upload fee |
143 | // meshcostdata returns detailed costs for viewer | 143 | // meshcostdata returns detailed costs for viewer |
144 | // avatarSkeleton if mesh includes a avatar skeleton | 144 | // avatarSkeleton if mesh includes a avatar skeleton |
145 | // useAvatarCollider if we should use physics mesh for avatar | 145 | // useAvatarCollider if we should use physics mesh for avatar |
146 | public bool MeshModelCost(LLSDAssetResource resources, int basicCost, out int totalcost, | 146 | public bool MeshModelCost(LLSDAssetResource resources, int basicCost, out int totalcost, |
@@ -150,7 +150,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
150 | error = string.Empty; | 150 | error = string.Empty; |
151 | 151 | ||
152 | bool avatarSkeleton = false; | 152 | bool avatarSkeleton = false; |
153 | 153 | ||
154 | if (resources == null || | 154 | if (resources == null || |
155 | resources.instance_list == null || | 155 | resources.instance_list == null || |
156 | resources.instance_list.Array.Count == 0) | 156 | resources.instance_list.Array.Count == 0) |
@@ -203,7 +203,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
203 | if (resources.mesh_list != null && resources.mesh_list.Array.Count > 0) | 203 | if (resources.mesh_list != null && resources.mesh_list.Array.Count > 0) |
204 | { | 204 | { |
205 | numberMeshs = resources.mesh_list.Array.Count; | 205 | numberMeshs = resources.mesh_list.Array.Count; |
206 | 206 | ||
207 | for (int i = 0; i < numberMeshs; i++) | 207 | for (int i = 0; i < numberMeshs; i++) |
208 | { | 208 | { |
209 | ameshCostParam curCost = new ameshCostParam(); | 209 | ameshCostParam curCost = new ameshCostParam(); |
@@ -230,7 +230,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
230 | } | 230 | } |
231 | 231 | ||
232 | // instances (prims) cost | 232 | // instances (prims) cost |
233 | 233 | ||
234 | 234 | ||
235 | int mesh; | 235 | int mesh; |
236 | int skipedSmall = 0; | 236 | int skipedSmall = 0; |
@@ -331,7 +331,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
331 | 331 | ||
332 | // breakdown prices | 332 | // breakdown prices |
333 | // don't seem to be in use so removed code for now | 333 | // don't seem to be in use so removed code for now |
334 | 334 | ||
335 | return true; | 335 | return true; |
336 | } | 336 | } |
337 | 337 | ||
@@ -404,7 +404,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
404 | int sksize = tmpmap["size"].AsInteger(); | 404 | int sksize = tmpmap["size"].AsInteger(); |
405 | if(sksize > 0) | 405 | if(sksize > 0) |
406 | skeleton = true; | 406 | skeleton = true; |
407 | } | 407 | } |
408 | } | 408 | } |
409 | 409 | ||
410 | if (map.ContainsKey("physics_convex")) | 410 | if (map.ContainsKey("physics_convex")) |
@@ -429,7 +429,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
429 | } | 429 | } |
430 | 430 | ||
431 | submesh_offset = -1; | 431 | submesh_offset = -1; |
432 | 432 | ||
433 | // only look for LOD meshs sizes | 433 | // only look for LOD meshs sizes |
434 | 434 | ||
435 | if (map.ContainsKey("high_lod")) | 435 | if (map.ContainsKey("high_lod")) |
@@ -518,7 +518,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
518 | cost.physicsCost = 0.04f * phys_hullsvertices; | 518 | cost.physicsCost = 0.04f * phys_hullsvertices; |
519 | 519 | ||
520 | float sfee; | 520 | float sfee; |
521 | 521 | ||
522 | sfee = data.Length; // start with total compressed data size | 522 | sfee = data.Length; // start with total compressed data size |
523 | 523 | ||
524 | // penalize lod meshs that should be more builder optimized | 524 | // penalize lod meshs that should be more builder optimized |
@@ -535,7 +535,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
535 | 535 | ||
536 | // bytes to money | 536 | // bytes to money |
537 | sfee *= bytecost; | 537 | sfee *= bytecost; |
538 | 538 | ||
539 | cost.costFee = sfee; | 539 | cost.costFee = sfee; |
540 | return true; | 540 | return true; |
541 | } | 541 | } |
@@ -675,7 +675,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
675 | return true; | 675 | return true; |
676 | } | 676 | } |
677 | 677 | ||
678 | // returns streaming cost from on mesh LODs sizes in curCost and square of prim size length | 678 | // returns streaming cost from on mesh LODs sizes in curCost and square of prim size length |
679 | private float streamingCost(ameshCostParam curCost, float sqdiam) | 679 | private float streamingCost(ameshCostParam curCost, float sqdiam) |
680 | { | 680 | { |
681 | // compute efective areas | 681 | // compute efective areas |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index ba3edd6..1feece1 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | |||
@@ -74,12 +74,12 @@ namespace OpenSim.Region.ClientStack.Linden | |||
74 | private const int SERVER_EQ_TIME_NO_EVENTS = VIEWER_TIMEOUT - (10 * 1000); | 74 | private const int SERVER_EQ_TIME_NO_EVENTS = VIEWER_TIMEOUT - (10 * 1000); |
75 | 75 | ||
76 | protected Scene m_scene; | 76 | protected Scene m_scene; |
77 | 77 | ||
78 | private Dictionary<UUID, int> m_ids = new Dictionary<UUID, int>(); | 78 | private Dictionary<UUID, int> m_ids = new Dictionary<UUID, int>(); |
79 | 79 | ||
80 | private Dictionary<UUID, Queue<OSD>> queues = new Dictionary<UUID, Queue<OSD>>(); | 80 | private Dictionary<UUID, Queue<OSD>> queues = new Dictionary<UUID, Queue<OSD>>(); |
81 | private Dictionary<UUID, UUID> m_AvatarQueueUUIDMapping = new Dictionary<UUID, UUID>(); | 81 | private Dictionary<UUID, UUID> m_AvatarQueueUUIDMapping = new Dictionary<UUID, UUID>(); |
82 | 82 | ||
83 | #region INonSharedRegionModule methods | 83 | #region INonSharedRegionModule methods |
84 | public virtual void Initialise(IConfigSource config) | 84 | public virtual void Initialise(IConfigSource config) |
85 | { | 85 | { |
@@ -170,7 +170,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
170 | foreach (KeyValuePair<UUID, Queue<OSD>> kvp in queues) | 170 | foreach (KeyValuePair<UUID, Queue<OSD>> kvp in queues) |
171 | { | 171 | { |
172 | MainConsole.Instance.OutputFormat( | 172 | MainConsole.Instance.OutputFormat( |
173 | "For agent {0} there are {1} messages queued for send.", | 173 | "For agent {0} there are {1} messages queued for send.", |
174 | kvp.Key, kvp.Value.Count); | 174 | kvp.Key, kvp.Value.Count); |
175 | } | 175 | } |
176 | } | 176 | } |
@@ -189,7 +189,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
189 | { | 189 | { |
190 | if (DebugLevel > 0) | 190 | if (DebugLevel > 0) |
191 | m_log.DebugFormat( | 191 | m_log.DebugFormat( |
192 | "[EVENTQUEUE]: Adding new queue for agent {0} in region {1}", | 192 | "[EVENTQUEUE]: Adding new queue for agent {0} in region {1}", |
193 | agentId, m_scene.RegionInfo.RegionName); | 193 | agentId, m_scene.RegionInfo.RegionName); |
194 | 194 | ||
195 | queues[agentId] = new Queue<OSD>(); | 195 | queues[agentId] = new Queue<OSD>(); |
@@ -238,13 +238,13 @@ namespace OpenSim.Region.ClientStack.Linden | |||
238 | "[EVENTQUEUE]: (Enqueue) No queue found for agent {0} when placing message {1} in region {2}", | 238 | "[EVENTQUEUE]: (Enqueue) No queue found for agent {0} when placing message {1} in region {2}", |
239 | avatarID, evMap["message"], m_scene.Name); | 239 | avatarID, evMap["message"], m_scene.Name); |
240 | } | 240 | } |
241 | } | 241 | } |
242 | catch (NullReferenceException e) | 242 | catch (NullReferenceException e) |
243 | { | 243 | { |
244 | m_log.Error("[EVENTQUEUE] Caught exception: " + e); | 244 | m_log.Error("[EVENTQUEUE] Caught exception: " + e); |
245 | return false; | 245 | return false; |
246 | } | 246 | } |
247 | 247 | ||
248 | return true; | 248 | return true; |
249 | } | 249 | } |
250 | 250 | ||
@@ -309,10 +309,10 @@ namespace OpenSim.Region.ClientStack.Linden | |||
309 | 309 | ||
310 | // push markers to handle old responses still waiting | 310 | // push markers to handle old responses still waiting |
311 | // this will cost at most viewer getting two forced noevents | 311 | // this will cost at most viewer getting two forced noevents |
312 | // even being a new queue better be safe | 312 | // even being a new queue better be safe |
313 | queue.Enqueue(null); | 313 | queue.Enqueue(null); |
314 | queue.Enqueue(null); // one should be enough | 314 | queue.Enqueue(null); // one should be enough |
315 | 315 | ||
316 | lock (m_AvatarQueueUUIDMapping) | 316 | lock (m_AvatarQueueUUIDMapping) |
317 | { | 317 | { |
318 | eventQueueGetUUID = UUID.Random(); | 318 | eventQueueGetUUID = UUID.Random(); |
@@ -336,7 +336,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
336 | { | 336 | { |
337 | // push markers to handle old responses still waiting | 337 | // push markers to handle old responses still waiting |
338 | // this will cost at most viewer getting two forced noevents | 338 | // this will cost at most viewer getting two forced noevents |
339 | // even being a new queue better be safe | 339 | // even being a new queue better be safe |
340 | queue.Enqueue(null); | 340 | queue.Enqueue(null); |
341 | queue.Enqueue(null); // one should be enough | 341 | queue.Enqueue(null); // one should be enough |
342 | 342 | ||
@@ -405,7 +405,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
405 | } | 405 | } |
406 | public void Drop(UUID requestID, UUID pAgentId) | 406 | public void Drop(UUID requestID, UUID pAgentId) |
407 | { | 407 | { |
408 | // do nothing for now, hope client close will do it | 408 | // do nothing for now, hope client close will do it |
409 | } | 409 | } |
410 | 410 | ||
411 | public Hashtable GetEvents(UUID requestID, UUID pAgentId) | 411 | public Hashtable GetEvents(UUID requestID, UUID pAgentId) |
@@ -437,7 +437,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
437 | negativeID = true; | 437 | negativeID = true; |
438 | thisID = -thisID; | 438 | thisID = -thisID; |
439 | } | 439 | } |
440 | 440 | ||
441 | while (queue.Count > 0) | 441 | while (queue.Count > 0) |
442 | { | 442 | { |
443 | element = queue.Dequeue(); | 443 | element = queue.Dequeue(); |
@@ -477,7 +477,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
477 | // if there where no elements before a marker send a NoEvents | 477 | // if there where no elements before a marker send a NoEvents |
478 | if (array.Count == 0) | 478 | if (array.Count == 0) |
479 | return NoEvents(requestID, pAgentId); | 479 | return NoEvents(requestID, pAgentId); |
480 | 480 | ||
481 | Hashtable responsedata = new Hashtable(); | 481 | Hashtable responsedata = new Hashtable(); |
482 | responsedata["int_response_code"] = 200; | 482 | responsedata["int_response_code"] = 200; |
483 | responsedata["content_type"] = "application/xml"; | 483 | responsedata["content_type"] = "application/xml"; |
@@ -500,7 +500,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
500 | responsedata["http_protocol_version"] = "HTTP/1.0"; | 500 | responsedata["http_protocol_version"] = "HTTP/1.0"; |
501 | return responsedata; | 501 | return responsedata; |
502 | } | 502 | } |
503 | 503 | ||
504 | public void DisableSimulator(ulong handle, UUID avatarID) | 504 | public void DisableSimulator(ulong handle, UUID avatarID) |
505 | { | 505 | { |
506 | OSD item = EventQueueHelper.DisableSimulator(handle); | 506 | OSD item = EventQueueHelper.DisableSimulator(handle); |
@@ -518,7 +518,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
518 | } | 518 | } |
519 | 519 | ||
520 | public virtual void EstablishAgentCommunication(UUID avatarID, IPEndPoint endPoint, string capsPath, | 520 | public virtual void EstablishAgentCommunication(UUID avatarID, IPEndPoint endPoint, string capsPath, |
521 | ulong regionHandle, int regionSizeX, int regionSizeY) | 521 | ulong regionHandle, int regionSizeX, int regionSizeY) |
522 | { | 522 | { |
523 | if (DebugLevel > 0) | 523 | if (DebugLevel > 0) |
524 | m_log.DebugFormat("{0} EstablishAgentCommunication. handle={1}, endPoint={2}, avatarID={3}", | 524 | m_log.DebugFormat("{0} EstablishAgentCommunication. handle={1}, endPoint={2}, avatarID={3}", |
@@ -528,9 +528,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
528 | Enqueue(item, avatarID); | 528 | Enqueue(item, avatarID); |
529 | } | 529 | } |
530 | 530 | ||
531 | public virtual void TeleportFinishEvent(ulong regionHandle, byte simAccess, | 531 | public virtual void TeleportFinishEvent(ulong regionHandle, byte simAccess, |
532 | IPEndPoint regionExternalEndPoint, | 532 | IPEndPoint regionExternalEndPoint, |
533 | uint locationID, uint flags, string capsURL, | 533 | uint locationID, uint flags, string capsURL, |
534 | UUID avatarID, int regionSizeX, int regionSizeY) | 534 | UUID avatarID, int regionSizeX, int regionSizeY) |
535 | { | 535 | { |
536 | if (DebugLevel > 0) | 536 | if (DebugLevel > 0) |
@@ -560,15 +560,15 @@ namespace OpenSim.Region.ClientStack.Linden | |||
560 | uint timeStamp, bool offline, int parentEstateID, Vector3 position, | 560 | uint timeStamp, bool offline, int parentEstateID, Vector3 position, |
561 | uint ttl, UUID transactionID, bool fromGroup, byte[] binaryBucket) | 561 | uint ttl, UUID transactionID, bool fromGroup, byte[] binaryBucket) |
562 | { | 562 | { |
563 | OSD item = EventQueueHelper.ChatterboxInvitation(sessionID, sessionName, fromAgent, message, toAgent, fromName, dialog, | 563 | OSD item = EventQueueHelper.ChatterboxInvitation(sessionID, sessionName, fromAgent, message, toAgent, fromName, dialog, |
564 | timeStamp, offline, parentEstateID, position, ttl, transactionID, | 564 | timeStamp, offline, parentEstateID, position, ttl, transactionID, |
565 | fromGroup, binaryBucket); | 565 | fromGroup, binaryBucket); |
566 | Enqueue(item, toAgent); | 566 | Enqueue(item, toAgent); |
567 | //m_log.InfoFormat("########### eq ChatterboxInvitation #############\n{0}", item); | 567 | //m_log.InfoFormat("########### eq ChatterboxInvitation #############\n{0}", item); |
568 | 568 | ||
569 | } | 569 | } |
570 | 570 | ||
571 | public void ChatterBoxSessionAgentListUpdates(UUID sessionID, UUID fromAgent, UUID toAgent, bool canVoiceChat, | 571 | public void ChatterBoxSessionAgentListUpdates(UUID sessionID, UUID fromAgent, UUID toAgent, bool canVoiceChat, |
572 | bool isModerator, bool textMute, bool isEnterorLeave) | 572 | bool isModerator, bool textMute, bool isEnterorLeave) |
573 | { | 573 | { |
574 | OSD item = EventQueueHelper.ChatterBoxSessionAgentListUpdates(sessionID, fromAgent, canVoiceChat, | 574 | OSD item = EventQueueHelper.ChatterBoxSessionAgentListUpdates(sessionID, fromAgent, canVoiceChat, |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs index 5e0bd71..e1e88ae 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | |||
@@ -105,7 +105,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
105 | 105 | ||
106 | return BuildEvent("DisableSimulator", llsdBody); | 106 | return BuildEvent("DisableSimulator", llsdBody); |
107 | } | 107 | } |
108 | 108 | ||
109 | public static OSD CrossRegion(ulong handle, Vector3 pos, Vector3 lookAt, | 109 | public static OSD CrossRegion(ulong handle, Vector3 pos, Vector3 lookAt, |
110 | IPEndPoint newRegionExternalEndPoint, | 110 | IPEndPoint newRegionExternalEndPoint, |
111 | string capsURL, UUID agentID, UUID sessionID, | 111 | string capsURL, UUID agentID, UUID sessionID, |
@@ -194,13 +194,13 @@ namespace OpenSim.Region.ClientStack.Linden | |||
194 | script.Add("ItemID", OSD.FromUUID(itemID)); | 194 | script.Add("ItemID", OSD.FromUUID(itemID)); |
195 | script.Add("Running", OSD.FromBoolean(running)); | 195 | script.Add("Running", OSD.FromBoolean(running)); |
196 | script.Add("Mono", OSD.FromBoolean(mono)); | 196 | script.Add("Mono", OSD.FromBoolean(mono)); |
197 | 197 | ||
198 | OSDArray scriptArr = new OSDArray(); | 198 | OSDArray scriptArr = new OSDArray(); |
199 | scriptArr.Add(script); | 199 | scriptArr.Add(script); |
200 | 200 | ||
201 | OSDMap body = new OSDMap(); | 201 | OSDMap body = new OSDMap(); |
202 | body.Add("Script", scriptArr); | 202 | body.Add("Script", scriptArr); |
203 | 203 | ||
204 | return BuildEvent("ScriptRunningReply", body); | 204 | return BuildEvent("ScriptRunningReply", body); |
205 | } | 205 | } |
206 | 206 | ||
@@ -243,7 +243,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
243 | { | 243 | { |
244 | OSDMap messageParams = new OSDMap(15); | 244 | OSDMap messageParams = new OSDMap(15); |
245 | messageParams.Add("type", new OSDInteger((int)dialog)); | 245 | messageParams.Add("type", new OSDInteger((int)dialog)); |
246 | 246 | ||
247 | OSDArray positionArray = new OSDArray(3); | 247 | OSDArray positionArray = new OSDArray(3); |
248 | positionArray.Add(OSD.FromReal(position.X)); | 248 | positionArray.Add(OSD.FromReal(position.X)); |
249 | positionArray.Add(OSD.FromReal(position.Y)); | 249 | positionArray.Add(OSD.FromReal(position.Y)); |
@@ -423,7 +423,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
423 | QueryDataMap.Add("SnapShotID", OSD.FromUUID(groupDataBlock.SnapshotID)); | 423 | QueryDataMap.Add("SnapShotID", OSD.FromUUID(groupDataBlock.SnapshotID)); |
424 | QueryDataMap.Add("ProductSku", OSD.FromInteger(0)); | 424 | QueryDataMap.Add("ProductSku", OSD.FromInteger(0)); |
425 | QueryDataMap.Add("Price", OSD.FromInteger(groupDataBlock.Price)); | 425 | QueryDataMap.Add("Price", OSD.FromInteger(groupDataBlock.Price)); |
426 | 426 | ||
427 | QueryData.Add(QueryDataMap); | 427 | QueryData.Add(QueryDataMap); |
428 | } | 428 | } |
429 | body.Add("QueryData", QueryData); | 429 | body.Add("QueryData", QueryData); |
@@ -444,7 +444,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
444 | public static OSD partPhysicsProperties(uint localID, byte physhapetype, | 444 | public static OSD partPhysicsProperties(uint localID, byte physhapetype, |
445 | float density, float friction, float bounce, float gravmod) | 445 | float density, float friction, float bounce, float gravmod) |
446 | { | 446 | { |
447 | 447 | ||
448 | OSDMap physinfo = new OSDMap(6); | 448 | OSDMap physinfo = new OSDMap(6); |
449 | physinfo["LocalID"] = localID; | 449 | physinfo["LocalID"] = localID; |
450 | physinfo["Density"] = density; | 450 | physinfo["Density"] = density; |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs index 1e629bd..ee3f4f1 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs | |||
@@ -180,7 +180,7 @@ namespace OpenSim.Region.ClientStack.Linden.Tests | |||
180 | TestHelpers.InMethod(); | 180 | TestHelpers.InMethod(); |
181 | // TestHelpers.EnableLogging(); | 181 | // TestHelpers.EnableLogging(); |
182 | 182 | ||
183 | UUID npcId | 183 | UUID npcId |
184 | = m_npcMod.CreateNPC( | 184 | = m_npcMod.CreateNPC( |
185 | "John", "Smith", new Vector3(128, 128, 30), UUID.Zero, true, m_scene, new AvatarAppearance()); | 185 | "John", "Smith", new Vector3(128, 128, 30), UUID.Zero, true, m_scene, new AvatarAppearance()); |
186 | 186 | ||
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs index f66ef57..ae18bc1 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs | |||
@@ -55,7 +55,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
55 | { | 55 | { |
56 | // private static readonly ILog m_log = | 56 | // private static readonly ILog m_log = |
57 | // LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 57 | // LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
58 | 58 | ||
59 | private Scene m_scene; | 59 | private Scene m_scene; |
60 | private IAssetService m_AssetService; | 60 | private IAssetService m_AssetService; |
61 | private bool m_Enabled = true; | 61 | private bool m_Enabled = true; |
@@ -64,7 +64,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
64 | private string m_URL2; | 64 | private string m_URL2; |
65 | private string m_RedirectURL = null; | 65 | private string m_RedirectURL = null; |
66 | private string m_RedirectURL2 = null; | 66 | private string m_RedirectURL2 = null; |
67 | 67 | ||
68 | struct aPollRequest | 68 | struct aPollRequest |
69 | { | 69 | { |
70 | public PollServiceMeshEventArgs thepoll; | 70 | public PollServiceMeshEventArgs thepoll; |
@@ -132,7 +132,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
132 | return; | 132 | return; |
133 | 133 | ||
134 | m_scene = pScene; | 134 | m_scene = pScene; |
135 | 135 | ||
136 | m_assetService = pScene.AssetService; | 136 | m_assetService = pScene.AssetService; |
137 | } | 137 | } |
138 | 138 | ||
@@ -342,7 +342,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
342 | { | 342 | { |
343 | string capUrl = "/CAPS/" + UUID.Random() + "/"; | 343 | string capUrl = "/CAPS/" + UUID.Random() + "/"; |
344 | 344 | ||
345 | // Register this as a poll service | 345 | // Register this as a poll service |
346 | PollServiceMeshEventArgs args = new PollServiceMeshEventArgs(capUrl, agentID, m_scene); | 346 | PollServiceMeshEventArgs args = new PollServiceMeshEventArgs(capUrl, agentID, m_scene); |
347 | 347 | ||
348 | args.Type = PollServiceEventArgs.EventType.Mesh; | 348 | args.Type = PollServiceEventArgs.EventType.Mesh; |
@@ -394,7 +394,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
394 | private readonly Scene m_scene; | 394 | private readonly Scene m_scene; |
395 | private ThrottleOutPacketType Throttle; | 395 | private ThrottleOutPacketType Throttle; |
396 | private readonly UUID User; | 396 | private readonly UUID User; |
397 | 397 | ||
398 | public MeshCapsDataThrottler(int pBytes, int max, int min, Scene pScene, UUID puser) | 398 | public MeshCapsDataThrottler(int pBytes, int max, int min, Scene pScene, UUID puser) |
399 | { | 399 | { |
400 | ThrottleBytes = pBytes; | 400 | ThrottleBytes = pBytes; |
@@ -422,7 +422,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
422 | // Normal | 422 | // Normal |
423 | if (BytesSent <= ThrottleBytes) | 423 | if (BytesSent <= ThrottleBytes) |
424 | { | 424 | { |
425 | BytesSent += response.bytes; | 425 | BytesSent += response.bytes; |
426 | return true; | 426 | return true; |
427 | } | 427 | } |
428 | else | 428 | else |
@@ -432,7 +432,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
432 | } | 432 | } |
433 | return haskey; | 433 | return haskey; |
434 | } | 434 | } |
435 | 435 | ||
436 | public void ProcessTime() | 436 | public void ProcessTime() |
437 | { | 437 | { |
438 | PassTime(); | 438 | PassTime(); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs index 14a59fe..0c20e04 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs | |||
@@ -81,7 +81,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
81 | new OpenMetaverse.BlockingQueue<aPollRequest>(); | 81 | new OpenMetaverse.BlockingQueue<aPollRequest>(); |
82 | 82 | ||
83 | private Dictionary<UUID,PollServiceTextureEventArgs> m_pollservices = new Dictionary<UUID,PollServiceTextureEventArgs>(); | 83 | private Dictionary<UUID,PollServiceTextureEventArgs> m_pollservices = new Dictionary<UUID,PollServiceTextureEventArgs>(); |
84 | 84 | ||
85 | private string m_Url = "localhost"; | 85 | private string m_Url = "localhost"; |
86 | 86 | ||
87 | #region ISharedRegionModule Members | 87 | #region ISharedRegionModule Members |
@@ -148,7 +148,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
148 | } | 148 | } |
149 | private int ExtractImageThrottle(byte[] pthrottles) | 149 | private int ExtractImageThrottle(byte[] pthrottles) |
150 | { | 150 | { |
151 | 151 | ||
152 | byte[] adjData; | 152 | byte[] adjData; |
153 | int pos = 0; | 153 | int pos = 0; |
154 | 154 | ||
@@ -195,10 +195,10 @@ namespace OpenSim.Region.ClientStack.Linden | |||
195 | if(m_NumberScenes <= 0 && m_workerThreads != null) | 195 | if(m_NumberScenes <= 0 && m_workerThreads != null) |
196 | { | 196 | { |
197 | m_log.DebugFormat("[GetTextureModule] Closing"); | 197 | m_log.DebugFormat("[GetTextureModule] Closing"); |
198 | 198 | ||
199 | foreach (Thread t in m_workerThreads) | 199 | foreach (Thread t in m_workerThreads) |
200 | Watchdog.AbortThread(t.ManagedThreadId); | 200 | Watchdog.AbortThread(t.ManagedThreadId); |
201 | 201 | ||
202 | m_queue.Clear(); | 202 | m_queue.Clear(); |
203 | } | 203 | } |
204 | } | 204 | } |
@@ -222,7 +222,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
222 | private Scene m_scene; | 222 | private Scene m_scene; |
223 | private CapsDataThrottler m_throttler = new CapsDataThrottler(100000, 1400000,10000); | 223 | private CapsDataThrottler m_throttler = new CapsDataThrottler(100000, 1400000,10000); |
224 | public PollServiceTextureEventArgs(UUID pId, Scene scene) : | 224 | public PollServiceTextureEventArgs(UUID pId, Scene scene) : |
225 | base(null, "", null, null, null, pId, int.MaxValue) | 225 | base(null, "", null, null, null, pId, int.MaxValue) |
226 | { | 226 | { |
227 | m_scene = scene; | 227 | m_scene = scene; |
228 | // x is request id, y is userid | 228 | // x is request id, y is userid |
@@ -258,7 +258,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
258 | reqinfo.reqID = x; | 258 | reqinfo.reqID = x; |
259 | reqinfo.request = y; | 259 | reqinfo.request = y; |
260 | reqinfo.send503 = false; | 260 | reqinfo.send503 = false; |
261 | 261 | ||
262 | lock (responses) | 262 | lock (responses) |
263 | { | 263 | { |
264 | if (responses.Count > 0) | 264 | if (responses.Count > 0) |
@@ -317,7 +317,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
317 | Hashtable headers = new Hashtable(); | 317 | Hashtable headers = new Hashtable(); |
318 | headers["Retry-After"] = 30; | 318 | headers["Retry-After"] = 30; |
319 | response["headers"] = headers; | 319 | response["headers"] = headers; |
320 | 320 | ||
321 | lock (responses) | 321 | lock (responses) |
322 | responses[requestID] = new aPollResponse() {bytes = 0, response = response}; | 322 | responses[requestID] = new aPollResponse() {bytes = 0, response = response}; |
323 | 323 | ||
@@ -334,13 +334,13 @@ namespace OpenSim.Region.ClientStack.Linden | |||
334 | response["content_type"] = "text/plain"; | 334 | response["content_type"] = "text/plain"; |
335 | response["keepalive"] = false; | 335 | response["keepalive"] = false; |
336 | response["reusecontext"] = false; | 336 | response["reusecontext"] = false; |
337 | 337 | ||
338 | lock (responses) | 338 | lock (responses) |
339 | responses[requestID] = new aPollResponse() {bytes = 0, response = response}; | 339 | responses[requestID] = new aPollResponse() {bytes = 0, response = response}; |
340 | 340 | ||
341 | return; | 341 | return; |
342 | } | 342 | } |
343 | 343 | ||
344 | response = m_getTextureHandler.Handle(requestinfo.request); | 344 | response = m_getTextureHandler.Handle(requestinfo.request); |
345 | lock (responses) | 345 | lock (responses) |
346 | { | 346 | { |
@@ -349,8 +349,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
349 | bytes = (int) response["int_bytes"], | 349 | bytes = (int) response["int_bytes"], |
350 | response = response | 350 | response = response |
351 | }; | 351 | }; |
352 | 352 | ||
353 | } | 353 | } |
354 | m_throttler.ProcessTime(); | 354 | m_throttler.ProcessTime(); |
355 | } | 355 | } |
356 | 356 | ||
@@ -368,16 +368,16 @@ namespace OpenSim.Region.ClientStack.Linden | |||
368 | { | 368 | { |
369 | string capUrl = "/CAPS/" + UUID.Random() + "/"; | 369 | string capUrl = "/CAPS/" + UUID.Random() + "/"; |
370 | 370 | ||
371 | // Register this as a poll service | 371 | // Register this as a poll service |
372 | PollServiceTextureEventArgs args = new PollServiceTextureEventArgs(agentID, m_scene); | 372 | PollServiceTextureEventArgs args = new PollServiceTextureEventArgs(agentID, m_scene); |
373 | 373 | ||
374 | args.Type = PollServiceEventArgs.EventType.Texture; | 374 | args.Type = PollServiceEventArgs.EventType.Texture; |
375 | MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args); | 375 | MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args); |
376 | 376 | ||
377 | string hostName = m_scene.RegionInfo.ExternalHostName; | 377 | string hostName = m_scene.RegionInfo.ExternalHostName; |
378 | uint port = (MainServer.Instance == null) ? 0 : MainServer.Instance.Port; | 378 | uint port = (MainServer.Instance == null) ? 0 : MainServer.Instance.Port; |
379 | string protocol = "http"; | 379 | string protocol = "http"; |
380 | 380 | ||
381 | if (MainServer.Instance.UseSSL) | 381 | if (MainServer.Instance.UseSSL) |
382 | { | 382 | { |
383 | hostName = MainServer.Instance.SSLCommonName; | 383 | hostName = MainServer.Instance.SSLCommonName; |
@@ -484,5 +484,5 @@ namespace OpenSim.Region.ClientStack.Linden | |||
484 | } | 484 | } |
485 | public int ThrottleBytes; | 485 | public int ThrottleBytes; |
486 | } | 486 | } |
487 | } | 487 | } |
488 | } | 488 | } |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/MeshUploadFlagModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/MeshUploadFlagModule.cs index 1b68603..44bf1a5 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/MeshUploadFlagModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/MeshUploadFlagModule.cs | |||
@@ -133,7 +133,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
133 | // data["username"] = sp.Firstname + "." + sp.Lastname; | 133 | // data["username"] = sp.Firstname + "." + sp.Lastname; |
134 | // data["display_name_next_update"] = new OSDDate(DateTime.Now); | 134 | // data["display_name_next_update"] = new OSDDate(DateTime.Now); |
135 | // data["legacy_first_name"] = sp.Firstname; | 135 | // data["legacy_first_name"] = sp.Firstname; |
136 | data["mesh_upload_status"] = "valid"; | 136 | data["mesh_upload_status"] = "valid"; |
137 | // data["display_name"] = sp.Firstname + " " + sp.Lastname; | 137 | // data["display_name"] = sp.Firstname + " " + sp.Lastname; |
138 | // data["legacy_last_name"] = sp.Lastname; | 138 | // data["legacy_last_name"] = sp.Lastname; |
139 | // data["id"] = m_agentID; | 139 | // data["id"] = m_agentID; |
@@ -141,7 +141,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
141 | 141 | ||
142 | //Send back data | 142 | //Send back data |
143 | Hashtable responsedata = new Hashtable(); | 143 | Hashtable responsedata = new Hashtable(); |
144 | responsedata["int_response_code"] = 200; | 144 | responsedata["int_response_code"] = 200; |
145 | responsedata["content_type"] = "text/plain"; | 145 | responsedata["content_type"] = "text/plain"; |
146 | responsedata["keepalive"] = false; | 146 | responsedata["keepalive"] = false; |
147 | responsedata["str_response_string"] = OSDParser.SerializeLLSDXmlString(data); | 147 | responsedata["str_response_string"] = OSDParser.SerializeLLSDXmlString(data); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs index 94f8bc1..189fa36 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
47 | { | 47 | { |
48 | // private static readonly ILog m_log = | 48 | // private static readonly ILog m_log = |
49 | // LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 49 | // LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
50 | 50 | ||
51 | private Scene m_scene; | 51 | private Scene m_scene; |
52 | 52 | ||
53 | #region INonSharedRegionModule Members | 53 | #region INonSharedRegionModule Members |
@@ -76,7 +76,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
76 | } | 76 | } |
77 | 77 | ||
78 | public void Close() | 78 | public void Close() |
79 | { | 79 | { |
80 | } | 80 | } |
81 | 81 | ||
82 | public string Name | 82 | public string Name |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs index 713125c..6874662 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs | |||
@@ -189,7 +189,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
189 | if (i == 0) | 189 | if (i == 0) |
190 | { | 190 | { |
191 | rootpos = obj.Position; | 191 | rootpos = obj.Position; |
192 | // rootrot = obj.Rotation; | 192 | // rootrot = obj.Rotation; |
193 | } | 193 | } |
194 | 194 | ||
195 | // Combine the extraparams data into it's ugly blob again.... | 195 | // Combine the extraparams data into it's ugly blob again.... |
@@ -321,7 +321,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
321 | pbs.TextureEntry = tmp.GetBytes(); | 321 | pbs.TextureEntry = tmp.GetBytes(); |
322 | prim.Shape = pbs; | 322 | prim.Shape = pbs; |
323 | prim.Scale = obj.Scale; | 323 | prim.Scale = obj.Scale; |
324 | 324 | ||
325 | SceneObjectGroup grp = new SceneObjectGroup(); | 325 | SceneObjectGroup grp = new SceneObjectGroup(); |
326 | 326 | ||
327 | grp.SetRootPart(prim); | 327 | grp.SetRootPart(prim); |
@@ -329,21 +329,21 @@ namespace OpenSim.Region.ClientStack.Linden | |||
329 | if (i == 0) | 329 | if (i == 0) |
330 | { | 330 | { |
331 | rootGroup = grp; | 331 | rootGroup = grp; |
332 | 332 | ||
333 | } | 333 | } |
334 | grp.AttachToScene(m_scene); | 334 | grp.AttachToScene(m_scene); |
335 | grp.AbsolutePosition = obj.Position; | 335 | grp.AbsolutePosition = obj.Position; |
336 | prim.RotationOffset = obj.Rotation; | 336 | prim.RotationOffset = obj.Rotation; |
337 | 337 | ||
338 | // Required for linking | 338 | // Required for linking |
339 | grp.RootPart.ClearUpdateSchedule(); | 339 | grp.RootPart.ClearUpdateSchedule(); |
340 | 340 | ||
341 | if (m_scene.Permissions.CanRezObject(1, avatar.UUID, pos)) | 341 | if (m_scene.Permissions.CanRezObject(1, avatar.UUID, pos)) |
342 | { | 342 | { |
343 | m_scene.AddSceneObject(grp); | 343 | m_scene.AddSceneObject(grp); |
344 | grp.AbsolutePosition = obj.Position; | 344 | grp.AbsolutePosition = obj.Position; |
345 | } | 345 | } |
346 | 346 | ||
347 | allparts[i] = grp; | 347 | allparts[i] = grp; |
348 | } | 348 | } |
349 | 349 | ||
@@ -359,7 +359,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
359 | pos | 359 | pos |
360 | = m_scene.GetNewRezLocation( | 360 | = m_scene.GetNewRezLocation( |
361 | Vector3.Zero, rootpos, UUID.Zero, rot, (byte)1, 1, true, allparts[0].GroupScale, false); | 361 | Vector3.Zero, rootpos, UUID.Zero, rot, (byte)1, 1, true, allparts[0].GroupScale, false); |
362 | 362 | ||
363 | responsedata["int_response_code"] = 200; //501; //410; //404; | 363 | responsedata["int_response_code"] = 200; //501; //410; //404; |
364 | responsedata["content_type"] = "text/plain"; | 364 | responsedata["content_type"] = "text/plain"; |
365 | responsedata["keepalive"] = false; | 365 | responsedata["keepalive"] = false; |
@@ -367,7 +367,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
367 | 367 | ||
368 | return responsedata; | 368 | return responsedata; |
369 | } | 369 | } |
370 | 370 | ||
371 | private string ConvertUintToBytes(uint val) | 371 | private string ConvertUintToBytes(uint val) |
372 | { | 372 | { |
373 | byte[] resultbytes = Utils.UIntToBytes(val); | 373 | byte[] resultbytes = Utils.UIntToBytes(val); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/Properties/AssemblyInfo.cs b/OpenSim/Region/ClientStack/Linden/Caps/Properties/AssemblyInfo.cs index 67272dd..f36826b 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/Properties/AssemblyInfo.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/Properties/AssemblyInfo.cs | |||
@@ -2,7 +2,7 @@ | |||
2 | using System.Runtime.CompilerServices; | 2 | using System.Runtime.CompilerServices; |
3 | using System.Runtime.InteropServices; | 3 | using System.Runtime.InteropServices; |
4 | 4 | ||
5 | // General Information about an assembly is controlled through the following | 5 | // General Information about an assembly is controlled through the following |
6 | // set of attributes. Change these attribute values to modify the information | 6 | // set of attributes. Change these attribute values to modify the information |
7 | // associated with an assembly. | 7 | // associated with an assembly. |
8 | [assembly: AssemblyTitle("OpenSim.Region.ClientStack.LindenCaps")] | 8 | [assembly: AssemblyTitle("OpenSim.Region.ClientStack.LindenCaps")] |
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices; | |||
14 | [assembly: AssemblyTrademark("")] | 14 | [assembly: AssemblyTrademark("")] |
15 | [assembly: AssemblyCulture("")] | 15 | [assembly: AssemblyCulture("")] |
16 | 16 | ||
17 | // Setting ComVisible to false makes the types in this assembly not visible | 17 | // Setting ComVisible to false makes the types in this assembly not visible |
18 | // to COM components. If you need to access a type in this assembly from | 18 | // to COM components. If you need to access a type in this assembly from |
19 | // COM, set the ComVisible attribute to true on that type. | 19 | // COM, set the ComVisible attribute to true on that type. |
20 | [assembly: ComVisible(false)] | 20 | [assembly: ComVisible(false)] |
21 | 21 | ||
@@ -25,7 +25,7 @@ using System.Runtime.InteropServices; | |||
25 | // Version information for an assembly consists of the following four values: | 25 | // Version information for an assembly consists of the following four values: |
26 | // | 26 | // |
27 | // Major Version | 27 | // Major Version |
28 | // Minor Version | 28 | // Minor Version |
29 | // Build Number | 29 | // Build Number |
30 | // Revision | 30 | // Revision |
31 | // | 31 | // |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs index 5196368..b3e3ac3 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs | |||
@@ -58,7 +58,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
58 | { | 58 | { |
59 | // private static readonly ILog m_log = | 59 | // private static readonly ILog m_log = |
60 | // LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 60 | // LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
61 | 61 | ||
62 | private Scene m_scene; | 62 | private Scene m_scene; |
63 | private IEventQueue m_eventQueue; | 63 | private IEventQueue m_eventQueue; |
64 | private Commands m_commands = new Commands(); | 64 | private Commands m_commands = new Commands(); |
@@ -155,7 +155,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
155 | 155 | ||
156 | SendConsoleOutput(agentID, reply); | 156 | SendConsoleOutput(agentID, reply); |
157 | } | 157 | } |
158 | 158 | ||
159 | public void AddCommand(string module, bool shared, string command, string help, string longhelp, CommandDelegate fn) | 159 | public void AddCommand(string module, bool shared, string command, string help, string longhelp, CommandDelegate fn) |
160 | { | 160 | { |
161 | m_commands.AddCommand(module, shared, command, help, longhelp, fn); | 161 | m_commands.AddCommand(module, shared, command, help, longhelp, fn); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs index f7259a6..39f5baf 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
50 | /// This is required for uploading Mesh. | 50 | /// This is required for uploading Mesh. |
51 | /// Since is accepts an open-ended response, we also send more information | 51 | /// Since is accepts an open-ended response, we also send more information |
52 | /// for viewers that care to interpret it. | 52 | /// for viewers that care to interpret it. |
53 | /// | 53 | /// |
54 | /// NOTE: Part of this code was adapted from the Aurora project, specifically | 54 | /// NOTE: Part of this code was adapted from the Aurora project, specifically |
55 | /// the normal part of the response in the capability handler. | 55 | /// the normal part of the response in the capability handler. |
56 | /// </remarks> | 56 | /// </remarks> |
@@ -82,7 +82,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
82 | IConfig config = source.Configs["SimulatorFeatures"]; | 82 | IConfig config = source.Configs["SimulatorFeatures"]; |
83 | 83 | ||
84 | if (config != null) | 84 | if (config != null) |
85 | { | 85 | { |
86 | // | 86 | // |
87 | // All this is obsolete since getting these features from the grid service!! | 87 | // All this is obsolete since getting these features from the grid service!! |
88 | // Will be removed after the next release | 88 | // Will be removed after the next release |
@@ -251,7 +251,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
251 | 251 | ||
252 | //Send back data | 252 | //Send back data |
253 | Hashtable responsedata = new Hashtable(); | 253 | Hashtable responsedata = new Hashtable(); |
254 | responsedata["int_response_code"] = 200; | 254 | responsedata["int_response_code"] = 200; |
255 | responsedata["content_type"] = "text/plain"; | 255 | responsedata["content_type"] = "text/plain"; |
256 | responsedata["keepalive"] = false; | 256 | responsedata["keepalive"] = false; |
257 | 257 | ||
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs b/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs index db16ccb..6ffed4d 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs | |||
@@ -151,7 +151,7 @@ namespace OpenSim.Region.ClientStack.Linden.Caps.Tests | |||
151 | OSDMap responseOsd = (OSDMap)OSDParser.DeserializeLLSDXml(context.ResponseBody); | 151 | OSDMap responseOsd = (OSDMap)OSDParser.DeserializeLLSDXml(context.ResponseBody); |
152 | OSDArray foldersOsd = (OSDArray)responseOsd["folders"]; | 152 | OSDArray foldersOsd = (OSDArray)responseOsd["folders"]; |
153 | OSDMap folderOsd = (OSDMap)foldersOsd[0]; | 153 | OSDMap folderOsd = (OSDMap)foldersOsd[0]; |
154 | 154 | ||
155 | // A sanity check that the response has the expected number of descendents for a default inventory | 155 | // A sanity check that the response has the expected number of descendents for a default inventory |
156 | // TODO: Need a more thorough check. | 156 | // TODO: Need a more thorough check. |
157 | Assert.That((int)folderOsd["descendents"], Is.EqualTo(16)); | 157 | Assert.That((int)folderOsd["descendents"], Is.EqualTo(16)); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs index 8fd8d1f..dfe097e 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs | |||
@@ -84,7 +84,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
84 | public void AddRegion(Scene s) | 84 | public void AddRegion(Scene s) |
85 | { | 85 | { |
86 | m_scene = s; | 86 | m_scene = s; |
87 | 87 | ||
88 | } | 88 | } |
89 | 89 | ||
90 | public void RemoveRegion(Scene s) | 90 | public void RemoveRegion(Scene s) |
@@ -94,14 +94,14 @@ namespace OpenSim.Region.ClientStack.Linden | |||
94 | s.EventManager.OnRemovePresence -= DeRegisterPresence; | 94 | s.EventManager.OnRemovePresence -= DeRegisterPresence; |
95 | m_BakedTextureModule = null; | 95 | m_BakedTextureModule = null; |
96 | m_scene = null; | 96 | m_scene = null; |
97 | } | 97 | } |
98 | 98 | ||
99 | public void RegionLoaded(Scene s) | 99 | public void RegionLoaded(Scene s) |
100 | { | 100 | { |
101 | m_scene.EventManager.OnRegisterCaps += RegisterCaps; | 101 | m_scene.EventManager.OnRegisterCaps += RegisterCaps; |
102 | m_scene.EventManager.OnNewPresence += RegisterNewPresence; | 102 | m_scene.EventManager.OnNewPresence += RegisterNewPresence; |
103 | m_scene.EventManager.OnRemovePresence += DeRegisterPresence; | 103 | m_scene.EventManager.OnRemovePresence += DeRegisterPresence; |
104 | 104 | ||
105 | } | 105 | } |
106 | 106 | ||
107 | private void DeRegisterPresence(UUID agentId) | 107 | private void DeRegisterPresence(UUID agentId) |
@@ -205,7 +205,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
205 | } | 205 | } |
206 | } | 206 | } |
207 | else | 207 | else |
208 | { | 208 | { |
209 | for (int i = 0; i < maxCacheitemsLoop; i++) | 209 | for (int i = 0; i < maxCacheitemsLoop; i++) |
210 | { | 210 | { |
211 | if (textureEntry.FaceTextures.Length > cacheItems[i].TextureIndex) | 211 | if (textureEntry.FaceTextures.Length > cacheItems[i].TextureIndex) |
@@ -285,7 +285,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
285 | avatarhandler.UploadBakedTexture, | 285 | avatarhandler.UploadBakedTexture, |
286 | "UploadBakedTexture", | 286 | "UploadBakedTexture", |
287 | agentID.ToString())); | 287 | agentID.ToString())); |
288 | 288 | ||
289 | } | 289 | } |
290 | else | 290 | else |
291 | { | 291 | { |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs index ba4fb76..e0ec842 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs | |||
@@ -456,7 +456,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
456 | catch (Exception e) | 456 | catch (Exception e) |
457 | { | 457 | { |
458 | m_log.ErrorFormat( | 458 | m_log.ErrorFormat( |
459 | "[INVENTORY]: Failed to process queued inventory request {0} for {1}. Exception {3}", | 459 | "[INVENTORY]: Failed to process queued inventory request {0} for {1}. Exception {3}", |
460 | poolreq.reqID, poolreq.presence != null ? poolreq.presence.Name : "unknown", e); | 460 | poolreq.reqID, poolreq.presence != null ? poolreq.presence.Name : "unknown", e); |
461 | } | 461 | } |
462 | } | 462 | } |