TransWikia.com

Installing old Loki games on 12.04 64-bit results in no audio

Ask Ubuntu Asked by FlabbergastedPickle on December 27, 2020

All,

Here’s an interesting problem. I followed instructions provided online for installing Loki Games’ Heroes of Might and Magic 3 (see http://www.swanson.ukfsn.org/loki/ and http://wtanaka.com/node/7641) and got it installed and patched to the latest version. However, every time I start it regardless whether the pulseaudio is running, I get the following error:

    LD_LIBRARY_PATH=/usr/local/lib/Loki_Compat/ /usr/local/lib/Loki_Compat/ld-linux.so.2 /usr/local/games/Heroes3/heroes3.dynamic
    ALSA lib conf.c:3314:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default

Couldn’t open audio:

My first soundcard is HDMI output and my second one is the actual soundcard (HP DM1 running 12.04 64-bit with latest updates). I did set up /etc/asound.conf as follows:

asound.conf

    pcm.!default {
        type hw
        card 1
    }
    ctl.!default {
        type hw           
        card 1
    }

So, the default soundcard should work ok. Between Shadowgrounds that also stopped working and this it appears a there may be some unfinished business/regressions in 32-bit support on 64-bit systems in 12.04.

Any thoughts?

4 Answers

Try to install osspd:

apt-get install osspd

or from here.

I had the same problem with Heroes 3 and Rune, and just find this package in synaptic. Now all sound related issues gone.

Correct answer by balu92 on December 27, 2020

NO SOUND

Download old libraries and unzip: http://www.improbability.net/loki/loki_compat_libs-1.5.tar.bz2

cd Heroes3

cp /path/Loki_Compat /path/Heroes3

LD_PRELOAD=Loki_Compat/libstdc++-3-libc6.2-2-2.10.0.so:Loki_Compat/libsmpeg-0.4.so.0.1.3:Loki_Compat/libsmjpeg-0.2.so.0.0.1:Loki_Compat/libSDL_mixer-1.2.so.0.2.5 /home/user/Games/Heroes3/heroes3.dynamic

add "-w" to the end of last line to use windowed mode.

Answered by dklovedoctor on December 27, 2020

Copy all the contents form the cd somewhere in your home folder.

Right click on setup.sh and change it to be executable.

Open terminal in that directory and type:

sudo linux32 bash setup.sh

Say "y" to every question (to install all game data) except after install when the game ask to start as root.

Close the terminal and reopen it. Type heroes3 to start the game. The game will start but there is the problem with the sound. In 1999, Pulse audio doesn't exist. I don't know how to fix the audio problem.

Answered by Anoniman on December 27, 2020

Try to preload libasound_module_conf_pulse.so:

env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_conf_pulse.so /usr/local/games/Heroes3/heroes3.dynamic

this fixed the issue for me when running Trine on 12.04 64-Bit (see other question I posted in comments).

Answered by rakete on December 27, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP