diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs | 20 |
2 files changed, 11 insertions, 13 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 611b9db..c31e6f7 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3750,7 +3750,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3750 | SceneObjectPart jointProxyObject = GetSceneObjectPart(joint.ObjectNameInScene); | 3750 | SceneObjectPart jointProxyObject = GetSceneObjectPart(joint.ObjectNameInScene); |
3751 | if (jointProxyObject != null) | 3751 | if (jointProxyObject != null) |
3752 | { | 3752 | { |
3753 | SimChat(Utils.StringToBytes("[NINJA] " + message), | 3753 | SimChat(Utils.StringToBytes("[NINJA]: " + message), |
3754 | ChatTypeEnum.DebugChannel, | 3754 | ChatTypeEnum.DebugChannel, |
3755 | 2147483647, | 3755 | 2147483647, |
3756 | jointProxyObject.AbsolutePosition, | 3756 | jointProxyObject.AbsolutePosition, |
@@ -3762,7 +3762,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3762 | 3762 | ||
3763 | if (joint.ErrorMessageCount > PhysicsJoint.maxErrorMessages) | 3763 | if (joint.ErrorMessageCount > PhysicsJoint.maxErrorMessages) |
3764 | { | 3764 | { |
3765 | SimChat(Utils.StringToBytes("[NINJA] Too many messages for this joint, suppressing further messages."), | 3765 | SimChat(Utils.StringToBytes("[NINJA]: Too many messages for this joint, suppressing further messages."), |
3766 | ChatTypeEnum.DebugChannel, | 3766 | ChatTypeEnum.DebugChannel, |
3767 | 2147483647, | 3767 | 2147483647, |
3768 | jointProxyObject.AbsolutePosition, | 3768 | jointProxyObject.AbsolutePosition, |
diff --git a/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs b/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs index e092334..64b3d67 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
51 | [Test] | 51 | [Test] |
52 | public void TestSimpleNotNeighboursTeleport() | 52 | public void TestSimpleNotNeighboursTeleport() |
53 | { | 53 | { |
54 | //log4net.Config.XmlConfigurator.Configure(); | 54 | log4net.Config.XmlConfigurator.Configure(); |
55 | 55 | ||
56 | UUID sceneAId = UUID.Parse("00000000-0000-0000-0000-000000000100"); | 56 | UUID sceneAId = UUID.Parse("00000000-0000-0000-0000-000000000100"); |
57 | UUID sceneBId = UUID.Parse("00000000-0000-0000-0000-000000000200"); | 57 | UUID sceneBId = UUID.Parse("00000000-0000-0000-0000-000000000200"); |
@@ -80,20 +80,18 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
80 | 80 | ||
81 | // FIXME: This is a hack to get the test working - really the normal OpenSim mechanisms should be used. | 81 | // FIXME: This is a hack to get the test working - really the normal OpenSim mechanisms should be used. |
82 | client.TeleportTargetScene = sceneB; | 82 | client.TeleportTargetScene = sceneB; |
83 | // Commenting this out for now -- Diva | 83 | client.Teleport(sceneB.RegionInfo.RegionHandle, new Vector3(100, 100, 100), new Vector3(40, 40, 40)); |
84 | //client.Teleport(sceneB.RegionInfo.RegionHandle, new Vector3(100, 100, 100), new Vector3(40, 40, 40)); | ||
85 | 84 | ||
86 | //Assert.That(sceneB.GetScenePresence(agentId), Is.Not.Null, "Client does not have an agent in sceneB"); | 85 | Assert.That(sceneB.GetScenePresence(agentId), Is.Not.Null, "Client does not have an agent in sceneB"); |
87 | //Assert.That(sceneA.GetScenePresence(agentId), Is.Null, "Client still had an agent in sceneA"); | 86 | Assert.That(sceneA.GetScenePresence(agentId), Is.Null, "Client still had an agent in sceneA"); |
88 | 87 | ||
89 | //ICapabilitiesModule sceneBCapsModule = sceneB.RequestModuleInterface<ICapabilitiesModule>(); | 88 | ICapabilitiesModule sceneBCapsModule = sceneB.RequestModuleInterface<ICapabilitiesModule>(); |
90 | 89 | ||
91 | // Temporary assertion - caps url construction should at least be doable through a method. | 90 | // Temporary assertion - caps url construction should at least be doable through a method. |
92 | //Assert.That( | 91 | Assert.That( |
93 | // "http://" + sceneB.RegionInfo.ExternalHostName + ":" + sceneB.RegionInfo.HttpPort + "/CAPS/" + sceneBCapsModule.GetCapsPath(agentId) + "0000/", | 92 | "http://" + sceneB.RegionInfo.ExternalHostName + ":" + sceneB.RegionInfo.HttpPort + "/CAPS/" + sceneBCapsModule.GetCapsPath(agentId) + "0000/", |
94 | // Is.EqualTo(client.CapsSeedUrl), | 93 | Is.EqualTo(client.CapsSeedUrl), |
95 | // "Incorrect caps object path set up in sceneB"); | 94 | "Incorrect caps object path set up in sceneB"); |
96 | // ---- up to here -- Diva | ||
97 | 95 | ||
98 | // This assertion will currently fail since we don't remove the caps paths when no longer needed | 96 | // This assertion will currently fail since we don't remove the caps paths when no longer needed |
99 | //Assert.That(sceneACapsModule.GetCapsPath(agentId), Is.Null, "sceneA still had a caps object path"); | 97 | //Assert.That(sceneACapsModule.GetCapsPath(agentId), Is.Null, "sceneA still had a caps object path"); |