Command Line Options
From WarzoneWiki
Warzone supports several command line options. Some of them are currently the only way to change the configuration.
Contents |
Configuration
You can edit the configuration in “Documents and Settings\USERNAME\My Documents\Warzone 2100\config” (Windows), ”~/.warzone2100/config” (Linux), ”~/Library/Application Support/Warzone 2100/config” (Mac) to change other options.
Using command line options
Preamble: [flags] is a placeholder for the _optional_ flags. If you put a command line switch there, do it without the []! (The [..] do commonly mean "this is optional" in documentations)
GNU/Linux
Start Warzone2100 with
warzone2100 [flags]
Windows
- Create a shortcut to the warzone2100.exe and add the flags to the target of the shortcut.
- Use start/run or a command prompt to execute
warzone2100.exe [flags]
The target could look like
C:\Program Files\Warzone 2100\warzone2100.exe [flags]
Mac OS X
- Ctrl-click “Warzone 2100” in the Finder and choose “show package contents”. Then double-click “Contents”, then “MacOS”. There should be a file named “warzone2100.sh”. Open this file in TextEdit and change the last line to:
exec ./warzone2100 --datadir ../Resources/data [flags]
- Open a new Terminal window and change to “Warzone 2100.app/Contents/MacOS”, e.g. enter “cd /Applications/Warzone\ 2100.app/Contents/MacOS”. Start Warzone2100 with
./warzone2100 --datadir ../Resources/data [flags]
Supported Flags
General
| Option | Effect |
|---|---|
| --help | Show the help and exit (output to commandline, won't help Windows users much) |
| --version | Output version info and exit |
| --savegame NAME | Load a saved game NAME |
Configuration
| Option | Effect |
|---|---|
| --fullscreen | Play in fullscreen mode |
| --window | Play in windowed mode |
| --resolution WIDTHxHEIGHT | Set the dimensions of the viewport (screen or window) |
| --shadows/noshadows | Toggle shadows |
| --sound/nosound | Toggle sound |
Debugging
| Option | Effect |
|---|---|
| --cheat | Run in cheat mode |
| --debug FLAGS | Show debug for FLAGS (Valid flags are: "all", "main", "sound", "video", "wz", "3d", "texture", "net", "memory", "error", "script") |
| --debugfile FILE | Log debug output in FILE |
Data
| Option | Effect |
|---|---|
| --datadir DIR | Set default datadir to DIR |
| --configdir DIR | Set the location of game settings and save games to DIR |
| --mod MOD | Enable global modification MOD |
| --mod_ca MOD | Enable campaign only modification MOD |
| --mod_mp MOD | Enable multiplay only modification MOD |
Specifying modules
With --mod you can specify a mod to be loaded for all games. It may be a directory or a zipfile (maybe more, depending on what PhysFS supports on your system). You have to specify the file extension, i.e. .wz.
The mod is searched in the mods/global/ subdirectory of:
- Directory specified via --datadir
- The default configuration directory or --configdir if supplied
- ../data/
- <prefix>/share/warzone2100/
- .
Where '.' represents the location of the binary and not the current working directory.
Any files (or directories) in mods/global/autoload/ are always loaded.
added by Delphinio
- A NTW Mod 1.6.5 example for Warzone 2100 Users.
- Thats the Folder for the NTW_Mod_v1.6.5.wz File: \Warzone 2100\mods\multiplay\
- If the File is in, then enter --mod_mp NTW_Mod_v1.6.5.wz to a Shortcut as Target.



