Startup Parameters – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
(Various smaller fixes and better structure.)
(Better structure by using tables.)
Line 1: Line 1:
These parameters can be configured by creating a new shortcut on your desktop and then adding the appropriate option.
These parameters can be configured by creating a new shortcut on your desktop and then adding the appropriate option in the target line.


'''Example'''
'''Example''':


  "C:\arma2\arma2.exe" -nosplash -mod=test
  "C:\arma2\arma2.exe" -nosplash -mod=test;x\test;c:\arma2\test2


== Available parameters ==
== Available parameters ==
Line 9: Line 9:
=== Display Options ===
=== Display Options ===


-x=           Numeric, used to set resolution width
{| border="1" cellspacing="0"
-y=           Numeric, used to set resolution height
| -x=<number> || Used to set resolution width.
-window       Displays Arma windowed instead of full screen
|-
                (can be used in conjunction with -x/-y: <tt>-window -x=800 -y=600</tt>)
| -y=<number> || Used to set resolution height.
[[-nosplash]]      Disables intro and splash screens
|-
| [[-nosplash]] || Disables intro and splash screens.
|-
| -window || Displays Arma windowed instead of full screen. It can be used in conjunction with -x/-y:  
|}
 
  -window -x=800 -y=600.


=== Performance ===
=== Performance ===


-maxMem=               Limit memory allocation (in MB). 2047 is hardcoded maximum (anything higher falls back to 2047).
{| border="1" cellspacing="0"
-world=                Select a world loaded by default, e.g. -world=Sara
| -maxMem=<number> || Limit memory allocation (in MB). 2047 is hard-coded maximum (anything higher falls back to 2047).
                        -world=empty (for faster game loading.. no island and no menu animation loaded)
|-
-winxp                 Vista/Win7 to enable multi-GPU support.
| -winxp || To enable multi-GPU support for Vista/Win7.
-noCB                 Turns off multicore use. It slows down rendering but may resolve visual glitches.
|-
[[-cpuCount=X]]            Change X to a number less or equal than numbers of available cores. This will override auto detection.
| -noCB || Turns off multicore use. It slows down rendering but may resolve visual glitches.
-noPause              Allow the game running even when its window does not have a focus.
|-
| -cpuCount=X || Change X to a number less or equal than numbers of available cores. This will override auto detection. Details below.
|}


=== Misc. ===
=== Misc. ===


-name=         Client-side, User name.
{| border="1" cellspacing="0"
[[-profiles]]=   Location of user-profile folder.
| -name=<string> || Profile name.
-init=                 Run scripting command once in the main menu (useful to start a certain  
|-
                        (test) mission of choice automatically. Add to command line:  
| [[-profiles]]=<path> || Location of user-profile folder. Details: [[-profiles]].
                        -init=playMission["","M04Saboteur.Sara"] (see also [[playMission]])
|-
                        (''Mission has to reside in the gamedir\Missions folder, NOT the user directory.'')
| -world=<string> || Select a world loaded by default. Example: -world=Utes. For faster game loading, no island and no menu animation loaded: -world=empty.
/secuexp              Starts Securom Support (for Troubleshooting)
|-
| -noPause || Allow the game running even when its window does not have focus.
|-
| -buldozer || Starts [[Buldozer]] mode.
|-
| -noLand || Starts with no world loaded. (Used for [[Bulldozer]])
|-
| -noSound || Disables sound output.
|-
| /secuexp || Starts securom support for troubleshooting.
|-
| -showScriptErrors || Introduced to show errors in scripts on-screen.
|-
| -noFilePatching || Ensures that only PBOs are loaded and NO unpacked data. For more info see [[CMA:DevelopmentSetup]].
|-
| -init=<command> || Run scripting command once in the main menu. For example to start a certain SP mission of choice automatically. Example: -init=playMission["","M04Saboteur.Sara"]. See also [[playMission]]). The Mission has to reside in the "arma2\Missions" folder, NOT the user directory.
|-
| "<path>\mission.sqm" || Load a mission directly in the editor. Example:
|}


-world can also be used to load a mission directly in the editor. The following is already using a user defined Userfolder path:
  "c:\arma2\users\myUser\missions\myMission.intro\mission.sqm"
  "d:\games\arma 2\users\myUser\missions\myMission.intro\mission.sqm"
