I've wondered a bit on internet in order to find out how to install Heroes of might and magic 3 on my debian squeeze 64, hope someone will enjoy this topic.
Stuff needed :
Linux ISO + Patch 1.3.1a-unified (easily found on a famous website... )
First its an x86 install so if you run, like on 64bit you have to trick the installor, by remplacing for this time the 'uname' executable:
Code: Select all
sudo mv /bin/uname /bin/uname.bu
echo "echo x86" > ~/uname
chmod +x ~/uname
sudo mv ~/uname /bin/uname
Code: Select all
mkdir /tmp/mhh
sudo mount -o loop HMM3-Linux.iso /tmp/mhh
sudo ksh /tmp/mhh/setup.sh
don't forget where you install the game.
Next extract the patch (it will failto execute, but it's normal, as long as it create the folder )
Code: Select all
_POSIX2_VERSION=199209 ./heroes3-1.3.1a-unified-x86.run --keep
Code: Select all
wget http://icculus.org/~msphil/loki/x86/loki_patch
mv loki_patch /heroes3-1.3.1a-unified-x86/bin/Linux/x86/loki_patch
cd heroes3-1.3.1a-unified-x86/
linux32 ./update.sh
Code: Select all
sudo ./bin/Linux/x86/loki_patch patch.dat /usr/local/games/Heroes3/
Code: Select all
sudo umount /tmp/hmm
sudo mv -f /bin/uname.bu /bin/uname
but there is great chance you get an oss related error when you launch it, so you need to fix OSS acess (you now that if you play ennemy territory... ).
Code: Select all
su -c 'echo "heroes3 0 0 direct" > /proc/asound/card0/pcm0p/oss'
(replace game path by your own )
Code: Select all
cat /proc/asound/card0/pcm0p/oss|grep "heroes3 0 0 direct"
if [ ! $? -eq 0 ]
then
su -c 'echo "heroes3 0 0 direct" > /proc/asound/card0/pcm0p/oss'
fi
cd /usr/local/games/Heroes3/
./heroes3
make it executable (chmod +x) and PLAY
Hope it helps !!!
PS : i've mode an install script wich put it all together (for a standard path installation), you can use it if you want :
Code: Select all
sudo mv /bin/uname /bin/uname.bu
echo "echo x86" > ~/uname
chmod +x ~/uname
sudo mv ~/uname /bin/uname
dir=`pwd`
mkdir /tmp/mhh
sudo mount -o loop HMM3-Linux.iso /tmp/mhh
cd /tmp/mhh
sudo ksh setup.sh
cd $dir
cd heroes3-1.3.1a-unified-x86
sudo ./bin/Linux/x86/loki_patch patch.dat /usr/local/games/Heroes3/
sudo umount /tmp/hmm
sudo mv -f /bin/uname.bu /bin/uname
Source :
http://ubuntuforums.org/showthread.php? ... ost7052932 but not only