From 01289b9c2d29dc9db5aec62fff7f38b87f34ee38 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 27 Jul 2016 23:13:24 +0100 Subject: [PATCH] first step removing MegaRegions: refuse to run. Thanks to all that made MegaRegions possible, they where a important OpenSim feature, but can no longer be mantained --- OpenSim/Framework/Servers/BaseOpenSimServer.cs | 11 ++++++++++- OpenSim/Region/Application/OpenSimBase.cs | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 3426d10d9b..1d4deac7bc 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs @@ -157,7 +157,16 @@ namespace OpenSim.Framework.Servers "[STARTUP]: Operating system version: {0}, .NET platform {1}, {2}-bit\n", Environment.OSVersion, Environment.OSVersion.Platform, Util.Is64BitProcess() ? "64" : "32"); - StartupSpecific(); + try + { + StartupSpecific(); + } + catch(Exception e) + { + m_log.FatalFormat("Fatal error: {0}", + (e.Message == null || e.Message == String.Empty) ? "Unknown reason":e.Message ); + Environment.Exit(1); + } TimeSpan timeTaken = DateTime.Now - m_startuptime; diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 41966ff325..52ded3d055 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -218,6 +218,13 @@ namespace OpenSim IConfig startupConfig = Config.Configs["Startup"]; if (startupConfig != null) { + // refuse to run MegaRegions + if(startupConfig.GetBoolean("CombineContiguousRegions", false)) + { + m_log.Fatal("CombineContiguousRegions (MegaRegions) option is no longer suported. Use a older version to save region contents as OAR, then import into a fresh install of this new version"); + throw new Exception("CombineContiguousRegions not suported"); + } + string pidFile = startupConfig.GetString("PIDFile", String.Empty); if (pidFile != String.Empty) CreatePIDFile(pidFile);