Command-line parameters

Command-line parameters, also called arguments, flags, or switches, are options for the initial execution of software. These options are commonly supplied in a command-line window or shortcut, and always come after the executable's file name. Available parameters, syntax, and effect all depend on the game or software they are used with. A common use for these options is for running games in debug mode or different resolutions.

Example:

"C:\Program Files\OldGame\Game.exe" -firstoption -secondoption
"C:\Program Files\NewGame\Game.exe" /FIRSTOPTION /SECONDOPTION

Currently, five LEGO video games for Windows are known to have command-line parameters:

LEGO Racers

There are seven command-line parameters in the 1999 version of LEGO Racers, and eight in the 2001 version. Entering an incorrect parameter will cause LEGO Racers to terminate its launch and open an error message box, which displays a list of all parameters and their functions (except for -fov).

Argument Effect
-alphatrans Forces use of alpha transparency
-horzres [res] Sets the value in pixels for horizontal display resolution. Replace [res] with an integer.
-novideo Disables playback of opening videos
-primary Forces use of primary display device. This parameter will be ignored if -select3d is also used.
-select3d Allows display driver and Direct3D device selection before the game launches (may not work with the Japanese version)[verify]
-vertres [res] Sets the value in pixels for vertical display resolution. Replace [res] with an integer.
-window Allows the game to be launched in a window when in 16-bit color depth. The window will minimize if focus is lost.
The following parameter only works with the 2001 version
-fov [deg] Sets the value in degrees for the in-game camera's field of view. Replace [deg] with an integer. 90 is the default value. Values above 180 will invert the field of view. Values of 360 and onward can be used, but will be read as their coterminal equivalent below 360 degrees (e.g. 450=90).

LEGO Racers 2

There are twenty-six command-line parameters in LEGO Racers 2.

Argument Effect
/backlevel Untested
/bpp Untested
/cars Untested
/device Untested
/explore When any track is selected to race on, the player will be taken to explore mode in that track's world instead
/foyer When any track is selected to race on, the player will be taken to the track's world's foyer instead (except for Sandy Bay, which has no foyer and forces the player into explore mode)
/height [res] Sets the value in pixels for vertical display resolution. Replace [res] with an integer.
/highqualitysound Untested
/hz Untested, may not be in all versions
/levelname Untested
/loadcontroldata Untested
/lowqualitysound Untested
/nomusic Disables in-game music
/nosfx Mutes all audio. Attempting to start a new adventure will crash the game.
/options An options window appears on game start
/overdraw Makes all polygons translucent, showing how many layers are overlapping
/racers [range] Changes the number of racers. Replace [range] with an integer between 1 and 8
/script Untested
/startpos Changes your starting position
/track Untested
/width [res] Sets the value in pixels for horizontal display resolution. Replace [res] with an integer.
/windowed Allows the game to be launched in a window
/windowx Untested
/windowy Untested
/wireframe Displays all graphics in wireframe mode
/savecontroldata Untested

LEGO Rock Raiders

There are twenty-four command-line parameters in LEGO Rock Raiders.

Argument Effect
-best Launches the game with maximum graphics settings, skipping the Mode Selection prompt
-cleansaves Deletes all saved games
-debug Allows for display resolutions of 640x480, 800x600, or 1024x768 to be selected. However, only the positions and dimensions of interface items for a 640x480 resolution are defined in Lego.cfg by default; without extensive edits to designate coordinates for the latter two resolutions, selecting either of those options will cause the game to immediately crash. (Does not enable debug mode)
-debugcomplete Untested
-dualmouse Untested
-flags Followed with an integer to "turn on certain debug features"[1][verify]
-fpslock Enables VSync, which locks the frame rate to the monitor refresh rate when running in a window
-ftm Forces the video card to use all available texture memory and disables in-game dynamic lighting (except for walls)
-fvf Creates a gradual fog effect while in eye view or shoulder view
-insistOnCD Makes the game request the disc before it starts
-nm Disables texture management for Voodoo2-based cards. Incorrectly listed as -nom in the readme file.
-nosound Mutes all in-game sound
-programmer Enables debug keys and allows the opening logos to be skipped
-reduceanimation Disables the rockfall transition animation in the main menu
-reduceflics Disables all FLIC animations
-reduceimages Texture sizes are halved at load time, reducing the memory overhead[1]
-reducepromeshes Reduces the number of LOD meshes[1]
-reducesamples Disables sounds on the menu (except for clicking and music), voices (except for Chief's briefings), and cave ambiance. Streamed sounds, such as the aforementioned music and briefings, are unaffected.
-reward Disables Chief's animation on the reward screen
-showversion Displays the game's version number (V.0.121) in the bottom-right corner of the main menu, level select, and pause menu
-startlevel Launches the game directly into a level; may need a level name (e.g. Level10) or an integer as a parameter[1][verify]
-testercall Unlocks all levels at start, same as -testlevels[1]
-testlevels Unlocks all levels at start
-window Allows the game to be launched in a window when in 16-bit color mode

LEGO Stunt Rally

These parameters must be used in a shortcut to _msr.exe, not StuntRally.exe

  • 0.3.5.1 is the version number for the original release of the game.
  • 0.3.8.1 is the version number for the later, more common releases of the game, as well as the Japanese demo by Eidos.
  • 0.4.0.7 is the version number for all other demo versions of the game.
Argument Effect
/FREEFORM Disables automatic steering
/FROMLAUNCHER Required for all other parameters to work
The following parameters do not work in version 0.4.0.7
/FILES Unknown - Attempts to open a resource table file, resulting in a runtime error at startup[verify]
/IGTEST Disables respawning
/NOINTROVIDEO Disables playback of opening videos
RESTART Untested
/XAFTOXBF Unknown - Game freezes when loading a race[verify]
The following parameters do not work in version 0.3.8.1, but do work in version 0.3.5.1 and the Japanese demo
/NORES Unknown - Causes a runtime error at startup[verify]
/RES_FILES Untested
The following parameters only work with version 0.3.5.1
/ALLAI Untested
/CDIN Untested
/DEBUGINFO 'Displays the current position, lap number, and held powerup of all AI opponents
/LOAD_TEXT Untested
/WINDOWED Allows the game to be launched in a window when in 16-bit color mode (the game will launch in 32-bit color mode, but may appear graphically corrupted)

LEGOLAND

There are four command-line parameters in LEGOLAND.

Argument Effect
-nointro Disables playback of opening videos
-nomusic Disables in-game music
WINDEBUG Starts the game in windowed mode.
BLT Unknown

References