Startup Parameters Config File: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page refresh) |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"\\']+)<\/tt>" to "{{hl|$1}}") |
||
Line 35: | Line 35: | ||
== Plain Text Format == | == Plain Text Format == | ||
* The file extension must be anything '''but''' | * The file extension must be anything '''but''' {{hl|.par}}, otherwise the {{HashLink|#.par Format}} syntax will be assumed. | ||
* The file can be located either inside or outside of the game folder for organizational purposes. | * The file can be located either inside or outside of the game folder for organizational purposes. | ||
* The file must have one command line option per line. | * The file must have one command line option per line. | ||
Line 66: | Line 66: | ||
== .par Format == | == .par Format == | ||
{{Feature|warning|The | {{Feature|warning|The {{hl|.PAR}} file extension is apparently no longer read correctly on a dedicated server.}} | ||
=== Location === | === Location === | ||
Line 77: | Line 77: | ||
! {{arma2}} !! {{arma2oa}} !! {{tkoh}} | ! {{arma2}} !! {{arma2oa}} !! {{tkoh}} | ||
|- | |- | ||
| | | {{hl|ArmA2.par}} || {{hl|ArmA2OA.par}} || {{hl|TakeOnH.par}} | ||
|} | |} | ||
Revision as of 23:55, 15 November 2021
The startup parameters config file can be used to put startup parameters in, instead of specifying them in a shortcut/commandline.
Usage
-par startup parameter allows to specify the file. Whether using Plain Text Format or .par Format, the file is preprocessed before parsing, allowing C++ style comments and #defines to be used.
Windows
-par won't work being passed by cmd as variable to quotes; a specific format must be applied:
setlocal enableDelayedExpansion enableExtensions
set v=!v! "-profiles=!cd!\acc"
set v=!v! "-par=D:\par\startupParameters.txt"
start "" "D:\arma3\arma3.exe" !v! &rem need "start" for closing cmd window;
timeout /t 1 &rem need for keeping game window (starting from logo) foreground after cmd window close;
Plain Text Format
- The file extension must be anything but .par, otherwise the .par Format syntax will be assumed.
- The file can be located either inside or outside of the game folder for organizational purposes.
- The file must have one command line option per line.
Location
Location can be defined with -par=parameterFileName startup parameter.
Format
Whitespace is ignored.
-startupParameter
-startupParameter2=value1;value2
MissionFileToOpenInTheEditor
Example
-nosplash
-skipIntro
-world=none
-mod=Expansion;Expansion\beta;Expansion\beta\Expansion;@cwr2
"C:\arma2\Users\USERNAME\missions\MissionName.Desert_E\mission.sqm"
.par Format
Location
At game directory's root.
Naming
Arma 2 | Arma 2: Operation Arrowhead | Take On Helicopters |
---|---|---|
ArmA2.par | ArmA2OA.par | TakeOnH.par |
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";
};
External links
- Feature is discussed here by Suma (archive)