OpenTTD directory structure (2024)

OpenTTD uses its own directory to store its required 3rd party base set files(see section 4.1 ‘Required 3rd party files’) and non-compulsory extension andconfiguration files.

See below for their proper place within this OpenTTD main data directory.

The main OpenTTD directories can be found in various locations, depending onyour operating system:

  1. The current working directory (from where you started OpenTTD)

    For non-Windows operating systems OpenTTD will not scan for files in this directory if it is your personal directory, i.e. ‘~/’, or when it is the root directory, i.e. ‘/’.

  2. Your personal directory
    • Windows:
      • C:\My Documents\OpenTTD (95, 98, ME)
      • C:\Documents and Settings\<username>\My Documents\OpenTTD (2000, XP)
      • C:\Users\<username>\Documents\OpenTTD (7, 8.1, 10, 11)
    • macOS: ~/Documents/OpenTTD
    • Linux: $XDG_DATA_HOME/openttd which is usually ~/.local/share/openttd when built with XDG base directory support, otherwise ~/.openttd
  3. The shared directory
    • Windows:
      • C:\Documents and Settings\All Users\Shared Documents\OpenTTD (2000, XP)
      • C:\Users\Public\Documents\OpenTTD (7, 8.1, 10, 11)
    • macOS: /Library/Application Support/OpenTTD
    • Linux: not available
  4. The binary directory (where the OpenTTD executable is)
    • Windows: C:\Program Files\OpenTTD
    • Linux: /usr/games
  5. The installation directory (Linux only)
    • Linux: /usr/share/games/openttd
  6. The application bundle (macOS only)

    It includes the OpenTTD files (grf+lng) and it will work as long as they are not touched

Different types of data or extensions go into different subdirectories of thechosen main OpenTTD directory:

data type directory additional info
Config File (no subdirectory)
Screenshots screenshot
Base Graphics baseset (or a subdirectory thereof)
Sound Sets baseset (or a subdirectory thereof)
NewGRFs newgrf (or a subdirectory thereof)
32bpp Sets newgrf (or a subdirectory thereof)
Music Sets baseset (or a subdirectory thereof)
AIs ai (or a subdirectory thereof)
AI Libraries ai/library (or a subdirectory thereof)
Game Scripts (GS) game (or a subdirectory thereof)
GS Libraries game/library (or a subdirectory thereof)
Savegames save
Automatic Savegames save/autosave
Scenarios scenario

The (automatically created) directory content_download is for OpenTTD’s internaluse and no files should be added to it or its subdirectories manually.

Notes:

  • Linux in the previous list means .deb, but most paths should be similar for others.
  • The previous search order is also used for NewGRFs and openttd.cfg.
  • If openttd.cfg is not found, then it will be created using the 2, 4, 1, 3, 5 order. When built with XDG base directory support, openttd.cfg will be created in $XDG_CONFIG_HOME/openttd which is usually ~/.config/openttd.
  • Savegames will be relative to the config file only if there is no save/ directory in paths with higher priority than the config file path, but autosaves and screenshots will always be relative to the config file. Unless the configuration file is in $XDG_CONFIG_HOME/openttd, then all other files will be saved under $XDG_DATA_HOME/openttd.

The preferred setup:

Place 3rd party files in shared directory (or in personal directory if you donot have write access on shared directory) and have your openttd.cfg configfile in personal directory (where the game will then also place savegames andscreenshots).

You can install OpenTTD on external media so you can take it with you, i.e.using a USB key, or a USB HDD, etc.Create a directory where you shall store the game in (i.e. OpenTTD/).Copy the binary (OpenTTD.exe, OpenTTD.app, openttd, etc), baseset/ and youropenttd.cfg to this directory.You can copy binaries for any operating system into this directory, which willallow you to play the game on nearly any computer you can attach the externalmedia to.As always - additional grf files are stored in the newgrf/ dir (for details,again, see section 4.1).

Files in tar (archives)

OpenTTD can read files that are in an uncompressed tar (archive), whichmakes it easy to bundle files belonging to the same script, NewGRF or baseset. Music sets are the only exception as they cannot be stored in a tarfile due to being played by external applications.

OpenTTD sees each tar archive as the ‘root’ of its search path. This means thathaving a file with the same path in two different tar files means that onecannot be opened, after all only one file will be found first. As such it isadvisable to put an uniquely named folder in the root of the tar and put all thecontent in that folder. For example, all downloaded content has a path thatconcatenates the name of the content and the version, which makes the pathunique. For custom tar files it is advised to do this as well.

The normal files are also referred to by their relative path from the searchdirectory, this means that also normal files could hide files in a tar aslong as the relative path from the search path of the normal file is thesame as the path in the tar file. Again it is advised to have an unique pathto the normal file so they do not collide with the files from other tarfiles.

Configuration file

The configuration file for OpenTTD (openttd.cfg) is in a simple Windows-like.INI format. It is mostly undocumented. Almost all settings can be changedingame by using the ‘Advanced Settings’ window.

When you cannot find openttd.cfg you should look in the directories asdescribed in this document. If you do not have an openttd.cfg OpenTTD willcreate one after closing.

This site is open source. Improve this page.

OpenTTD directory structure (2024)
Top Articles
Lindt Lindor Tv Commercial ʼtake A Momentʼ On Screen Actress | Repeat Replay
Arnold Oatnut Bread Commercial Actress – J Station X
Oklahoma Dam Generation Schedule
Conan Foal
How To Pay My Big Lots Credit Card
Wyze Thermostat vs Nest: Detailed Comparison
Two men arrested following racially motivated attack on Sanford teen's car
Henry Ford Hospital: Ein Meisterwerk von Frida Kahlo
Cvs Tb Testing Cost
Who has the best money market rate right now?
Bailu Game8
What Does Fox Stand For In Fox News
Nccer Log In
Nsu Occupational Therapy Prerequisites
Nancy Pazelt Obituary
Cbs Local News Sacramento
Chlamydia - Chlamydia - MSD Manual Profi-Ausgabe
M3Gan Showtimes Near Regal City North
Power Supplemental Payment 2022 Round 4
Kamala Harris, Donald Trump debate prompts major endorsem*nt, Fox News invitation for a 2nd face-off
Thermal Pants Mens Walmart
The Tragic Death Of Nikki Catsouras: The Story Behind The Viral Photos
10-Day Weather Forecast for New Jersey - The Weather Channel | weather.com
Craiglist Galveston
Premium Car Rental in Vancouver
Pella Culver's Flavor Of The Day
Goodwill Winter Springs 434
In Branch Chase Atm Near Me
Owyhee County Extension Office
Subway And Gas Station Near Me
Holt French 2 Answers
Keanu Reeves cements his place in action genre with ‘John Wick: Chapter 4’
Power Outage Map National Grid
Myhr North Memorial
Missing 2023 Showtimes Near Golden Ticket Cinemas Dubois 5
MyChart | University Hospitals
Savannah Schultz Leaked
Crazy 8S Cool Math
"Lebst du noch?" Roma organisieren Hilfe für die Ukraine – DW – 05.03.2022
Omari Lateef Mccree
Www.craiglist.com San Antonio
Filmy4 Web Xyz.com
‘Covfefe’ tells you all you need to know about Trump | CNN Politics
City Of Irving Tx Jail In-Custody List
Oriellys Bad Axe
Booknet.com Contract Marriage 2
Amariah Morales Snapchat
Yoshidakins
Ups Customer Center Locations
Embu village mines precious coltan for years 'without knowing its value’
New Application Instructions · Government Portal
Items For Sale in Le Mars, IA
Latest Posts
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 6288

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.