Skip to content

Command Line Arguments

Moburma edited this page Mar 20, 2024 · 10 revisions

The fan port adds several new command line arguments, and changes the syntax of some existing ones. Please note arguments are case sensitive.

Table of Contents

New and Changed Arguments

These are arguments that are new to the port, or have changed syntax since the DOS version.

Argument Notes
-d (desired debug mode) Activate in-game level debug modes. Current additional arguments are: t - for Thing debug mode, o for Objective debug mode, and c for Collision debug mode. These can be combined to enable all or selective modes at the same time. Usage examples: -d t or -d o or -d c or -d toc
-h or --help Show the command line help
-L or --level-deep-fix Applies extra automatic fixes to some game logic linking characters, weapons and vehicles. This can fix issues on some cut levels, but is not recommended in normal play as it may break some correct relationships. An example of intended use is to face the cut final boss of the game on the Moon levels, e.g. -L -m 0,101
-m (campaign number),(mission index number) start the game directly on the specified mission with the level's pre-set default weapon loadouts. Note this has changed syntax from the original game and now needs the desired campaign number added as well. 0 = Eurocorp campaign, 1 = Church of the New Epoch, 2 = Unguided. e.g. -m 1,48. Note, unlike the original game, there must now be a space between the -m and the numbers. Note starting with -m also enables the cheat mode automatically
-S or --nostretch Don't stretch 320 x 200 screens to the high res screen mode (i.e. actually display them as 320 x 200)
-t Execute self-tests (developers only)
-W or --windowed Starts the game in Windowed mode
-u (username) Set player username. This will load existing saved preferences under that name to import settings like key bindings, deep radar and audio settings on game start (using -m argument). E.g. -u JOHN

Original Game Arguments

Arguments to assist single player modes of the game

Argument Notes
-D Direct keyboard mode. Queries the keyboard rather than using interrupts/events
-E (number) Set joystick to use. Note joystick support is not yet working in the port
-g Enter normal campaign mode. This was required in the DOS original, hence the need to run it from a batch file. The port always starts with this set. Without this set a campaign level will fall back to the pre-set weapon inventory for the player instead of what was set in the equip screen after the player retries the level
-H Start the game in High res mode if using the -m argument. Note, requires -q to be invoked at the same time to work
-p (number) Replay recorded packet file with this number. Needs to be used with the -m argument so the correct mission is loaded as well. E.g. -p 1 -m 1,48. See argument -r for how to record an input file
-q Skip the intro video
-r Record replay packets to a a file in the savegame dir; the next unused filename for the selected map will be used. This function will record the player's inputs to a file that can later be played back to demo the game using the -p argument. Use in conjunction with -m to start the desired mission.

Multiplayer Arguments

Note multiplayer is currently not working in the port

Argument Notes
-I (Number) Connect to multiplayer game on machine specified using IPX
-s Set Session name string of game

Original Game Debug Arguments

These are debug options from the original DOS version. The purpose of many of these is not known.

Argument Notes
-A Enter game mode 1. When used in conjunction with -m, starts the player with no weapons (likely using the non-existent equip screen inventory instead of level defaults)
-B Test scenario 99? Unknown purpose
-C Test scenario 100? Unknown purpose
-F Re-compute colour fade tables
-N Unknown purpose
-T Colour tables mode. No effect?