[SOLVED] OpenTTD on RHEL / CentOS 6, music playback problem
Moderator: OpenTTD Developers
[SOLVED] OpenTTD on RHEL / CentOS 6, music playback problem
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 !
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.
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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.
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.
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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.
Finding an sufficient old version of a piece of software is a major problem with RHEL.
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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.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.
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 ?
Re: OpenTTD on RHEL / CentOS 6, music playback problem
Sorry, I was replying to oxyk, trying to explain your problem.gigix wrote: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.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 do respect your choice, I have such a system at work too.
Albert
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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.

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.
Re: OpenTTD on RHEL / CentOS 6, music playback problem
you may find binaries for various RPM-based distributions here: http://download.opensuse.org/repositori ... enttdcoop/
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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
you can try XAW, it should be installed already.
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
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).
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
Code: Select all
timidity -ia
Code: Select all
timidity somefile.mid
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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.
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.
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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.
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.
Re: OpenTTD on RHEL / CentOS 6, music playback problem
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 !
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 !

Re: [SOLVED] OpenTTD on RHEL / CentOS 6, music playback prob
And thank you very much for posting the solution.
It is often forgotten.
It is often forgotten.
Who is online
Users browsing this forum: No registered users and 1 guest