Skip to content

Command line options

Robert Jordan edited this page Feb 25, 2022 · 8 revisions

Command line options

Command line options are case insensitive. Quotes should not be used to surround options that expect arguments. Numeric arguments that evaluate to zero will often apply a default value. Options are parsed by searching the entire command line string, with each option being independent from the others (i.e. -debugcomplete will also apply -debug due to this behavior).

Options

Option Description
-nosound Mutes all sound and music (except for movies). Functionally disables the following in-game options:
SFX Volume
Music: ON
Sound Effects: ON
-insistOnCD Requires a CD installation (searches for CDROM:\Data\cd.key). Due to bugs, this ends up preventing the game from running at all.
-nm "No texture management", Disables texture management. Automatically applied if Lego.cfg TextureUsage*2 <= Free Video Memory.
-ftm "Force texture management", Forces the video card to use all available texture memory and disables in-game dynamic lighting (except for walls). Prevents -nm ("No texture management") from being automatically applied (but has no effect when -nm option is used).
-fvf "Force vertex fog", Creates a gradual fog effect while in eye view or shoulder view. (normally "Table" fog is used in place of this setting).
-best "Best fit", Skips showing the Mode Selection dialog and automatically chooses the last driver/device, and first screen mode in list.
-window Launches in windowed mode when used with the -best option.
-debug Adds the following screen resolutions to the Mode Selection dialog:
800x600 (16 bit)
1024x768 (16 bit)
-debugcomplete Enables the following debug keys: (automatically applies -debug option)
LCtrl+D "Instantly fails the level."
LCtrl+S "Instantly completes the level."
RCtrl+S "Instantly fails the level with reason, too many crystals stolen."
O "Decreases oxygen level." (while held)
Note these are also enabled by AllowDebugKeys or the -programmer option.
-dualmouse Enables separate detection of left and right mouse button presses.
-testercall Lists the Lego.cfg level name next to the real name in the Level Select screen (i.e. "Driller Night! (Level01)"), (also applies -programmer 2 when not specified).
-testlevels Unlocks all levels in Level Select screen (unlocks will not persist in save games).
-cleansaves Wipes all save files.
-showversion Displays the game's version number (V.0.121) in the bottom-right corner of the main menu, level select, and pause menu.
-reduceanimation Do not load or play 3D animations with ! prefix in Lego.cfg (menu rock wipe transition, would support Chief animations if not for a bug).
-reduceflics Do not load or play Overlay/Reward 2D animations with ! prefix in Lego.cfg.
-reduceimages Do not load or show Bubble/Pointer/Reward 2D images with ! prefix in Lego.cfg.
-reducepromeshes Do not load or render 3D parts with ! prefix in *.ae activity files, and do not load high-detail wall meshes. Functionally disables the following in-game options:
Wall Detail: HIGH
-reducesamples Do not load or play samples with ! prefix in Lego.cfg.
-programmer [mode] Programmer level (defaults to 1 when mode is unspecified or 0). Enables additional debug features. Higher levels have more drastic effects on game functions. See Programmer modes for more info.
-startlevel <name> Launches the game directly into a level when Front End is disabled (must use Lego.cfg name format: "Levels::levelName", i.e. "Levels::Level01" for "Driller Night!").
-fpslock <rate> Lock "frame rate", game update loop will always be given the same elapsed time delta (does not affect rate of game updates, making the game unplayably fast on modern machines)
Value is specified as an integer "frames per second" (where the normal frame rate is considered 25 frames per second).
-flags <bitflags> Enable experimental features that were likely still being tested when the game was due for release. See Experimental flags for more info.

Shortcut options

Shortcuts created during LRR installation use the following command line options: [needs verification]

Shortcut Options
(autorun) -best
LEGO Rock Raiders - Enhanced -best
LEGO Rock Raiders - Standard -best -reducesamples -reduceanimation -reducepromeshes -reduceflics -reduceimages

Note: Command line options for (autorun) are read from the AutorunParameters registry value.

CLGen additional options

The program CLGen.exe is used to change the set of additional command line arguments added when running any instance of LRR. The following choices are provided as a selection for the user's graphics card.

Item Additional Options
Default
Voodoo2 -ftm
Savage3D -fvf

Note: Command line options assigned with CLGen.exe are read from the StandardParameters registry value.


Programmer modes

Effects of various levels specified by the -programmer and -testercall options.

Numbers with will also be applied at higher levels. Numbers with = will only be applied at this level.

Level Name Description
0 Off The -showversion option will be properly displayed.
≥ 1 Basic Allows skipping intro videos and enables debug keys. Overrides the following Lego.cfg properties:
ShowDebugToolTips TRUE
AllowDebugKeys TRUE
AllowEditMode TRUE
≥ 2 Quick gameplay Disables certain non-NERPs failure conditions(?), and preserves game speed in eye view and shoulder view. Unlocks all levels in similar fashion to -testlevels.
≥ 3 No front end Disable Front End screens, menus, and intro videos. Overrides the following Lego.cfg properties:
DontPlayAvis TRUE
FrontEnd FALSE
≥ 4 No mission Disables mission start/end briefing, and prevents level failure.
≥ 5 No auto‑speed Landslides and other danger events will never reset the game speed. Functionally disables the following in-game options:
Automatic Game Speed: ON
10 Batch level testing Immediately ends a level once started, and performs proper memory cleanup on shutdown.
Full effect: Loads and tests all levels one after the other. Then performs a full shutdown with proper memory cleanup.
11 Forget on restart Clears object recall list when restarting a mission.

Insight: Programmer modes that disable the Front End are intended to be used with the debug key: L "Instantly exits to the level results screen.", which allows the debugger to quickly cycle to the desired level based on their order of appearance.

Experimental flags

Optional features that can be enabled with the -flags command line argument. Only one remaining flag exists in the release build.

Flag Name Description
32768 Block fade Bock textures will fade-transition into their new state when changed (except roof textures).
Only works as intended when used with the -ftm ("Force texture management") option, otherwise the change is immediate but delayed until the end of the transition time.

Tip: Because no other flags exist, it's easier to remember and specify -flags 99999 (which includes the above flag in the number).


See also

External links