From 35fa85069e792579ebd44a974053d6dce288ea0a Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 28 Mar 2007 18:10:52 +0000 Subject: After hours of searching for a bug, it works - User accounts in sandbox mode, currently they are not persistent between restarts (ie restarting opensim.exe) but should be persistent between sessions (login/ logout). Use the -account command line arg to enable them and then create new accounts through the web interface --- OpenSim/RegionServer.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/RegionServer.cs') diff --git a/OpenSim/RegionServer.cs b/OpenSim/RegionServer.cs index 0244116..db70203 100644 --- a/OpenSim/RegionServer.cs +++ b/OpenSim/RegionServer.cs @@ -18,6 +18,7 @@ namespace OpenSim bool startLoginServer = false; string physicsEngine = "basicphysics"; bool allowFlying = false; + bool userAccounts = false; for (int i = 0; i < args.Length; i++) { @@ -30,6 +31,10 @@ namespace OpenSim { startLoginServer = true; } + if (args[i] == "-accounts") + { + userAccounts = true; + } if (args[i] == "-realphysx") { physicsEngine = "RealPhysX"; @@ -44,6 +49,7 @@ namespace OpenSim OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine ); // OpenSimRoot.Instance.Application = sim; sim.m_sandbox = sandBoxMode; + sim.user_accounts = userAccounts; OpenSim.world.Avatar.PhysicsEngineFlying = allowFlying; sim.StartUp(); -- cgit v1.1