From d03000062a83b67fcb1137296766aaad6a0fd317 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Thu, 30 Aug 2007 18:51:22 +0000 Subject: Config option for loading ScriptEngine (wjordan) Removed project file for ExcensionsScriptModule --- OpenSim/Region/Application/OpenSimMain.cs | 15 ++++++++++++--- .../OpenSim.Region.ExtensionsScriptModule.csproj.user | 12 ------------ 2 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 OpenSim/Region/ExtensionsScriptModule/OpenSim.Region.ExtensionsScriptModule.csproj.user diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 17f360f..45032fc 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -57,10 +57,12 @@ namespace OpenSim public class OpenSimMain : RegionApplicationBase, conscmd_callback { public string m_physicsEngine; + public string m_scriptEngine; public bool m_sandbox; public bool user_accounts; public bool m_gridLocalAsset; - + + protected ModuleLoader m_moduleLoader; protected string m_storageDLL = "OpenSim.DataStore.NullStorage.dll"; @@ -107,6 +109,7 @@ namespace OpenSim protected void ReadConfigSettings(IConfigSource configSource) { + m_networkServersInfo = new NetworkServersInfo(); m_sandbox = !configSource.Configs["Startup"].GetBoolean("gridmode", false); m_physicsEngine = configSource.Configs["Startup"].GetString("physics", "basicphysics"); @@ -117,6 +120,8 @@ namespace OpenSim m_startupCommandsFile = configSource.Configs["Startup"].GetString("startup_console_commands_file", ""); + m_scriptEngine = configSource.Configs["Startup"].GetString("script_engine", "DotNetEngine"); + standaloneAuthenticate = configSource.Configs["StandAlone"].GetBoolean("accounts_authenticate", false); standaloneWelcomeMessage = configSource.Configs["StandAlone"].GetString("welcome_message", "Welcome to OpenSim"); standaloneInventoryPlugin = configSource.Configs["StandAlone"].GetString("inventory_plugin", "OpenSim.Framework.Data.SQLite.dll"); @@ -187,8 +192,12 @@ namespace OpenSim Scene scene = SetupScene(regionInfo, out udpServer); - OpenSim.Region.Environment.Scenes.Scripting.ScriptEngineInterface ScriptEngine = ScriptEngineLoader.LoadScriptEngine("DotNetEngine"); - scene.AddScriptEngine(ScriptEngine, m_log); + // Check if we have a script engine to load + if (m_scriptEngine != null && m_scriptEngine != "") + { + OpenSim.Region.Environment.Scenes.Scripting.ScriptEngineInterface ScriptEngine = ScriptEngineLoader.LoadScriptEngine(m_scriptEngine); + scene.AddScriptEngine(ScriptEngine, m_log); + } //Server side object editing permissions checking if (m_permissions) diff --git a/OpenSim/Region/ExtensionsScriptModule/OpenSim.Region.ExtensionsScriptModule.csproj.user b/OpenSim/Region/ExtensionsScriptModule/OpenSim.Region.ExtensionsScriptModule.csproj.user deleted file mode 100644 index b3114ad..0000000 --- a/OpenSim/Region/ExtensionsScriptModule/OpenSim.Region.ExtensionsScriptModule.csproj.user +++ /dev/null @@ -1,12 +0,0 @@ - - - Debug - AnyCPU - C:\New Folder\second-life-viewer\opensim-dailys2\opensim11-07\bin\ - 8.0.50727 - ProjectFiles - 0 - - - - -- cgit v1.1