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


Here’s an interesting problem. I followed instructions provided online for installing Loki Games’ Heroes of Might and Magic 3 (see and 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/ /usr/local/games/Heroes3/heroes3.dynamic
    ALSA lib conf.c:3314:(snd_config_hooks_call) Cannot open shared library
    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:


    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?

Ask Ubuntu Asked by FlabbergastedPickle on December 27, 2020

4 Answers

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


Download old libraries and unzip:

cd Heroes3

cp /path/Loki_Compat /path/Heroes3

LD_PRELOAD=Loki_Compat/ /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 and change it to be executable.

Open terminal in that directory and type:

sudo linux32 bash

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

env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/alsa-lib/ /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!

Related Questions

Insert a line after match using sed

1  Asked on January 3, 2022 by tejas-kulkarni


Ubuntu 18.04 – Wireless Adapter not Found

0  Asked on January 3, 2022 by aidan3776


Problem when trying to build debian packages

0  Asked on January 3, 2022 by kr90


How to activate CPU driver in Ubuntu 20.04

0  Asked on December 31, 2021 by coffeeplease


Ubuntu 20.04 non-deterministically hanging during boot

1  Asked on December 31, 2021 by daniel-gratzer


Idle – Unable to open raster file – : Success

3  Asked on December 31, 2021 by crusaderad


How to change zram size?

5  Asked on December 31, 2021 by phuclv


SQLSTATE[HY000] [1045] Access denied for user

1  Asked on December 31, 2021 by yyusufaslan


Network Error MAAS

1  Asked on December 31, 2021 by jasonrgann


Permissions in Ubuntu 18.04

1  Asked on December 31, 2021 by matthew-barlow


Ask a Question

Get help from others!

© 2022 All rights reserved.