Command Line Options
Table of Contents
Warzone supports several command line options. Some of them are currently the only way to change the configuration.
Configuration
Some options can be set by editing the config file, located in:
| Windows | My Documents\Warzone 2100\config |
| Linux | ~/.warzone2100/config |
| Mac OS X | ~/Library/Application Support/Warzone 2100/config |
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 (or modify the one on the Desktop)
- Right-click on the shortcut and go to "Properties"
- Go to the "Shortcut" tab of the Properties box.
- Modify the "Target" box.
The target could look like
"C:\Program Files\Warzone 2100\warzone2100.exe" [flags]
Alternatively:
- Open a command prompt and execute warzone2100.exe [flags]
Mac OS X
- Open a new Terminal window and start Warzone 2100 with
/Applications/Warzone.app/Contents/MacOS/Warzone [flags]
Supported Flags
General
| --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
| --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
| --cheat | Run in cheat mode |
| --debug FLAG | Show debug for FLAG (Valid flags are: "all", "main", "sound", "video", "wz", "3d", "texture", "net", "memory", "error", "script"). Every flag must be preceded by a new --debug. "all" includes every other option. |
| --debugfile FILE | Log debug output in FILE |
Data
| --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.
Example for NTW Mod v1.6.5 (Windows)
- NTW_Mod_v1.6.5.wz has to placed in: \Warzone 2100\mods\multiplay\
- Add --mod_mp NTW_Mod_v1.6.5.wz to the target of a shortcut to the warzone2100.exe.

