aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2011-12-30 19:17:35 -0800
committerDiva Canto2011-12-30 19:17:35 -0800
commit5d8ed077bc01b46cdd4a6854cc08c735ebb66c24 (patch)
treed5d0ad6192ce9c24b9f13e17aa65427ea76b7449
parentDefault LocalToGrid to true. Fixes minor bug introduced yesterday where old r... (diff)
downloadopensim-SC_OLD-5d8ed077bc01b46cdd4a6854cc08c735ebb66c24.zip
opensim-SC_OLD-5d8ed077bc01b46cdd4a6854cc08c735ebb66c24.tar.gz
opensim-SC_OLD-5d8ed077bc01b46cdd4a6854cc08c735ebb66c24.tar.bz2
opensim-SC_OLD-5d8ed077bc01b46cdd4a6854cc08c735ebb66c24.tar.xz
Bring back the Hyperlinker to the Robust console. Moved the config to [GridService]. Changed all HG-related .inis, including HyperSimianGrid. No changes in user-facing inis.
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs55
-rw-r--r--bin/Robust.HG.ini.example2
-rw-r--r--bin/config-include/GridHypergrid.ini2
-rw-r--r--bin/config-include/HyperSimianGrid.ini2
-rw-r--r--bin/config-include/StandaloneHypergrid.ini2
5 files changed, 30 insertions, 33 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs
index 90c022f..78eab3d 100644
--- a/OpenSim/Services/GridService/HypergridLinker.cs
+++ b/OpenSim/Services/GridService/HypergridLinker.cs
@@ -102,50 +102,45 @@ namespace OpenSim.Services.GridService
102 102
103 public HypergridLinker(IConfigSource config, GridService gridService, IRegionData db) 103 public HypergridLinker(IConfigSource config, GridService gridService, IRegionData db)
104 { 104 {
105 IConfig modulesConfig = config.Configs["Modules"]; 105 IConfig gridConfig = config.Configs["GridService"];
106 if (modulesConfig == null) 106 if (gridConfig == null)
107 return; 107 return;
108
109 if (modulesConfig.GetString("HypergridLinker", "") != "HypergridLinker")
110 return;
111 108
112 m_log.DebugFormat("[HYPERGRID LINKER]: Starting with db {0}", db.GetType()); 109 if (!gridConfig.GetBoolean("HypergridLinker", false))
110 return;
113 111
114 m_Database = db; 112 m_Database = db;
115 m_GridService = gridService; 113 m_GridService = gridService;
114 m_log.DebugFormat("[HYPERGRID LINKER]: Starting with db {0}", db.GetType());
116 115
117 IConfig gridConfig = config.Configs["GridService"]; 116 string assetService = gridConfig.GetString("AssetService", string.Empty);
118 if (gridConfig != null)
119 {
120 string assetService = gridConfig.GetString("AssetService", string.Empty);
121 117
122 Object[] args = new Object[] { config }; 118 Object[] args = new Object[] { config };
123 119
124 if (assetService != string.Empty) 120 if (assetService != string.Empty)
125 m_AssetService = ServerUtils.LoadPlugin<IAssetService>(assetService, args); 121 m_AssetService = ServerUtils.LoadPlugin<IAssetService>(assetService, args);
126 122
127 string scope = gridConfig.GetString("ScopeID", string.Empty); 123 string scope = gridConfig.GetString("ScopeID", string.Empty);
128 if (scope != string.Empty) 124 if (scope != string.Empty)
129 UUID.TryParse(scope, out m_ScopeID); 125 UUID.TryParse(scope, out m_ScopeID);
130 126
131// m_Check4096 = gridConfig.GetBoolean("Check4096", true); 127// m_Check4096 = gridConfig.GetBoolean("Check4096", true);
132 128
133 m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles"); 129 m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles");
134 130
135 m_ThisGatekeeper = gridConfig.GetString("Gatekeeper", string.Empty); 131 m_ThisGatekeeper = gridConfig.GetString("Gatekeeper", string.Empty);
136 try 132 try
137 { 133 {
138 m_ThisGatekeeperURI = new Uri(m_ThisGatekeeper); 134 m_ThisGatekeeperURI = new Uri(m_ThisGatekeeper);
139 } 135 }
140 catch 136 catch
141 { 137 {
142 m_log.WarnFormat("[HYPERGRID LINKER]: Malformed URL in [GridService], variable Gatekeeper = {0}", m_ThisGatekeeper); 138 m_log.WarnFormat("[HYPERGRID LINKER]: Malformed URL in [GridService], variable Gatekeeper = {0}", m_ThisGatekeeper);
143 } 139 }
144 140
145 m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService); 141 m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService);
146 142
147 m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); 143 m_log.Debug("[HYPERGRID LINKER]: Loaded all services...");
148 }
149 144
150 if (!string.IsNullOrEmpty(m_MapTileDirectory)) 145 if (!string.IsNullOrEmpty(m_MapTileDirectory))
151 { 146 {
diff --git a/bin/Robust.HG.ini.example b/bin/Robust.HG.ini.example
index eee7dc8..49ee41a 100644
--- a/bin/Robust.HG.ini.example
+++ b/bin/Robust.HG.ini.example
@@ -82,6 +82,8 @@ ServiceConnectors = "8003/OpenSim.Server.Handlers.dll:AssetServiceConnector,8003
82; * 82; *
83[GridService] 83[GridService]
84 LocalServiceModule = "OpenSim.Services.GridService.dll:GridService" 84 LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
85 HypergridLinker = true
86
85 ; Realm = "regions" 87 ; Realm = "regions"
86 ; AllowDuplicateNames = "True" 88 ; AllowDuplicateNames = "True"
87 89
diff --git a/bin/config-include/GridHypergrid.ini b/bin/config-include/GridHypergrid.ini
index 4c32498..5f0ba37 100644
--- a/bin/config-include/GridHypergrid.ini
+++ b/bin/config-include/GridHypergrid.ini
@@ -26,7 +26,6 @@
26 LandServices = "RemoteLandServicesConnector" 26 LandServices = "RemoteLandServicesConnector"
27 FriendsModule = "HGFriendsModule" 27 FriendsModule = "HGFriendsModule"
28 MapImageService = "MapImageServiceModule" 28 MapImageService = "MapImageServiceModule"
29 HypergridLinker = "HypergridLinker"
30 29
31 LandServiceInConnector = true 30 LandServiceInConnector = true
32 NeighbourServiceInConnector = true 31 NeighbourServiceInConnector = true
@@ -60,6 +59,7 @@
60 ; Needed to display non-default map tile images for linked regions 59 ; Needed to display non-default map tile images for linked regions
61 AssetService = "OpenSim.Services.Connectors.dll:AssetServicesConnector" 60 AssetService = "OpenSim.Services.Connectors.dll:AssetServicesConnector"
62 61
62 HypergridLinker = true
63 AllowHypergridMapSearch = true 63 AllowHypergridMapSearch = true
64 64
65[LibraryService] 65[LibraryService]
diff --git a/bin/config-include/HyperSimianGrid.ini b/bin/config-include/HyperSimianGrid.ini
index ec4efc0..99a589c 100644
--- a/bin/config-include/HyperSimianGrid.ini
+++ b/bin/config-include/HyperSimianGrid.ini
@@ -40,7 +40,6 @@
40 LibraryModule = false 40 LibraryModule = false
41 41
42 AssetCaching = "FlotsamAssetCache" 42 AssetCaching = "FlotsamAssetCache"
43 HypergridLinker = "HypergridLinker"
44 43
45[SimulationDataStore] 44[SimulationDataStore]
46 LocalServiceModule = "OpenSim.Services.Connectors.dll:SimulationDataService" 45 LocalServiceModule = "OpenSim.Services.Connectors.dll:SimulationDataService"
@@ -56,6 +55,7 @@
56 StorageProvider = "OpenSim.Data.Null.dll:NullRegionData" 55 StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
57 NetworkConnector = "OpenSim.Services.Connectors.dll:SimianGridServiceConnector" 56 NetworkConnector = "OpenSim.Services.Connectors.dll:SimianGridServiceConnector"
58 57
58 HypergridLinker = true
59 AllowHypergridMapSearch = true 59 AllowHypergridMapSearch = true
60 60
61[LibraryService] 61[LibraryService]
diff --git a/bin/config-include/StandaloneHypergrid.ini b/bin/config-include/StandaloneHypergrid.ini
index f8c258a..00beb31 100644
--- a/bin/config-include/StandaloneHypergrid.ini
+++ b/bin/config-include/StandaloneHypergrid.ini
@@ -22,7 +22,6 @@
22 EntityTransferModule = "HGEntityTransferModule" 22 EntityTransferModule = "HGEntityTransferModule"
23 InventoryAccessModule = "HGInventoryAccessModule" 23 InventoryAccessModule = "HGInventoryAccessModule"
24 FriendsModule = "HGFriendsModule" 24 FriendsModule = "HGFriendsModule"
25 HypergridLinker = "HypergridLinker"
26 25
27 InventoryServiceInConnector = true 26 InventoryServiceInConnector = true
28 AssetServiceInConnector = true 27 AssetServiceInConnector = true
@@ -84,6 +83,7 @@
84 ; Needed to display non-default map tile images for remote regions 83 ; Needed to display non-default map tile images for remote regions
85 AssetService = "OpenSim.Services.AssetService.dll:AssetService" 84 AssetService = "OpenSim.Services.AssetService.dll:AssetService"
86 85
86 HypergridLinker = true
87 AllowHypergridMapSearch = true 87 AllowHypergridMapSearch = true
88 88
89[PresenceService] 89[PresenceService]