aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Framework/EntityTransfer
diff options
context:
space:
mode:
authorMelanie2012-04-25 01:22:09 +0100
committerMelanie2012-04-25 01:22:09 +0100
commitdef65cd94a18115d1a9cb89d735715c1f708a81d (patch)
tree7fd2c4c5ebb563bf7225d244b80739e9df134566 /OpenSim/Region/CoreModules/Framework/EntityTransfer
parentMerge branch 'master' into careminster (diff)
parentComment out some debug ATTACHMENTS log messages for now. (diff)
downloadopensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.zip
opensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.tar.gz
opensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.tar.bz2
opensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/EntityTransfer')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 2b790f4..690edce 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -172,13 +172,17 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
172 // Reset animations; the viewer does that in teleports. 172 // Reset animations; the viewer does that in teleports.
173 sp.Animator.ResetAnimations(); 173 sp.Animator.ResetAnimations();
174 174
175 string destinationRegionName = "(not found)";
176
175 try 177 try
176 { 178 {
177 if (regionHandle == sp.Scene.RegionInfo.RegionHandle) 179 if (regionHandle == sp.Scene.RegionInfo.RegionHandle)
178 { 180 {
181 destinationRegionName = sp.Scene.RegionInfo.RegionName;
182
179 m_log.DebugFormat( 183 m_log.DebugFormat(
180 "[ENTITY TRANSFER MODULE]: RequestTeleportToLocation {0} within {1}", 184 "[ENTITY TRANSFER MODULE]: RequestTeleportToLocation for {0} to {1} within existing region {2}",
181 position, sp.Scene.RegionInfo.RegionName); 185 sp.Name, position, destinationRegionName);
182 186
183 // Teleport within the same region 187 // Teleport within the same region
184 if (IsOutsideRegion(sp.Scene, position) || position.Z < 0) 188 if (IsOutsideRegion(sp.Scene, position) || position.Z < 0)
@@ -188,6 +192,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
188 m_log.WarnFormat( 192 m_log.WarnFormat(
189 "[ENTITY TRANSFER MODULE]: RequestTeleportToLocation() was given an illegal position of {0} for avatar {1}, {2}. Substituting {3}", 193 "[ENTITY TRANSFER MODULE]: RequestTeleportToLocation() was given an illegal position of {0} for avatar {1}, {2}. Substituting {3}",
190 position, sp.Name, sp.UUID, emergencyPos); 194 position, sp.Name, sp.UUID, emergencyPos);
195
191 position = emergencyPos; 196 position = emergencyPos;
192 } 197 }
193 198
@@ -234,6 +239,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
234 return; 239 return;
235 } 240 }
236 241
242 destinationRegionName = finalDestination.RegionName;
243
237 // check if HyperGrid teleport is allowed, based on user level 244 // check if HyperGrid teleport is allowed, based on user level
238 int flags = m_aScene.GridService.GetRegionFlags(sp.Scene.RegionInfo.ScopeID, reg.RegionID); 245 int flags = m_aScene.GridService.GetRegionFlags(sp.Scene.RegionInfo.ScopeID, reg.RegionID);
239 246
@@ -308,7 +315,11 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
308 } 315 }
309 catch (Exception e) 316 catch (Exception e)
310 { 317 {
311 m_log.WarnFormat("[ENTITY TRANSFER MODULE]: Exception on teleport: {0} {1}", e.Message, e.StackTrace); 318 m_log.ErrorFormat(
319 "[ENTITY TRANSFER MODULE]: Exception on teleport of {0} from {1}@{2} to {3}@{4}: {5}{6}",
320 sp.Name, sp.AbsolutePosition, sp.Scene.RegionInfo.RegionName, position, destinationRegionName,
321 e.Message, e.StackTrace);
322
312 sp.ControllingClient.SendTeleportFailed("Internal error"); 323 sp.ControllingClient.SendTeleportFailed("Internal error");
313 } 324 }
314 } 325 }