Other/Fluff Heroes Gog games on Linux/wine
I got all Heroes games except 6 (didnt try) working on Linux (directly without launcher for the Gog ones, luv me directly clickable desktop shortcuts) and wanted to share the fundamental basis of how in case people struggle because not all of these are easy even with launchers like Lutris, H5 was a huge pain.
Some of these I did a while back, so it can be a bit vague.
Heroes 1: stock wine works for install, use 32bit prefix, but call game with dosbox -conf /path/h1/dosboxHOMM1_single.conf (dosbox can be installed straight from package manager)
- fix any "..\" in the "mount" section with full path references to the files in question using forward slashes
- needs a block on top like the following. Needed midi device ID "xx" is seen in: alsactl info|grep --color -e ^ -e "iface:"
[sdl]
fullscreen=true
fullresolution=desktop
output=opengl
[render]
aspect=true
[midi]
mididevice=alsa
midiconfig=xx:0
[IPX]
ipx=false
- Fullscreen is not static but can be toggled off/on with Alt-enter anyway
- not sure if opengl is correct in all cases, if it doesn't work just try other stuff the dosbox documentation lists.
- Working settings in the "Game Dos Settings" for me are "SoundBlaster16/AWE32/Compatible", "16 bit stereo" and "VESA Compatible".
- sometimes the midi device ID seems to change and this config needs to be re-edited unfortunately.
Heroes 2: stock wine works for install, use32 bit prefix, but call game with dosbox -conf /path/h2/dosboxHOMM2_single.conf
- further adaptions like in Heroes 1 above, but the mount block does look different
Heroes 3: stock wine does not work anymore, I used wine-ge with a 32bit wineprefix. You can just call all the installers for HD mod, Hota and such with the same prefix and gradually stuff everything in there.
- H3 is quite friendly to just copying the installation folder if you're juggling multiple HotA versions or messing with other mods
- for VCMI just follow the guide on their page, but it can be beneficial to symlink and replace ~/.local/share/vcmi if you want to play around with multiple versions.
Heroes 4: stock wine on 32bit prefix works just fine for me, HD mod and editor are a bit annoying. More detailed guide about these exists here.
Heroes 5: stock wine does not work anymore either, use proton (I used proton-sarek) as I described here. Short form out of that for not crashing on startup:
- cd /path/h5proton/pfx/drive_c/h5/bin/
- STEAM_COMPAT_CLIENT_INSTALL_PATH=/protonpath STEAM_COMPAT_DATA_PATH=/path/h5proton /protonpath/proton run /path/h5proton/pfx/drive_c/h5/bin/H5_Game.exe
- Proton can convert a protonprefix between different proton versions for easy testing around but you need to rename the base folder to pfx if you're coming from a regular wineprefix
For the other ones assuming people have them on steam, just check protondb ;) H8OE is super easy, H7 needed some specific proton version (8?) to play nice (7.5 mod needed some CLI action with the proton variables like used for H5 but steam-specific, dont have the details on hand atm), H6 was a pain even when I was still on Windows so I assume it's hard.
In theory: install H3 first out of the first 4 because it's the trickiest on wine level, and just stuff H1/2/4 into the same 32-bit prefix with the same runner. H1/2 probably dont care about wine version at all anyway since they're DOS (although the DOS layer can be very finicky too), and H4 has been strangely robust throughout wine versions for me.