openttd
Run the OpenTTD transportation simulation game
TLDR
Start a new game
Load save game at start
Start with the specified window resolution
Start with a custom configuration file
Start with selected video, sound, and music drivers
Start a dedicated server, forked in the background
Join a server with a password
SYNOPSIS
openttd [options]
PARAMETERS
-d, --directory
Specify the directory where OpenTTD will look for data files (e.g., base graphics, sound effects, and game saves). If not specified, OpenTTD will search standard locations.
-f, --config-file
Specify the configuration file to use. The config file contains all the server configuration.
-g, --load-game
Load the specified savegame at server start. This allows the server to resume from a previously saved game state.
-n, --newgrf-md5-check
Enable or disable MD5 check of NewGRF files.
-p, --port
Specify the port the server should listen on for client connections. The default OpenTTD server port is usually 3979.
-u, --upnp
Enable or disable Universal Plug and Play (UPnP) support, allowing the server to automatically configure port forwarding on compatible routers.
-x, --max-clients
Set the maximum number of clients that can connect to the server simultaneously.
-w, --wait-on-connect
Wait for clients to connect to the server.
-h, --help
Display a help message listing available options and their usage.
-v, --version
Display the OpenTTD version number.
--console
Run the server with a console interface.
--no-network
Disable the network functionality, effectively running in single-player mode.
--dedicated
Run the game as a dedicated server, without a graphical user interface. This is the most common option.
DESCRIPTION
The openttd command starts an OpenTTD dedicated server. OpenTTD is an open-source simulation game based upon the Microprose game 'Transport Tycoon Deluxe'. The dedicated server allows multiple clients to connect and play in a shared world, even without a graphical interface.
This command allows fine-grained control over server behavior through command-line parameters and relies heavily on the openttd.cfg configuration file for comprehensive customization. Server administrators can use the available options to manage aspects such as the game port, number of clients, administrative settings, and savegame loading. The openttd command is essential for anyone wanting to host a persistent OpenTTD multiplayer game.
CAVEATS
The effective server settings will be the combination of those defined in the configuration file specified by -f and any overriding parameters provided directly to the openttd command.
Ensure the necessary data files (base graphics, sound effects, etc.) are located in the directory specified by -d or in a default location where OpenTTD can find them.
CONFIGURATION FILE
The openttd.cfg file is central to configuring the OpenTTD server. It allows customization of numerous server settings, including game rules, network parameters, administrative permissions, and more. The location is defined by the -f parameter. Refer to the OpenTTD documentation for a complete listing of configuration options.
SECURITY CONSIDERATIONS
When running an OpenTTD server, especially one accessible over the internet, take appropriate security measures. Limit access to administrative commands, use strong passwords (where applicable), and keep the OpenTTD software updated with the latest security patches. Configure your firewall to only allow necessary traffic to the OpenTTD server port.
HISTORY
OpenTTD began as an open-source recreation of the popular game 'Transport Tycoon Deluxe'. The openttd command is fundamental for operating OpenTTD as a dedicated server, allowing players to collaboratively build and manage transportation networks. Development has focused on expanding the game's features, improving its performance, and providing extensive configuration options for server administrators. The continued maintenance of the server command ensures smooth operation and a stable environment for the OpenTTD multiplayer community.
SEE ALSO
openttd(6)