diff options
author | Melanie | 2013-12-16 22:11:03 +0000 |
---|---|---|
committer | Melanie | 2013-12-16 22:11:03 +0000 |
commit | fe01e7d1cce9d875b5989931b9652e4cd00c311d (patch) | |
tree | d7e12171d5952d5a96c3f405a5d80c6eebb00937 /OpenSim/Region/OptionalModules | |
parent | This is the acutal sitting avatar crossing code. This commit implements the (diff) | |
parent | Merge branch 'justincc-master' (diff) | |
download | opensim-SC-fe01e7d1cce9d875b5989931b9652e4cd00c311d.zip opensim-SC-fe01e7d1cce9d875b5989931b9652e4cd00c311d.tar.gz opensim-SC-fe01e7d1cce9d875b5989931b9652e4cd00c311d.tar.bz2 opensim-SC-fe01e7d1cce9d875b5989931b9652e4cd00c311d.tar.xz |
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs index c717128..eb386fe 100644 --- a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs | |||
@@ -216,9 +216,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
216 | // m_log.InfoFormat("[RegionReady]: Logins enabled for {0}, Oar {1}", | 216 | // m_log.InfoFormat("[RegionReady]: Logins enabled for {0}, Oar {1}", |
217 | // m_scene.RegionInfo.RegionName, m_oarFileLoading.ToString()); | 217 | // m_scene.RegionInfo.RegionName, m_oarFileLoading.ToString()); |
218 | 218 | ||
219 | // Warn level because the region cannot be used while logins are disabled | 219 | // Putting this out to console to make it eye-catching for people who are running OpenSimulator |
220 | m_log.WarnFormat( | 220 | // without info log messages enabled. Making this a warning is arguably misleading since it isn't a |
221 | "[RegionReady]: INITIALIZATION COMPLETE FOR {0} - LOGINS ENABLED", m_scene.Name); | 221 | // warning, and monitor scripts looking for warn/error/fatal messages will received false positives. |
222 | // Arguably, log4net needs a status log level (like Apache). | ||
223 | MainConsole.Instance.OutputFormat("INITIALIZATION COMPLETE FOR {0} - LOGINS ENABLED", m_scene.Name); | ||
222 | } | 224 | } |
223 | 225 | ||
224 | m_scene.SceneGridService.InformNeighborsThatRegionisUp( | 226 | m_scene.SceneGridService.InformNeighborsThatRegionisUp( |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs index e1ef4d0..7f9e440 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs | |||
@@ -323,9 +323,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
323 | 323 | ||
324 | Assert.That(part.SitTargetAvatar, Is.EqualTo(npcId)); | 324 | Assert.That(part.SitTargetAvatar, Is.EqualTo(npcId)); |
325 | Assert.That(npc.ParentID, Is.EqualTo(part.LocalId)); | 325 | Assert.That(npc.ParentID, Is.EqualTo(part.LocalId)); |
326 | Assert.That( | 326 | // Assert.That( |
327 | npc.AbsolutePosition, | 327 | // npc.AbsolutePosition, |
328 | Is.EqualTo(part.AbsolutePosition + part.SitTargetPosition + ScenePresence.SIT_TARGET_ADJUSTMENT)); | 328 | // Is.EqualTo(part.AbsolutePosition + part.SitTargetPosition + ScenePresence.SIT_TARGET_ADJUSTMENT)); |
329 | 329 | ||
330 | m_npcMod.Stand(npc.UUID, m_scene); | 330 | m_npcMod.Stand(npc.UUID, m_scene); |
331 | 331 | ||
@@ -337,7 +337,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
337 | public void TestSitAndStandWithNoSitTarget() | 337 | public void TestSitAndStandWithNoSitTarget() |
338 | { | 338 | { |
339 | TestHelpers.InMethod(); | 339 | TestHelpers.InMethod(); |
340 | // log4net.Config.XmlConfigurator.Configure(); | 340 | // TestHelpers.EnableLogging(); |
341 | 341 | ||
342 | ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, TestHelpers.ParseTail(0x1)); | 342 | ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, TestHelpers.ParseTail(0x1)); |
343 | 343 | ||
@@ -355,13 +355,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
355 | Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); | 355 | Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); |
356 | Assert.That(npc.ParentID, Is.EqualTo(part.LocalId)); | 356 | Assert.That(npc.ParentID, Is.EqualTo(part.LocalId)); |
357 | 357 | ||
358 | // FIXME: This is different for live avatars - z position is adjusted. This is half the height of the | 358 | // We should really be using the NPC size but this would mean preserving the physics actor since it is |
359 | // default avatar. | 359 | // removed on sit. |
360 | // Curiously, Vector3.ToString() will not display the last two places of the float. For example, | ||
361 | // printing out npc.AbsolutePosition will give <0, 0, 0.8454993> not <0, 0, 0.845499337> | ||
362 | Assert.That( | 360 | Assert.That( |
363 | npc.AbsolutePosition, | 361 | npc.AbsolutePosition, |
364 | Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, 0.845499337f))); | 362 | Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, sp.PhysicsActor.Size.Z / 2))); |
365 | 363 | ||
366 | m_npcMod.Stand(npc.UUID, m_scene); | 364 | m_npcMod.Stand(npc.UUID, m_scene); |
367 | 365 | ||