From 68b33294b1f5f4564252d8b04e69f07b3e326a84 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 25 Apr 2007 13:47:32 +0000 Subject: Can now use the xml config file for setting up things like sandbox mode, login server, physics engine etc. To use this mode add just -configfile to the startup line (instead of the -sandbox etc) A example of what to add to the xml is: SandBox="true" LoginServer="true" UserAccounts="false" LocalAssets="false" PhysicsEngine="basicphysics" (add those to config node in simconfig.xml). The current options for PhysicsEngine are : basicphysics, RealPhysX, OpenDynamicsEngine. --- OpenSim/Application.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Application.cs') diff --git a/OpenSim/Application.cs b/OpenSim/Application.cs index 0e3d5a6..56fcf53 100644 --- a/OpenSim/Application.cs +++ b/OpenSim/Application.cs @@ -20,6 +20,7 @@ namespace OpenSim bool allowFlying = false; bool userAccounts = false; bool gridLocalAsset = false; + bool useConfigFile = false; for (int i = 0; i < args.Length; i++) { @@ -50,9 +51,13 @@ namespace OpenSim { gridLocalAsset = true; } + if (args[i] == "-configfile") + { + useConfigFile = true; + } } - OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine ); + OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine, useConfigFile); // OpenSimRoot.Instance.Application = sim; sim.m_sandbox = sandBoxMode; sim.user_accounts = userAccounts; -- cgit v1.1