Command line options
Options given after the executable's name that change how the game starts, grouped by what they are for.
Passing options
Section titled “Passing options”Put options after the executable’s name, separated by spaces. Option names are not case-sensitive.
Game.exe -WIN -1280X720 -DATADIR="D:\Games\Tiberian Sun"Write a value straight after its =, with no space. Quote a value that contains spaces; the game removes the quotes.
The single-letter -X options can share one -X: -XCQ is -XC and -XQ together.
The game ignores an option it does not recognize. An -X letter it does not accept is the exception: the game exits before starting, and a Debug build shows Invalid option switch. in its debug console first. A Release build does not accept the -X letters listed under Debug build only, and ignores the other options there.
26 of 26
Files and display
-DATADIR=<path>
Game data directoryAdded in 0.2.0
Reads the game's data from the directory named, and never writes there.
Without it, the game reads its data from the directory that holds the executable. A relative path also starts from that directory. Game data describes the data and user directories.
-USERDIR=<path>
User data directoryAdded in 0.2.0Changed in 0.3.0
Writes settings, saved games and the other files the game creates into the directory named, and creates the directory when it is missing.
The debug log and out-of-sync reports go into a Debug folder in the directory. Crash reports still go into a folder beside the executable. Game data lists the files the directory receives.
-WIN
Windowed mode
Opens the game in a window for this run, whatever Fullscreen says.
The stored Fullscreen setting is left as it is, so a later run without the option opens as that setting says.
-<width>X<height>
Resolution
Sets the screen size, such as -1280X720, for a dimension sun.ini leaves out.
A size written in sun.ini wins, as ScreenWidth describes. The game writes both dimensions there when the options menu is left or the game controls dialog is accepted. After that, the option changes nothing until they are removed from the file.
Multiplayer
-MPDEBUG
Internet debug display
Shows network statistics along the bottom of the screen in any game but a campaign mission.
The strip is 80 pixels high. It shows this copy’s frame number, frame rate and network timing, then a column for each other player with their response times, resends, lost packets, processing time and latency. While the game waits for another player, a colored marker shows which one it is waiting on.
-SPAWN
Client launchAdded in 0.2.0
Plays the match SPAWN.INI describes in place of the startup movies and the menu, and exits when the match ends.
SPAWN.INI describes the file and how a client uses it.
-STEALTH
Network stealth mode
Has no effect. It was meant to keep this copy out of other players' LAN game lists.
The LAN screens switch it off as they open. During a match, the game answers game-list queries only from players in that match, whether or not the option was given.
-TIME=<minutes>
Tournament time limit
Ends a network match after the number of game minutes given, and decides by score whether this player wins.
Give every player’s copy the same value: each copy checks only its own -TIME=, and decides only for its own player. When the time runs out, the player with the highest score wins and every other player loses. Observers do not count, and of two tied players only one wins.
The limit counts game minutes of 900 frames from the start of the match. Campaign and skirmish games ignore it.
Map capture
-CAPTURE=<file>
Map capture descriptionAdded in 0.2.0
Makes the map capture the file describes, then exits without having shown a window, a console or a dialog.
A relative path is taken from the game’s own folder. Map capture description describes the file, what a capture draws, and how the game exits.
Giving it with -CAPTUREMAP= or -CAPTUREOUT= stops the run before the map is loaded.
-CAPTUREMAP=<map>
Map captureAdded in 0.2.0
Draws the map named to a PNG picture with the default capture settings, then exits without having shown a window, a console or a dialog.
Name the picture with -CAPTUREOUT=; without it, the game exits at once. Map capture description says what a capture draws and how the game exits, and -CAPTURE= takes a file with more settings.
-CAPTUREOUT=<path>
Map capture fileAdded in 0.2.0
Names the PNG file a -CAPTUREMAP= capture writes, replacing any file already there.
A relative path is taken from the game’s own folder. The folder must already exist.
Testing and diagnostics
-DESYNCTEST=<frame>
Out-of-sync testAdded in 0.2.0
Corrupts this machine's game checksum once, from the frame given, so that the out-of-sync report can be checked without waiting for a real divergence.
The corruption waits for checksum comparison to start, so a frame within the first 256 takes effect as soon as comparison starts. Out-of-sync reports describes the reports the test produces, and the frames on which it produces none.
-EXCEPTIONTEST=<fault>
Exception reporting testAdded in 0.1.0
Raises the fault named on purpose, so that crash reporting can be checked without waiting for a real crash.
| Fault | What the game does |
|---|---|
av-read | Reads from an invalid address during startup. |
av-write | Writes to an invalid address during startup. |
stack | Calls itself until the stack overflows. |
purecall | Calls a pure virtual function. |
terminate | Calls std::terminate. |
invalidparam | Passes an invalid parameter to a C runtime function. |
fatal | Stops with the engine’s own fatal error, Requested test failure 1. |
worker | Writes to an invalid address on a second thread. |
sectionfault | Writes to an invalid address, then faults again while the report’s frame chain is written, so that the rest of the report can be checked. |
wndproc | Writes to an invalid address inside the window procedure, once the window is open. |
timer | Writes to an invalid address on a timer thread, 200 milliseconds after the window opens. |
Any other value raises nothing. Crash reports describes what a crash leaves.
-MULTIINSTANCE
Multiple copiesAdded in 0.2.0
Lets this copy start while another copy of the game is running.
Without it, a second copy brings the running copy’s window to the front and exits. A map capture skips this check, so it can run beside a game without the option.
-XC
Console debug outputChanged in 0.1.0
Opens the debug console in a Release build. A Debug build opens it without this option, except during a map capture.
Give it before -? to see the help in a Release build. Debug logs and console describes the console.
-XQ
Quiet mode
Mutes music, sound effects and EVA speech.
EVA speech lists the other conditions that keep EVA quiet.
Startup
-?
Command-line help
Shows the original game's parameter summary and exits without starting the game.
The summary goes to the debug console, which stays open until a key is pressed. A Debug build always opens that console. A Release build opens it only when -XC comes before -?, and otherwise shows nothing.
The summary is the original game’s. It lists -DESTNET, -SOCKET, -STEALTH and -MESSAGES, of which OpenTS accepts only -STEALTH, which has no effect.
Also /?, -h, /h
FROMINSTALL
Installer launch
Plays the EVA.VQA introduction movie before the startup movies, whatever PlayIntro says.
PlayIntro describes the movie and what the game writes to the settings file afterward.
-LAUNCH=<file>
Launch requestAdded in 0.3.0
Plays the game or makes the map capture that the launch request file describes, in place of the startup movies and the menu, and exits when it ends.
Launch request describes the file, the requests this version runs, and the result file it writes. The game refuses -LAUNCH= given together with -SPAWN, a map capture switch, -TIME= or -SEED.
Debug build only
Only a Debug build accepts these options.
-CHECKMAP
Map checking
Runs a map check every frame, which examines nothing and always passes.
PLAYTEST
Playtest mode
Arms the debug keys, which any command-line argument already does.
It is written without a leading dash. Developer mode explains which arguments arm the debug keys.
-SEED<number>
Random seedChanged in 0.2.0
Seeds the random number generator for a campaign mission or skirmish started from the menu, so that it repeats the same random draws each time.
Write the number straight after -SEED, as in -SEED1234. 0 draws a new seed. The game keeps the number’s remainder after dividing by 65536, so -SEED65536 acts as -SEED0.
-XH
Instant superweapon charge
Makes a superweapon finish charging one frame after it starts.
-XI
Inert weapons
Makes weapons deal no damage, as Inert=yes does, in any game but a campaign mission.
A campaign mission reads Inert from the map instead.
-XM
Monochrome debug display
Enables the monochrome debug pages, which the monochrome debug key then switches on and off.
Developer mode describes the pages.
-XP
Event and packet debug
Writes the orders packed into each outgoing network packet, and each player's departure, to the debug log.
Removed options
| Option | What it did | Removed in |
|---|---|---|
-16 | Set a high-color flag at launch. Removed when it lost its last reader; the game always renders in high color. | 0.1.0 |
-480 | Set the initial screen width to 480 pixels. The resolution option reads -480 the same way. | 0.2.0 |
-ATTRACT | Let any key press end a -XY playback. Removed with the playback; the game now ignores the option. | 0.3.0 |
-CD | Added the path following -CD to the local file-search list. The directories the game searches are now named by the data and user directory options and by the deployment's own search folders. | 0.2.0 |
-DESTNET | Set the IPX bridge destination network at launch. Removed with IPX network play. | 0.1.0 |
-MESSAGES | Let in-game chat from outside the match through. Removed when a line began to be accepted only from a seat of the match. | 0.2.0 |
-SOCKET | Selected an IPX socket offset at launch. Removed with IPX network play. | 0.1.0 |
-XE | Left a crash to the debugger instead of the engine's own handler. Removed because a debugger now takes a crash first without being asked. | 0.1.0 |
-XX | Recorded each game to RECORD.BIN in a Debug build. Removed with the recording playback, which never played a recording past its first frame. | 0.3.0 |
-XY | Played RECORD.BIN back in place of the main menu of a Debug build, but wrote an out-of-sync report and exited on the first frame. Removed. | 0.3.0 |
No options match this filter.