From b6c48c53b21df9dbde4549bced938089f43ed1f0 Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 16 Aug 2007 11:24:40 +0000 Subject: Can now set the plugins for standalone mode's Inventory database (default sqlite) and for its user database (default DB4o). Currently changing the user plugin to MySql should work (if you have MySql setup (should be same as for grid mode). There is also a MySql provider for the inventory but not 100% certain if that is finished and functional (will need to check with Adam on that). --- OpenSim/Region/Application/OpenSimMain.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 2ca3f46..0114cc6 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -74,7 +74,9 @@ namespace OpenSim private string m_logFilename = ("region-console.log"); private bool standaloneAuthenticate = false; - private string welcomeMessage = null; + private string standaloneWelcomeMessage = null; + private string standaloneInventoryPlugin = ""; + private string standaloneUserPlugin = ""; public ConsoleCommand CreateAccount = null; @@ -109,8 +111,10 @@ namespace OpenSim m_startupCommandsFile = configSource.Configs["Startup"].GetString("startup_console_commands_file", ""); - standaloneAuthenticate = configSource.Configs["Startup"].GetBoolean("standalone_authenticate", false); - welcomeMessage = configSource.Configs["Startup"].GetString("standalone_welcome", "Welcome to OpenSim"); + 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"); + standaloneUserPlugin = configSource.Configs["StandAlone"].GetString("userDatabase_plugin", "OpenSim.Framework.Data.DB4o.dll"); } /// @@ -130,7 +134,8 @@ namespace OpenSim if (m_sandbox) { - CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, standaloneAuthenticate, welcomeMessage); + CommunicationsLocal.LocalSettings settings = new CommunicationsLocal.LocalSettings(standaloneWelcomeMessage, standaloneAuthenticate, standaloneInventoryPlugin, standaloneUserPlugin); + CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, settings); m_commsManager = localComms; if(standaloneAuthenticate) { -- cgit v1.1