OpenSim.exe Command Line Options

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(updated)
Line 1: Line 1:
{{obsolete}}
+
{{Quicklinks}}
{{content}}
+
__NOTOC__
  
To run OpenSim in somewhat customized environments it's often helpful to modify the programs behaviour via command line arguments.
+
Command line arguments are usually helpful to modify the behavior of your OpenSimulator for somewhat customized environments or debugging.
OpenSim knows a just a few of these as most parts of the behaviour are controlled via an .INI-File.
+
 
 +
== Using Commandline Arguments ==
 +
 
 +
OpenSimulator internally uses [http://nini.sourceforge.net/ Nini] as a command line parser.
 +
 
 +
=== Syntax ===
 +
 
 +
*''"/key:value" or "/key value" (Windows Style)''
 +
*''"-key=value" or "-key value" (*nix Style)''
 +
 
 +
If you want to use the value contains spaces, put it in double-quotes(").
 +
 
 +
Note that "--" likes "--key=value" doesn't work. It seems a bug in the regular syntax in Nini ArgvParser.
 +
 
 +
=== Boolean Aliases ===
 +
 
 +
*True: "=true", "=on", "=yes(in OpenSim 0.7.2-dev)"
 +
*False: "=false", "=off", "=no(in OpenSim 0.7.2-dev)"
 +
 
 +
They are not case-sensitive. You can type "True", "TRUE" or "tRue" for example.
 +
 
 +
== Current Arguments ==
  
 
The following command line switches are known:
 
The following command line switches are known:
{| border="1"
+
{|border="1" cellspacing="0"
! Switch !! Meaning/Behaviour
+
! Switch !! Values !! Description !! Default
 
|-
 
|-
| background ||
+
|logconfig
 +
|String(filepath)
 +
|OpenSimulator will configure log4net using this file as configuration file
 +
|OpenSim.exe.config
 
|-
 
|-
| gridmode || If =true forces OpenSim.exe to operate in grid mode. If =false forces OpenSim.exe to operate in standalone mode. If omitted defaults to OpenSim.ini setting.
+
|background
 +
|Boolean
 +
|If true, OpenSimulator will run in the background
 +
|false
 
|-
 
|-
| gui || "old-style" console (deprecated from Opensim 0.7, use console instead)
+
|inifile
 +
|String(filepath)
 +
|The path to ini file
 +
|OpenSim.ini
 
|-
 
|-
| console || If =basic declares interface as a simple command console (it has been noted that use of this can also avoid some terminal crashes when logging errors occur).
+
|inimaster
 +
|String(filepath)
 +
|The path to master ini file
 +
|OpenSimDefaults.ini
 
|-
 
|-
| inidirectory ||  
+
|inidirectory
 +
|String(filepath)
 +
|The path to folder for config ini files. OpenSimulator will read all of *.ini files in this directory and override OpenSim.ini settings.
 +
|config
 
|-
 
|-
| inifile || changes the name (Path) of the inifile.
+
|physics
 +
|"OpenDynamicsEngine", "basicphysics", "POS", "modified_BulletX"
 +
|The name of the physics engine. It is the same as physics property in [Startup] section. See OpenSim.ini.example for the detailed information. It will override the settings in OpenSim.ini.
 +
|OpenDynamicsEngine
 
|-
 
|-
| inimaster || allows to read in a master config file.
+
|gui
 +
|Boolean
 +
|"old-style" console ([http://opensimulator.org/mantis/view.php?id=4794 deprecated from Opensim 0.7], use -console=basic instead)
 +
|false
 
|-
 
|-
| logconfig || changes the name (Path) of the logfile.
+
|console
 +
|"basic","rest"
 +
|If "basic", OpenSimulator will launch a simple console capable of processing commands. If "rest", a [[RestConsole]]. If others including empty, a console that uses cursor control and context help(default).
 +
|(empty)
 +
|-
 +
|save_crashes
 +
|Boolean
 +
|If true, OpenSimulator will dump stacktraces into the file in the directory specified with 'crash_dir' when it crashes. Note: As of 0.7.1, it doesn't work. It works in 0.7.2-dev.
 +
|false
 +
|-
 +
|crash_dir
 +
|String(filepath)
 +
|The path to the directory where crash logs will be created. When OpenSimulator crashes, it will be automatically created if not exists. Note: As of 0.7.1, it doesn't work. It works in 0.7.2-dev.
 +
|crashes
 
|}
 
|}
 +
 +
 +
NOTE:
 +
*Boolean - See [[#Boolean Aliases]] above.
 +
*filepath - The path relative to the working directory of the user or application, in the most cases, it will be bin/.

Revision as of 06:45, 3 June 2011


Command line arguments are usually helpful to modify the behavior of your OpenSimulator for somewhat customized environments or debugging.

Using Commandline Arguments

OpenSimulator internally uses Nini as a command line parser.

Syntax

  • "/key:value" or "/key value" (Windows Style)
  • "-key=value" or "-key value" (*nix Style)

If you want to use the value contains spaces, put it in double-quotes(").

Note that "--" likes "--key=value" doesn't work. It seems a bug in the regular syntax in Nini ArgvParser.

Boolean Aliases

  • True: "=true", "=on", "=yes(in OpenSim 0.7.2-dev)"
  • False: "=false", "=off", "=no(in OpenSim 0.7.2-dev)"

They are not case-sensitive. You can type "True", "TRUE" or "tRue" for example.

Current Arguments

The following command line switches are known:

Switch Values Description Default
logconfig String(filepath) OpenSimulator will configure log4net using this file as configuration file OpenSim.exe.config
background Boolean If true, OpenSimulator will run in the background false
inifile String(filepath) The path to ini file OpenSim.ini
inimaster String(filepath) The path to master ini file OpenSimDefaults.ini
inidirectory String(filepath) The path to folder for config ini files. OpenSimulator will read all of *.ini files in this directory and override OpenSim.ini settings. config
physics "OpenDynamicsEngine", "basicphysics", "POS", "modified_BulletX" The name of the physics engine. It is the same as physics property in [Startup] section. See OpenSim.ini.example for the detailed information. It will override the settings in OpenSim.ini. OpenDynamicsEngine
gui Boolean "old-style" console (deprecated from Opensim 0.7, use -console=basic instead) false
console "basic","rest" If "basic", OpenSimulator will launch a simple console capable of processing commands. If "rest", a RestConsole. If others including empty, a console that uses cursor control and context help(default). (empty)
save_crashes Boolean If true, OpenSimulator will dump stacktraces into the file in the directory specified with 'crash_dir' when it crashes. Note: As of 0.7.1, it doesn't work. It works in 0.7.2-dev. false
crash_dir String(filepath) The path to the directory where crash logs will be created. When OpenSimulator crashes, it will be automatically created if not exists. Note: As of 0.7.1, it doesn't work. It works in 0.7.2-dev. crashes


NOTE:

  • Boolean - See #Boolean Aliases above.
  • filepath - The path relative to the working directory of the user or application, in the most cases, it will be bin/.
Personal tools
General
About This Wiki