diff options
Diffstat (limited to 'OpenSim/Services/GridService/HypergridLinker.cs')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index 9d016fc..b4577b0 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -343,7 +343,11 @@ namespace OpenSim.Services.GridService | |||
343 | GridRegion region = m_GridService.GetRegionByPosition(regInfo.ScopeID, regInfo.RegionLocX, regInfo.RegionLocY); | 343 | GridRegion region = m_GridService.GetRegionByPosition(regInfo.ScopeID, regInfo.RegionLocX, regInfo.RegionLocY); |
344 | if (region != null) | 344 | if (region != null) |
345 | { | 345 | { |
346 | <<<<<<< HEAD | ||
346 | m_log.WarnFormat("[HYPERGRID LINKER]: Coordinates <{0},{1}> are already occupied by region {2} with uuid {3}", | 347 | m_log.WarnFormat("[HYPERGRID LINKER]: Coordinates <{0},{1}> are already occupied by region {2} with uuid {3}", |
348 | ======= | ||
349 | m_log.WarnFormat("[HYPERGRID LINKER]: Coordinates {0}-{1} are already occupied by region {2} with uuid {3}", | ||
350 | >>>>>>> avn/ubitvar | ||
347 | Util.WorldToRegionLoc((uint)regInfo.RegionLocX), Util.WorldToRegionLoc((uint)regInfo.RegionLocY), | 351 | Util.WorldToRegionLoc((uint)regInfo.RegionLocX), Util.WorldToRegionLoc((uint)regInfo.RegionLocY), |
348 | region.RegionName, region.RegionID); | 352 | region.RegionName, region.RegionID); |
349 | reason = "Coordinates are already in use"; | 353 | reason = "Coordinates are already in use"; |
@@ -379,8 +383,13 @@ namespace OpenSim.Services.GridService | |||
379 | region = m_GridService.GetRegionByUUID(scopeID, regionID); | 383 | region = m_GridService.GetRegionByUUID(scopeID, regionID); |
380 | if (region != null) | 384 | if (region != null) |
381 | { | 385 | { |
386 | <<<<<<< HEAD | ||
382 | m_log.DebugFormat("[HYPERGRID LINKER]: Region already exists in coordinates <{0},{1}>", | 387 | m_log.DebugFormat("[HYPERGRID LINKER]: Region already exists in coordinates <{0},{1}>", |
383 | Util.WorldToRegionLoc((uint)region.RegionLocX), Util.WorldToRegionLoc((uint)region.RegionLocY)); | 388 | Util.WorldToRegionLoc((uint)region.RegionLocX), Util.WorldToRegionLoc((uint)region.RegionLocY)); |
389 | ======= | ||
390 | m_log.DebugFormat("[HYPERGRID LINKER]: Region already exists in coordinates {0} {1}", | ||
391 | Util.WorldToRegionLoc((uint)regInfo.RegionLocX), Util.WorldToRegionLoc((uint)regInfo.RegionLocY)); | ||
392 | >>>>>>> avn/ubitvar | ||
384 | regInfo = region; | 393 | regInfo = region; |
385 | return true; | 394 | return true; |
386 | } | 395 | } |
@@ -536,6 +545,7 @@ namespace OpenSim.Services.GridService | |||
536 | MainConsole.Instance.Output(new string('-', 72)); | 545 | MainConsole.Instance.Output(new string('-', 72)); |
537 | foreach (RegionData r in regions) | 546 | foreach (RegionData r in regions) |
538 | { | 547 | { |
548 | <<<<<<< HEAD | ||
539 | MainConsole.Instance.Output( | 549 | MainConsole.Instance.Output( |
540 | String.Format("{0}\n{2,-32} {1}\n", | 550 | String.Format("{0}\n{2,-32} {1}\n", |
541 | r.RegionName, r.RegionID, | 551 | r.RegionName, r.RegionID, |
@@ -544,6 +554,12 @@ namespace OpenSim.Services.GridService | |||
544 | ) | 554 | ) |
545 | ) | 555 | ) |
546 | ); | 556 | ); |
557 | ======= | ||
558 | MainConsole.Instance.Output(String.Format("{0}\n{2,-32} {1}\n", | ||
559 | r.RegionName, r.RegionID, | ||
560 | String.Format("{0},{1} ({2},{3})", r.posX, r.posY, | ||
561 | Util.WorldToRegionLoc((uint)r.posX), Util.WorldToRegionLoc((uint)r.posY))) ); | ||
562 | >>>>>>> avn/ubitvar | ||
547 | } | 563 | } |
548 | return; | 564 | return; |
549 | } | 565 | } |
@@ -645,8 +661,13 @@ namespace OpenSim.Services.GridService | |||
645 | string externalHostName; | 661 | string externalHostName; |
646 | try | 662 | try |
647 | { | 663 | { |
664 | <<<<<<< HEAD | ||
648 | xloc = Convert.ToUInt32(cmdparams[0]); | 665 | xloc = Convert.ToUInt32(cmdparams[0]); |
649 | yloc = Convert.ToUInt32(cmdparams[1]); | 666 | yloc = Convert.ToUInt32(cmdparams[1]); |
667 | ======= | ||
668 | xloc = (uint)Convert.ToInt32(cmdparams[0]); | ||
669 | yloc = (uint)Convert.ToInt32(cmdparams[1]); | ||
670 | >>>>>>> avn/ubitvar | ||
650 | externalPort = Convert.ToUInt32(cmdparams[3]); | 671 | externalPort = Convert.ToUInt32(cmdparams[3]); |
651 | externalHostName = cmdparams[2]; | 672 | externalHostName = cmdparams[2]; |
652 | //internalPort = Convert.ToUInt32(cmdparams[4]); | 673 | //internalPort = Convert.ToUInt32(cmdparams[4]); |
@@ -749,8 +770,13 @@ namespace OpenSim.Services.GridService | |||
749 | string externalHostName; | 770 | string externalHostName; |
750 | uint realXLoc, realYLoc; | 771 | uint realXLoc, realYLoc; |
751 | 772 | ||
773 | <<<<<<< HEAD | ||
752 | xloc = Convert.ToUInt32(config.GetString("xloc", "0")); | 774 | xloc = Convert.ToUInt32(config.GetString("xloc", "0")); |
753 | yloc = Convert.ToUInt32(config.GetString("yloc", "0")); | 775 | yloc = Convert.ToUInt32(config.GetString("yloc", "0")); |
776 | ======= | ||
777 | xloc = (uint)Convert.ToInt32(config.GetString("xloc", "0")); | ||
778 | yloc = (uint)Convert.ToInt32(config.GetString("yloc", "0")); | ||
779 | >>>>>>> avn/ubitvar | ||
754 | externalPort = Convert.ToUInt32(config.GetString("externalPort", "0")); | 780 | externalPort = Convert.ToUInt32(config.GetString("externalPort", "0")); |
755 | externalHostName = config.GetString("externalHostName", ""); | 781 | externalHostName = config.GetString("externalHostName", ""); |
756 | realXLoc = Convert.ToUInt32(config.GetString("real-xloc", "0")); | 782 | realXLoc = Convert.ToUInt32(config.GetString("real-xloc", "0")); |
@@ -758,8 +784,13 @@ namespace OpenSim.Services.GridService | |||
758 | 784 | ||
759 | if (m_enableAutoMapping) | 785 | if (m_enableAutoMapping) |
760 | { | 786 | { |
787 | <<<<<<< HEAD | ||
761 | xloc = (xloc % 100) + m_autoMappingX; | 788 | xloc = (xloc % 100) + m_autoMappingX; |
762 | yloc = (yloc % 100) + m_autoMappingY; | 789 | yloc = (yloc % 100) + m_autoMappingY; |
790 | ======= | ||
791 | xloc = (uint)((xloc % 100) + m_autoMappingX); | ||
792 | yloc = (uint)((yloc % 100) + m_autoMappingY); | ||
793 | >>>>>>> avn/ubitvar | ||
763 | } | 794 | } |
764 | 795 | ||
765 | if (((realXLoc == 0) && (realYLoc == 0)) || | 796 | if (((realXLoc == 0) && (realYLoc == 0)) || |