PDA

View Full Version : HOWTO: Install OpenTTD



tdehoog
May 12th, 2006, 02:05 PM
http://www.openttd.org/images/top.gif

I'm not a native english speaker, so don't blame me on my english

Since there isn't a nice howto for the installation of this game yet I thought I'd create my own and share it with you

In this howto I'm going to (try to) explain how you can install OpenTTD on your Ubuntu(/Kubuntu/Xubuntu/Edubuntu/Some other Ubuntu fork) Dapper box. It's pretty simple, but it needs some work with the command-line. So if you have an extreme fobia for the commandline, get the hell out of here and install Windows on your pc, or buy a mac or something.

1.What is OpenTTD

(if you know Transport Tycoon or Locomotion skip this part.)

OpenTTD is an opensource version of the popular Transport Tycoon Deluxe game by Chris Sawyer. You have the task to create a transport imperium with which you have to make as much profit as possible. There are four types of transport: Road, Rail, Air and Water. Each of these have their cons and pro's. You need to set up transport networks between sources and destinations like coal and powerplants, livestock/grain/steel and factories, iron ore and steel factories, wood and sawmills, passengers/mail and cities, etc, etc... There are a dozen of things to look after, like the capacities of the vehicles, the demand and the offer of various sources and destinations, the age of your vehicles, the financial figures, and competing companies. There is also a very good multiplayer part with built-in server browser. Guaranteed fun at lans :)

Enough info about the game, if you need more info, visit the official site:

