I personally had some trouble getting the Half-Life 2 Leak (as well as patched versions like LeakNet) running on my Arch Linux desktop. I eventually got it working and I will document my steps here.
- Create a new 32-bit Wine prefix using
winetricks --gui
or manually. - Install dxvk 2.1 onto the prefix you just created (you can also use winetricks for this).
- That's it.
The first time you run the build, your system may appear to run out of memory and freeze up, briefly. This is actually normal, and a result of how the engine calculates available texture memory. After it finishes, it will cache the information it's gathered and won't do it again.
I recommended creating a shell script to automate the launching of the build:
#!/bin/sh
WINEPREFIX="$HOME/.local/share/wineprefixes/hl2leak" wine "hl2.exe" -windowed -w 800 -h 600
I have this saved as hl2.sh
in the same folder as the build. Note that I have
named my wineprefix hl2leak
. Also, the arguments after the executable name
are not strictly necessary; I just have them there as an example.
Special thanks to my friend Kay for teaching me how to get the leak running on Linux.
EDIT
Upon further testing, it seems like this method also works for any pre-2007 Source Engine game. I've tested it with retail copies of Half-Life 2, Half-Life 2: Episode One and Half-Life 2: Lost Coast.
Happy hacking!