This guide covers admin commands, RCON access, company management, and NewGRF mods for your OpenTTD server. For initial setup, see OpenTTD Server Setup Guide.
1. RCON Access
Remote console (RCON) lets you run admin commands without joining the game. First, set an rcon_password in openttd.cfg under the [network] section via SFTP.
To use RCON from within the game, open the console (~ key) and type:
rcon_password your_password
rcon your_command
2. Console Commands
These commands can be run from the GPanel console or via RCON in-game:
| Command | Description |
|---|---|
kick <client_id> |
Kick a player by their client ID. |
ban <client_id> |
Ban a player by client ID. |
unban <index> |
Unban a player by ban list index. |
banlist |
List all banned players. |
clients |
List all connected clients with IDs. |
companies |
List all active companies. |
move <client_id> <company_id> |
Move a client to a different company (use 255 for spectator). |
reset_company <company_id> |
Delete a company and all its assets. |
say "<message>" |
Broadcast a message to all players. |
pause |
Pause the game. |
unpause |
Unpause the game. |
save <name> |
Save the game to the specified filename. |
load <name> |
Load a save file. |
newgame |
Start a new random game with current settings. |
restart |
Restart the current game from the beginning. |
setting <name> [<value>] |
View or change a game setting. |
quit |
Shut down the server. |
3. Auto-Clean Companies
Configure automatic cleanup of inactive companies in openttd.cfg:
| Setting | Default | Description |
|---|---|---|
autoclean_companies |
false | Enable automatic cleanup of inactive companies. |
autoclean_unprotected |
12 | Months before an unprotected company is removed. |
autoclean_protected |
36 | Months before a password-protected company is removed. |
autoclean_novehicles |
0 | Months before a company with no vehicles is removed (0 = disabled). |
4. Adding NewGRF Mods
NewGRFs add custom content (vehicles, industries, scenery) to OpenTTD:
- Download NewGRF files (
.grf) from BaNaNaS or other sources. - Upload them to the
newgrf/directory on your server via SFTP. - Add entries to the
[newgrf]section ofopenttd.cfg. - Restart the server.
5. Troubleshooting
- Server not in server list: Ensure
srv_advertiseistruein the Startup tab. - RCON not working: Verify
rcon_passwordis set inopenttd.cfgand you authenticated correctly. - Players disconnecting on join: Map downloads may be timing out. Reduce map size or increase
max_download_timeinopenttd.cfg. - NewGRF mismatch: Ensure players have the exact same NewGRFs and versions as the server.
Related Articles
Need Help?
If you need further assistance, open a support ticket with your server IP and any error messages from the GPanel console.