Fix mantis #5413. WARNING: new config variable in section [GridService] of the simulators called Gatekeeper -- intended to have the URL of the grid's Gatekeeper service (so that it can be checked against). See ini.examples.
parent
5a61c76455
commit
2d209d3844
|
@ -100,8 +100,12 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||||
// service wasn't available; maybe still an old GridServer. Try the old API, though it will return only one region
|
// service wasn't available; maybe still an old GridServer. Try the old API, though it will return only one region
|
||||||
regionInfos = new List<GridRegion>();
|
regionInfos = new List<GridRegion>();
|
||||||
GridRegion info = m_scene.GridService.GetRegionByName(m_scene.RegionInfo.ScopeID, mapName);
|
GridRegion info = m_scene.GridService.GetRegionByName(m_scene.RegionInfo.ScopeID, mapName);
|
||||||
if (info != null) regionInfos.Add(info);
|
if (info != null)
|
||||||
|
regionInfos.Add(info);
|
||||||
}
|
}
|
||||||
|
else if (regionInfos.Count == 0 && mapName.StartsWith("http://"))
|
||||||
|
remoteClient.SendAlertMessage("Hyperlink could not be established.");
|
||||||
|
|
||||||
m_log.DebugFormat("[MAPSEARCHMODULE]: search {0} returned {1} regions", mapName, regionInfos.Count);
|
m_log.DebugFormat("[MAPSEARCHMODULE]: search {0} returned {1} regions", mapName, regionInfos.Count);
|
||||||
List<MapBlockData> blocks = new List<MapBlockData>();
|
List<MapBlockData> blocks = new List<MapBlockData>();
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ namespace OpenSim.Services.GridService
|
||||||
protected UUID m_ScopeID = UUID.Zero;
|
protected UUID m_ScopeID = UUID.Zero;
|
||||||
protected bool m_Check4096 = true;
|
protected bool m_Check4096 = true;
|
||||||
protected string m_MapTileDirectory = string.Empty;
|
protected string m_MapTileDirectory = string.Empty;
|
||||||
|
protected string m_ThisGatekeeper = string.Empty;
|
||||||
|
|
||||||
// Hyperlink regions are hyperlinks on the map
|
// Hyperlink regions are hyperlinks on the map
|
||||||
public readonly Dictionary<UUID, GridRegion> m_HyperlinkRegions = new Dictionary<UUID, GridRegion>();
|
public readonly Dictionary<UUID, GridRegion> m_HyperlinkRegions = new Dictionary<UUID, GridRegion>();
|
||||||
|
@ -123,6 +124,8 @@ namespace OpenSim.Services.GridService
|
||||||
|
|
||||||
m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles");
|
m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles");
|
||||||
|
|
||||||
|
m_ThisGatekeeper = gridConfig.GetString("Gatekeeper", string.Empty);
|
||||||
|
|
||||||
m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService);
|
m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService);
|
||||||
|
|
||||||
m_log.Debug("[HYPERGRID LINKER]: Loaded all services...");
|
m_log.Debug("[HYPERGRID LINKER]: Loaded all services...");
|
||||||
|
@ -266,6 +269,13 @@ namespace OpenSim.Services.GridService
|
||||||
regInfo.ScopeID = scopeID;
|
regInfo.ScopeID = scopeID;
|
||||||
regInfo.EstateOwner = ownerID;
|
regInfo.EstateOwner = ownerID;
|
||||||
|
|
||||||
|
// Make sure we're not hyperlinking to regions on this grid!
|
||||||
|
if (regInfo.ServerURI.Trim(new char[]{'/', ' '}) == m_ThisGatekeeper.Trim(new char[]{'/', ' '}))
|
||||||
|
{
|
||||||
|
reason = "Cannot hyperlink to regions on the same grid";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check for free coordinates
|
// Check for free coordinates
|
||||||
GridRegion region = m_GridService.GetRegionByPosition(regInfo.ScopeID, regInfo.RegionLocX, regInfo.RegionLocY);
|
GridRegion region = m_GridService.GetRegionByPosition(regInfo.ScopeID, regInfo.RegionLocX, regInfo.RegionLocY);
|
||||||
if (region != null)
|
if (region != null)
|
||||||
|
|
|
@ -45,6 +45,12 @@
|
||||||
;; Directory for map tile images of linked regions
|
;; Directory for map tile images of linked regions
|
||||||
; MapTileDirectory = "./maptiles"
|
; MapTileDirectory = "./maptiles"
|
||||||
|
|
||||||
|
; === HG ONLY ===
|
||||||
|
;; change this to the address of your Gatekeeper service
|
||||||
|
;; (usually bundled with the rest of the services in one
|
||||||
|
;; Robust server in port 8002, but not always)
|
||||||
|
Gatekeeper="http://mygridserver.com:8002"
|
||||||
|
|
||||||
[AvatarService]
|
[AvatarService]
|
||||||
;
|
;
|
||||||
; change this to your grid-wide grid server
|
; change this to your grid-wide grid server
|
||||||
|
|
|
@ -78,6 +78,11 @@
|
||||||
;; For example:
|
;; For example:
|
||||||
Region_Welcome_Area = "DefaultRegion, FallbackRegion"
|
Region_Welcome_Area = "DefaultRegion, FallbackRegion"
|
||||||
|
|
||||||
|
; === HG ONLY ===
|
||||||
|
;; change this to the address of your simulator
|
||||||
|
Gatekeeper="http://127.0.0.1:9000"
|
||||||
|
|
||||||
|
|
||||||
[LibraryModule]
|
[LibraryModule]
|
||||||
; Set this if you want to change the name of the OpenSim Library
|
; Set this if you want to change the name of the OpenSim Library
|
||||||
;LibraryName = "My World's Library"
|
;LibraryName = "My World's Library"
|
||||||
|
|
Loading…
Reference in New Issue