diff options
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/Application.cs | 58 | ||||
-rw-r--r-- | OpenSim/Region/Application/ConfigurationLoader.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/Application/IApplicationPlugin.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 76 | ||||
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 84 | ||||
-rw-r--r-- | OpenSim/Region/Application/Properties/AssemblyInfo.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Application/RegionApplicationBase.cs | 12 |
7 files changed, 127 insertions, 127 deletions
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index e441cc8..5cb6a88 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs | |||
@@ -86,9 +86,9 @@ namespace OpenSim | |||
86 | if (logConfigFile != String.Empty) | 86 | if (logConfigFile != String.Empty) |
87 | { | 87 | { |
88 | XmlConfigurator.Configure(new System.IO.FileInfo(logConfigFile)); | 88 | XmlConfigurator.Configure(new System.IO.FileInfo(logConfigFile)); |
89 | m_log.InfoFormat("[OPENSIM MAIN]: configured log4net using \"{0}\" as configuration file", | 89 | m_log.InfoFormat("[OPENSIM MAIN]: configured log4net using \"{0}\" as configuration file", |
90 | logConfigFile); | 90 | logConfigFile); |
91 | } | 91 | } |
92 | else | 92 | else |
93 | { | 93 | { |
94 | XmlConfigurator.Configure(); | 94 | XmlConfigurator.Configure(); |
@@ -104,22 +104,22 @@ namespace OpenSim | |||
104 | "[OPENSIM MAIN]: Environment variable MONO_THREADS_PER_CPU is {0}", monoThreadsPerCpu ?? "unset"); | 104 | "[OPENSIM MAIN]: Environment variable MONO_THREADS_PER_CPU is {0}", monoThreadsPerCpu ?? "unset"); |
105 | 105 | ||
106 | // Verify the Threadpool allocates or uses enough worker and IO completion threads | 106 | // Verify the Threadpool allocates or uses enough worker and IO completion threads |
107 | // .NET 2.0, workerthreads default to 50 * numcores | 107 | // .NET 2.0, workerthreads default to 50 * numcores |
108 | // .NET 3.0, workerthreads defaults to 250 * numcores | 108 | // .NET 3.0, workerthreads defaults to 250 * numcores |
109 | // .NET 4.0, workerthreads are dynamic based on bitness and OS resources | 109 | // .NET 4.0, workerthreads are dynamic based on bitness and OS resources |
110 | // Max IO Completion threads are 1000 on all 3 CLRs | 110 | // Max IO Completion threads are 1000 on all 3 CLRs |
111 | // | 111 | // |
112 | // Mono 2.10.9 to at least Mono 3.1, workerthreads default to 100 * numcores, iocp threads to 4 * numcores | 112 | // Mono 2.10.9 to at least Mono 3.1, workerthreads default to 100 * numcores, iocp threads to 4 * numcores |
113 | int workerThreadsMin = 500; | 113 | int workerThreadsMin = 500; |
114 | int workerThreadsMax = 1000; // may need further adjustment to match other CLR | 114 | int workerThreadsMax = 1000; // may need further adjustment to match other CLR |
115 | int iocpThreadsMin = 1000; | 115 | int iocpThreadsMin = 1000; |
116 | int iocpThreadsMax = 2000; // may need further adjustment to match other CLR | 116 | int iocpThreadsMax = 2000; // may need further adjustment to match other CLR |
117 | 117 | ||
118 | { | 118 | { |
119 | int currentMinWorkerThreads, currentMinIocpThreads; | 119 | int currentMinWorkerThreads, currentMinIocpThreads; |
120 | System.Threading.ThreadPool.GetMinThreads(out currentMinWorkerThreads, out currentMinIocpThreads); | 120 | System.Threading.ThreadPool.GetMinThreads(out currentMinWorkerThreads, out currentMinIocpThreads); |
121 | m_log.InfoFormat( | 121 | m_log.InfoFormat( |
122 | "[OPENSIM MAIN]: Runtime gave us {0} min worker threads and {1} min IOCP threads", | 122 | "[OPENSIM MAIN]: Runtime gave us {0} min worker threads and {1} min IOCP threads", |
123 | currentMinWorkerThreads, currentMinIocpThreads); | 123 | currentMinWorkerThreads, currentMinIocpThreads); |
124 | } | 124 | } |
125 | 125 | ||
@@ -138,30 +138,30 @@ namespace OpenSim | |||
138 | m_log.InfoFormat("[OPENSIM MAIN]: Limiting max worker threads to {0}",workerThreads); | 138 | m_log.InfoFormat("[OPENSIM MAIN]: Limiting max worker threads to {0}",workerThreads); |
139 | } | 139 | } |
140 | 140 | ||
141 | // Increase the number of IOCP threads available. | 141 | // Increase the number of IOCP threads available. |
142 | // Mono defaults to a tragically low number (24 on 6-core / 8GB Fedora 17) | 142 | // Mono defaults to a tragically low number (24 on 6-core / 8GB Fedora 17) |
143 | if (iocpThreads < iocpThreadsMin) | 143 | if (iocpThreads < iocpThreadsMin) |
144 | { | 144 | { |
145 | iocpThreads = iocpThreadsMin; | 145 | iocpThreads = iocpThreadsMin; |
146 | m_log.InfoFormat("[OPENSIM MAIN]: Bumping up max IOCP threads to {0}",iocpThreads); | 146 | m_log.InfoFormat("[OPENSIM MAIN]: Bumping up max IOCP threads to {0}",iocpThreads); |
147 | } | 147 | } |
148 | // Make sure we don't overallocate IOCP threads and thrash system resources | 148 | // Make sure we don't overallocate IOCP threads and thrash system resources |
149 | if ( iocpThreads > iocpThreadsMax ) | 149 | if ( iocpThreads > iocpThreadsMax ) |
150 | { | 150 | { |
151 | iocpThreads = iocpThreadsMax; | 151 | iocpThreads = iocpThreadsMax; |
152 | m_log.InfoFormat("[OPENSIM MAIN]: Limiting max IOCP completion threads to {0}",iocpThreads); | 152 | m_log.InfoFormat("[OPENSIM MAIN]: Limiting max IOCP completion threads to {0}",iocpThreads); |
153 | } | 153 | } |
154 | // set the resulting worker and IO completion thread counts back to ThreadPool | 154 | // set the resulting worker and IO completion thread counts back to ThreadPool |
155 | if ( System.Threading.ThreadPool.SetMaxThreads(workerThreads, iocpThreads) ) | 155 | if ( System.Threading.ThreadPool.SetMaxThreads(workerThreads, iocpThreads) ) |
156 | { | 156 | { |
157 | m_log.InfoFormat( | 157 | m_log.InfoFormat( |
158 | "[OPENSIM MAIN]: Threadpool set to {0} max worker threads and {1} max IOCP threads", | 158 | "[OPENSIM MAIN]: Threadpool set to {0} max worker threads and {1} max IOCP threads", |
159 | workerThreads, iocpThreads); | 159 | workerThreads, iocpThreads); |
160 | } | 160 | } |
161 | else | 161 | else |
162 | { | 162 | { |
163 | m_log.Warn("[OPENSIM MAIN]: Threadpool reconfiguration failed, runtime defaults still in effect."); | 163 | m_log.Warn("[OPENSIM MAIN]: Threadpool reconfiguration failed, runtime defaults still in effect."); |
164 | } | 164 | } |
165 | 165 | ||
166 | // Check if the system is compatible with OpenSimulator. | 166 | // Check if the system is compatible with OpenSimulator. |
167 | // Ensures that the minimum system requirements are met | 167 | // Ensures that the minimum system requirements are met |
@@ -179,7 +179,7 @@ namespace OpenSim | |||
179 | Culture.SetCurrentCulture(); | 179 | Culture.SetCurrentCulture(); |
180 | 180 | ||
181 | // Validate that the user has the most basic configuration done | 181 | // Validate that the user has the most basic configuration done |
182 | // If not, offer to do the most basic configuration for them warning them along the way of the importance of | 182 | // If not, offer to do the most basic configuration for them warning them along the way of the importance of |
183 | // reading these files. | 183 | // reading these files. |
184 | /* | 184 | /* |
185 | m_log.Info("Checking for reguired configuration...\n"); | 185 | m_log.Info("Checking for reguired configuration...\n"); |
@@ -188,13 +188,13 @@ namespace OpenSim | |||
188 | || (File.Exists(Path.Combine(Util.configDir(), "opensim.ini"))) | 188 | || (File.Exists(Path.Combine(Util.configDir(), "opensim.ini"))) |
189 | || (File.Exists(Path.Combine(Util.configDir(), "openSim.ini"))) | 189 | || (File.Exists(Path.Combine(Util.configDir(), "openSim.ini"))) |
190 | || (File.Exists(Path.Combine(Util.configDir(), "Opensim.ini"))); | 190 | || (File.Exists(Path.Combine(Util.configDir(), "Opensim.ini"))); |
191 | 191 | ||
192 | bool StanaloneCommon_ProperCased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "StandaloneCommon.ini")); | 192 | bool StanaloneCommon_ProperCased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "StandaloneCommon.ini")); |
193 | bool StanaloneCommon_lowercased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "standalonecommon.ini")); | 193 | bool StanaloneCommon_lowercased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "standalonecommon.ini")); |
194 | bool GridCommon_ProperCased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "GridCommon.ini")); | 194 | bool GridCommon_ProperCased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "GridCommon.ini")); |
195 | bool GridCommon_lowerCased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "gridcommon.ini")); | 195 | bool GridCommon_lowerCased = File.Exists(Path.Combine(Path.Combine(Util.configDir(), "config-include"), "gridcommon.ini")); |
196 | 196 | ||
197 | if ((OpenSim_Ini) | 197 | if ((OpenSim_Ini) |
198 | && ( | 198 | && ( |
199 | (StanaloneCommon_ProperCased | 199 | (StanaloneCommon_ProperCased |
200 | || StanaloneCommon_lowercased | 200 | || StanaloneCommon_lowercased |
@@ -212,7 +212,7 @@ namespace OpenSim | |||
212 | "yes"); | 212 | "yes"); |
213 | if (resp == "yes") | 213 | if (resp == "yes") |
214 | { | 214 | { |
215 | 215 | ||
216 | if (!(OpenSim_Ini)) | 216 | if (!(OpenSim_Ini)) |
217 | { | 217 | { |
218 | try | 218 | try |
@@ -312,7 +312,7 @@ namespace OpenSim | |||
312 | m_saveCrashDumps = configSource.Configs["Startup"].GetBoolean("save_crashes", false); | 312 | m_saveCrashDumps = configSource.Configs["Startup"].GetBoolean("save_crashes", false); |
313 | 313 | ||
314 | // load Crash directory config | 314 | // load Crash directory config |
315 | m_crashDir = configSource.Configs["Startup"].GetString("crash_dir", m_crashDir); | 315 | m_crashDir = configSource.Configs["Startup"].GetString("crash_dir", m_crashDir); |
316 | 316 | ||
317 | if (background) | 317 | if (background) |
318 | { | 318 | { |
@@ -320,9 +320,9 @@ namespace OpenSim | |||
320 | m_sim.Startup(); | 320 | m_sim.Startup(); |
321 | } | 321 | } |
322 | else | 322 | else |
323 | { | 323 | { |
324 | m_sim = new OpenSim(configSource); | 324 | m_sim = new OpenSim(configSource); |
325 | 325 | ||
326 | m_sim.Startup(); | 326 | m_sim.Startup(); |
327 | 327 | ||
328 | while (true) | 328 | while (true) |
diff --git a/OpenSim/Region/Application/ConfigurationLoader.cs b/OpenSim/Region/Application/ConfigurationLoader.cs index 4f141a6..62bd4f4 100644 --- a/OpenSim/Region/Application/ConfigurationLoader.cs +++ b/OpenSim/Region/Application/ConfigurationLoader.cs | |||
@@ -43,10 +43,10 @@ namespace OpenSim | |||
43 | public class ConfigurationLoader | 43 | public class ConfigurationLoader |
44 | { | 44 | { |
45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
46 | 46 | ||
47 | /// <summary> | 47 | /// <summary> |
48 | /// Various Config settings the region needs to start | 48 | /// Various Config settings the region needs to start |
49 | /// Physics Engine, Mesh Engine, GridMode, PhysicsPrim allowed, Neighbor, | 49 | /// Physics Engine, Mesh Engine, GridMode, PhysicsPrim allowed, Neighbor, |
50 | /// StorageDLL, Storage Connection String, Estate connection String, Client Stack | 50 | /// StorageDLL, Storage Connection String, Estate connection String, Client Stack |
51 | /// Standalone settings. | 51 | /// Standalone settings. |
52 | /// </summary> | 52 | /// </summary> |
@@ -188,7 +188,7 @@ namespace OpenSim | |||
188 | { | 188 | { |
189 | iniFileExists = true; | 189 | iniFileExists = true; |
190 | AddIncludes(overrideConfig, overrideSources); | 190 | AddIncludes(overrideConfig, overrideSources); |
191 | } | 191 | } |
192 | } | 192 | } |
193 | m_config.Source.Merge(overrideConfig.Source); | 193 | m_config.Source.Merge(overrideConfig.Source); |
194 | } | 194 | } |
@@ -198,7 +198,7 @@ namespace OpenSim | |||
198 | { | 198 | { |
199 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); | 199 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); |
200 | Environment.Exit(1); | 200 | Environment.Exit(1); |
201 | } | 201 | } |
202 | else if (!iniFileExists) | 202 | else if (!iniFileExists) |
203 | { | 203 | { |
204 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); | 204 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); |
@@ -257,14 +257,14 @@ namespace OpenSim | |||
257 | string path = Path.Combine(basepath, chunkWithoutWildcards); | 257 | string path = Path.Combine(basepath, chunkWithoutWildcards); |
258 | path = Path.GetFullPath(path) + chunkWithWildcards; | 258 | path = Path.GetFullPath(path) + chunkWithWildcards; |
259 | string[] paths = Util.Glob(path); | 259 | string[] paths = Util.Glob(path); |
260 | 260 | ||
261 | // If the include path contains no wildcards, then warn the user that it wasn't found. | 261 | // If the include path contains no wildcards, then warn the user that it wasn't found. |
262 | if (wildcardIndex == -1 && paths.Length == 0) | 262 | if (wildcardIndex == -1 && paths.Length == 0) |
263 | { | 263 | { |
264 | m_log.WarnFormat("[CONFIG]: Could not find include file {0}", path); | 264 | m_log.WarnFormat("[CONFIG]: Could not find include file {0}", path); |
265 | } | 265 | } |
266 | else | 266 | else |
267 | { | 267 | { |
268 | foreach (string p in paths) | 268 | foreach (string p in paths) |
269 | { | 269 | { |
270 | if (!sources.Contains(p)) | 270 | if (!sources.Contains(p)) |
@@ -377,7 +377,7 @@ namespace OpenSim | |||
377 | m_configSettings.PhysicsEngine = startupConfig.GetString("physics"); | 377 | m_configSettings.PhysicsEngine = startupConfig.GetString("physics"); |
378 | m_configSettings.MeshEngineName = startupConfig.GetString("meshing"); | 378 | m_configSettings.MeshEngineName = startupConfig.GetString("meshing"); |
379 | 379 | ||
380 | m_configSettings.ClientstackDll | 380 | m_configSettings.ClientstackDll |
381 | = startupConfig.GetString("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); | 381 | = startupConfig.GetString("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); |
382 | } | 382 | } |
383 | 383 | ||
diff --git a/OpenSim/Region/Application/IApplicationPlugin.cs b/OpenSim/Region/Application/IApplicationPlugin.cs index a3fa66c..ff3f5d7 100644 --- a/OpenSim/Region/Application/IApplicationPlugin.cs +++ b/OpenSim/Region/Application/IApplicationPlugin.cs | |||
@@ -43,7 +43,7 @@ namespace OpenSim | |||
43 | void Initialise(OpenSimBase openSim); | 43 | void Initialise(OpenSimBase openSim); |
44 | 44 | ||
45 | /// <summary> | 45 | /// <summary> |
46 | /// Called when the application loading is completed | 46 | /// Called when the application loading is completed |
47 | /// </summary> | 47 | /// </summary> |
48 | void PostInitialise(); | 48 | void PostInitialise(); |
49 | } | 49 | } |
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index d9fdcde..8022b1e 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -135,7 +135,7 @@ namespace OpenSim | |||
135 | { | 135 | { |
136 | // Wait for a signal to be delivered | 136 | // Wait for a signal to be delivered |
137 | int index = Mono.Unix.UnixSignal.WaitAny (signals, -1); | 137 | int index = Mono.Unix.UnixSignal.WaitAny (signals, -1); |
138 | 138 | ||
139 | //Mono.Unix.Native.Signum signal = signals [index].Signum; | 139 | //Mono.Unix.Native.Signum signal = signals [index].Signum; |
140 | MainConsole.Instance.RunCommand("shutdown"); | 140 | MainConsole.Instance.RunCommand("shutdown"); |
141 | } | 141 | } |
@@ -273,17 +273,17 @@ namespace OpenSim | |||
273 | 273 | ||
274 | m_console.Commands.AddCommand("General", false, "change region", | 274 | m_console.Commands.AddCommand("General", false, "change region", |
275 | "change region <region name>", | 275 | "change region <region name>", |
276 | "Change current console region", | 276 | "Change current console region", |
277 | ChangeSelectedRegion); | 277 | ChangeSelectedRegion); |
278 | 278 | ||
279 | m_console.Commands.AddCommand("Archiving", false, "save xml", | 279 | m_console.Commands.AddCommand("Archiving", false, "save xml", |
280 | "save xml [<file name>]", | 280 | "save xml [<file name>]", |
281 | "Save a region's data in XML format", | 281 | "Save a region's data in XML format", |
282 | SaveXml); | 282 | SaveXml); |
283 | 283 | ||
284 | m_console.Commands.AddCommand("Archiving", false, "save xml2", | 284 | m_console.Commands.AddCommand("Archiving", false, "save xml2", |
285 | "save xml2 [<file name>]", | 285 | "save xml2 [<file name>]", |
286 | "Save a region's data in XML2 format", | 286 | "Save a region's data in XML2 format", |
287 | SaveXml2); | 287 | SaveXml2); |
288 | 288 | ||
289 | m_console.Commands.AddCommand("Archiving", false, "load xml", | 289 | m_console.Commands.AddCommand("Archiving", false, "load xml", |
@@ -293,12 +293,12 @@ namespace OpenSim | |||
293 | 293 | ||
294 | m_console.Commands.AddCommand("Archiving", false, "load xml2", | 294 | m_console.Commands.AddCommand("Archiving", false, "load xml2", |
295 | "load xml2 [<file name>]", | 295 | "load xml2 [<file name>]", |
296 | "Load a region's data from XML2 format", | 296 | "Load a region's data from XML2 format", |
297 | LoadXml2); | 297 | LoadXml2); |
298 | 298 | ||
299 | m_console.Commands.AddCommand("Archiving", false, "save prims xml2", | 299 | m_console.Commands.AddCommand("Archiving", false, "save prims xml2", |
300 | "save prims xml2 [<prim name> <file name>]", | 300 | "save prims xml2 [<prim name> <file name>]", |
301 | "Save named prim to XML2", | 301 | "Save named prim to XML2", |
302 | SavePrimsXml2); | 302 | SavePrimsXml2); |
303 | 303 | ||
304 | m_console.Commands.AddCommand("Archiving", false, "load oar", | 304 | m_console.Commands.AddCommand("Archiving", false, "load oar", |
@@ -352,7 +352,7 @@ namespace OpenSim | |||
352 | 352 | ||
353 | m_console.Commands.AddCommand("Objects", false, "edit scale", | 353 | m_console.Commands.AddCommand("Objects", false, "edit scale", |
354 | "edit scale <name> <x> <y> <z>", | 354 | "edit scale <name> <x> <y> <z>", |
355 | "Change the scale of a named prim", | 355 | "Change the scale of a named prim", |
356 | HandleEditScale); | 356 | HandleEditScale); |
357 | 357 | ||
358 | m_console.Commands.AddCommand("Objects", false, "rotate scene", | 358 | m_console.Commands.AddCommand("Objects", false, "rotate scene", |
@@ -379,44 +379,44 @@ namespace OpenSim | |||
379 | 379 | ||
380 | m_console.Commands.AddCommand("Users", false, "show users", | 380 | m_console.Commands.AddCommand("Users", false, "show users", |
381 | "show users [full]", | 381 | "show users [full]", |
382 | "Show user data for users currently on the region", | 382 | "Show user data for users currently on the region", |
383 | "Without the 'full' option, only users actually on the region are shown." | 383 | "Without the 'full' option, only users actually on the region are shown." |
384 | + " With the 'full' option child agents of users in neighbouring regions are also shown.", | 384 | + " With the 'full' option child agents of users in neighbouring regions are also shown.", |
385 | HandleShow); | 385 | HandleShow); |
386 | 386 | ||
387 | m_console.Commands.AddCommand("Comms", false, "show connections", | 387 | m_console.Commands.AddCommand("Comms", false, "show connections", |
388 | "show connections", | 388 | "show connections", |
389 | "Show connection data", | 389 | "Show connection data", |
390 | HandleShow); | 390 | HandleShow); |
391 | 391 | ||
392 | m_console.Commands.AddCommand("Comms", false, "show circuits", | 392 | m_console.Commands.AddCommand("Comms", false, "show circuits", |
393 | "show circuits", | 393 | "show circuits", |
394 | "Show agent circuit data", | 394 | "Show agent circuit data", |
395 | HandleShow); | 395 | HandleShow); |
396 | 396 | ||
397 | m_console.Commands.AddCommand("Comms", false, "show pending-objects", | 397 | m_console.Commands.AddCommand("Comms", false, "show pending-objects", |
398 | "show pending-objects", | 398 | "show pending-objects", |
399 | "Show # of objects on the pending queues of all scene viewers", | 399 | "Show # of objects on the pending queues of all scene viewers", |
400 | HandleShow); | 400 | HandleShow); |
401 | 401 | ||
402 | m_console.Commands.AddCommand("General", false, "show modules", | 402 | m_console.Commands.AddCommand("General", false, "show modules", |
403 | "show modules", | 403 | "show modules", |
404 | "Show module data", | 404 | "Show module data", |
405 | HandleShow); | 405 | HandleShow); |
406 | 406 | ||
407 | m_console.Commands.AddCommand("Regions", false, "show regions", | 407 | m_console.Commands.AddCommand("Regions", false, "show regions", |
408 | "show regions", | 408 | "show regions", |
409 | "Show region data", | 409 | "Show region data", |
410 | HandleShow); | 410 | HandleShow); |
411 | 411 | ||
412 | m_console.Commands.AddCommand("Regions", false, "show ratings", | 412 | m_console.Commands.AddCommand("Regions", false, "show ratings", |
413 | "show ratings", | 413 | "show ratings", |
414 | "Show rating data", | 414 | "Show rating data", |
415 | HandleShow); | 415 | HandleShow); |
416 | 416 | ||
417 | m_console.Commands.AddCommand("Objects", false, "backup", | 417 | m_console.Commands.AddCommand("Objects", false, "backup", |
418 | "backup", | 418 | "backup", |
419 | "Persist currently unsaved object changes immediately instead of waiting for the normal persistence call.", | 419 | "Persist currently unsaved object changes immediately instead of waiting for the normal persistence call.", |
420 | RunCommand); | 420 | RunCommand); |
421 | 421 | ||
422 | m_console.Commands.AddCommand("Regions", false, "create region", | 422 | m_console.Commands.AddCommand("Regions", false, "create region", |
@@ -430,22 +430,22 @@ namespace OpenSim | |||
430 | 430 | ||
431 | m_console.Commands.AddCommand("Regions", false, "restart", | 431 | m_console.Commands.AddCommand("Regions", false, "restart", |
432 | "restart", | 432 | "restart", |
433 | "Restart the currently selected region(s) in this instance", | 433 | "Restart the currently selected region(s) in this instance", |
434 | RunCommand); | 434 | RunCommand); |
435 | 435 | ||
436 | m_console.Commands.AddCommand("General", false, "command-script", | 436 | m_console.Commands.AddCommand("General", false, "command-script", |
437 | "command-script <script>", | 437 | "command-script <script>", |
438 | "Run a command script from file", | 438 | "Run a command script from file", |
439 | RunCommand); | 439 | RunCommand); |
440 | 440 | ||
441 | m_console.Commands.AddCommand("Regions", false, "remove-region", | 441 | m_console.Commands.AddCommand("Regions", false, "remove-region", |
442 | "remove-region <name>", | 442 | "remove-region <name>", |
443 | "Remove a region from this simulator", | 443 | "Remove a region from this simulator", |
444 | RunCommand); | 444 | RunCommand); |
445 | 445 | ||
446 | m_console.Commands.AddCommand("Regions", false, "delete-region", | 446 | m_console.Commands.AddCommand("Regions", false, "delete-region", |
447 | "delete-region <name>", | 447 | "delete-region <name>", |
448 | "Delete a region from disk", | 448 | "Delete a region from disk", |
449 | RunCommand); | 449 | RunCommand); |
450 | 450 | ||
451 | m_console.Commands.AddCommand("Estates", false, "estate create", | 451 | m_console.Commands.AddCommand("Estates", false, "estate create", |
@@ -476,7 +476,7 @@ namespace OpenSim | |||
476 | { | 476 | { |
477 | RunCommandScript(m_shutdownCommandsFile); | 477 | RunCommandScript(m_shutdownCommandsFile); |
478 | } | 478 | } |
479 | 479 | ||
480 | base.ShutdownSpecific(); | 480 | base.ShutdownSpecific(); |
481 | } | 481 | } |
482 | 482 | ||
@@ -515,7 +515,7 @@ namespace OpenSim | |||
515 | private void KickUserCommand(string module, string[] cmdparams) | 515 | private void KickUserCommand(string module, string[] cmdparams) |
516 | { | 516 | { |
517 | bool force = false; | 517 | bool force = false; |
518 | 518 | ||
519 | OptionSet options = new OptionSet().Add("f|force", delegate (string v) { force = v != null; }); | 519 | OptionSet options = new OptionSet().Add("f|force", delegate (string v) { force = v != null; }); |
520 | 520 | ||
521 | List<string> mainParams = options.Parse(cmdparams); | 521 | List<string> mainParams = options.Parse(cmdparams); |
@@ -612,7 +612,7 @@ namespace OpenSim | |||
612 | MainConsole.Instance.Output(usage); | 612 | MainConsole.Instance.Output(usage); |
613 | return; | 613 | return; |
614 | } | 614 | } |
615 | 615 | ||
616 | float angle = (float)(Convert.ToSingle(args[2]) / 180.0 * Math.PI); | 616 | float angle = (float)(Convert.ToSingle(args[2]) / 180.0 * Math.PI); |
617 | OpenMetaverse.Quaternion rot = OpenMetaverse.Quaternion.CreateFromAxisAngle(0, 0, 1, angle); | 617 | OpenMetaverse.Quaternion rot = OpenMetaverse.Quaternion.CreateFromAxisAngle(0, 0, 1, angle); |
618 | 618 | ||
@@ -624,7 +624,7 @@ namespace OpenSim | |||
624 | 624 | ||
625 | Vector3 center = new Vector3(centerX, centerY, 0.0f); | 625 | Vector3 center = new Vector3(centerX, centerY, 0.0f); |
626 | 626 | ||
627 | SceneManager.ForEachSelectedScene(delegate(Scene scene) | 627 | SceneManager.ForEachSelectedScene(delegate(Scene scene) |
628 | { | 628 | { |
629 | scene.ForEachSOG(delegate(SceneObjectGroup sog) | 629 | scene.ForEachSOG(delegate(SceneObjectGroup sog) |
630 | { | 630 | { |
@@ -776,8 +776,8 @@ namespace OpenSim | |||
776 | CreateRegion(regInfo, true, out scene); | 776 | CreateRegion(regInfo, true, out scene); |
777 | 777 | ||
778 | if (changed) | 778 | if (changed) |
779 | m_estateDataService.StoreEstateSettings(regInfo.EstateSettings); | 779 | m_estateDataService.StoreEstateSettings(regInfo.EstateSettings); |
780 | 780 | ||
781 | scene.Start(); | 781 | scene.Start(); |
782 | } | 782 | } |
783 | 783 | ||
@@ -880,8 +880,8 @@ namespace OpenSim | |||
880 | protected override void HandleRestartRegion(RegionInfo whichRegion) | 880 | protected override void HandleRestartRegion(RegionInfo whichRegion) |
881 | { | 881 | { |
882 | base.HandleRestartRegion(whichRegion); | 882 | base.HandleRestartRegion(whichRegion); |
883 | 883 | ||
884 | // Where we are restarting multiple scenes at once, a previous call to RefreshPrompt may have set the | 884 | // Where we are restarting multiple scenes at once, a previous call to RefreshPrompt may have set the |
885 | // m_console.ConsoleScene to null (indicating all scenes). | 885 | // m_console.ConsoleScene to null (indicating all scenes). |
886 | if (m_console.ConsoleScene != null && whichRegion.RegionName == ((Scene)m_console.ConsoleScene).Name) | 886 | if (m_console.ConsoleScene != null && whichRegion.RegionName == ((Scene)m_console.ConsoleScene).Name) |
887 | SceneManager.TrySetCurrentScene(whichRegion.RegionName); | 887 | SceneManager.TrySetCurrentScene(whichRegion.RegionName); |
@@ -914,7 +914,7 @@ namespace OpenSim | |||
914 | { | 914 | { |
915 | agents = SceneManager.GetCurrentSceneAvatars(); | 915 | agents = SceneManager.GetCurrentSceneAvatars(); |
916 | } | 916 | } |
917 | 917 | ||
918 | MainConsole.Instance.Output(String.Format("\nAgents connected: {0}\n", agents.Count)); | 918 | MainConsole.Instance.Output(String.Format("\nAgents connected: {0}\n", agents.Count)); |
919 | 919 | ||
920 | MainConsole.Instance.Output( | 920 | MainConsole.Instance.Output( |
@@ -960,7 +960,7 @@ namespace OpenSim | |||
960 | 960 | ||
961 | case "modules": | 961 | case "modules": |
962 | SceneManager.ForEachSelectedScene( | 962 | SceneManager.ForEachSelectedScene( |
963 | scene => | 963 | scene => |
964 | { | 964 | { |
965 | MainConsole.Instance.OutputFormat("Loaded region modules in {0} are:", scene.Name); | 965 | MainConsole.Instance.OutputFormat("Loaded region modules in {0} are:", scene.Name); |
966 | 966 | ||
@@ -996,16 +996,16 @@ namespace OpenSim | |||
996 | cdt.AddColumn("Ready?", 6); | 996 | cdt.AddColumn("Ready?", 6); |
997 | cdt.AddColumn("Estate", ConsoleDisplayUtil.EstateNameSize); | 997 | cdt.AddColumn("Estate", ConsoleDisplayUtil.EstateNameSize); |
998 | SceneManager.ForEachScene( | 998 | SceneManager.ForEachScene( |
999 | scene => | 999 | scene => |
1000 | { | 1000 | { |
1001 | RegionInfo ri = scene.RegionInfo; | 1001 | RegionInfo ri = scene.RegionInfo; |
1002 | cdt.AddRow( | 1002 | cdt.AddRow( |
1003 | ri.RegionName, | 1003 | ri.RegionName, |
1004 | ri.RegionID, | 1004 | ri.RegionID, |
1005 | string.Format("{0},{1}", ri.RegionLocX, ri.RegionLocY), | 1005 | string.Format("{0},{1}", ri.RegionLocX, ri.RegionLocY), |
1006 | string.Format("{0}x{1}", ri.RegionSizeX, ri.RegionSizeY), | 1006 | string.Format("{0}x{1}", ri.RegionSizeX, ri.RegionSizeY), |
1007 | ri.InternalEndPoint.Port, | 1007 | ri.InternalEndPoint.Port, |
1008 | scene.Ready ? "Yes" : "No", | 1008 | scene.Ready ? "Yes" : "No", |
1009 | ri.EstateSettings.EstateName); | 1009 | ri.EstateSettings.EstateName); |
1010 | } | 1010 | } |
1011 | ); | 1011 | ); |
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 8499a90..b33e2c2 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -85,7 +85,7 @@ namespace OpenSim | |||
85 | 85 | ||
86 | protected string proxyUrl; | 86 | protected string proxyUrl; |
87 | protected int proxyOffset = 0; | 87 | protected int proxyOffset = 0; |
88 | 88 | ||
89 | public string userStatsURI = String.Empty; | 89 | public string userStatsURI = String.Empty; |
90 | public string managedStatsURI = String.Empty; | 90 | public string managedStatsURI = String.Empty; |
91 | 91 | ||
@@ -125,7 +125,7 @@ namespace OpenSim | |||
125 | { | 125 | { |
126 | get { return m_EnvConfigSource; } | 126 | get { return m_EnvConfigSource; } |
127 | } | 127 | } |
128 | 128 | ||
129 | public uint HttpServerPort | 129 | public uint HttpServerPort |
130 | { | 130 | { |
131 | get { return m_httpServerPort; } | 131 | get { return m_httpServerPort; } |
@@ -210,7 +210,7 @@ namespace OpenSim | |||
210 | } | 210 | } |
211 | 211 | ||
212 | /// <summary> | 212 | /// <summary> |
213 | /// Performs startup specific to the region server, including initialization of the scene | 213 | /// Performs startup specific to the region server, including initialization of the scene |
214 | /// such as loading configuration from disk. | 214 | /// such as loading configuration from disk. |
215 | /// </summary> | 215 | /// </summary> |
216 | protected override void StartupSpecific() | 216 | protected override void StartupSpecific() |
@@ -228,7 +228,7 @@ namespace OpenSim | |||
228 | string pidFile = startupConfig.GetString("PIDFile", String.Empty); | 228 | string pidFile = startupConfig.GetString("PIDFile", String.Empty); |
229 | if (pidFile != String.Empty) | 229 | if (pidFile != String.Empty) |
230 | CreatePIDFile(pidFile); | 230 | CreatePIDFile(pidFile); |
231 | 231 | ||
232 | userStatsURI = startupConfig.GetString("Stats_URI", String.Empty); | 232 | userStatsURI = startupConfig.GetString("Stats_URI", String.Empty); |
233 | 233 | ||
234 | m_securePermissionsLoading = startupConfig.GetBoolean("SecurePermissionsLoading", true); | 234 | m_securePermissionsLoading = startupConfig.GetBoolean("SecurePermissionsLoading", true); |
@@ -254,11 +254,11 @@ namespace OpenSim | |||
254 | if (m_simulationDataService == null) | 254 | if (m_simulationDataService == null) |
255 | throw new Exception( | 255 | throw new Exception( |
256 | string.Format( | 256 | string.Format( |
257 | "Could not load an ISimulationDataService implementation from {0}, as configured in the LocalServiceModule parameter of the [SimulationDataStore] config section.", | 257 | "Could not load an ISimulationDataService implementation from {0}, as configured in the LocalServiceModule parameter of the [SimulationDataStore] config section.", |
258 | module)); | 258 | module)); |
259 | 259 | ||
260 | // Load the estate data service | 260 | // Load the estate data service |
261 | module = Util.GetConfigVarFromSections<string>(Config, "LocalServiceModule", new string[]{"EstateDataStore", "EstateService"}, String.Empty); | 261 | module = Util.GetConfigVarFromSections<string>(Config, "LocalServiceModule", new string[]{"EstateDataStore", "EstateService"}, String.Empty); |
262 | if (String.IsNullOrEmpty(module)) | 262 | if (String.IsNullOrEmpty(module)) |
263 | throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [EstateDataStore] or [EstateService] section"); | 263 | throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [EstateDataStore] or [EstateService] section"); |
264 | 264 | ||
@@ -268,7 +268,7 @@ namespace OpenSim | |||
268 | if (m_estateDataService == null) | 268 | if (m_estateDataService == null) |
269 | throw new Exception( | 269 | throw new Exception( |
270 | string.Format( | 270 | string.Format( |
271 | "Could not load an IEstateDataService implementation from {0}, as configured in the LocalServiceModule parameter of the [EstateDataStore] config section.", | 271 | "Could not load an IEstateDataService implementation from {0}, as configured in the LocalServiceModule parameter of the [EstateDataStore] config section.", |
272 | module)); | 272 | module)); |
273 | } | 273 | } |
274 | 274 | ||
@@ -405,9 +405,9 @@ namespace OpenSim | |||
405 | // set initial ServerURI | 405 | // set initial ServerURI |
406 | regionInfo.HttpPort = m_httpServerPort; | 406 | regionInfo.HttpPort = m_httpServerPort; |
407 | regionInfo.ServerURI = "http://" + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort.ToString() + "/"; | 407 | regionInfo.ServerURI = "http://" + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort.ToString() + "/"; |
408 | 408 | ||
409 | regionInfo.osSecret = m_osSecret; | 409 | regionInfo.osSecret = m_osSecret; |
410 | 410 | ||
411 | if ((proxyUrl.Length > 0) && (portadd_flag)) | 411 | if ((proxyUrl.Length > 0) && (portadd_flag)) |
412 | { | 412 | { |
413 | // set proxy url to RegionInfo | 413 | // set proxy url to RegionInfo |
@@ -461,17 +461,17 @@ namespace OpenSim | |||
461 | 461 | ||
462 | // Prims have to be loaded after module configuration since some modules may be invoked during the load | 462 | // Prims have to be loaded after module configuration since some modules may be invoked during the load |
463 | scene.LoadPrimsFromStorage(regionInfo.originRegionID); | 463 | scene.LoadPrimsFromStorage(regionInfo.originRegionID); |
464 | 464 | ||
465 | // TODO : Try setting resource for region xstats here on scene | 465 | // TODO : Try setting resource for region xstats here on scene |
466 | MainServer.Instance.AddStreamHandler(new RegionStatsHandler(regionInfo)); | 466 | MainServer.Instance.AddStreamHandler(new RegionStatsHandler(regionInfo)); |
467 | 467 | ||
468 | scene.loadAllLandObjectsFromStorage(regionInfo.originRegionID); | 468 | scene.loadAllLandObjectsFromStorage(regionInfo.originRegionID); |
469 | scene.EventManager.TriggerParcelPrimCountUpdate(); | 469 | scene.EventManager.TriggerParcelPrimCountUpdate(); |
470 | 470 | ||
471 | if (scene.SnmpService != null) | 471 | if (scene.SnmpService != null) |
472 | { | 472 | { |
473 | scene.SnmpService.BootInfo("Grid Registration in progress", scene); | 473 | scene.SnmpService.BootInfo("Grid Registration in progress", scene); |
474 | } | 474 | } |
475 | 475 | ||
476 | try | 476 | try |
477 | { | 477 | { |
@@ -480,7 +480,7 @@ namespace OpenSim | |||
480 | catch (Exception e) | 480 | catch (Exception e) |
481 | { | 481 | { |
482 | m_log.ErrorFormat( | 482 | m_log.ErrorFormat( |
483 | "[STARTUP]: Registration of region with grid failed, aborting startup due to {0} {1}", | 483 | "[STARTUP]: Registration of region with grid failed, aborting startup due to {0} {1}", |
484 | e.Message, e.StackTrace); | 484 | e.Message, e.StackTrace); |
485 | 485 | ||
486 | if (scene.SnmpService != null) | 486 | if (scene.SnmpService != null) |
@@ -608,7 +608,7 @@ namespace OpenSim | |||
608 | 608 | ||
609 | if (rawEstateOwnerUuid == null) | 609 | if (rawEstateOwnerUuid == null) |
610 | rawEstateOwnerUuid = MainConsole.Instance.CmdPrompt("User ID", UUID.Random().ToString()); | 610 | rawEstateOwnerUuid = MainConsole.Instance.CmdPrompt("User ID", UUID.Random().ToString()); |
611 | 611 | ||
612 | UUID estateOwnerUuid = UUID.Zero; | 612 | UUID estateOwnerUuid = UUID.Zero; |
613 | if (!UUID.TryParse(rawEstateOwnerUuid, out estateOwnerUuid)) | 613 | if (!UUID.TryParse(rawEstateOwnerUuid, out estateOwnerUuid)) |
614 | { | 614 | { |
@@ -671,7 +671,7 @@ namespace OpenSim | |||
671 | scene.DeleteAllSceneObjects(); | 671 | scene.DeleteAllSceneObjects(); |
672 | SceneManager.CloseScene(scene); | 672 | SceneManager.CloseScene(scene); |
673 | //ShutdownClientServer(scene.RegionInfo); | 673 | //ShutdownClientServer(scene.RegionInfo); |
674 | 674 | ||
675 | if (!cleanup) | 675 | if (!cleanup) |
676 | return; | 676 | return; |
677 | 677 | ||
@@ -733,7 +733,7 @@ namespace OpenSim | |||
733 | SceneManager.CloseScene(scene); | 733 | SceneManager.CloseScene(scene); |
734 | //ShutdownClientServer(scene.RegionInfo); | 734 | //ShutdownClientServer(scene.RegionInfo); |
735 | } | 735 | } |
736 | 736 | ||
737 | /// <summary> | 737 | /// <summary> |
738 | /// Remove a region from the simulator without deleting it permanently. | 738 | /// Remove a region from the simulator without deleting it permanently. |
739 | /// </summary> | 739 | /// </summary> |
@@ -745,7 +745,7 @@ namespace OpenSim | |||
745 | if (SceneManager.TryGetScene(name, out target)) | 745 | if (SceneManager.TryGetScene(name, out target)) |
746 | CloseRegion(target); | 746 | CloseRegion(target); |
747 | } | 747 | } |
748 | 748 | ||
749 | /// <summary> | 749 | /// <summary> |
750 | /// Create a scene and its initial base structures. | 750 | /// Create a scene and its initial base structures. |
751 | /// </summary> | 751 | /// </summary> |
@@ -781,15 +781,15 @@ namespace OpenSim | |||
781 | IEstateDataService estateDataService, AgentCircuitManager circuitManager) | 781 | IEstateDataService estateDataService, AgentCircuitManager circuitManager) |
782 | { | 782 | { |
783 | return new Scene( | 783 | return new Scene( |
784 | regionInfo, circuitManager, | 784 | regionInfo, circuitManager, |
785 | simDataService, estateDataService, | 785 | simDataService, estateDataService, |
786 | Config, m_version); | 786 | Config, m_version); |
787 | } | 787 | } |
788 | 788 | ||
789 | protected virtual void HandleRestartRegion(RegionInfo whichRegion) | 789 | protected virtual void HandleRestartRegion(RegionInfo whichRegion) |
790 | { | 790 | { |
791 | m_log.InfoFormat( | 791 | m_log.InfoFormat( |
792 | "[OPENSIM]: Got restart signal from SceneManager for region {0} ({1},{2})", | 792 | "[OPENSIM]: Got restart signal from SceneManager for region {0} ({1},{2})", |
793 | whichRegion.RegionName, whichRegion.RegionLocX, whichRegion.RegionLocY); | 793 | whichRegion.RegionName, whichRegion.RegionLocX, whichRegion.RegionLocY); |
794 | 794 | ||
795 | //ShutdownClientServer(whichRegion); | 795 | //ShutdownClientServer(whichRegion); |
@@ -824,18 +824,18 @@ namespace OpenSim | |||
824 | 824 | ||
825 | /// <summary> | 825 | /// <summary> |
826 | /// Handler to supply the current extended status of this sim | 826 | /// Handler to supply the current extended status of this sim |
827 | /// Sends the statistical data in a json serialization | 827 | /// Sends the statistical data in a json serialization |
828 | /// </summary> | 828 | /// </summary> |
829 | public class XSimStatusHandler : BaseStreamHandler | 829 | public class XSimStatusHandler : BaseStreamHandler |
830 | { | 830 | { |
831 | OpenSimBase m_opensim; | 831 | OpenSimBase m_opensim; |
832 | 832 | ||
833 | public XSimStatusHandler(OpenSimBase sim) | 833 | public XSimStatusHandler(OpenSimBase sim) |
834 | : base("GET", "/" + Util.SHA1Hash(sim.osSecret), "XSimStatus", "Simulator XStatus") | 834 | : base("GET", "/" + Util.SHA1Hash(sim.osSecret), "XSimStatus", "Simulator XStatus") |
835 | { | 835 | { |
836 | m_opensim = sim; | 836 | m_opensim = sim; |
837 | } | 837 | } |
838 | 838 | ||
839 | protected override byte[] ProcessRequest(string path, Stream request, | 839 | protected override byte[] ProcessRequest(string path, Stream request, |
840 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 840 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
841 | { | 841 | { |
@@ -850,20 +850,20 @@ namespace OpenSim | |||
850 | 850 | ||
851 | /// <summary> | 851 | /// <summary> |
852 | /// Handler to supply the current extended status of this sim to a user configured URI | 852 | /// Handler to supply the current extended status of this sim to a user configured URI |
853 | /// Sends the statistical data in a json serialization | 853 | /// Sends the statistical data in a json serialization |
854 | /// If the request contains a key, "callback" the response will be wrappend in the | 854 | /// If the request contains a key, "callback" the response will be wrappend in the |
855 | /// associated value for jsonp used with ajax/javascript | 855 | /// associated value for jsonp used with ajax/javascript |
856 | /// </summary> | 856 | /// </summary> |
857 | protected class UXSimStatusHandler : BaseStreamHandler | 857 | protected class UXSimStatusHandler : BaseStreamHandler |
858 | { | 858 | { |
859 | OpenSimBase m_opensim; | 859 | OpenSimBase m_opensim; |
860 | 860 | ||
861 | public UXSimStatusHandler(OpenSimBase sim) | 861 | public UXSimStatusHandler(OpenSimBase sim) |
862 | : base("GET", "/" + sim.userStatsURI, "UXSimStatus", "Simulator UXStatus") | 862 | : base("GET", "/" + sim.userStatsURI, "UXSimStatus", "Simulator UXStatus") |
863 | { | 863 | { |
864 | m_opensim = sim; | 864 | m_opensim = sim; |
865 | } | 865 | } |
866 | 866 | ||
867 | protected override byte[] ProcessRequest(string path, Stream request, | 867 | protected override byte[] ProcessRequest(string path, Stream request, |
868 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 868 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
869 | { | 869 | { |
@@ -956,7 +956,7 @@ namespace OpenSim | |||
956 | { | 956 | { |
957 | regionnum = SceneManager.Scenes.Count; | 957 | regionnum = SceneManager.Scenes.Count; |
958 | } | 958 | } |
959 | 959 | ||
960 | /// <summary> | 960 | /// <summary> |
961 | /// Create an estate with an initial region. | 961 | /// Create an estate with an initial region. |
962 | /// </summary> | 962 | /// </summary> |
@@ -983,19 +983,19 @@ namespace OpenSim | |||
983 | MainConsole.Instance.OutputFormat("An estate named {0} already exists. Please try again.", newName); | 983 | MainConsole.Instance.OutputFormat("An estate named {0} already exists. Please try again.", newName); |
984 | return false; | 984 | return false; |
985 | } | 985 | } |
986 | 986 | ||
987 | regInfo.EstateSettings.EstateName = newName; | 987 | regInfo.EstateSettings.EstateName = newName; |
988 | 988 | ||
989 | // FIXME: Later on, the scene constructor will reload the estate settings no matter what. | 989 | // FIXME: Later on, the scene constructor will reload the estate settings no matter what. |
990 | // Therefore, we need to do an initial save here otherwise the new estate name will be reset | 990 | // Therefore, we need to do an initial save here otherwise the new estate name will be reset |
991 | // back to the default. The reloading of estate settings by scene could be eliminated if it | 991 | // back to the default. The reloading of estate settings by scene could be eliminated if it |
992 | // knows that the passed in settings in RegionInfo are already valid. Also, it might be | 992 | // knows that the passed in settings in RegionInfo are already valid. Also, it might be |
993 | // possible to eliminate some additional later saves made by callers of this method. | 993 | // possible to eliminate some additional later saves made by callers of this method. |
994 | EstateDataService.StoreEstateSettings(regInfo.EstateSettings); | 994 | EstateDataService.StoreEstateSettings(regInfo.EstateSettings); |
995 | 995 | ||
996 | return true; | 996 | return true; |
997 | } | 997 | } |
998 | 998 | ||
999 | /// <summary> | 999 | /// <summary> |
1000 | /// Load the estate information for the provided RegionInfo object. | 1000 | /// Load the estate information for the provided RegionInfo object. |
1001 | /// </summary> | 1001 | /// </summary> |
@@ -1009,8 +1009,8 @@ namespace OpenSim | |||
1009 | return false; // estate info in the database did not change | 1009 | return false; // estate info in the database did not change |
1010 | 1010 | ||
1011 | m_log.WarnFormat("[ESTATE] Region {0} is not part of an estate.", regInfo.RegionName); | 1011 | m_log.WarnFormat("[ESTATE] Region {0} is not part of an estate.", regInfo.RegionName); |
1012 | 1012 | ||
1013 | List<EstateSettings> estates = EstateDataService.LoadEstateSettingsAll(); | 1013 | List<EstateSettings> estates = EstateDataService.LoadEstateSettingsAll(); |
1014 | Dictionary<string, EstateSettings> estatesByName = new Dictionary<string, EstateSettings>(); | 1014 | Dictionary<string, EstateSettings> estatesByName = new Dictionary<string, EstateSettings>(); |
1015 | 1015 | ||
1016 | foreach (EstateSettings estate in estates) | 1016 | foreach (EstateSettings estate in estates) |
@@ -1103,12 +1103,12 @@ namespace OpenSim | |||
1103 | MainConsole.Instance.Output("Joining the estate failed. Please try again."); | 1103 | MainConsole.Instance.Output("Joining the estate failed. Please try again."); |
1104 | } | 1104 | } |
1105 | } | 1105 | } |
1106 | } | 1106 | } |
1107 | 1107 | ||
1108 | return true; // need to update the database | 1108 | return true; // need to update the database |
1109 | } | 1109 | } |
1110 | } | 1110 | } |
1111 | 1111 | ||
1112 | public class OpenSimConfigSource | 1112 | public class OpenSimConfigSource |
1113 | { | 1113 | { |
1114 | public IConfigSource Source; | 1114 | public IConfigSource Source; |
diff --git a/OpenSim/Region/Application/Properties/AssemblyInfo.cs b/OpenSim/Region/Application/Properties/AssemblyInfo.cs index b3efce0..09772d3 100644 --- a/OpenSim/Region/Application/Properties/AssemblyInfo.cs +++ b/OpenSim/Region/Application/Properties/AssemblyInfo.cs | |||
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; | |||
3 | using System.Runtime.InteropServices; | 3 | using System.Runtime.InteropServices; |
4 | using Mono.Addins; | 4 | using Mono.Addins; |
5 | 5 | ||
6 | // General Information about an assembly is controlled through the following | 6 | // General Information about an assembly is controlled through the following |
7 | // set of attributes. Change these attribute values to modify the information | 7 | // set of attributes. Change these attribute values to modify the information |
8 | // associated with an assembly. | 8 | // associated with an assembly. |
9 | [assembly: AssemblyTitle("OpenSim")] | 9 | [assembly: AssemblyTitle("OpenSim")] |
@@ -15,8 +15,8 @@ using Mono.Addins; | |||
15 | [assembly: AssemblyTrademark("")] | 15 | [assembly: AssemblyTrademark("")] |
16 | [assembly: AssemblyCulture("")] | 16 | [assembly: AssemblyCulture("")] |
17 | 17 | ||
18 | // Setting ComVisible to false makes the types in this assembly not visible | 18 | // Setting ComVisible to false makes the types in this assembly not visible |
19 | // to COM components. If you need to access a type in this assembly from | 19 | // to COM components. If you need to access a type in this assembly from |
20 | // COM, set the ComVisible attribute to true on that type. | 20 | // COM, set the ComVisible attribute to true on that type. |
21 | [assembly: ComVisible(false)] | 21 | [assembly: ComVisible(false)] |
22 | 22 | ||
@@ -26,7 +26,7 @@ using Mono.Addins; | |||
26 | // Version information for an assembly consists of the following four values: | 26 | // Version information for an assembly consists of the following four values: |
27 | // | 27 | // |
28 | // Major Version | 28 | // Major Version |
29 | // Minor Version | 29 | // Minor Version |
30 | // Build Number | 30 | // Build Number |
31 | // Revision | 31 | // Revision |
32 | // | 32 | // |
diff --git a/OpenSim/Region/Application/RegionApplicationBase.cs b/OpenSim/Region/Application/RegionApplicationBase.cs index ba92fd6..83a9fff 100644 --- a/OpenSim/Region/Application/RegionApplicationBase.cs +++ b/OpenSim/Region/Application/RegionApplicationBase.cs | |||
@@ -57,9 +57,9 @@ namespace OpenSim | |||
57 | public NetworkServersInfo NetServersInfo { get { return m_networkServersInfo; } } | 57 | public NetworkServersInfo NetServersInfo { get { return m_networkServersInfo; } } |
58 | public ISimulationDataService SimulationDataService { get { return m_simulationDataService; } } | 58 | public ISimulationDataService SimulationDataService { get { return m_simulationDataService; } } |
59 | public IEstateDataService EstateDataService { get { return m_estateDataService; } } | 59 | public IEstateDataService EstateDataService { get { return m_estateDataService; } } |
60 | 60 | ||
61 | protected abstract void Initialize(); | 61 | protected abstract void Initialize(); |
62 | 62 | ||
63 | protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager); | 63 | protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager); |
64 | 64 | ||
65 | protected override void StartupSpecific() | 65 | protected override void StartupSpecific() |
@@ -68,11 +68,11 @@ namespace OpenSim | |||
68 | 68 | ||
69 | Initialize(); | 69 | Initialize(); |
70 | 70 | ||
71 | m_httpServer | 71 | m_httpServer |
72 | = new BaseHttpServer( | 72 | = new BaseHttpServer( |
73 | m_httpServerPort, m_networkServersInfo.HttpUsesSSL, m_networkServersInfo.httpSSLPort, | 73 | m_httpServerPort, m_networkServersInfo.HttpUsesSSL, m_networkServersInfo.httpSSLPort, |
74 | m_networkServersInfo.HttpSSLCN); | 74 | m_networkServersInfo.HttpSSLCN); |
75 | 75 | ||
76 | if (m_networkServersInfo.HttpUsesSSL && (m_networkServersInfo.HttpListenerPort == m_networkServersInfo.httpSSLPort)) | 76 | if (m_networkServersInfo.HttpUsesSSL && (m_networkServersInfo.HttpListenerPort == m_networkServersInfo.httpSSLPort)) |
77 | { | 77 | { |
78 | m_log.Error("[REGION SERVER]: HTTP Server config failed. HTTP Server and HTTPS server must be on different ports"); | 78 | m_log.Error("[REGION SERVER]: HTTP Server config failed. HTTP Server and HTTPS server must be on different ports"); |
@@ -107,7 +107,7 @@ namespace OpenSim | |||
107 | server.Start(); | 107 | server.Start(); |
108 | } | 108 | } |
109 | } | 109 | } |
110 | 110 | ||
111 | base.StartupSpecific(); | 111 | base.StartupSpecific(); |
112 | } | 112 | } |
113 | 113 | ||