Startup Parameters Config File: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Supplemented information added by Suma in the Dev-Heaven ticket)
Line 1: Line 1:
The config file can be used to put startup parameters in, instead of specifying them at a shortcut/commandline.
The config file can be used to put startup parameters in, instead of specifying them at a shortcut/commandline.


== Location ==
== Pre build 86060 ==


Inside game folder (unverified)
=== Location ===
Inside game folder


Depending on Game:
Depending on Game:
Line 10: Line 11:
* TakeOnH.par
* TakeOnH.par


== Format ==
Note: .par file does not (all will not) support some low level parameters, like -cpuCount, -malloc or -exthreads, as those need to be initialized before any file operations are done.
<pre>startupParameter="-startupParameter"
 
startupParameter2="-startupParameter2=value1;value2"</pre>
=== Format ===
<pre>class Arg
{
    startupParameter="-startupParameter"
    startupParameter2="-startupParameter2=value1;value2"
};</pre>


=== Example ===
=== Example ===
<pre>nosplash="-nosplash";
<pre>class Arg
skipIntro="-skipIntro";
{
world="-world=none";
    nosplash="-nosplash";
mod="-mod=Expansion;Expansion\beta;Expansion\beta\Expansion;@cwr2";</pre>
    skipIntro="-skipIntro";
    world="-world=none";
    mod="-mod=Expansion;Expansion\beta;Expansion\beta\Expansion;@cwr2";
};</pre>
 
== Post build 86060 ==
 
=== Location ===
Location can be defined with -par=parameterFileName startup parameter. If file extension is .par the formatting described previously is required. With any other extension (like .txt) a plain text is assumed, with one command line option per line. In both cases the file is preprocessed before parsing, allowing C++ style comments and #define-s to be used. (But will it still need class Arg {}; around it? Remains to be tested once a beta with this feature is out.)
 
=== Format ===
<pre>-startupParameter
-startupParameter2=value1;value2</pre>
 
=== Example ===
<pre>-nosplash
-skipIntro
-world=none
-mod=Expansion;Expansion\beta;Expansion\beta\Expansion;@cwr2</pre>
 
== External links ==


[http://dev-heaven.net/issues/26103 Feature is dicussed here by Suma]


[[Category:Startup_Parameters]]
[[Category:Startup_Parameters]]

Revision as of 17:41, 3 November 2011

The config file can be used to put startup parameters in, instead of specifying them at a shortcut/commandline.

Pre build 86060

Location

Inside game folder

Depending on Game:

  • ArmA2.par
  • ArmA2OA.par
  • TakeOnH.par

Note: .par file does not (all will not) support some low level parameters, like -cpuCount, -malloc or -exthreads, as those need to be initialized before any file operations are done.

Format

class Arg
{
    startupParameter="-startupParameter"
    startupParameter2="-startupParameter2=value1;value2"
};

Example

class Arg
{
    nosplash="-nosplash";
    skipIntro="-skipIntro";
    world="-world=none";
    mod="-mod=Expansion;Expansion\beta;Expansion\beta\Expansion;@cwr2";
};

Post build 86060

Location

Location can be defined with -par=parameterFileName startup parameter. If file extension is .par the formatting described previously is required. With any other extension (like .txt) a plain text is assumed, with one command line option per line. In both cases the file is preprocessed before parsing, allowing C++ style comments and #define-s to be used. (But will it still need class Arg {}; around it? Remains to be tested once a beta with this feature is out.)

Format

-startupParameter
-startupParameter2=value1;value2

Example

-nosplash
-skipIntro
-world=none
-mod=Expansion;Expansion\beta;Expansion\beta\Expansion;@cwr2

External links

Feature is dicussed here by Suma