OpenTTD on Solaris 10

[Image]
OpenTTD main window.

About OpenTTD

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.0 for Solaris 10.

Install

SDL

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 ..

Done

Compile OpenTTD

Get OpenTTD source package

wget http://downloads.sourceforge.net/openttd/openttd-0.6.0-source.tar.bz2

Unpack

umask 022
bunzip2 -c openttd-0.6.0-source.tar.bz2 | tar xf -
cd openttd-0.6.0

Configure

bash ./configure --prefix-dir=/opt/openttd-0.6.0 --without-makedepend \
    --binary-dir=bin --data-dir=.

Compile (~5 min)

time gmake LDFLAGS="-lX11 -lXext -lsocket -lnsl"

Done

Install Program Files

Login as root, cd to the package directory and install program files

umask 022
mkdir /opt/openttd-0.6.0
( cd /opt/openttd-0.6.0; mkdir bin data lang scenario )
cp bin/openttd /opt/openttd-0.6.0/bin/
cp bin/lang/*.lng /opt/openttd-0.6.0/lang/
cp bin/data/* /opt/openttd-0.6.0/data/

Done

Install Transport Tycood Data Files

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.0/data/
cp *.ss0 *.sv1 /opt/openttd-0.6.0/scenario/

You should now be able to run OpenTTD as

/opt/openttd-0.6.0/bin/openttd

Done

Install Additional OpenTTD Scenarios

Download scenarios

wget http://downloads.sourceforge.net/openttd/openttd-0.5.0-scenarios.tar.gz
wget http://downloads.sourceforge.net/openttd/openttd-0.4.8-scenarios.tar.gz

Extract scenarios

umask 022
gunzip -c openttd-0.4.8-scenarios.tar.gz | tar xf -
gunzip -c openttd-0.5.0-scenarios.tar.gz | tar xf -

Install scenarios as root

cp *.scn openttd-0.4.8-RC1-scenarios/*.scn /opt/openttd-0.6.0/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.6.0/scenario/ directory where the other scenarios are also located.

Complete

Version History

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.