aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMW2007-03-28 18:10:52 +0000
committerMW2007-03-28 18:10:52 +0000
commit35fa85069e792579ebd44a974053d6dce288ea0a (patch)
tree8a5629c4f5e0a51e20a05123c4b1b9ea9f49f61e /OpenSim
parent* log file name conflict (diff)
downloadopensim-SC-35fa85069e792579ebd44a974053d6dce288ea0a.zip
opensim-SC-35fa85069e792579ebd44a974053d6dce288ea0a.tar.gz
opensim-SC-35fa85069e792579ebd44a974053d6dce288ea0a.tar.bz2
opensim-SC-35fa85069e792579ebd44a974053d6dce288ea0a.tar.xz
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
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/RegionServer.cs6
1 files changed, 6 insertions, 0 deletions
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
18 bool startLoginServer = false; 18 bool startLoginServer = false;
19 string physicsEngine = "basicphysics"; 19 string physicsEngine = "basicphysics";
20 bool allowFlying = false; 20 bool allowFlying = false;
21 bool userAccounts = false;
21 22
22 for (int i = 0; i < args.Length; i++) 23 for (int i = 0; i < args.Length; i++)
23 { 24 {
@@ -30,6 +31,10 @@ namespace OpenSim
30 { 31 {
31 startLoginServer = true; 32 startLoginServer = true;
32 } 33 }
34 if (args[i] == "-accounts")
35 {
36 userAccounts = true;
37 }
33 if (args[i] == "-realphysx") 38 if (args[i] == "-realphysx")
34 { 39 {
35 physicsEngine = "RealPhysX"; 40 physicsEngine = "RealPhysX";
@@ -44,6 +49,7 @@ namespace OpenSim
44 OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine ); 49 OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine );
45 // OpenSimRoot.Instance.Application = sim; 50 // OpenSimRoot.Instance.Application = sim;
46 sim.m_sandbox = sandBoxMode; 51 sim.m_sandbox = sandBoxMode;
52 sim.user_accounts = userAccounts;
47 OpenSim.world.Avatar.PhysicsEngineFlying = allowFlying; 53 OpenSim.world.Avatar.PhysicsEngineFlying = allowFlying;
48 54
49 sim.StartUp(); 55 sim.StartUp();