You need the following software to complete this tutorial:
Note: As you should know, it is best to install these programs using your distribution's package management software. Ubuntu uses Aptitude, Gentoo uses Portage, Fedora uses Yum, etc.
Paste and run this code from a console of your choice.
sudo apt-get install p7zip
In Gentoo you'd type:
sudo emerge p7zip
sudo apt-get install wine
Gentoo:
sudo emerge wine
tmpdir=$(mktemp -d /tmp/gta2-XXXX) || exit
trap 'rm -rvf "$tmpdir"; exit' EXIT
cd ${tmpdir} || exit
wget --trust-server-names http://www.seeitmyway.org/gta2/downloads/GTA2-GTAMP-Edition-v2.exe http://gtamp.com/GTA2/gh
mkdir -pv ~/.wine/drive_c/games
echo -e "\nUnpacking GTA2"
cd ~/.wine/drive_c/games/ || exit
7z x "${tmpdir}"/GTA2-GTAMP-Edition-v2.exe || exit
cd ${tmpdir} || exit
echo -e "\nInstalling GameHunter"
wine gta2gh1???setup.exe \/S \/D=C:\\games\\GTA2\\gh\\ || exit
echo -e "\nAdding GTA2 Manager keys to registry"
wine regedit ~/.wine/drive_c/games/GTA2/gta2_install.reg
echo -e "\nGTA2 and GameHunter have been installed.\n\nGetting winetricks and installing Visual Basic 6 RuntimeSP6 and DirectPlay"
wget http://www.kegel.com/wine/winetricks
sh winetricks vb6run directplay
echo -e "\nEverything done, installation complete."
cd ~
That's it! As far as Linux is concerned, you are now ready to play.
Unfortunately GTA2 is an old game and although you got everything running correctly so far, you might not be able to enjoy multiplayer games just yet. If you try joining other players and the "Network GTA2" window pops up but the "join" button is disabled, then either you or the person you are trying to join need to forward your ports. Read http://gtamp.com/gta2/network-help/ very carefully. Forwarding ports only takes one minute once you've done it before, but you will need to pay attention and read carefully if this is your first time. You only ever need to do this once, unless you change routers or your network setup somehow changes.
tmpdir=$(mktemp -d /tmp/directplay-XXXX) || exit
trap 'rm -rvf "$tmpdir"; exit' EXIT
cd ${tmpdir}
wget http://www.thehandofagony.com/alex/dll/dplaydlls-win98se.tar.bz2
tar -xjf dplaydlls-win98se.tar.bz2 || exit
mv -vt ~/.wine/drive_c/windows/system32/ *.exe *.dll
rm -rvf "${tmpdir}"
wine regsvr32 dplayx.dll
wine regsvr32 dpnet.dll
wine regsvr32 dpnhpast.dll
$ winecfg
Awesome design by DrSlony
www.gta2.seeitmyway.org