mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user