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.5.3 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 and configure
gunzip -c SDL-1.2.13.tar.gz | tar xf - cd SDL-1.2.13/ ./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.5.3-source.tar.bz2 umask 022 bunzip2 -c openttd-0.5.3-source.tar.bz2 | tar xf - cd openttd-0.5.3
Apply my patch for Solaris 10
wget http://softagalleria.net/download/openttd/openttd-0.5.3.diff gpatch -p 1 -i openttd-0.5.3.diff
Configure
CC=gcc export CC gmake WITH_ZLIB=1 UNIX=1 MANUAL_CONFIG=1 WITH_PNG=1 WITH_SDL=1 \ WITH_NETWORK=1 INSTALL=/ PREFIX=/opt/openttd-0.5.3/ BINARY_DIR=bin \ DATA_DIR=. PERSONAL_DIR=.openttd USE_HOMEDIR=1 WITH_FONTCONFIG=
Compile (~5 min)
time gmake
Login as root, cd to the package directory and install program files
umask 022 mkdir /opt/openttd-0.5.3 ( cd /opt/openttd-0.5.3; mkdir bin data lang scenario ) cp openttd /opt/openttd-0.5.3/bin/ cp lang/*.lng /opt/openttd-0.5.3/lang/ cp data/* /opt/openttd-0.5.3/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.5.3/data/ cp *.ss0 *.sv1 /opt/openttd-0.5.3/scenario/
You should now be able to run OpenTTD as
/opt/openttd-0.5.3/bin/openttd
The OpenTTD source package does not contain any scenarios. If you want to play the official scenarios that have been built especially OpenTTD, then you must download a binary distribution package. However, OpenTTD features an excellent map generator, and Transport Tycoon comes with some scenarios, so you can also play OpenTTD without these official scenarios.
If you want to install the official scenarios, then download the binary distribution package
wget http://downloads.sourceforge.net/openttd/openttd-0.5.3-win32.zip
Extract scenarios
umask 022 unzip openttd-0.5.3-win32.zip scenario/\*.scn
Install scenarios as root
cp scenario/* /opt/openttd-0.5.3/data/
For even more scenarios, feel free to download
my scenarios from this site. To install the
scenarios, just unzip the packages and drop the .scn files to the
/opt/openttd-0.5.3/scenario/ directory where the other
scenarios are also located.