This guide covers how to set up and configure your OpenTTD dedicated server hosted with Legion Hosting. OpenTTD is an open-source transport simulation game based on Transport Tycoon Deluxe, supporting multiplayer with up to 15 companies. For admin commands and server management, see OpenTTD Server Admin Guide.
1. Accessing Your Server
- Log in to GPanel.
- Select your OpenTTD server from the server list.
- Your server IP and port are displayed on the Console tab. See How to Find Your Server IP and Port for details.
2. Startup Variables
Configure these settings from the Startup tab in GPanel:
| Variable | Env Name | Default | Description |
|---|---|---|---|
| Server Name | srv_name |
OpenTTD Server | Name shown in the server list (max 20 characters). |
| Show in Masterlist | srv_advertise |
true | Set to false to hide from the public server list. |
3. Configuration File
The main configuration file is openttd.cfg in the root server directory. The panel automatically sets the server port, name, and advertising options. Key sections you can customize via SFTP:
| Section / Key | Description |
|---|---|
[network] server_password |
Password to join the server. Leave blank for public access. |
[network] rcon_password |
Password for remote console access. |
[network] admin_password |
Password for the admin port (port 3977). |
[network] max_clients |
Maximum connected clients (default: 25). |
[network] max_companies |
Maximum companies (default: 15). |
[network] max_spectators |
Maximum spectators (default: 15). |
[network] pause_on_join |
Pause the game while a new player downloads the map (default: true). |
[network] autoclean_companies |
Automatically clean up inactive companies (default: false). |
[difficulty] max_no_competitors |
Maximum AI competitors (default: 0). |
[game_creation] starting_year |
Year the game begins (default: 1950). |
[game_creation] map_x / map_y |
Map size as power of 2 (default: 8, meaning 256x256). |
[gui] autosave |
Autosave frequency: off, monthly, quarterly, half-yearly, yearly. |
openttd.cfg, restart the server for changes to take effect. The panel will overwrite the server_port, server_name, and server_advertise values on each start.
4. Connecting to Your Server
- Download OpenTTD from openttd.org (free).
- Launch OpenTTD and click Multiplayer.
- Find your server in the list, or click Add Server and enter your IP:Port.
- Click Join Game and create or join a company.
5. First-Time Setup Checklist
- Set a
srv_namefor your server in the Startup tab. - Edit
openttd.cfgto set anrcon_passwordfor remote administration. - Configure map size, starting year, and difficulty as desired.
- Start the server and verify it shows
Map generated, starting gamein the console.
Related Articles
Need Help?
If you run into issues with your OpenTTD server, open a support ticket and include your server IP, a description of the problem, and any error messages from the GPanel console.