Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to install Heroes of might and magic 3 on squeeze 64

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
GloW
Posts: 23
Joined: 2011-09-16 17:07

How to install Heroes of might and magic 3 on squeeze 64

#1 Post by GloW »

Hi

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
Next mount the iso and install the game (install ksh first if needed) :

Code: Select all

mkdir /tmp/mhh
sudo mount -o loop HMM3-Linux.iso /tmp/mhh
sudo ksh  /tmp/mhh/setup.sh
you have to answer few questions, i suggest you to install everything except videos and shortcut.
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
Next patch the patch, and execute it

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
if it fail to execute try this instead ( replace my game path with the correct path for your installation ):

Code: Select all

sudo ./bin/Linux/x86/loki_patch patch.dat /usr/local/games/Heroes3/
clean up

Code: Select all

sudo umount /tmp/hmm
sudo mv -f /bin/uname.bu /bin/uname
It's done, Heroes of might and magic is installed,

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'
And to make it perfect you can create a launch_script.sh, so you will have not to do the fix after each reboot :
(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
[/size]

Source :
http://ubuntuforums.org/showthread.php? ... ost7052932 but not only

Post Reply