Command Line Parameters

The installation directory of Clonk contains various executable program files. Usually programs are started with a double click or from a start menu without additional parameters. When starting programs from a command line shell or script file (batch file), additional command line parameters can be specified.

Clonk.exe (Windows) clonk (Linux) Clonk (Mac)

The engine. The main program of the game. Without startup parameters, the game starts in fullscreen (player mode) and shows the startup menu. The following command line parameters are recognized:
/console
Starts in console mode (also called developer mode or windowed mode). In console mode, scenarios can be edited and saved. The game will also start in console mode if a scenario (*.c4s) and no /fullscreen is specified.
/fullscreen
Starts in fullscreen mode (also called player mode). If no scenario and no direct join adress is given, the startup menu is shown.
/config:Filename
Loads and saves the configuration from the specified file instead of the default configuration file or the Windows registry.
/record
The round is recorded.
/network or /nonetwork
Activates or deactivates network mode.
/signup or /nosignup
Activates or deactivates online signup of the game as public internet game. This value is stored in the configuration.
/signup implies /network. /nosignup implies /noleague.
/league or /noleague
Activates or deactivates online signup of the game as league game. This value is stored in the configuration.
/league implies /network and /signup.
/runtimejoin or /noruntimejoin
Activates or deactivates runtime join. This setting will be stored in the configuration.
/regjoinonly
Prevents any unregistered client from joining games hosted on this computer (always active in dedicated server engines).
/faircrew or /trainedcrew
Activates or deactivates fair crew. With fair crew, all clonks start with the same physical properties. With trained crew, clonks start with their individually stored, trained physical value. This value is stored in the configuration.
/lobby[:time]
Activates the lobby before a network game is started. The lobby is the waiting- and chat screen. The lobby is on by default for all network games. Implies /network. If you specify a time (e.g. /lobby:120) the lobby will start with a countdown, automatically launching the game after (in this case) 120 seconds.
/observe
For network games: The client joins as observer (without players). Implies /network.
/join:<Address>
Searches for a network game on the specified address and joins it. No local scenario (*.c4s) should be specified. Implies /network.
clonk://<Address>/
Same as /join if an address is specified. If "update" is specified as an address, this will cause the engine to perform an update check instead.
/tcpport:<Port number>
Sets the TCP port number for client connections in network games. This setting will be stored in the configuration. If -1 is specified, TCP is disabled and all connections are created using UDP.
/udpport:<Port number>
Sets the UDP port number for client connections in network games. This setting will be stored in the configuration. If -1 is specified, UDP is disabled and all connections are created using TCP.
/pass:<Password>
For network hosts: sets the join password to the specified value. If <Password> is left empty, no password is set.
/comment:<comment>
For network hosts: sets the network game comment. This setting will be stored in the configuration.
/update
Performs an update check at program start.
/recdump:<File name>
Only for replay of recorded games: Before the replay is started, all replay data (player controls) are dumped into a file called <File name> in the Clonk folder. If the file name extension is .txt, the controls will be dumped in text mode, otherwise binary. The replay file must be specified seperately as a scenario file (e.g. Clonk.exe Records.c4f\Record001.c4s /recdump:CtrlRec.txt).
/startup:<Name>
Only for fullscreen startup menu: Instead of the main menu, one of the submenus is shown directly. Possible values for <Name> are main (Main menu), scen (Scenario selection), netscen (Scenario selection for a new network game), net (Network/Internet game list), options (Options menu) und plrsel (Player selection).
*.c4s
If a scenario is specified (File extension .c4s), it will be started directly.
*.c4d
If the started scenario does not specify any required definitions (File extension .c4d), and no definitions are supplied in the registry, definitions can be specified via command line.
*.c4p
Player files (File extension .c4p) can be specified in the command line. If no player files are given, the registry values are used. By specifying a non-existant player (like doesnotexist.c4p), the game can be started without players (e.g. in order to just edit landscapes in developer mode).
*.c4u
If the filename of an update package (extension .c4u) is passed to the engine, then the program will attempt to apply that update package to the local installation.

Editor.exe (Windows only)

The editor for accessing group files and developing of game extensions. The editor does not have any command line parameters.

c4group.exe (Windows) c4group (Linux) c4group (Mac)

This command line program is used for processing group files. A list of command line options is available by starting the program without parameters via command line (not by double clicking).
Sven2, Februar 2007