-showScriptErrors      Introduced to show errors in scripts on-screen.
-noFilePatching        Ensures that only PBOs are loaded and NO unpacked data.
                        For more info see [[CMA:DevelopmentSetup]].
-noLand                Starts Arma2 with no world. (Used for [[Bulldozer]])
-buldozer              Start Arma2 in [[Buldozer]] mode.
-noSound              Disables sound output.


=== Modifications ===
=== Modifications ===


[[modfolders|-mod]]=       Allows the use of sub-folders for different mods, separated by semi-colons.
{| border="1" cellspacing="0"
              Under Linux multiple folders arguments need the following separation syntax: -mod=mod1\;mod2\;mod3
| [[modfolders|mod]]=<string> || Loads the specified sub-folders for different mods. Separated by semi-colons. Absolute path and multiple stacked folders are  possible . In Linux multiple folders arguments need the following separation syntax:
              Config file for server specific settings like admin password and mission selection.
|}
 
-mod=mod1\;mod2\;mod3


=== Client Network Options ===
=== Client Network Options ===


-connect=     Server IP to connect to.
{| border="1" cellspacing="0"
-port=         Server port to connect to.
| -connect=<ip> || Server IP to connect to.
-password=     Server password to connect to.
|-
-host         Start a non-dedicated multiplayer host.
| -port=<number> || Server port to connect to.
|-
| -password=<string> || Server password to connect to.
|-
| -host || Start a non-dedicated multiplayer host.
|}


=== Server Options ===
=== Server Options ===


-server       Start a [[Arma 2:Dedicated Server|dedicated server]] (not needed for a special dedicated server exe).
{| border="1" cellspacing="0"
-port=         Port to host dedicated server on.
| -server || Start a [[Arma 2:Dedicated Server|dedicated server]]. Not needed for the dedicated server exe.
-pid=         File to write the server's PID (process ID) to. The file is removed automatically when the exe is
|-
                stopped. Only works when started as a dedicated server.
| -port=<number> || Port to have dedicated server listen on.
[[-ranking]]=     Used to generate a ranking file. '''-ranking=<filename>'''
|-
-netlog       Enables Arma2 multiplayer network traffic logging.
| -pid=<filename> || File to write the server's PID (process ID) to. The file is removed automatically when the exe is stopped. Only works for dedicated servers.
-cfg=       Selects a config file like the [[basic.cfg|Server Basic Config file]]. Prcessed at startup.
|-
-config=     Selects a config file like the [[server.cfg|Server Config File]]. Processed after startup.
| [[-ranking]]=<filename> || Generates a ranking file.
|-
| -netlog || Enables multiplayer network traffic logging.
|-
| -cfg=<filename> || Selects the [[basic.cfg|Server Basic Config file]]. Config file for server specific settings like network performance tuning.
|-
| -config=<filename> || Selects the [[server.cfg|Server Config File]]. Config file for server specific settings like admin password and mission selection.
|}


=== Use unknown ===
=== Use unknown ===


