
OpenTTD is an open-source transport simulation game based on Transport Tycoon Deluxe. It is an enhanced version of the original game featuring significant enhancements, including ports to many operating systems, including Windows, OS X, and Linux. With drastically improved gameplay, OpenTTD has, since it's release, gained a cult following and many servers have been founded, allowing players from all over the world to play the game together.
A dedicated server starts and runs an OpenTTD network game, but does not have a local client that takes part. This article aims to show players how they can run their own dedicated OpenTTD server on Ubuntu 20.04.
First, to download the dependencies for OpenTTD, run:
To locate the current version of OpenTTD, go to this website; look for something similar to:
At the time of writing the latest stable version is 1.11.0.
Now download the .deb file from the official release page, use the latest stable release version that you found in the previous step insted of 1.11.0, just replace all instance of 1.11.0 with whatever your latest version is, e.g. 1.12.3:
This will download the release file, version 1.11.0 to the current working directory as the file openttd-1.11.0-linux-ubuntu-focal-amd64.deb.
To install this file, run the following command:
Graphics must be installed to be able to start an OpenTTD server. To do this, first, download them from the official OpenTTD binaries source:
Install unzip to decompress this file:
Now unzip this downloaded file:
Now decompress this tarball:
You can now move the graphics set to the server configuration folder. Use the following command:
Firstly, to run an application in the background, the GNU project screen can be used. To download and install screen, run:
To open a screen, type:
Press Enter. To confirm that screen is working, press Ctrl + A, then press V; you should see a bar at the bottom of the terminal that is similar to:
The server can now be started using the following command:
You should see the following text:
This means your server is working properly and generating the map fully, allowing the game to start.
To stop the server, press Ctrl + C. The settings of the server should be customised as seen fit. Some settings need to be changed though. To edit the config file, edit the openttd.cfg file as follows:
To allow users to connect to your server from other networks, locate the line that says:
and replace the 1 with a 0, so it looks like:
To change the name of the server on the server list to that which you wish to name your OpenTTD server, locate the line that says:
and change Unnamed Server as necessary.
If you want your server to be discoverable by anyone who plays OpenTTD, locate the line that says:
and replace the false with a true.
If you want the game to be paused when no players are online, you will want to edit the line that says:
and change the 0 to a 1.
The settings are highly customizable, so if you have specific requirements, you can find out about all of the config fields available here.
To start the server again, run:
To stop the server, press Ctrl + C.
To exit the shell with the server running in the background, press Ctrl + A and then D.
When you log back into the server shell, type the following to get back to the server process:
In conclusion, you should now have an OpenTTD dedicated server running in the background on your Vultr Ubuntu 20.04 VPS instance. You should be able to modify it as you please and allow players from all around the world to play on your server.
0 Comments
Be the first to comment and share your perspective with the community.