From 3c85afbb431d14a676c00d20bfeeb5e2d13e8eaf Mon Sep 17 00:00:00 2001
From: BlueWall
Date: Thu, 12 Sep 2013 11:46:12 -0400
Subject: Allow setting the EntityTransfer-max_distance to 0 to override
distance checks. This is to facilitate current viewer work fixing the
distance limitations for teleporting.
---
.../CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 3 +++
1 file changed, 3 insertions(+)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 4219254..9302784 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -518,6 +518,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
///
private bool IsWithinMaxTeleportDistance(RegionInfo sourceRegion, GridRegion destRegion)
{
+ if(MaxTransferDistance == 0)
+ return true;
+
// m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Source co-ords are x={0} y={1}", curRegionX, curRegionY);
//
// m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Final dest is x={0} y={1} {2}@{3}",
--
cgit v1.1
From 3f0fa9f707e7e09f6dd9ad0becad18d5ffa4cb7b Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Mon, 16 Sep 2013 19:45:42 +0100
Subject: To avoid viewers (particularly on the Hypergrid) from permanently
caching a UUID -> "Unknown User" binding, drop the binding request rather
than replying with "Unknown User"
By not binding UUID -> "Unknown User", we leave open the possibility that the binding may be correctly resolved at a later time, which can still happen in some Hypergrid situations.
Observed behaviour of LL viewer 3.3.4 is that a dropped bind request is not retried until the next session.
---
.../UserManagement/UserManagementModule.cs | 77 ++++++++++++----------
1 file changed, 42 insertions(+), 35 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
index 8c983e6..25e8d69 100644
--- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
@@ -178,17 +178,20 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
m_ServiceThrottle.Enqueue("name", uuid.ToString(), delegate
{
//m_log.DebugFormat("[YYY]: Name request {0}", uuid);
- bool foundRealName = TryGetUserNames(uuid, names);
-
- if (names.Length == 2)
- {
- if (!foundRealName)
- m_log.DebugFormat("[USER MANAGEMENT MODULE]: Sending {0} {1} for {2} to {3} since no bound name found", names[0], names[1], uuid, client.Name);
+ // As least upto September 2013, clients permanently cache UUID -> Name bindings. Some clients
+ // appear to clear this when the user asks it to clear the cache, but others may not.
+ //
+ // So to avoid clients
+ // (particularly Hypergrid clients) permanently binding "Unknown User" to a given UUID, we will
+ // instead drop the request entirely.
+ if (TryGetUserNames(uuid, names))
client.SendNameReply(uuid, names[0], names[1]);
- }
+// else
+// m_log.DebugFormat(
+// "[USER MANAGEMENT MODULE]: No bound name for {0} found, ignoring request from {1}",
+// uuid, client.Name);
});
-
}
}
@@ -391,7 +394,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
}
names[0] = "Unknown";
- names[1] = "UserUMMTGUN8";
+ names[1] = "UserUMMTGUN9";
return false;
}
@@ -539,7 +542,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
AddUser(uuid, homeURL + ";" + first + " " + last);
}
- public void AddUser (UUID id, string creatorData)
+ public void AddUser(UUID id, string creatorData)
{
//m_log.DebugFormat("[USER MANAGEMENT MODULE]: Adding user with id {0}, creatorData {1}", id, creatorData);
@@ -549,24 +552,24 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
if (oldUser != null)
{
- if (creatorData == null || creatorData == String.Empty)
- {
- //ignore updates without creator data
- return;
- }
-
- //try update unknown users, but don't update anyone else
- if (oldUser.FirstName == "Unknown" && !creatorData.Contains("Unknown"))
- {
- lock (m_UserCache)
- m_UserCache.Remove(id);
- m_log.DebugFormat("[USER MANAGEMENT MODULE]: Re-adding user with id {0}, creatorData [{1}] and old HomeURL {2}", id, creatorData, oldUser.HomeURL);
- }
- else
- {
+// if (creatorData == null || creatorData == String.Empty)
+// {
+// //ignore updates without creator data
+// return;
+// }
+//
+// //try update unknown users, but don't update anyone else
+// if (oldUser.FirstName == "Unknown" && !creatorData.Contains("Unknown"))
+// {
+// lock (m_UserCache)
+// m_UserCache.Remove(id);
+// m_log.DebugFormat("[USER MANAGEMENT MODULE]: Re-adding user with id {0}, creatorData [{1}] and old HomeURL {2}", id, creatorData, oldUser.HomeURL);
+// }
+// else
+// {
//we have already a valid user within the cache
return;
- }
+// }
}
UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(m_Scenes[0].RegionInfo.ScopeID, id);
@@ -602,15 +605,19 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
if (parts.Length >= 2)
user.FirstName = parts[1].Replace(' ', '.');
}
- else
- {
- // Temporarily add unknown user entries of this type into the cache so that we can distinguish
- // this source from other recent (hopefully resolved) bugs that fail to retrieve a user name binding
- // TODO: Can be removed when GUN* unknown users have definitely dropped significantly or
- // disappeared.
- user.FirstName = "Unknown";
- user.LastName = "UserUMMAU4";
- }
+
+ // To avoid issues with clients, particularly Hypergrid ones, permanently caching
+ // UUID -> "Unknown User" name bindings, elsewhere we will drop such requests rather than replying.
+ // This also means that we cannot add an unknown user binding to the cache here.
+// else
+// {
+// // Temporarily add unknown user entries of this type into the cache so that we can distinguish
+// // this source from other recent (hopefully resolved) bugs that fail to retrieve a user name binding
+// // TODO: Can be removed when GUN* unknown users have definitely dropped significantly or
+// // disappeared.
+// user.FirstName = "Unknown";
+// user.LastName = "UserUMMAU4";
+// }
AddUserInternal(user);
}
--
cgit v1.1
From 69ec85f4911de3218e0efb910fdbb1725e81e4ae Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 17 Sep 2013 00:02:36 +0100
Subject: Fix issue in recent 3f0fa9f7 where the code start adding unknown user
cache entries with no name
---
.../CoreModules/Framework/UserManagement/UserManagementModule.cs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
index 25e8d69..63f78ac 100644
--- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
@@ -602,8 +602,11 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
user.LastName = "@unknown";
}
}
+
if (parts.Length >= 2)
user.FirstName = parts[1].Replace(' ', '.');
+
+ AddUserInternal(user);
}
// To avoid issues with clients, particularly Hypergrid ones, permanently caching
@@ -618,8 +621,6 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
// user.FirstName = "Unknown";
// user.LastName = "UserUMMAU4";
// }
-
- AddUserInternal(user);
}
}
--
cgit v1.1
From 845d2b193a2e2058cfe89e06e0589f38c8103eb3 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 17 Sep 2013 00:54:53 +0100
Subject: Comment out warning about no grid user found in
UMM.TryGetUserNamesFromServices() for now
---
.../CoreModules/Framework/UserManagement/UserManagementModule.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
index 63f78ac..80b6ac1 100644
--- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
@@ -388,10 +388,10 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
else
m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI {0}", uInfo.UserID);
}
- else
- {
- m_log.DebugFormat("[USER MANAGEMENT MODULE]: No grid user found for {0}", uuid);
- }
+// else
+// {
+// m_log.DebugFormat("[USER MANAGEMENT MODULE]: No grid user found for {0}", uuid);
+// }
names[0] = "Unknown";
names[1] = "UserUMMTGUN9";
--
cgit v1.1
From 1d2466889a3f184ff86d0d607ab3d2d10b1b4e16 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 17 Sep 2013 01:20:55 +0100
Subject: Reinstate insertion of "Unknown UserUMMAU4" now, as naive removing
may be generating too many repeating user requests from other sources.
Leaves in the dropping of the client GUN8 (now 9) uuid binding message, since this was the much more common case from the viewer-side and this can only affect viewers.
---
.../UserManagement/UserManagementModule.cs | 66 ++++++++++------------
1 file changed, 31 insertions(+), 35 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
index 80b6ac1..bb2bbe3 100644
--- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
@@ -388,10 +388,10 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
else
m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI {0}", uInfo.UserID);
}
-// else
-// {
-// m_log.DebugFormat("[USER MANAGEMENT MODULE]: No grid user found for {0}", uuid);
-// }
+ else
+ {
+ m_log.DebugFormat("[USER MANAGEMENT MODULE]: No grid user found for {0}", uuid);
+ }
names[0] = "Unknown";
names[1] = "UserUMMTGUN9";
@@ -552,24 +552,24 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
if (oldUser != null)
{
-// if (creatorData == null || creatorData == String.Empty)
-// {
-// //ignore updates without creator data
-// return;
-// }
-//
-// //try update unknown users, but don't update anyone else
-// if (oldUser.FirstName == "Unknown" && !creatorData.Contains("Unknown"))
-// {
-// lock (m_UserCache)
-// m_UserCache.Remove(id);
-// m_log.DebugFormat("[USER MANAGEMENT MODULE]: Re-adding user with id {0}, creatorData [{1}] and old HomeURL {2}", id, creatorData, oldUser.HomeURL);
-// }
-// else
-// {
+ if (creatorData == null || creatorData == String.Empty)
+ {
+ //ignore updates without creator data
+ return;
+ }
+
+ //try update unknown users, but don't update anyone else
+ if (oldUser.FirstName == "Unknown" && !creatorData.Contains("Unknown"))
+ {
+ lock (m_UserCache)
+ m_UserCache.Remove(id);
+ m_log.DebugFormat("[USER MANAGEMENT MODULE]: Re-adding user with id {0}, creatorData [{1}] and old HomeURL {2}", id, creatorData, oldUser.HomeURL);
+ }
+ else
+ {
//we have already a valid user within the cache
return;
-// }
+ }
}
UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(m_Scenes[0].RegionInfo.ScopeID, id);
@@ -605,22 +605,18 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
if (parts.Length >= 2)
user.FirstName = parts[1].Replace(' ', '.');
-
- AddUserInternal(user);
}
-
- // To avoid issues with clients, particularly Hypergrid ones, permanently caching
- // UUID -> "Unknown User" name bindings, elsewhere we will drop such requests rather than replying.
- // This also means that we cannot add an unknown user binding to the cache here.
-// else
-// {
-// // Temporarily add unknown user entries of this type into the cache so that we can distinguish
-// // this source from other recent (hopefully resolved) bugs that fail to retrieve a user name binding
-// // TODO: Can be removed when GUN* unknown users have definitely dropped significantly or
-// // disappeared.
-// user.FirstName = "Unknown";
-// user.LastName = "UserUMMAU4";
-// }
+ else
+ {
+ // Temporarily add unknown user entries of this type into the cache so that we can distinguish
+ // this source from other recent (hopefully resolved) bugs that fail to retrieve a user name binding
+ // TODO: Can be removed when GUN* unknown users have definitely dropped significantly or
+ // disappeared.
+ user.FirstName = "Unknown";
+ user.LastName = "UserUMMAU4";
+ }
+
+ AddUserInternal(user);
}
}
--
cgit v1.1
From ddcbd4bb7d1518d0607d43e9d687faee186e9409 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 18 Sep 2013 23:09:38 +0100
Subject: refactor: rename *ChildAgentDataUpdate() methods to
*UpdateChildAgent()
verb-noun is consistent with other similar methods
---
.../ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
index e86d186..8ec943d 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
@@ -235,7 +235,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
// "[LOCAL SIMULATION CONNECTOR]: Found region {0} {1} to send AgentUpdate",
// destination.RegionName, destination.RegionID);
- return m_scenes[destination.RegionID].IncomingChildAgentDataUpdate(cAgentData);
+ return m_scenes[destination.RegionID].IncomingUpdateChildAgent(cAgentData);
}
// m_log.DebugFormat(
@@ -245,7 +245,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
return false;
}
- public bool UpdateAgent(GridRegion destination, AgentPosition cAgentData)
+ public bool UpdateAgent(GridRegion destination, AgentPosition agentPosition)
{
if (destination == null)
return false;
@@ -257,7 +257,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
foreach (Scene s in m_scenes.Values)
{
// m_log.Debug("[LOCAL COMMS]: Found region to send ChildAgentUpdate");
- s.IncomingChildAgentDataUpdate(cAgentData);
+ s.IncomingUpdateChildAgent(agentPosition);
}
//m_log.Debug("[LOCAL COMMS]: region not found for ChildAgentUpdate");
--
cgit v1.1
From 979b17165b7e504385187ab082ef0a8cd50605bd Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 19 Sep 2013 22:45:50 +0100
Subject: For debug purposes, allow simulators to force use of earlier
SIMULATION/0.1 teleport protocol even if SIMULATION/0.2 is available.
This is specified in the MaxOutgoingTransferVersion attribute of [EntityTransfer] in OpenSim.ini, see OpenSimDefaults.ini for more details.
Default remains "SIMULATION/0.2"
Primarily for http://opensimulator.org/mantis/view.php?id=6755
---
.../EntityTransfer/EntityTransferModule.cs | 53 ++++++++++++++++++++--
1 file changed, 49 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 9302784..c1c8672 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -56,6 +56,13 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
public const int DefaultMaxTransferDistance = 4095;
public const bool WaitForAgentArrivedAtDestinationDefault = true;
+ public string OutgoingTransferVersionName { get; set; }
+
+ ///
+ /// Determine the maximum entity transfer version we will use for teleports.
+ ///
+ public float MaxOutgoingTransferVersion { get; set; }
+
///
/// The maximum distance, in standard region units (256m) that an agent is allowed to transfer.
///
@@ -151,9 +158,35 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
///
protected virtual void InitialiseCommon(IConfigSource source)
{
+ string transferVersionName = "SIMULATION";
+ float maxTransferVersion = 0.2f;
+
IConfig transferConfig = source.Configs["EntityTransfer"];
if (transferConfig != null)
{
+ string rawVersion
+ = transferConfig.GetString(
+ "MaxOutgoingTransferVersion",
+ string.Format("{0}/{1}", transferVersionName, maxTransferVersion));
+
+ string[] rawVersionComponents = rawVersion.Split(new char[] { '/' });
+
+ bool versionValid = false;
+
+ if (rawVersionComponents.Length >= 2)
+ versionValid = float.TryParse(rawVersionComponents[1], out maxTransferVersion);
+
+ if (!versionValid)
+ {
+ m_log.ErrorFormat(
+ "[ENTITY TRANSFER MODULE]: MaxOutgoingTransferVersion {0} is invalid, using {1}",
+ rawVersion, string.Format("{0}/{1}", transferVersionName, maxTransferVersion));
+ }
+ else
+ {
+ transferVersionName = rawVersionComponents[0];
+ }
+
DisableInterRegionTeleportCancellation
= transferConfig.GetBoolean("DisableInterRegionTeleportCancellation", false);
@@ -167,6 +200,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
MaxTransferDistance = DefaultMaxTransferDistance;
}
+ OutgoingTransferVersionName = transferVersionName;
+ MaxOutgoingTransferVersion = maxTransferVersion;
+
m_entityTransferStateMachine = new EntityTransferStateMachine(this);
m_Enabled = true;
@@ -623,7 +659,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
if (!sp.ValidateAttachments())
m_log.DebugFormat(
"[ENTITY TRANSFER MODULE]: Failed validation of all attachments for teleport of {0} from {1} to {2}. Continuing.",
- sp.Name, sp.Scene.RegionInfo.RegionName, finalDestination.RegionName);
+ sp.Name, sp.Scene.Name, finalDestination.RegionName);
string reason;
string version;
@@ -634,7 +670,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
m_log.DebugFormat(
"[ENTITY TRANSFER MODULE]: {0} was stopped from teleporting from {1} to {2} because {3}",
- sp.Name, sp.Scene.RegionInfo.RegionName, finalDestination.RegionName, reason);
+ sp.Name, sp.Scene.Name, finalDestination.RegionName, reason);
return;
}
@@ -644,7 +680,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
// as server attempts.
m_interRegionTeleportAttempts.Value++;
- m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Destination is running version {0}", version);
+ m_log.DebugFormat(
+ "[ENTITY TRANSFER MODULE]: {0} max transfer version is {1}/{2}, {3} max version is {4}",
+ sp.Scene.Name, OutgoingTransferVersionName, MaxOutgoingTransferVersion, finalDestination.RegionName, version);
// Fixing a bug where teleporting while sitting results in the avatar ending up removed from
// both regions
@@ -689,7 +727,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
agentCircuit.CapsPath = CapsUtil.GetRandomCapsObjectPath();
}
- if (version.Equals("SIMULATION/0.2"))
+ // We're going to fallback to V1 if the destination gives us anything smaller than 0.2 or we're forcing
+ // use of the earlier protocol
+ float versionNumber = 0.1f;
+ string[] versionComponents = version.Split(new char[] { '/' });
+ if (versionComponents.Length >= 2)
+ float.TryParse(versionComponents[1], out versionNumber);
+
+ if (versionNumber == 0.2f && MaxOutgoingTransferVersion >= versionNumber)
TransferAgent_V2(sp, agentCircuit, reg, finalDestination, endPoint, teleportFlags, oldRegionX, newRegionX, oldRegionY, newRegionY, version, out reason);
else
TransferAgent_V1(sp, agentCircuit, reg, finalDestination, endPoint, teleportFlags, oldRegionX, newRegionX, oldRegionY, newRegionY, version, out reason);
--
cgit v1.1
From 8502517d8081366dfc63756ae07cfe64a27a1eb0 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 20 Sep 2013 23:07:24 +0100
Subject: Make UUID.Zero resolve to "Unknown User" in user cache.
This is to avoid massive numbers of 'no user found' logs when user IDs are missing for some reason.
UUID.Zero should not be used for any user ID.
---
.../Region/CoreModules/Framework/UserManagement/UserManagementModule.cs | 2 ++
1 file changed, 2 insertions(+)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
index bb2bbe3..96eb63f 100644
--- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
@@ -73,6 +73,8 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
Init();
m_log.DebugFormat("[USER MANAGEMENT MODULE]: {0} is enabled", Name);
}
+
+ AddUser(UUID.Zero, "Unknown", "User");
}
public bool IsSharedModule
--
cgit v1.1
From e2b3b7a2ae01a82e7ca1ed7efd6237a5bf1c9811 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 20 Sep 2013 23:42:55 +0100
Subject: minor: Correct minor spelling mistake Reseting -> Resetting in HG Map
module log message
---
OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
index 97227b3..79a409d 100644
--- a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
@@ -129,7 +129,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid
b.Access = 254; // means 'simulator is offline'. We need this because the viewer ignores 255's
}
- m_log.DebugFormat("[HG MAP]: Reseting {0} blocks", mapBlocks.Count);
+ m_log.DebugFormat("[HG MAP]: Resetting {0} blocks", mapBlocks.Count);
sp.ControllingClient.SendMapBlock(mapBlocks, 0);
m_SeenMapBlocks.Remove(clientID);
}
--
cgit v1.1
From 4c0ec861769497b64b5ad71f712fb792564ebe4a Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 21 Sep 2013 00:14:57 +0100
Subject: minor: Add prefix to log message in LureModule
---
OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs b/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs
index 7f4606b..465ffbc 100644
--- a/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs
@@ -165,7 +165,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
(uint)presence.AbsolutePosition.Y,
(uint)Math.Ceiling(presence.AbsolutePosition.Z));
- m_log.DebugFormat("TP invite with message {0}, type {1}", message, lureType);
+ m_log.DebugFormat("[LURE MODULE]: TP invite with message {0}, type {1}", message, lureType);
GridInstantMessage m = new GridInstantMessage(scene, client.AgentId,
client.FirstName+" "+client.LastName, targetid,
--
cgit v1.1
From cbdfe96905da9d1386b572f89e8372bbdb3345e6 Mon Sep 17 00:00:00 2001
From: Oren Hurvitz
Date: Mon, 15 Jul 2013 15:26:18 +0300
Subject: When giving items between avatars in different simulators, only add
the item to the receiving avatar's inventory once.
When a user gives an item, the user's client sends an InventoryOffered IM message to its simulator. This adds the item to the receiver's inventory. If the receiver isn't in the same simulator then XMLRPC is used to forward the IM to the correct simulator. The bug was that the receiving simulator handled the message by calling OnInstantMessage() again, which added a second copy of the item to the inventory. Instead, the receiving simulator should only notify the avatar that the item was offered.
---
.../Inventory/Transfer/InventoryTransferModule.cs | 53 ++++++++++++++++++----
1 file changed, 44 insertions(+), 9 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
index 1417a19..f52654f 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
@@ -148,9 +148,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
private void OnInstantMessage(IClientAPI client, GridInstantMessage im)
{
-// m_log.DebugFormat(
-// "[INVENTORY TRANSFER]: {0} IM type received from {1}",
-// (InstantMessageDialog)im.dialog, client.Name);
+ m_log.DebugFormat(
+ "[INVENTORY TRANSFER]: {0} IM type received from client {1}. From={2} ({3}), To={4}",
+ (InstantMessageDialog)im.dialog, client.Name,
+ im.fromAgentID, im.fromAgentName, im.toAgentID);
Scene scene = FindClientScene(client.AgentId);
@@ -450,23 +451,57 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
///
///
///
- ///
- private void OnGridInstantMessage(GridInstantMessage msg)
+ ///
+ private void OnGridInstantMessage(GridInstantMessage im)
{
+ // Check if it's a type of message that we should handle
+ if (!((im.dialog == (byte) InstantMessageDialog.InventoryOffered)
+ || (im.dialog == (byte) InstantMessageDialog.InventoryAccepted)
+ || (im.dialog == (byte) InstantMessageDialog.InventoryDeclined)
+ || (im.dialog == (byte) InstantMessageDialog.TaskInventoryDeclined)))
+ return;
+
+ m_log.DebugFormat(
+ "[INVENTORY TRANSFER]: {0} IM type received from grid. From={1} ({2}), To={3}",
+ (InstantMessageDialog)im.dialog, im.fromAgentID, im.fromAgentName, im.toAgentID);
+
// Check if this is ours to handle
//
- Scene scene = FindClientScene(new UUID(msg.toAgentID));
+ Scene scene = FindClientScene(new UUID(im.toAgentID));
if (scene == null)
return;
// Find agent to deliver to
//
- ScenePresence user = scene.GetScenePresence(new UUID(msg.toAgentID));
+ ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID));
- // Just forward to local handling
- OnInstantMessage(user.ControllingClient, msg);
+ if (user != null)
+ {
+ user.ControllingClient.SendInstantMessage(im);
+ if (im.dialog == (byte)InstantMessageDialog.InventoryOffered)
+ {
+ AssetType assetType = (AssetType)im.binaryBucket[0];
+ UUID inventoryID = new UUID(im.binaryBucket, 1);
+
+ IInventoryService invService = scene.InventoryService;
+ InventoryNodeBase node = null;
+ if (AssetType.Folder == assetType)
+ {
+ InventoryFolderBase folder = new InventoryFolderBase(inventoryID, new UUID(im.toAgentID));
+ node = invService.GetFolder(folder);
+ }
+ else
+ {
+ InventoryItemBase item = new InventoryItemBase(inventoryID, new UUID(im.toAgentID));
+ node = invService.GetItem(item);
+ }
+
+ if (node != null)
+ user.ControllingClient.SendBulkUpdateInventory(node);
+ }
+ }
}
}
}
--
cgit v1.1
From a37c59b43e34e1b3f279f7684a42a2c4a25f18c7 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 21 Sep 2013 00:40:23 +0100
Subject: minor: Recomment out log message uncommented in previous cbdfe969
---
.../Avatar/Inventory/Transfer/InventoryTransferModule.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
index f52654f..0b10dd8 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
@@ -148,10 +148,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
private void OnInstantMessage(IClientAPI client, GridInstantMessage im)
{
- m_log.DebugFormat(
- "[INVENTORY TRANSFER]: {0} IM type received from client {1}. From={2} ({3}), To={4}",
- (InstantMessageDialog)im.dialog, client.Name,
- im.fromAgentID, im.fromAgentName, im.toAgentID);
+// m_log.DebugFormat(
+// "[INVENTORY TRANSFER]: {0} IM type received from client {1}. From={2} ({3}), To={4}",
+// (InstantMessageDialog)im.dialog, client.Name,
+// im.fromAgentID, im.fromAgentName, im.toAgentID);
Scene scene = FindClientScene(client.AgentId);
--
cgit v1.1
From 2dc92e7de11086c7649d3ee0f8adc974efce6805 Mon Sep 17 00:00:00 2001
From: Aleric Inglewood
Date: Sun, 4 Aug 2013 19:19:11 +0200
Subject: Preserve attachment point & position when attachment is rezzed in
world
Patch taken from
http://opensimulator.org/mantis/view.php?id=4905
originally by Greg C.
Fixed to apply to r/23314 commit
ba9daf849e7c8db48e7c03e7cdedb77776b2052f
(cherry picked from commit 4ff9fbca441110cc2b93edc7286e0e9339e61cbe)
---
.../Avatar/Attachments/AttachmentsModule.cs | 18 +++++++++++++++++-
.../Framework/InventoryAccess/InventoryAccessModule.cs | 8 ++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 2818712..d0e0b35 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -422,6 +422,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
attachPos = Vector3.Zero;
}
+ // if the attachment point is the same as previous, make sure we get the saved
+ // position info.
+ if (attachmentPt != 0 && attachmentPt == group.RootPart.Shape.LastAttachPoint)
+ {
+ attachPos = group.RootPart.AttachedPos;
+ }
+
// AttachmentPt 0 means the client chose to 'wear' the attachment.
if (attachmentPt == (uint)AttachmentPoint.Default)
{
@@ -429,6 +436,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
attachmentPt = group.AttachmentPoint;
}
+ // if we didn't find an attach point, look for where it was last attached
+ if (attachmentPt == 0)
+ {
+ attachmentPt = (uint)group.RootPart.Shape.LastAttachPoint;
+ attachPos = group.RootPart.AttachedPos;
+ group.HasGroupChanged = true;
+ }
+
// if we still didn't find a suitable attachment point.......
if (attachmentPt == 0)
{
@@ -619,6 +634,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
so.ClearPartAttachmentData();
rootPart.ApplyPhysics(rootPart.GetEffectiveObjectFlags(), rootPart.VolumeDetectActive);
so.HasGroupChanged = true;
+ so.RootPart.Shape.LastAttachPoint = (byte)so.AttachmentPoint;
rootPart.Rezzed = DateTime.Now;
rootPart.RemFlag(PrimFlags.TemporaryOnRez);
so.AttachToBackup();
@@ -1210,4 +1226,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index 68e4e26..0ec9575 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -836,6 +836,14 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
m_log.Debug("[INVENTORY ACCESS MODULE]: Object has UUID.Zero! Position 3");
}
+ // if this was previously an attachment and is now being rezzed,
+ // save the old attachment info.
+ if (group.IsAttachment == false && group.RootPart.Shape.State != 0)
+ {
+ group.RootPart.AttachedPos = group.AbsolutePosition;
+ group.RootPart.Shape.LastAttachPoint = (byte)group.AttachmentPoint;
+ }
+
foreach (SceneObjectPart part in group.Parts)
{
// Make the rezzer the owner, as this is not necessarily set correctly in the serialized asset.
--
cgit v1.1
From b22c92368f8991c174897306334c523bac8a4099 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 25 Sep 2013 21:53:38 +0100
Subject: Move adding UUID.Zero -> Unknown User binding to UMM.Init() so that
it's also called by HGUserManagementModule
---
.../CoreModules/Framework/UserManagement/UserManagementModule.cs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
index 96eb63f..d3926cc 100644
--- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
@@ -73,8 +73,6 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
Init();
m_log.DebugFormat("[USER MANAGEMENT MODULE]: {0} is enabled", Name);
}
-
- AddUser(UUID.Zero, "Unknown", "User");
}
public bool IsSharedModule
@@ -645,6 +643,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
protected void Init()
{
+ AddUser(UUID.Zero, "Unknown", "User");
RegisterConsoleCmds();
}
--
cgit v1.1
From 4664090b34dfa2e944204fb7b616a19fcb3eeddf Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 25 Sep 2013 22:59:57 +0100
Subject: minor: correct spelling of Initialized in LSC connector version
message
---
.../ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
index 8ec943d..5c098a8 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
@@ -94,7 +94,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
throw new Exception(string.Format("Invalid ConnectorProtocolVersion {0}", ServiceVersion));
m_log.InfoFormat(
- "[LOCAL SIMULATION CONNECTOR]: Initialzied with connector protocol version {0}", ServiceVersion);
+ "[LOCAL SIMULATION CONNECTOR]: Initialized with connector protocol version {0}", ServiceVersion);
}
}
--
cgit v1.1
From babfbe8d6d29380e42242008b6a743bc895ddb96 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 26 Sep 2013 00:31:33 +0100
Subject: minor: log MaxOutgoingTransferVersion at EntityTransferModule startup
---
.../CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index c1c8672..8ae81ac 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -185,6 +185,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
else
{
transferVersionName = rawVersionComponents[0];
+
+ m_log.InfoFormat(
+ "[ENTITY TRANSFER MODULE]: MaxOutgoingTransferVersion set to {0}",
+ string.Format("{0}/{1}", transferVersionName, maxTransferVersion));
}
DisableInterRegionTeleportCancellation
--
cgit v1.1
From e24edada2435f942575a5a7acb4568fe6c0e4e30 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 26 Sep 2013 00:39:32 +0100
Subject: minor: Comment out windlight log message about sending scene data for
now.
---
OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs b/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs
index 89f3280..0a4e83e 100644
--- a/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs
+++ b/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs
@@ -207,7 +207,8 @@ namespace OpenSim.Region.CoreModules.World.LightShare
private void EventManager_OnMakeRootAgent(ScenePresence presence)
{
- m_log.Debug("[WINDLIGHT]: Sending windlight scene to new client");
+// m_log.Debug("[WINDLIGHT]: Sending windlight scene to new client {0}", presence.Name);
+
SendProfileToClient(presence.ControllingClient);
}
--
cgit v1.1
From d6d82dbd3c9d081209914351ff3cc18c349e362b Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 26 Sep 2013 20:13:29 +0100
Subject: minor: correct attachment spelling mistake in log message in
HGEntityTransferModule.OnIncomingSceneObject()
---
.../CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
index 76dbc72..04a0db6 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
@@ -181,7 +181,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
if (aCircuit.ServiceURLs != null && aCircuit.ServiceURLs.ContainsKey("AssetServerURI"))
{
string url = aCircuit.ServiceURLs["AssetServerURI"].ToString();
- m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Incoming attachement {0} for HG user {1} with asset server {2}", so.Name, so.AttachedAvatar, url);
+ m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Incoming attachment {0} for HG user {1} with asset server {2}", so.Name, so.AttachedAvatar, url);
Dictionary ids = new Dictionary();
HGUuidGatherer uuidGatherer = new HGUuidGatherer(Scene.AssetService, url);
uuidGatherer.GatherAssetUuids(so, ids);
--
cgit v1.1
From b16bc7b01ca0691758e66f85238d657f02271082 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 27 Sep 2013 19:14:21 +0100
Subject: refactor: rename Scene.IncomingCloseAgent() to CloseAgent() in order
to make it clear that all non-clientstack callers should be using this rather
than RemoveClient() in order to step through the ScenePresence state machine
properly.
Adds IScene.CloseAgent() to replace RemoveClient()
---
.../Avatar/Attachments/Tests/AttachmentsModuleTests.cs | 2 +-
OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs | 2 +-
.../CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 8 ++++----
.../ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs | 2 +-
OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 6 +++---
5 files changed, 10 insertions(+), 10 deletions(-)
(limited to 'OpenSim/Region/CoreModules')
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs
index fd493fc..4e58045 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs
@@ -719,7 +719,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
SceneObjectGroup rezzedAtt = presence.GetAttachments()[0];
m_numberOfAttachEventsFired = 0;
- scene.IncomingCloseAgent(presence.UUID, false);
+ scene.CloseAgent(presence.UUID, false);
// Check that we can't retrieve this attachment from the scene.
Assert.That(scene.GetSceneObjectGroup(rezzedAtt.UUID), Is.Null);
diff --git a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs
index 0cd495c..3b6d970 100644
--- a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs
@@ -272,7 +272,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
if (sp.IsChildAgent)
return;
sp.ControllingClient.Kick(reason);
- sp.Scene.IncomingCloseAgent(sp.UUID, true);
+ sp.Scene.CloseAgent(sp.UUID, true);
}
private void OnIncomingInstantMessage(GridInstantMessage msg)
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 8ae81ac..aa8a4db 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -972,7 +972,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
if (NeedsClosing(sp.DrawDistance, oldRegionX, newRegionX, oldRegionY, newRegionY, reg))
{
- if (!sp.Scene.IncomingPreCloseAgent(sp))
+ if (!sp.Scene.IncomingPreCloseClient(sp))
return;
// We need to delay here because Imprudence viewers, unlike v1 or v3, have a short (<200ms, <500ms) delay before
@@ -983,7 +983,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
// an agent cannot teleport back to this region if it has teleported away.
Thread.Sleep(2000);
- sp.Scene.IncomingCloseAgent(sp.UUID, false);
+ sp.Scene.CloseAgent(sp.UUID, false);
}
else
{
@@ -1137,7 +1137,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
// Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone
if (NeedsClosing(sp.DrawDistance, oldRegionX, newRegionX, oldRegionY, newRegionY, reg))
{
- if (!sp.Scene.IncomingPreCloseAgent(sp))
+ if (!sp.Scene.IncomingPreCloseClient(sp))
return;
// RED ALERT!!!!
@@ -1154,7 +1154,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
m_log.DebugFormat(
"[ENTITY TRANSFER MODULE]: Closing agent {0} in {1} after teleport", sp.Name, Scene.Name);
- sp.Scene.IncomingCloseAgent(sp.UUID, false);
+ sp.Scene.CloseAgent(sp.UUID, false);
}
else
{
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
index 5c098a8..678f3dc 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
@@ -311,7 +311,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
// "[LOCAL SIMULATION CONNECTOR]: Found region {0} {1} to send AgentUpdate",
// s.RegionInfo.RegionName, destination.RegionHandle);
- m_scenes[destination.RegionID].IncomingCloseAgent(id, false, auth_token);
+ m_scenes[destination.RegionID].CloseAgent(id, false, auth_token);
return true;
}
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
index 31547a6..42db1cf 100644
--- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
@@ -562,7 +562,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
if (!Scene.TeleportClientHome(user, s.ControllingClient))
{
s.ControllingClient.Kick("Your access to the region was revoked and TP home failed - you have been logged out.");
- Scene.IncomingCloseAgent(s.UUID, false);
+ Scene.CloseAgent(s.UUID, false);
}
}
}
@@ -797,7 +797,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
if (!Scene.TeleportClientHome(prey, s.ControllingClient))
{
s.ControllingClient.Kick("You were teleported home by the region owner, but the TP failed - you have been logged out.");
- Scene.IncomingCloseAgent(s.UUID, false);
+ Scene.CloseAgent(s.UUID, false);
}
}
}
@@ -820,7 +820,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
if (!Scene.TeleportClientHome(p.UUID, p.ControllingClient))
{
p.ControllingClient.Kick("You were teleported home by the region owner, but the TP failed - you have been logged out.");
- Scene.IncomingCloseAgent(p.UUID, false);
+ Scene.CloseAgent(p.UUID, false);
}
}
}
--
cgit v1.1