-download             Use unknown. (Possibly set auto download of missing Mod pbo's from server.)
{| border="1" cellspacing="0"
-generateShaders       Use unknown. (Possibly for use with [[Buldozer]])
| -download || Use unknown. (Possibly set auto download of missing Mod pbo's from server.)
-disableProgramDrawing Use unknown. (Possibly for use with [[Buldozer]])
|-
-useProgramDrawing     Use unknown. (Possibly for use with [[Buldozer]])
| -generateShaders || Use unknown. (Possibly for use with [[Buldozer]])
-gamerTag=             Use unknown.
|-
-benchmark             Intended for automated benchmarking, but was never finished and is not working.
| -disableProgramDrawing || Use unknown. (Possibly for use with [[Buldozer]])
|-
| -useProgramDrawing || Use unknown. (Possibly for use with [[Buldozer]])
|-
| -gamerTag= || Use unknown.
|-
| -benchmark || Intended for automated benchmarking, but was never finished and is not working.
|}


== Closer Description ==
== Closer Description ==

Revision as of 13:48, 8 October 2009

These parameters can be configured by creating a new shortcut on your desktop and then adding the appropriate option in the target line.

Example:

"C:\arma2\arma2.exe" -nosplash -mod=test;x\test;c:\arma2\test2

Available parameters

Display Options

-x=<number> Used to set resolution width.
-y=<number> Used to set resolution height.
-nosplash Disables intro and splash screens.
-window Displays Arma windowed instead of full screen. It can be used in conjunction with -x/-y:
 -window -x=800 -y=600.

Performance

-maxMem=<number> Limit memory allocation (in MB). 2047 is hard-coded maximum (anything higher falls back to 2047).
-winxp To enable multi-GPU support for Vista/Win7.
-noCB Turns off multicore use. It slows down rendering but may resolve visual glitches.
-cpuCount=X Change X to a number less or equal than numbers of available cores. This will override auto detection. Details below.

Misc.

-name=<string> Profile name.
-profiles=<path> Location of user-profile folder. Details: -profiles.
-world=<string> Select a world loaded by default. Example: -world=Utes. For faster game loading, no island and no menu animation loaded: -world=empty.
-noPause Allow the game running even when its window does not have focus.
-buldozer Starts Buldozer mode.
-noLand Starts with no world loaded. (Used for Bulldozer)
-noSound Disables sound output.
/secuexp Starts securom support for troubleshooting.
-showScriptErrors Introduced to show errors in scripts on-screen.
-noFilePatching Ensures that only PBOs are loaded and NO unpacked data. For more info see CMA:DevelopmentSetup.
-init=<command> Run scripting command once in the main menu. For example to start a certain SP mission of choice automatically. Example: -init=playMission["","M04Saboteur.Sara"]. See also playMission). The Mission has to reside in the "arma2\Missions" folder, NOT the user directory.
"<path>\mission.sqm" Load a mission directly in the editor. Example:
"c:\arma2\users\myUser\missions\myMission.intro\mission.sqm"

Modifications

mod=<string> Loads the specified sub-folders for different mods. Separated by semi-colons. Absolute path and multiple stacked folders are possible . In Linux multiple folders arguments need the following separation syntax:
-mod=mod1\;mod2\;mod3

Client Network Options

-connect=<ip> Server IP to connect to.
-port=<number> Server port to connect to.
-password=<string> Server password to connect to.
-host Start a non-dedicated multiplayer host.

Server Options

-server Start a dedicated server. Not needed for the dedicated server exe.
-port=<number> Port to have dedicated server listen on.
-pid=<filename> File to write the server's PID (process ID) to. The file is removed automatically when the exe is stopped. Only works for dedicated servers.
-ranking=<filename> Generates a ranking file.
-netlog Enables multiplayer network traffic logging.
-cfg=<filename> Selects the Server Basic Config file. Config file for server specific settings like network performance tuning.
-config=<filename> Selects the Server Config File. Config file for server specific settings like admin password and mission selection.

Use unknown

-download Use unknown. (Possibly set auto download of missing Mod pbo's from server.)
-generateShaders Use unknown. (Possibly for use with Buldozer)
-disableProgramDrawing Use unknown. (Possibly for use with Buldozer)
-useProgramDrawing Use unknown. (Possibly for use with Buldozer)
-gamerTag= Use unknown.
-benchmark Intended for automated benchmarking, but was never finished and is not working.

Closer Description

config

The option -config allows you to specify a specific server.cfg file.

profiles

-profiles is a startup option allowing you to choose an alternate location for the user profile files, such as downloaded missions and .cfg files.

The windows user account would need permissions to write to the folder of choice.

An example might be like this:

"C:\Program Files\Bohemia Interactive\Arma 2\Arma2.exe" -profiles=C:\Arma 2\Profiles

or

"C:\Program Files\Bohemia Interactive\Arma 2\Arma2.exe" -profiles=Profiles

would store all your profiles/configs/downloaded content into your ROOT ArmA folder under the folder name "Profiles"

ranking

-ranking is a startup option allowing you to output ranking info or othewise know as player stats.

The windows user account would need permissions to write to the folder of choice.

An example might be like this:

"C:\Program Files\Bohemia Interactive\Arma 2\Arma2.exe" -ranking=C:\Arma 2\ranking.log


nosplash

-nosplash is a startup option that allows you to bypass the splash screens on startup of Arma2.

Note: Real speed-up gained with this is likely to be negligible with Arma2, as the loading screens are handled in parallel with the game data being loaded, and the loading itself takes quite long thanks to the amount of data needed.

cpuCount

-cpuCount= is the way to limit number of CPUs/cores available. The best way to simulate dual core on quad core is to use -cpuCount=2 when you run the game and then change the affinity to 2 cores to make sure additional cores can never be used when some over-scheduling happens. It might be also possible to set the affinity in the OS before you launch the process, that would work as well.