Translating

If you would like to translate the game, please contact our translations manager. He will give you an account to our Web Translator and he will create everything needed in case you want to start with a translation of a yet untranslated language.

For errors in the translation you should also contact our translations manager.

What to do When You Find a Bug

When you think you found a bug in OpenTTD you should:

  • Make sure you are running a recent version, i.e. run the latest stable, testing or nightly based on where you found the bug.
  • Make sure you are not running a non-official binary, like a patch pack. If you are playing with a patch pack you should report any bugs to the forum thread related to that patch pack.
  • Make it reproducable for the developers. In other words, create a savegame in which you can reproduce the issue once loaded. For Windows users it is very useful to give us the crash.dmp and crash.log which are created on crashes.
  • Check whether the bug is already reported on our bug tracker. This includes searching for recently closed bug reports as the bug might already be fixed.
  • When you are certain it is an unknown bug you should make a bug report at our bug tracker. The bug report must contain a savegame, preferably crash.sav and the last (automatically) saved savegame. It must also contain crash.log and crash.png (if they were created). For crashes on Windows must attach the crash.dmp files too. For bugs in nightlies you must also specify the revision of the nightly.

Obtaining The Source Code

For OpenTTD we use the subversion (svn) version control system. OpenTTD's source code repository using subversion is accessible by anyone on the following URLs:

You can also browse the repository online. The documentation of the source is created by DoxyGen.

To download the source code you need a subversion client. The default client is called subversion and is available for almost all platforms; lots of them can be installed via their package manager. For Windows there is TortoiseSVN, a client that is easier to use for unexperienced subversion users. For more information about subversion we redirect you to the Subversion book, especially Chapter 2: Basic Usage.

To help people who want to manage their own patches we also provide a git and Mercurial (hg) repository of the svn repository. These can be found at respectively:

Compiling

OpenTTD depends on a few libraries. You need to install their development package to be able to compile OpenTTD. These libraries are:

  • zlib for compression of the savegames since 0.3.0 and decompressing content downloads.
  • lzo2 for loading old (before 0.3.0) savegames.
  • libpng for making screenshots and loading heightmaps.
  • freetype2 for loading fonts with support for UTF-8.
  • fontconfig to find those fonts (not needed on Windows).
  • sdl to be able to draw on the screen (not needed on Windows and Mac OS X).
  • icu to be able to render bi-directional text (Arabic, Hebrew, etc.)

For further instructions to properly set up your compiling environment you have to take a look at our wiki page about compiling environments.