OpenTTD | Dedicated server (2024)

  • en
  • cs
  • es
  • fr
  • pl
  • ru

Dedicated server window

A dedicated server is a OpenTTD network game Server that does not have a local client taking part in the game. A dedicated server can run in the background on a computer.

Contents

  • 1Starting a dedicated server
    • 1.1In Windows
    • 1.2In Linux
    • 1.3In OS/2
    • 1.4In Mac OS X
    • 1.5In Docker.io
  • 2Configuring the server
  • 3Controlling the server with rcon
  • 4Installing online content
  • 5Loading a game
  • 6Automatically start/stop and save your game
  • 7See also

Starting a dedicated server

Run the OpenTTD executable using the -D (capital D!) Command line option.

In Windows

Method 1:

  • Create a shortcut to openttd.exe
  • Right-click on the shortcut and click Properties
  • Add -D onto the end of the Target line
  • Click Apply
  • Run the shortcut

Method 2:

  • On the start menu click Run
  • Enter: "c:\(path to openttd)\openttd.exe" -D
  • Click OK

In Linux

  • Run openttd -D in a terminal. If you are connecting to the server via SSH and would like the game to run when you logout you should use GNU Screen or dtach.

You can also start openttd with -f option. It means that the process will run in the background, but no console will be available. All output will be sent to the file openttd.log. You can display the log with tail : tail -f openttd.log to follow events.

In OS/2

  • Run the dedicated.cmd file. If you run openttd -D, you will not see a console window and will be unable to provide commands to the program.

In Mac OS X

  • Open Terminal.
  • cd into the directory with OpenTTD
  • type cd OpenTTD.app/Contents/MacOS/
  • type ./openttd -D
  • OpenTTD should start up in Dedicated Server.

In Docker.io

Configuring the server

There are 3 ways to change the game options:

  • Launch a single player game, change the settings, and close the game.
  • Use the console commands to control the server while it is running.
  • Edit the Openttd.cfg file manually. See Diff custom for some help.

Available Tools:

Change the network settings in the Network section of Openttd.cfg:

  • Set Lan internet to 0.
  • Change Server name so you can identify the server,
  • Set Server advertise to true, so it will be visible on the Server list
  • If you have multiple network interfaces make sure you set Server bind ip.
  • If you are behind a router, make sure that you forward the port specified by Server port (both TCP and UDP)

Controlling the server with rcon

Configure the dedicated server to accept rcon commands:

  • In the dedicated server window, type rcon_pw <password>.

Example: rcon_pw x8na7f

Connect to the server as a client:

  • Launch OpenTTD normally.
  • Find your server on the multiplayer list and connect to it.
  • Open the console (~ key).
  • Type rcon <password> "<command>".

Example: rcon x8na7f "kick 5"

Installing online content

If you want to install content using the in-game content download facility, you can do that from the console in your dedicated server. The benefit of using this compared to copying the files manually to your server is that it will automatically get all dependencies that the content author has declared when uploading it to the content system.

  • First, you need to load the list of available content from the content server:
content update

Wait until "Content server connection closed" is printed in the console.

  • List all available content
content state

A list of available content is now printed. Find the content you like to download and read its ID which is written in the beginning of the line. Eg. 2947 for Simple City Builder.

  • Next, select the content to download using its id:
content select 2947
  • You can add more content by repeating the content select command.
  • Then download all selected content:
content download

Hint: If you use nightly r26000+ or stable 1.4+, you can type content state city to only list content that contain the word 'city' in their name.

Loading a game

In the dedicated server window (or with rcon):

  • Type ls to list the files of the current directory, a number will be beside each one, which represents <number> below.
  • Type cd <number> to go to that directory.
  • Type load <number> to load that file.
  • You can also load savegames and scenarios with the -g "<filename>", command line option.

Example: openttd.exe -D -g "scenario/echo.scn".

Automatically start/stop and save your game

If you do not want to run docker: Run your dedicated server in ubuntu/debian you can download and install a init.d scriptYou will get the following functions:

  • Automatically startup when your server box bootup
  • Automatically shutdown when you server box is shutdown
  • Automatically saving your game at a defined interval

For more functions, install guide and download, visit: https://bitbucket.org/frodus/openttd-init

With a ready-made docker container you get a tested and working environment for openttd.In ubuntu 14.04 or newer you can run: sudo apt-get install docker.io and then read documentation on the following urlhttps://registry.hub.docker.com/r/bateau/openttd/Mind that this is a pre-configured virtual machine and packaging is done by 3rd party.

See also

  • Autoclean companies in order to specify what happens when a player logs off during a game and a company becomes inactive
  • A short intro on Firewalls for Dedicated Servers [1]

Categories:

  • Multiplayer
  • Tutorial

Folder: Manual

OpenTTD | Dedicated server (2024)
Top Articles
S&P (SPX) today: The index is up 15.41% YTD
Comprehensive guide to the average stock market return over the past 10 years
Hk Jockey Club Result
Reports of romance scams hit record highs in 2021
Seth Juszkiewicz Obituary
iPad 10 vs. iPad Air Buyer's Guide: Is the $250 Difference Worth It?
Lsn Nashville Tn
Uptown Cheapskate Fort Lauderdale
Lebron Vs Pacers Stats
Generalausschreibung - The Race Days Stuttgart
Domino Near
All classes in Pathfinder: Wrath of the Righteous
Wasmo Link Telegram
Black Ballerina Michaela Mabinty DePrince morreu aos 29 anos
Meet Scores Online 2022
Craigslist Boats Rochester
Pheasant Chicks Tractor Supply
Craigs List Duluth Mn
Swissport Timecard
Tina's Nails Stanwood
Elmira Star Gazette Obit
برادران گریمزبی دیجی موویز
Lee Lucas Jaliyah Dad
Jasper Jones County Trade
Samantha Lyne Wikipedia
Showcameips
100000 Divided By 3
What is a W-8BEN Form and Why Does It Matter?
Hondros Student Portal
O'reilly's Los Banos
Lily Spa Roanoke Rapids Reviews
Hose Woe Crossword Clue
Unblocked Games 66E
Dr Ayad Alsaadi
Sa 0 Spn 2659 Fmi 18
Need flooring installation? Carpet Hardwood floor Vinyl plank Laminate - skilled trade services - craigslist
Bullmastiff vs English Mastiff: How Are They Different?
Orylieys
How To Get Rope In Muck
Dr Roger Rosenstock Delray Beach
Associate Resources Aces-How To Create An Account And How Its Features Work
How to paint a brick fireplace (the right way)
Saw X Showtimes Near Stone Theatres Sun Valley 14 Cinemas
Minute Clinic Schedule 360
Directions To Pnc Near Me
Crandon Skyward
What Does Wmt Contactless Mean
Craigslist Sf Jobs Food And Beverage
[US/EU] ARENA 2v2 DF S4 Rating Boost 0-1800 / Piloted/Selfplay / ... | ID 217616976 | PlayerAuctions
Vimeo Downloader - Download Vimeo Videos Online - VEED.IO
O2 Fitness West Ashley Photos
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 6286

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.