www.openttd.org (especially the wiki's)

2.Installation

First, download the *.deb package from the official site. (this is the latest version: click (http://prdownloads.sourceforge.net/openttd/openttd_0.4.7-1_i386.deb?download)) and the windows files: click (http://forums.7wolf.net/ttd/files/game/ttd-win.zip). Don't let the word 'Windows' scare you off. We need some files from the original Transport Tycoon Deluxe.

Second, install the *.deb package. This is very simple. Just doubleclick the file to let the debian installer in Ubuntu do it's work.

Third, this one's bit tricky (at least, for n00bs like me...:) ). We need to copy some files from the ' ttd-win.zip' file to the installation folder and change the file permissions. I'm going to do most of this with the command-line, so you just need to copy/paste the lines.

1.Extract 'ttd-win.zip' to a folder you can easily find with the command line. (I extracted it to my 'Desktop' folder.) You can remove it later.

2.Open the terminal and cd to the folder you just extraced 'ttd-win.zip' to. It should be names 'ttd-win'. Open this folder ('ls').

3.Now, you should see 5 files with '*.grf' as its extension. As already might guess, these files contain the original grapics of the game. These files need to beed copied to the 'data' folder of the OpenTTD installation as well as the 'sample.cat' file. I did it like this:


sudo cp *.grf sample.cat /usr/share/games/openttd/data

(if your target folder is different, don't forget to change the command.)

This command copies all the required files to the openttd/data folder.

4.Now whe need to set the proper file permissions to the files whe just copied. Since we're not going to play the game in root (the user that copied the files) all the time. Use these commands:


cd /usr/share/games/openttd/data

sudo chmod 777 *.grf sample.cat

5.If you still got the terminal open type in this command:


openttd

And voilá, there you go. One finishing touch (optional):

Create a menu entry with Alacarte in the game menu and/or a shortcut on the desktop/whereever you want it. Use this command: 'openttd'. The icon for openttd is in the standard icon folder (this was done by the *.deb installer).

Have fun!

Perfect Storm
May 12th, 2006, 03:12 PM
Wouldn't it be easier with


sudo cp *.grf sample.cat /usr/share/games/openttd/data


?

tdehoog
May 12th, 2006, 05:46 PM
Wouldn't it be easier with


sudo cp *.grf sample.cat /usr/share/games/openttd/data


?

Ok, I changed it.

These are little tricks a n00b like me still has to learn

Thanks :)

Sammi
May 31st, 2006, 09:21 PM
Thx for the howto. Helped me to set up and get started in no time :-D

holr
June 1st, 2006, 12:06 AM
Just wondering, were you able to get both sound and music in the game? Ive had troubles with suse but fedora (my current distro) works with both. I know theres sometimes issues with the midi music...

frying_fish
June 1st, 2006, 09:40 PM
If you are after midi output would using timidity not be a good idea, and run it with the option of timidity -iA -Os for ALSA input and Stereo Output. (haven't run open TTD, so don't know if it would help but maybe it would...)

tdehoog
June 28th, 2006, 08:45 AM
Just wondering, were you able to get both sound and music in the game? Ive had troubles with suse but fedora (my current distro) works with both. I know theres sometimes issues with the midi music...

I haven't fugured the music out yet. But I know these files are in the ttd-win.zip file, since the windows installer from openttd also copies these.

I'm going to compare a window installation with a linux one, to figure which files are required.

After this I'll update the howto.

The sound-effects worked out of the box in my case.

joelchr
August 21st, 2006, 03:45 PM
I haven't fugured the music out yet. But I know these files are in the ttd-win.zip file, since the windows installer from openttd also copies these.

I'm going to compare a window installation with a linux one, to figure which files are required.

After this I'll update the howto.

The sound-effects worked out of the box in my case.

The sound is in the gm-folder and must be copied into /usr/share/games/openttd/gm. But I have no idea how to get the music working...

NiceGuy
September 6th, 2006, 01:13 AM
I might have just got lucky but here is what I did to get the sound and music working.

First I just copied the file sample.cat from the /data directory on my windows copy of ttd to /usr/share/games/openttd/data - this got the sound working.


and then all the files from the /gm directory on my windows copy to /usr/share/games/openttd/gm. Then I installed (from synaptic) timidity.

When I next started the game the music worked...


...well actually... thinking about it I did need to start a new game and go to the jukebox and click the play button. :D

lol - I bet you'll be kicking your selves if thats what the problem is!

Hope that helps.

ShirishAg75
September 6th, 2006, 09:28 AM
first of all there is a newer 0.4.8 which is a bug-fix. I was not able to install it the first time around but was able to install 0.4.7 & then install 0.4.8 which sat on top of it. Secondly timidity took another 30 MB to make the sound files work hence it would have be better if these guys use .ogg at some point so memory used would be less. The wiki gives some more info. when we can expect the changes. Looks like another couple of years down the line. http://wiki.openttd.org/index.php/Roadmap . The new graphics do seem cool http://wiki.openttd.org/index.php/City_Buildings_%28New_Graphics%29 although its supposed to take sometime to make it workable. I didn't have to do any magic to hear the sounds as I did copied the .gm files & then used timidity. :)

Edit :- Looking forward to 0.5 as & when it's released. The UI needs lots of improvement.

Iesos
October 5th, 2006, 10:09 AM
I'm trying to get OpenTTD up-and-running. But it seems to fail.
I have followed this howto (sort of... I did the same thing) But I get the error message:



$ openttd
openttd: gfxinit.c:88: LoadGrfIndexed: Assertion `b' failed.
Aborted


Anyone got any idea how to fix this?

Perfect Storm
October 5th, 2006, 04:42 PM
by any chance you have compiz and XGL installed/in use?

Iesos
October 5th, 2006, 09:26 PM
Installed, but not in use.

But! I've got amd64 Dapper, so first I tried to install it with --force-architecture, but then I got the message in my last post.
So I thought: Hey why not try chroot. So I installed it under my 32bit-chroot, where I don't have XGL installed, but I get the same message.

Iesos
October 5th, 2006, 09:40 PM
oh, it works now. I just reinstalled it under my chroot.

phocis850
August 22nd, 2007, 10:28 PM
bump for an awesome game

dink1000
October 18th, 2007, 05:46 PM
i'm trying to copy the files to the directory but i keep getting this in terminal

*****@*****-desktop:~$ sudo cp *.grf sample.cat /usr/share/games/openttd/data
Password:
cp: cannot stat `*.grf': No such file or directory
cp: cannot stat `sample.cat': No such file or directory

the 6 files are on the desktop but it just doesn't seem to be able to see them:confused:

chez17
November 15th, 2007, 08:55 PM
Just installed on Gutsy, sound effects work fine but music doesn't. I used 0.5.3 and the game itself works perfectly. Nice howto.

BDNiner
November 15th, 2007, 11:40 PM
openttd is in the repos and in add remove.

dink1000 I created a folder on my desktop and then copied the files from there. but the music still doesn't work.

other than the music the game works flawlessly, even with compiz fusion enabled

lock-aze
November 17th, 2007, 12:18 PM
Just needed to say, I had the game open, didn't get the sound to work, but then I installed (from synaptic) timidity (as said before) this made the sound work instantly.. :)

Mazza558
December 15th, 2007, 09:41 PM
Doesn't work at all... I get this:


openttd
Error: Cannot open file '/usr/share/games/openttd/data/sample.cat'
openttd: openttd.c:88: error: Assertion `0' failed.
Aborted (core dumped)


I've tried 2 different SAMPLE.CATs and 2 different versions of OpenTTD (0.47 and 0.52). Help?

Mazza558
December 20th, 2007, 08:31 PM
Anyone know a solution?

Beren Camlost
December 21st, 2007, 06:47 PM
I used the windows files from this download and had no problems: http://nl.dl.owenrudge.net/TT/game/ttd-win.zip

Edit: By the way, did you follow the Howto in original post and changed permissions for your files?

viktro
January 29th, 2008, 12:45 AM
I've tried 2 different SAMPLE.CATs and 2 different versions of OpenTTD (0.47 and 0.52). Help?

Yes, SAMPLE.CAT is not sample.cat. Rename it.

Perfect Storm
January 29th, 2008, 08:20 AM
There's a guide on how to install OpenTTD at the full Circle Magazine in issue 9 page 20 - http://fullcirclemagazine.org/

Mazza558
February 19th, 2008, 05:15 PM
Finally got this working. What you have to do is RENAME ALL THE ORIGINAL GAME FILES TO LOWER-CASE.

Tenesis
September 20th, 2008, 05:04 PM
The only thing that I was not able to do was to download the original files from the link you gave us. Also I have a 64bits version so I've had to install the 64bits one. The homepage of the game already had selected the correct version for me.

I've downloaded an old DOS version of TTD from abandonia (http://www.abandonia.com/en/games/44/Transport+Tycoon.html). Then I've just copy the commands from the original post and everything worked fine.

Thanks for the post :KS

TheCowboy
January 9th, 2009, 10:49 AM
haha my girlfriend is gonna go mad if i install Openttd.

she thought the game was gone, the minute i switched to ubuntu.

i think i'll try tonight:D ;)

meborc
January 9th, 2009, 12:22 PM
haha my girlfriend is gonna go mad if i install Openttd.

she thought the game was gone, the minute i switched to ubuntu.

i think i'll try tonight:D ;)

yeah, i have spent way too many hours with that game too :)

but it gets depressing when you start a new game and you see all that land unused... ;)

my strategy - airplanes

TheCowboy
January 9th, 2009, 03:39 PM
yeah, i have spent way too many hours with that game too :)

