From 669aa46bff3bf0ced71658b8782635ac4aef73e9 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Wed, 11 Mar 2009 09:31:02 +0000 Subject: update some ini defaults in code - all defaults from beginning of OpenSim.ini.example thru DefaultScriptEngine = "XEngine" --- OpenSim/Region/Application/ConfigurationLoader.cs | 2 +- OpenSim/Region/Application/OpenSim.cs | 4 ++-- OpenSim/Region/Framework/Scenes/Scene.cs | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Application/ConfigurationLoader.cs b/OpenSim/Region/Application/ConfigurationLoader.cs index 6a103bd..7c335a7 100644 --- a/OpenSim/Region/Application/ConfigurationLoader.cs +++ b/OpenSim/Region/Application/ConfigurationLoader.cs @@ -292,7 +292,7 @@ namespace OpenSim m_configSettings.EstateConnectionString = startupConfig.GetString("estate_connection_string", m_configSettings.StorageConnectionString); m_configSettings.AssetStorage = startupConfig.GetString("asset_database"); m_configSettings.AssetCache = startupConfig.GetString("AssetCache"); - m_configSettings.ClientstackDll = startupConfig.GetString("clientstack_plugin"); + m_configSettings.ClientstackDll = startupConfig.GetString("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); } IConfig standaloneConfig = m_config.Source.Configs["StandAlone"]; diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 69dfac5..d8a9b4c 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -68,8 +68,8 @@ namespace OpenSim if (startupConfig != null) { - m_startupCommandsFile = startupConfig.GetString("startup_console_commands_file", String.Empty); - m_shutdownCommandsFile = startupConfig.GetString("shutdown_console_commands_file", String.Empty); + m_startupCommandsFile = startupConfig.GetString("startup_console_commands_file", "startup_commands.txt"); + m_shutdownCommandsFile = startupConfig.GetString("shutdown_console_commands_file", "shutdown_commands.txt"); m_gui = startupConfig.GetBoolean("gui", false); diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 5cb9724..08a4a7c 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -81,7 +81,7 @@ namespace OpenSim.Region.Framework.Scenes /// Are we applying physics to any of the prims in this scene? /// public bool m_physicalPrim; - public float m_maxNonphys = 65536; + public float m_maxNonphys = 256; public float m_maxPhys = 10; public bool m_clampPrimSize = false; public bool m_trustBinaries = false; @@ -342,11 +342,11 @@ namespace OpenSim.Region.Framework.Scenes // Region config overrides global config // IConfig startupConfig = m_config.Configs["Startup"]; - m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", 65536.0f); + m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys); if (RegionInfo.NonphysPrimMax > 0) m_maxNonphys = RegionInfo.NonphysPrimMax; - m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", 10.0f); + m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", m_maxPhys); if (RegionInfo.PhysPrimMax > 0) m_maxPhys = RegionInfo.PhysPrimMax; @@ -354,12 +354,12 @@ namespace OpenSim.Region.Framework.Scenes // Here, if clamping is requested in either global or // local config, it will be used // - m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", false); + m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", m_clampPrimSize); if (RegionInfo.ClampPrimSize) m_clampPrimSize = true; - m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", false); - m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", false); + m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", m_trustBinaries); + m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", m_allowScriptCrossings); m_dontPersistBefore = startupConfig.GetLong("MinimumTimeBeforePersistenceConsidered", DEFAULT_MIN_TIME_FOR_PERSISTENCE); m_dontPersistBefore *= 10000000; -- cgit v1.1