aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2015-09-03 18:39:08 +0100
committerUbitUmarov2015-09-03 18:39:08 +0100
commitcdaed113872f0615a0d2864cc54064a4432054c6 (patch)
tree246e62dfeffac632cdcd9738a77faebd30b3bd6c /OpenSim/Region
parentseems to compile ( tests comented out) (diff)
downloadopensim-SC_OLD-cdaed113872f0615a0d2864cc54064a4432054c6.zip
opensim-SC_OLD-cdaed113872f0615a0d2864cc54064a4432054c6.tar.gz
opensim-SC_OLD-cdaed113872f0615a0d2864cc54064a4432054c6.tar.bz2
opensim-SC_OLD-cdaed113872f0615a0d2864cc54064a4432054c6.tar.xz
at last we can login and see objects ( friends is dead and disable in
scenepresence)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs5
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs4
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs12
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs2
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs3
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs20
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs58
-rwxr-xr-xOpenSim/Region/Framework/Scenes/SimStatsReporter.cs2
10 files changed, 29 insertions, 85 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 5cd9045..9108e5d 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -281,11 +281,6 @@ namespace OpenSim
281 // inserted them manually. 281 // inserted them manually.
282 LoadPlugins(); 282 LoadPlugins();
283 283
284 if (m_plugins.Count == 0) // We failed to load any modules. Mono Addins glitch!
285 {
286 Environment.Exit(1);
287 }
288
289 foreach (IApplicationPlugin plugin in m_plugins) 284 foreach (IApplicationPlugin plugin in m_plugins)
290 plugin.PostInitialise(); 285 plugin.PostInitialise();
291 286
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs
index b735dfa..c241075 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs
@@ -40,8 +40,8 @@ using OpenSim.Region.Framework.Interfaces;
40using OpenSim.Region.Framework.Scenes; 40using OpenSim.Region.Framework.Scenes;
41using Caps = OpenSim.Framework.Capabilities.Caps; 41using Caps = OpenSim.Framework.Capabilities.Caps;
42 42
43[assembly: Addin("LindenCaps", "0.1")] 43[assembly: Addin("LindenCaps", OpenSim.VersionInfo.VersionNumber)]
44[assembly: AddinDependency("OpenSim", "0.5")] 44[assembly: AddinDependency("OpenSim.Region.Framework", OpenSim.VersionInfo.VersionNumber)]
45namespace OpenSim.Region.ClientStack.Linden 45namespace OpenSim.Region.ClientStack.Linden
46{ 46{
47 47
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
index 5d50eba..feb3322 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
@@ -231,18 +231,12 @@ namespace OpenSim.Region.ClientStack.Linden
231 lock (queue) 231 lock (queue)
232 queue.Enqueue(ev); 232 queue.Enqueue(ev);
233 } 233 }
234 else if (DebugLevel > 0) 234 else
235 { 235 {
236 ScenePresence sp = m_scene.GetScenePresence(avatarID);
237
238 // This assumes that an NPC should never have a queue.
239 if (sp != null && sp.PresenceType != PresenceType.Npc)
240 {
241 OSDMap evMap = (OSDMap)ev; 236 OSDMap evMap = (OSDMap)ev;
242 m_log.WarnFormat( 237 m_log.WarnFormat(
243 "[EVENTQUEUE]: (Enqueue) No queue found for agent {0} {1} when placing message {2} in region {3}", 238 "[EVENTQUEUE]: (Enqueue) No queue found for agent {0} when placing message {1} in region {2}",
244 sp.Name, sp.UUID, evMap["message"], m_scene.Name); 239 avatarID, evMap["message"], m_scene.Name);
245 }
246 } 240 }
247 } 241 }
248 catch (NullReferenceException e) 242 catch (NullReferenceException e)
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs
index 50e22f5..799ad0b 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs
@@ -76,7 +76,7 @@ namespace OpenSim.Region.ClientStack.Linden
76 76
77 llsdSimInfo.Add("Handle", new OSDBinary(ulongToByteArray(handle))); 77 llsdSimInfo.Add("Handle", new OSDBinary(ulongToByteArray(handle)));
78 llsdSimInfo.Add("IP", new OSDBinary(endPoint.Address.GetAddressBytes())); 78 llsdSimInfo.Add("IP", new OSDBinary(endPoint.Address.GetAddressBytes()));
79 llsdSimInfo.Add("Port", new OSDInteger(endPoint.Port)); 79 llsdSimInfo.Add("Port", OSD.FromInteger(endPoint.Port));
80 llsdSimInfo.Add("RegionSizeX", OSD.FromUInteger((uint)regionSizeX)); 80 llsdSimInfo.Add("RegionSizeX", OSD.FromUInteger((uint)regionSizeX));
81 llsdSimInfo.Add("RegionSizeY", OSD.FromUInteger((uint)regionSizeY)); 81 llsdSimInfo.Add("RegionSizeY", OSD.FromUInteger((uint)regionSizeY));
82 82
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
index 6e2f7f3..2a252e1 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
@@ -118,8 +118,9 @@ namespace OpenSim.Region.ClientStack.Linden
118 return; 118 return;
119 119
120 m_fetchInventoryDescendents2Url = config.GetString("Cap_FetchInventoryDescendents2", string.Empty); 120 m_fetchInventoryDescendents2Url = config.GetString("Cap_FetchInventoryDescendents2", string.Empty);
121 m_webFetchInventoryDescendentsUrl = config.GetString("Cap_WebFetchInventoryDescendents", string.Empty); 121// m_webFetchInventoryDescendentsUrl = config.GetString("Cap_WebFetchInventoryDescendents", string.Empty);
122 122
123// if (m_fetchInventoryDescendents2Url != string.Empty || m_webFetchInventoryDescendentsUrl != string.Empty)
123 if (m_fetchInventoryDescendents2Url != string.Empty || m_webFetchInventoryDescendentsUrl != string.Empty) 124 if (m_fetchInventoryDescendents2Url != string.Empty || m_webFetchInventoryDescendentsUrl != string.Empty)
124 { 125 {
125 m_Enabled = true; 126 m_Enabled = true;
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index f76db1e..6df55a6 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -3864,6 +3864,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3864 /// </summary> 3864 /// </summary>
3865 public void SendEntityUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags) 3865 public void SendEntityUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags)
3866 { 3866 {
3867/*
3867 if (entity.UUID == m_agentId && !updateFlags.HasFlag(PrimUpdateFlags.FullUpdate)) 3868 if (entity.UUID == m_agentId && !updateFlags.HasFlag(PrimUpdateFlags.FullUpdate))
3868 { 3869 {
3869 ImprovedTerseObjectUpdatePacket packet 3870 ImprovedTerseObjectUpdatePacket packet
@@ -3874,27 +3875,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3874 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1]; 3875 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1];
3875 packet.ObjectData[0] = CreateImprovedTerseBlock(entity, false); 3876 packet.ObjectData[0] = CreateImprovedTerseBlock(entity, false);
3876 OutPacket(packet, ThrottleOutPacketType.Unknown, true); 3877 OutPacket(packet, ThrottleOutPacketType.Unknown, true);
3878 return;
3877 } 3879 }
3878 3880*/
3879 else if (entity is SceneObjectPart) 3881 if (entity is SceneObjectPart)
3880 { 3882 {
3881 SceneObjectPart e = (SceneObjectPart)entity; 3883 SceneObjectPart e = (SceneObjectPart)entity;
3882 SceneObjectGroup g = e.ParentGroup; 3884 SceneObjectGroup g = e.ParentGroup;
3883 if (g.HasPrivateAttachmentPoint && g.OwnerID != AgentId) 3885 if (g.HasPrivateAttachmentPoint && g.OwnerID != AgentId)
3884 return; // Don't send updates for other people's HUDs 3886 return; // Don't send updates for other people's HUDs
3885 } 3887 }
3886 3888
3887 else 3889 //double priority = m_prioritizer.GetUpdatePriority(this, entity);
3888 { 3890 uint priority = m_prioritizer.GetUpdatePriority(this, entity);
3889 //double priority = m_prioritizer.GetUpdatePriority(this, entity);
3890 uint priority = m_prioritizer.GetUpdatePriority(this, entity);
3891 3891
3892 lock (m_entityUpdates.SyncRoot) 3892 lock (m_entityUpdates.SyncRoot)
3893 m_entityUpdates.Enqueue(priority, new EntityUpdate(entity, updateFlags, m_scene.TimeDilation)); 3893 m_entityUpdates.Enqueue(priority, new EntityUpdate(entity, updateFlags, m_scene.TimeDilation));
3894 }
3895 } 3894 }
3896 3895
3897
3898 /// <summary> 3896 /// <summary>
3899 /// Requeue an EntityUpdate when it was not acknowledged by the client. 3897 /// Requeue an EntityUpdate when it was not acknowledged by the client.
3900 /// We will update the priority and put it in the correct queue, merging update flags 3898 /// We will update the priority and put it in the correct queue, merging update flags
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
index db3f900..5365b49 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
@@ -94,7 +94,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
94 if (config == null) 94 if (config == null)
95 return; 95 return;
96 96
97 int refreshminutes = Convert.ToInt32(config.GetString("RefreshTime", "-1")); 97 int refreshminutes = Convert.ToInt32(config.GetString("RefreshTime", "60"));
98 if (refreshminutes < 0) 98 if (refreshminutes < 0)
99 { 99 {
100 m_log.WarnFormat("[MAP IMAGE SERVICE MODULE]: Negative refresh time given in config. Module disabled."); 100 m_log.WarnFormat("[MAP IMAGE SERVICE MODULE]: Negative refresh time given in config. Module disabled.");
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index b6d96ac..adcad03 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -1426,7 +1426,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1426 using (Bitmap mapbmp = m_mapImageGenerator.CreateMapTile()) 1426 using (Bitmap mapbmp = m_mapImageGenerator.CreateMapTile())
1427 { 1427 {
1428 GenerateMaptile(mapbmp); 1428 GenerateMaptile(mapbmp);
1429 m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp); 1429 if(m_mapImageServiceModule != null)
1430 m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp);
1430 } 1431 }
1431 } 1432 }
1432 1433
@@ -1562,7 +1563,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1562 GenerateMaptile(mapbmp); 1563 GenerateMaptile(mapbmp);
1563 1564
1564 // v2/3 (MapImageServiceModule) 1565 // v2/3 (MapImageServiceModule)
1565 m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp); 1566 if(m_mapImageServiceModule !=null)
1567 m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp);
1566 } 1568 }
1567 } 1569 }
1568 1570
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 022a90d..4c346b7 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -873,13 +873,7 @@ namespace OpenSim.Region.Framework.Scenes
873 { 873 {
874 uint x, y; 874 uint x, y;
875 Util.RegionHandleToRegionLoc(handle, out x, out y); 875 Util.RegionHandleToRegionLoc(handle, out x, out y);
876<<<<<<< HEAD
877
878 if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.RegionLocX, y, Scene.RegionInfo.RegionLocY))
879=======
880no information to check this
881// if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.RegionLocX, y, Scene.RegionInfo.RegionLocY,)) 876// if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.RegionLocX, y, Scene.RegionInfo.RegionLocY,))
882>>>>>>> avn/ubitvar
883 { 877 {
884 old.Add(handle); 878 old.Add(handle);
885 } 879 }
@@ -1158,6 +1152,8 @@ no information to check this
1158 { 1152 {
1159 IsLoggingIn = false; 1153 IsLoggingIn = false;
1160 } 1154 }
1155
1156 IsChildAgent = false;
1161 } 1157 }
1162 1158
1163 m_log.DebugFormat("[MakeRootAgent] out lock: {0}ms", Util.EnvironmentTickCountSubtract(ts)); 1159 m_log.DebugFormat("[MakeRootAgent] out lock: {0}ms", Util.EnvironmentTickCountSubtract(ts));
@@ -1172,9 +1168,7 @@ no information to check this
1172 Grouptitle = gm.GetGroupTitle(m_uuid); 1168 Grouptitle = gm.GetGroupTitle(m_uuid);
1173 1169
1174 1170
1175 AgentCircuitData aCircuit = m_scene.AuthenticateHandler.GetAgentCircuitData(ControllingClient.CircuitCode); 1171 if ((m_teleportFlags & TeleportFlags.ViaHGLogin) != 0)
1176 uint teleportFlags = (aCircuit == null) ? 0 : aCircuit.teleportFlags;
1177 if ((teleportFlags & (uint)TeleportFlags.ViaHGLogin) != 0)
1178 { 1172 {
1179 // The avatar is arriving from another grid. This means that we may have changed the 1173 // The avatar is arriving from another grid. This means that we may have changed the
1180 // avatar's name to or from the special Hypergrid format ("First.Last @grid.example.com"). 1174 // avatar's name to or from the special Hypergrid format ("First.Last @grid.example.com").
@@ -2031,8 +2025,8 @@ no information to check this
2031 if (!IsChildAgent && openChildAgents) 2025 if (!IsChildAgent && openChildAgents)
2032 { 2026 {
2033 IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>(); 2027 IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>();
2034 if (friendsModule != null) 2028// if (friendsModule != null)
2035 friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); 2029// friendsModule.SendFriendsOnlineIfNeeded(ControllingClient);
2036 2030
2037 m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts)); 2031 m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts));
2038 2032
@@ -2329,9 +2323,7 @@ no information to check this
2329 2323
2330 try 2324 try
2331 { 2325 {
2332 // Don't slide against ground when crouching if camera is panned around avatar 2326 agent_control_v3 += Dir_Vectors[i];
2333 if (Flying || DCF != Dir_ControlFlags.DIR_CONTROL_FLAG_DOWN)
2334 agent_control_v3 += Dir_Vectors[i];
2335 //m_log.DebugFormat("[Motion]: {0}, {1}",i, dirVectors[i]); 2327 //m_log.DebugFormat("[Motion]: {0}, {1}",i, dirVectors[i]);
2336 } 2328 }
2337 catch (IndexOutOfRangeException) 2329 catch (IndexOutOfRangeException)
@@ -2751,44 +2743,6 @@ no information to check this
2751 SceneManager.Instance.TryGetScene(target_region.RegionID, out targetScene); 2743 SceneManager.Instance.TryGetScene(target_region.RegionID, out targetScene);
2752 } 2744 }
2753 2745
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792 float terrainHeight = (float)targetScene.Heightmap[(int)(pos.X % regionSize.X), (int)(pos.Y % regionSize.Y)]; 2746 float terrainHeight = (float)targetScene.Heightmap[(int)(pos.X % regionSize.X), (int)(pos.Y % regionSize.Y)];
2793 // dont try to land underground 2747 // dont try to land underground
2794 terrainHeight += Appearance.AvatarHeight / 2; 2748 terrainHeight += Appearance.AvatarHeight / 2;
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
index bdddd73..e0030ec 100755
--- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
@@ -502,7 +502,7 @@ namespace OpenSim.Region.Framework.Scenes
502 sb[22].StatID = (uint)Stats.SimSleepMs; 502 sb[22].StatID = (uint)Stats.SimSleepMs;
503 sb[22].StatValue = sleeptime; 503 sb[22].StatValue = sleeptime;
504 504
505 for (int i = 0; i < m_statisticArraySize; i++) 505 for (int i = 0; i < 23; i++)
506 { 506 {
507 lastReportedSimStats[i] = sb[i].StatValue; 507 lastReportedSimStats[i] = sb[i].StatValue;
508 } 508 }