OpenTTD is a computer game that simulates transportation networks. In OpenTTD, the player is put in charge of a small transportation company and the player must earn money by transporting passengers and goods from one place to an other.
Use the steps below to install OpenTTD 0.6.2 for Solaris 10.
OpenTTD requires SDL library for displaying graphics.
Get SDL source package
wget http://www.libsdl.org/release/SDL-1.2.13.tar.gz
Unpack
gunzip -c SDL-1.2.13.tar.gz | tar xf - cd SDL-1.2.13/
Configure
./configure --disable-shared --prefix=/tmp/build
Compile and Install
time gmake install PKG_CONFIG_PATH=/tmp/build/lib/pkgconfig PATH=/tmp/build/bin:$PATH export PKG_CONFIG_PATH cd ..
Get OpenTTD source package
wget http://downloads.sourceforge.net/openttd/openttd-0.6.2-source.tar.bz2
Unpack
umask 022 bunzip2 -c openttd-0.6.2-source.tar.bz2 | tar xf - cd openttd-0.6.2
Configure
bash ./configure --prefix-dir=/opt/openttd-0.6.2 --without-makedepend \
--binary-dir=bin --data-dir=.
Compile (~5 min)
time gmake LDFLAGS="-lX11 -lXext -lsocket -lnsl"
Login as root, cd to the package directory and install program files
umask 022 mkdir /opt/openttd-0.6.2 ( cd /opt/openttd-0.6.2; mkdir bin data lang scenario ) cp bin/openttd /opt/openttd-0.6.2/bin/ cp bin/lang/*.lng /opt/openttd-0.6.2/lang/ cp bin/data/* /opt/openttd-0.6.2/data/
OpenTTD is based on Transport Tycoon Deluxe by Chris Sawyer and the original Transport Tycoon Deluxe data files are needed to play OpenTTD. Download Transport Tycoon Deluxe for Windows from Abandonia.com, for example.
Unpack installation package
umask 022 unzip Transport\ Tycoon\ Deluxe\ for\ Windows.zip
Install data files from Transport Tycoon as root
cd 'Transport Tycoon Deluxe' cp sample.cat *.grf /opt/openttd-0.6.2/data/ cp *.ss0 *.sv1 /opt/openttd-0.6.2/scenario/
You should now be able to run OpenTTD as
/opt/openttd-0.6.2/bin/openttd
Install OpenTTD scenarios from Softagalleria.net as root
umask 022 wget http://softagalleria.net/download/openttd/OpenTTD-Scenarios.zip unzip OpenTTD-Scenarios.zip cp *.scn /opt/openttd-0.6.2/scenario/
Install OpenTTD 0.5.0 scenarios as root
umask 022 wget http://downloads.sourceforge.net/openttd/openttd-0.5.0-scenarios.tar.gz gunzip -c openttd-0.5.0-scenarios.tar.gz | tar xf - cp *.scn /opt/openttd-0.6.2/scenario/
Install OpenTTD 0.4.8 scenarios as root
umask 022 wget http://downloads.sourceforge.net/openttd/openttd-0.4.8-scenarios.tar.gz gunzip -c openttd-0.4.8-scenarios.tar.gz | tar xf - cp openttd-0.4.8-RC1-scenarios/*.scn /opt/openttd-0.6.2/scenario/
NewGRFs provide additional graphics, vehicles, buildings, cargoes and industries for OpenTTD. You may wish to install some NewGRFs to build more realistic traffic networks or just for fun.
Below you will find installation instructions for some NewGRFs that I find useful. You can find plenty of other NewGRFs from the NewGRF List.
Install as root
umask 022
wget -O /opt/openttd-0.6.2/data/generictrams_v0.4.grf \
http://www.tt-forums.net/download/file.php?id=85838
Install as root
umask 022 wget http://www.users.tt-forums.net/finnish/Downloads/FinnishTasterw.zip unzip FinnishTasterw.zip cp FinnishTasterw.grf /opt/openttd-0.6.2/data/
Install as root
umask 022 wget http://www.ttdpatch.net/newgrf/20/newshipsw.zip unzip newshipsw.zip cp newshipsw.grf /opt/openttd-0.6.2/data/
Note that in addition to installing NewGRFs, you will need to activate NewGRFs from within the game in order to use them. Also note that you will need to de-activate NewGRFs to join many network games.
Sep 5, 2008: Updated to OpenTTD 0.6.2. If you have trouble with 0.6.2, then try OpenTTD 0.6.0.
Apr 07, 2008: Updated the instructions for OpenTTD 0.6.0. If you are having trouble with 0.6.0, you can also try the instructions for OpenTTD 0.5.3.
Mar 02, 2008: Compiled succesfully with Solaris 10 u4.