ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.59k stars 598 forks source link

Cant open GoldSrc games from Steam #3112

Open shoober420 opened 3 years ago

shoober420 commented 3 years ago

For quite some time now, I havent been able to open any GoldSrc games on my Gentoo machine. I have to manually go to the Half-Life directory and run ./hl.sh -game foo to launch different Half-Life mods. This is with the Steam runtime enabled or disabled. Any idea why this is happening?

System Information: https://github.com/shoober420/rootscripts/blob/main/home/shoober420/sysinfoamd

niobium93 commented 2 years ago

Same problem on Arch Linux. Game launches fine when manually running hl.sh, but the process just hangs when launched from the steam client, with no command line output at all. Disabling shader pre-caching works around the issue, but there's no way to do that per-game, and I'd rather not cripple all my other games...

niobium93 commented 2 years ago

Figured out how do fix it without disabling shader pre-caching for everything. Paste this into your launch options:

env -u MESA_DISK_CACHE_SINGLE_FILE -u MESA_GLSL_CACHE_DIR %command%

Both of those environment variables need to be unset. Either one of them still breaks the game.