
You can do this by running docker ps -a and you should see an bateau/openttd image in the results. Secondly, verify that the docker container is actually running on the server. Firstly, make sure you can ping the server via its public IP. If you can’t connect to your OpenTTD server here are a few basic steps you can try. Now create the instance and sit back and wait for the magic to happen 🧙♂️Īdd the server IP via the in-game browser and you should be able to join! Troubleshooting docker run -name openttd -d \Īnd paste it into the start-up script section for the VM. mkdir -p $OPENTTD_DIR gsutil cp -r "gs:// $OPENTTD_BUCKET_NAME /openttd" $OPENTTD_DIR chown openttd:openttd -R $OPENTTD_DIR # Finally run the container.
#OPENTTD ECS DOWNLOAD#
Ufw allow 3979 OPENTTD_DIR = "/etc/openttd" # Download the openttd config file and GRFs. OPENTTD_GROUP_ID = `id -g openttd ` OPENTTD_USER_ID = `id -u openttd ` # Add firewall exceptions.
#OPENTTD ECS INSTALL#
Stable" # Install docker apt-get update -yĪpt-get install docker-ce docker-ce-cli -y # Next steps copy pasted from: # Add Docker’s official GPG key curl -fsSL | apt-key add.

OPENTTD_BUCKET_NAME = "bucketname" # Install some prerequisites. If then echo "Please run as root" exit fi # Use the same bucket name from earlier in the guide here. Then copy the following bash script after changing the OPENTTD_BUCKET_NAME in the script to the same name as the bucket you created earlier in this guide. Firstly, make sure to use a Ubuntu image and then assign a public IP to your instance to ensure that it is reachable over the public internet. Now it’s time to create a new VM instance but there are a few settings that need to be configured. Create a firewall rule that allows TCP and UDP on your desired OpenTTD port – by default this is port 3979. We need to add a firewall rule to the VPC network the server will be running in to allow the OpenTTD traffic through. Remember to edit the openttd.cfg file to your desired settings before uploading as this is the configuration your server will be using.Īfter the upload has finished the folder in your bucket should look like the following. Storageįirstly create a new Storage bucket for your OpenTTD files then upload the openttd.cfg file and content_download folder from the C:\Users\\Documents\OpenTTD folder to a openttd folder in the bucket.
#OPENTTD ECS FREE#
We will be running OpenTTD on the free F1-micro instance but first we have a few things to setup. Once you are happy with your custom GRFs (making sure that they are compatible with each other!) it’s time fire up the command prompt and run OpenTTD as a local server using the following command: I found the easiest way to get the graphics files setup was to do it in game via the New GRF settings
.png)
