diff options
author | Diva Canto | 2009-09-26 11:01:18 -0700 |
---|---|---|
committer | Diva Canto | 2009-09-26 11:01:18 -0700 |
commit | dcfd08b8dd57e667db8e0b5900da4648a020160e (patch) | |
tree | 48bc721a24e861549417b228c526382d36ad98a3 /OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs | |
parent | Fixed the order of params to GetRegionRange. (diff) | |
download | opensim-SC_OLD-dcfd08b8dd57e667db8e0b5900da4648a020160e.zip opensim-SC_OLD-dcfd08b8dd57e667db8e0b5900da4648a020160e.tar.gz opensim-SC_OLD-dcfd08b8dd57e667db8e0b5900da4648a020160e.tar.bz2 opensim-SC_OLD-dcfd08b8dd57e667db8e0b5900da4648a020160e.tar.xz |
Fixed a bug with link-region.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs index 66cde91..0bb4206 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs | |||
@@ -159,27 +159,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
159 | { | 159 | { |
160 | m_HypergridServiceConnector = new HypergridServiceConnector(scene.AssetService); | 160 | m_HypergridServiceConnector = new HypergridServiceConnector(scene.AssetService); |
161 | HGCommands hgCommands = new HGCommands(this, scene); | 161 | HGCommands hgCommands = new HGCommands(this, scene); |
162 | MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "linkk-region", | 162 | MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "link-region", |
163 | "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>", | 163 | "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>", |
164 | "Link a hypergrid region", hgCommands.RunCommand); | 164 | "Link a hypergrid region", hgCommands.RunCommand); |
165 | MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "unlinkk-region", | 165 | MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "unlink-region", |
166 | "unlink-region <local name> or <HostName>:<HttpPort> <cr>", | 166 | "unlink-region <local name> or <HostName>:<HttpPort> <cr>", |
167 | "Unlink a hypergrid region", hgCommands.RunCommand); | 167 | "Unlink a hypergrid region", hgCommands.RunCommand); |
168 | MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "linkk-mapping", "link-mapping [<x> <y>] <cr>", | 168 | MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "link-mapping", "link-mapping [<x> <y>] <cr>", |
169 | "Set local coordinate to map HG regions to", hgCommands.RunCommand); | 169 | "Set local coordinate to map HG regions to", hgCommands.RunCommand); |
170 | m_Initialized = true; | 170 | m_Initialized = true; |
171 | } | 171 | } |
172 | |||
173 | |||
174 | //scene.AddCommand("HGGridServicesConnector", "linkk-region", | ||
175 | // "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>", | ||
176 | // "Link a hypergrid region", hgCommands.RunCommand); | ||
177 | //scene.AddCommand("HGGridServicesConnector", "unlinkk-region", | ||
178 | // "unlink-region <local name> or <HostName>:<HttpPort> <cr>", | ||
179 | // "Unlink a hypergrid region", hgCommands.RunCommand); | ||
180 | //scene.AddCommand("HGGridServicesConnector", "linkk-mapping", "link-mapping [<x> <y>] <cr>", | ||
181 | // "Set local coordinate to map HG regions to", hgCommands.RunCommand); | ||
182 | |||
183 | } | 172 | } |
184 | 173 | ||
185 | #endregion | 174 | #endregion |
@@ -450,15 +439,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
450 | } | 439 | } |
451 | 440 | ||
452 | // Finally, link it | 441 | // Finally, link it |
453 | try | 442 | if (!RegisterRegion(UUID.Zero, regInfo)) |
454 | { | 443 | { |
455 | RegisterRegion(UUID.Zero, regInfo); | 444 | m_log.Warn("[HGrid]: Unable to link region"); |
456 | } | 445 | return false; |
457 | catch (Exception e) | 446 | } |
458 | { | ||
459 | m_log.Warn("[HGrid]: Unable to link region: " + e.Message); | ||
460 | return false; | ||
461 | } | ||
462 | 447 | ||
463 | int x, y; | 448 | int x, y; |
464 | if (!Check4096(m_scene, regInfo, out x, out y)) | 449 | if (!Check4096(m_scene, regInfo, out x, out y)) |