but it gets depressing when you start a new game and you see all that land unused... ;)

my strategy - airplanes


Correct strategy. Good to see the citys get in shape... haha.

inuit-joe
March 22nd, 2009, 05:45 AM
Do you need the CD of it?

Perfect Storm
March 22nd, 2009, 06:36 AM
Do you need the CD of it?

You need the original game data.

widzhit
May 20th, 2009, 12:34 PM
Thanks a bunch for this tutorial!

biodiesel-bri
November 28th, 2009, 12:47 AM
Anyone else having problems with OpenTTD in Karmic 9.10 64 bit? It was working fine for me in Jaunty 64 and I just did a clean install - no sound with OpenTTD. Other SDL games give me sound.

Any ideas?

biodiesel-bri
December 4th, 2009, 08:30 AM
Never mind, it was a problem with pulseaudio that I fixed.

Sealbhach
December 7th, 2009, 03:42 PM
I've been playing this game for hours on end during the past week. It is so absorbing, I can just sit watching my trains for hours on end. It's having my own little train set.

I've just added the Swedish Houses GRF (http://www.tt-forums.net/viewtopic.php?f=26&t=44360). They look so cute!

Any other good GRFs that people think are a must have? I have the World Airlines set which is cool.

.

thematrixuum
February 25th, 2010, 08:03 PM
I'm having problem installing this game.. i have done all what u said in the 1st thread. but when i tried to run the game, the terminal gave me this error : Error: Failed to find a graphics set. Please acquire a graphics set for OpenTTD. See section 4.1 of readme.txt.

But I already copied the windows files at the /usr/share/games/openttd/data/ folder.. can anybody help me?

kiwited
March 27th, 2010, 04:24 AM
I'm having problem installing this game.. i have done all what u said in the 1st thread. but when i tried to run the game, the terminal gave me this error : Error: Failed to find a graphics set. Please acquire a graphics set for OpenTTD. See section 4.1 of readme.txt.

But I already copied the windows files at the /usr/share/games/openttd/data/ folder.. can anybody help me?


Did you change the permissions?

Just installed v1.00 on Lucid - fantastic!!

Theo

AlexanderDGreat
March 27th, 2010, 10:08 AM
How do you get the music to work for Karmic or Lucid? Game works fine only with sound effects. Pls. help. Tis is amazing game!

willwesmck
July 6th, 2010, 06:54 AM
How do you get the music to work for Karmic or Lucid? Game works fine only with sound effects. Pls. help. Tis is amazing game!
I'm assuming your only option in Base Music Set is NoMusic. Two ways to get OpenMSX.
1. Download from /bananas (http://us.binaries.openttd.org/binaries/bananas/index.html) and extract the zip to ~/.openttd/gm
or 2. From check online content and search for OpenMSX.
Cheers.

ICrapBombs
December 6th, 2011, 03:24 AM
On that russian website for the windows COunter parts Its in RUSSIAN, I AM NOT RUSSIAN, so i cant read it soooo. DIrect mediafire link?

Sorry for the crumy pucuation and grammar/ spelling its just me typing lazly