[SOLVED] OpenTTD on RHEL / CentOS 6, music playback problem

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
gigix
Engineer
Engineer
Posts: 5
Joined: 05 May 2012 12:39

[SOLVED] OpenTTD on RHEL / CentOS 6, music playback problem

Post by gigix »

Hello everyone,

First of all, I would like to thank the developers and community of OpenTTD to keep the original feeling or TTD alive.

I have an issue related to the installation process on Linux, specially on RHEL 6 and clones. On my Ubuntu machines, no problem, the Debian packages are reliable and seem to set things up right for you without getting your hands dirty. However, on RHEL 6, I could not find any compatible .rpm so I did an installation from source.

I installed the game under /opt/local and manually placed the GM, sounds and music under my .openttd folder. I am using the latest v1.2.0. The game starts, shows the title screen, the sfx plays (income sound, bus starting engine...) but no music. A quick tour on the OpenTTD wiki revealed that the MIDI playback requires timidity++ with the instructions given only for debian derivatives. I wanted to know whether anybody had a successful go with an installation on RHEL, with functional music playback, by compiling timidity from source perhaps or others. A detailed installation and setup procedure would be very much appreciated.

Thank you guys !
Last edited by gigix on 13 May 2012 02:42, edited 1 time in total.
oxyk
Engineer
Engineer
Posts: 29
Joined: 04 May 2012 06:51
Location: ukraine

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by oxyk »

i had to install timidity for kubuntu and it solved my sound issue (no sound in game). basically what timidity does is it allows to run multiple sound sources at the same time.
have you tried to look in your repo? you might find something compatible from this list, or compile it.
http://rpm.pbone.net/index.php3/stat/3/ ... ld%5B%5D/2

also, on installation, there's nothing fancy, just setup and run for the first time. it will use daemon when you'll reboot next time. once done, you can play openttd hopefully with sound.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by Alberth »

RHEL uses software that is OLD, ie think stone age compared to kubuntu. You cannot 'just' install something, as many things assume a somewhat modern version of their dependencies.

Finding an sufficient old version of a piece of software is a major problem with RHEL.
gigix
Engineer
Engineer
Posts: 5
Joined: 05 May 2012 12:39

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by gigix »

Alberth wrote:RHEL uses software that is OLD, ie think stone age compared to kubuntu. You cannot 'just' install something, as many things assume a somewhat modern version of their dependencies.

Finding an sufficient old version of a piece of software is a major problem with RHEL.
I reckon you're missing the point. This topic is not about discussing which platform is best suited for running OTTD. You guys obviously tend to prefer Debian derivatives, I get it. Some people do prefer the stability offered by RHEL, please respect that.

Good news though, OTTD 1.2 does run on RHEL 6, only the music playback seems to require more attention than just the "apt-get install timidity++" mentioned in the wiki. I installed timidity++ through a 3rd-party repo (Naulinux-school), the version is 2.13.2 which seems up to date (timidity has not been updated since 2004 according to the project page). Music playback still does not work though.

Any successful attempt ?
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by Alberth »

gigix wrote:
Alberth wrote:RHEL uses software that is OLD, ie think stone age compared to kubuntu. You cannot 'just' install something, as many things assume a somewhat modern version of their dependencies.

Finding an sufficient old version of a piece of software is a major problem with RHEL.
I reckon you're missing the point. This topic is not about discussing which platform is best suited for running OTTD. You guys obviously tend to prefer Debian derivatives, I get it. Some people do prefer the stability offered by RHEL, please respect that.
Sorry, I was replying to oxyk, trying to explain your problem.

I do respect your choice, I have such a system at work too.

Albert
gigix
Engineer
Engineer
Posts: 5
Joined: 05 May 2012 12:39

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by gigix »

my mistake :)

I am thinking there is just a little something missing to make the whole thing work. Although if not, music can be played separately, just need to convert them to ogg.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by Eddi »

you may find binaries for various RPM-based distributions here: http://download.opensuse.org/repositori ... enttdcoop/
oxyk
Engineer
Engineer
Posts: 29
Joined: 04 May 2012 06:51
Location: ukraine

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by oxyk »

Alberth,
i have an idea how often some distros can update their repos. that's why i posted link to site whith different versions. and any linux distro should have site where you can find info about dependencies for selected package. in addition to kubuntu i have archlinux and freebsd to play with.
i have no idea why someone would consider one linux distro more stable than another, it greatly depends on choices we make during installation.

gigix,
have you tried to follow faq section?
http://wiki.openttd.org/FAQ_troubleshoo ... c_on_Linux

also you can test if it can play midi. open timidity gui with one of the following interfaces

Code: Select all

Available interfaces (-i, --interface option):
  -in          ncurses interface
  -ie          Emacs interface (invoked from `M-x timidity')
  -ia          XAW interface
  -id          dumb interface
  -ir          remote interface
  -iA          ALSA sequencer interface
you can try XAW, it should be installed already.

Code: Select all

timidity -ia
in the gui select test midi file to play. look for error messages if any. if gui fails, try to play midi from command line

Code: Select all

timidity somefile.mid
if it does not work, you can try to install 'timidity-freepats', this package should configure timidity (some linux distros have wrong paths in config, freepats will point it properly).
gigix
Engineer
Engineer
Posts: 5
Joined: 05 May 2012 12:39

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by gigix »

I can install timidity++ but still cannot get any music out of the game, the jukebox just goes through all the names endlessly.

I guess one reason could be the missing freepats. I don't have any timidity-freepats package available for EL 6. If somebody could point me out a solution to get them working that would be awesome.
oxyk
Engineer
Engineer
Posts: 29
Joined: 04 May 2012 06:51
Location: ukraine

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by oxyk »

try to install from sources
http://freepats.zenvoid.org/

this thread suggests how to create config
http://www.linuxquestions.org/questions ... -a-460444/

my jukebox did the same w/o timidity.
gigix
Engineer
Engineer
Posts: 5
Joined: 05 May 2012 12:39

Re: OpenTTD on RHEL / CentOS 6, music playback problem

Post by gigix »

Instructions from oxyk's link seem to work. I can get the music playing on the embedded TTD player. Music does not start on title screen but for me this is good enough.

So to wrap things up on having the music playing in OTTD on EL6:
1) install a build of the game from Eddi's link
2) install the openMSX music set from the in-game online content downloader
3) install timidity++ from NauLinux School repo
4) follow the instructions in this link provided by oxyk: http://www.linuxquestions.org/questions ... -a-460444/

Thank you guys, you rock ! :D
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: [SOLVED] OpenTTD on RHEL / CentOS 6, music playback prob

Post by Alberth »

And thank you very much for posting the solution.
It is often forgotten.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 1 guest