Difference between revisions of "OpenTTD"

From ArchWiki
Jump to: navigation, search
(simplification and beautification of wikilinks (interactive))
(Tag: wiki-scripts)
 
(13 intermediate revisions by 10 users not shown)
Line 1: Line 1:
==Introduction==
+
[[Category:Gaming]]
OpenTTD is a tile-based transportation management game based on [[Wikipedia:Transport Tycoon Deluxe|Transport Tycoon Deluxe]].
+
[[ja:OpenTTD]]
The game is in the community repository.
+
OpenTTD is a free re-implementation of the popular DOS game [[Wikipedia:Transport Tycoon Deluxe|Transport Tycoon Deluxe]]. You are a transport company owner, and you must manage it over the years in order to make profit.
  
 
==Installation==
 
==Installation==
{{note|As of OpenTTD 1.0.0b1 (24 December 2009) opensource graphics and sound data sets have been released to make OpenTTD fully opensource.}}
+
[[Install]] the {{Pkg|openttd}} package from the [[community]] repository.
  
Install the game binaries:
+
If you do not own the original game, {{Pkg|openttd-opengfx}} and {{Pkg|openttd-opensfx}} contains the free graphics & sounds.
pacman -S openttd
 
  
Install the opensource graphics and sound data:
+
The free music pack, [https://wiki.openttd.org/OpenMSX OpenMSX], can be downloaded from [https://wiki.openttd.org/Online_content the online content downloader provided with the game].
pacman -S openttd-opensfx openttd-opengfx
 
  
 
===Original Transport Tycoon Deluxe data (optional)===
 
===Original Transport Tycoon Deluxe data (optional)===
OpenTTD can utilize the non-free graphics and sound data of the original Windows/DOS version of Transport Tycoon Deluxe.
+
OpenTTD can use the non-free graphics and sound data of the original Windows/DOS version of Transport Tycoon Deluxe.
  
====Where to get the data====
+
{{Note|While you can dump the files from either the DOS or the Windows version of the game, only the Windows version provides the original music.}}
If you wish to play OpenTTD with the non-free TTD base graphics and sounds, you will need several files from either the Windows/DOS version of Transport Tycoon Deluxe.
 
  
 
You can get these files from the game CD-ROM, from an existing install or you get them from the freely available game installation archive available at [http://www.abandonia.com/en/games/240 Abandonia].
 
You can get these files from the game CD-ROM, from an existing install or you get them from the freely available game installation archive available at [http://www.abandonia.com/en/games/240 Abandonia].
  
====Graphics and sound effects====
+
To use the original graphics & sound effects, copy the following files to {{ic|/usr/share/openttd/data/}} or {{ic|~/.openttd/baseset}} :
Copy the following files to /usr/share/openttd/data/
 
* trg1r.grf or TRG1.GRF
 
* trgcr.grf or TRGC.GRF
 
* trghr.grf or TRGH.GRF
 
* trgir.grf or TRGI.GRF
 
* trgtr.grf or TRGT.GRF
 
* sample.cat
 
  
====Music====
+
* Windows : trg1r.grf, trgcr.grf, trghr.grf, trgir.grf, trgtr.grf
If you wish to listen to the original music (Windows version only),
+
* DOS : TRG1.GRF, TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF
Copy the files from the gm folder of the original TTD game directory to:
+
* sample.cat from either version
/usr/share/openttd/gm/
+
 
 +
For the original soundtrack, copy the files from the gm folder of the original TTD game directory to {{ic|~/.openttd/gm}}.
 +
 
 +
==Tutorial==
 +
The game can be quite confusing at first.  A good tutorial is available on the wiki [http://wiki.openttd.org/Tutorial here].
 +
 
 +
For an in-game tutorial, a game script has been implemented.  Just download 'Beginner Tutorial' with the in-game download manager and load the 'Beginner Tutorial' scenario.
  
{{note|If your sound driver does not support MIDI natively, you will need to install [[timidity]].}}
 
 
==Configuration==
 
==Configuration==
Todo
+
The OpenTTD main configuration file is located at {{ic|~/.openttd/openttd.cfg}} and is automatically created upon first startup.
 +
 
 +
Various settings in the configuration file can be edited with buttons on the main menu.  Each button is explained below.
 +
 
 +
===Game Options===
 +
This window allows you to set options which will be used by default at the start of a new game.
 +
 
 +
{{note|Settings will not be updated for games which have already been started.  The options can still be changed in-game.}}
 +
 
 +
You can also set the default graphics, sound, and music here.
 +
 
 +
===Difficulty===
 +
This window allows you to change the difficulty of the game, and specific options about them.  You can either use the difficulty presets by selecting the difficulty buttons at the top of the window, or set custom options.
 +
 
 +
More information can be found [http://wiki.openttd.org/Difficulty here].
 +
 
 +
===Advanced Settings===
 +
In this window, nearly all the other settings in the configuration file can be modified.  All the options are grouped in expandable sections.  You can also search for the setting to be changed using the search utility.
 +
 
 +
Details about these settings can be found [http://wiki.openttd.org/Advanced_Settings here].
 +
 
 +
===AI/Game Script Settings===
 +
This window allows you to customize various options relating to artificial intelligence (bots or CPU players) and Game Scripts.
 +
 
 +
Game Scripts are a goal-based scripts which can perform many in-game actions to enhance or extend the game.
 +
 
 +
Detailed information about this window can be found [http://wiki.openttd.org/AI_settings here].
 +
 
 +
==Tips and tricks==
 +
 
 +
===Heightmaps===
 +
 
 +
OpenTTD allows using a grayscale image as a [https://wiki.openttd.org/Heightmap heightmap] for landscape generation. There's an excellent heightmap generator available at [http://terrain.party/ terrain.party], based on real Earth terrain. You may further use {{Pkg|gimp}} for fine-tuning the heightmap, especially useful are the Levels and Gaussian Blur tools.
 +
 
 +
===Cheats===
 +
A cheat menu can be shown in a local game by pressing Ctrl-Alt-C.
 +
 
 +
Detailed information about cheats are available [https://secure.openttd.org/wiki/Cheats here].
 +
 
 
==Troubleshooting==
 
==Troubleshooting==
Todo
+
===Music is not playing===
==Tips and tricks==
+
The soundtrack of the game is made of [[MIDI]] files. Therefore, you need a [[MIDI#Software|MIDI synthesizer]] to play them.
Todo
+
 
==More resources==
+
The game will automatically try to use [[Timidity|TiMidity++]] with no additional arguments. If for some reason you need/want to use another synthesizer, OpenTTD provides the "extmidi" music driver, which allows you to configure a command to be ran to play music.
 +
 
 +
{{warning|When using the extmidi driver, the in-game volume control sliders are disabled and cannot be used to change the volume.}}
 +
{{warning|If the command you want to run is not included in {{ic|$PATH}}, you must specify the absolute path.}}
 +
 
 +
Edit your openttd.cfg to configure extmidi :
 +
{{hc|1=~/.openttd/openttd.cfg|2=
 +
[misc]
 +
musicdriver = "extmidi:cmd=<command>"}}
 +
 
 +
{{note|You can also configure extmidi when starting up the game : {{ic|1=openttd -m extmidi:cmd=<command>}}}}
 +
 
 +
 
 +
However, extmidi does not allow additionnal arguments in the command. The solution is to use a wrapper script (for example, {{ic|~/.openttd/playmidi}}) :
 +
 
 +
#!/bin/bash
 +
 +
#here, we want to use the [[FluidSynth]] synthesizer with the soundfont
 +
#provided in {{Pkg|soundfont-fluid}} and [[PulseAudio]]
 +
 +
trap "pkill fluidsynth" EXIT
 +
fluidsynth -a pulseaudio -i /usr/share/soundfonts/FluidR3_GM2-2.sf2 $*
 +
 
 +
Mark it as executable :
 +
 
 +
$ chmod 755 ~/.openttd/playmidi
 +
 
 +
Then you can specify the full path to the script as the command to be used with extmidi :
 +
{{hc|1=~/.openttd/openttd.cfg|2=
 +
[misc]
 +
musicdriver = "extmidi:cmd=/home/<user>/openttd/playmidi"}}
 +
 
 +
==See also==
 
* [http://www.openttd.org OpenTTD]
 
* [http://www.openttd.org OpenTTD]
 
+
* [http://wiki.openttd.org/Main_Page OpenTTD Wiki]
[[Category:Gaming]]
 

Latest revision as of 21:35, 5 April 2017

OpenTTD is a free re-implementation of the popular DOS game Transport Tycoon Deluxe. You are a transport company owner, and you must manage it over the years in order to make profit.

Installation

Install the openttd package from the community repository.

If you do not own the original game, openttd-opengfx and openttd-opensfx contains the free graphics & sounds.

The free music pack, OpenMSX, can be downloaded from the online content downloader provided with the game.

Original Transport Tycoon Deluxe data (optional)

OpenTTD can use the non-free graphics and sound data of the original Windows/DOS version of Transport Tycoon Deluxe.

Note: While you can dump the files from either the DOS or the Windows version of the game, only the Windows version provides the original music.

You can get these files from the game CD-ROM, from an existing install or you get them from the freely available game installation archive available at Abandonia.

To use the original graphics & sound effects, copy the following files to /usr/share/openttd/data/ or ~/.openttd/baseset :

  • Windows : trg1r.grf, trgcr.grf, trghr.grf, trgir.grf, trgtr.grf
  • DOS : TRG1.GRF, TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF
  • sample.cat from either version

For the original soundtrack, copy the files from the gm folder of the original TTD game directory to ~/.openttd/gm.

Tutorial

The game can be quite confusing at first. A good tutorial is available on the wiki here.

For an in-game tutorial, a game script has been implemented. Just download 'Beginner Tutorial' with the in-game download manager and load the 'Beginner Tutorial' scenario.

Configuration

The OpenTTD main configuration file is located at ~/.openttd/openttd.cfg and is automatically created upon first startup.

Various settings in the configuration file can be edited with buttons on the main menu. Each button is explained below.

Game Options

This window allows you to set options which will be used by default at the start of a new game.

Note: Settings will not be updated for games which have already been started. The options can still be changed in-game.

You can also set the default graphics, sound, and music here.

Difficulty

This window allows you to change the difficulty of the game, and specific options about them. You can either use the difficulty presets by selecting the difficulty buttons at the top of the window, or set custom options.

More information can be found here.

Advanced Settings

In this window, nearly all the other settings in the configuration file can be modified. All the options are grouped in expandable sections. You can also search for the setting to be changed using the search utility.

Details about these settings can be found here.

AI/Game Script Settings

This window allows you to customize various options relating to artificial intelligence (bots or CPU players) and Game Scripts.

Game Scripts are a goal-based scripts which can perform many in-game actions to enhance or extend the game.

Detailed information about this window can be found here.

Tips and tricks

Heightmaps

OpenTTD allows using a grayscale image as a heightmap for landscape generation. There's an excellent heightmap generator available at terrain.party, based on real Earth terrain. You may further use gimp for fine-tuning the heightmap, especially useful are the Levels and Gaussian Blur tools.

Cheats

A cheat menu can be shown in a local game by pressing Ctrl-Alt-C.

Detailed information about cheats are available here.

Troubleshooting

Music is not playing

The soundtrack of the game is made of MIDI files. Therefore, you need a MIDI synthesizer to play them.

The game will automatically try to use TiMidity++ with no additional arguments. If for some reason you need/want to use another synthesizer, OpenTTD provides the "extmidi" music driver, which allows you to configure a command to be ran to play music.

Warning: When using the extmidi driver, the in-game volume control sliders are disabled and cannot be used to change the volume.
Warning: If the command you want to run is not included in $PATH, you must specify the absolute path.

Edit your openttd.cfg to configure extmidi :

~/.openttd/openttd.cfg
[misc]
musicdriver = "extmidi:cmd=<command>"
Note: You can also configure extmidi when starting up the game : openttd -m extmidi:cmd=<command>


However, extmidi does not allow additionnal arguments in the command. The solution is to use a wrapper script (for example, ~/.openttd/playmidi) :

#!/bin/bash

#here, we want to use the FluidSynth synthesizer with the soundfont
#provided in soundfont-fluid and PulseAudio

trap "pkill fluidsynth" EXIT
fluidsynth -a pulseaudio -i /usr/share/soundfonts/FluidR3_GM2-2.sf2 $*

Mark it as executable :

$ chmod 755 ~/.openttd/playmidi

Then you can specify the full path to the script as the command to be used with extmidi :

~/.openttd/openttd.cfg
[misc]
musicdriver = "extmidi:cmd=/home/<user>/openttd/playmidi"

See also