protonscr

Half life 2 crashing without steam running

dxvkclosed
doitsujin/dxvk#4488 · opened 2024-11-24 by fenderjaguarnet · updated 2024-11-25 · 13 comments · github
Ffenderjaguarnet 2024-11-24 github

I've noticed that when you run the game on windows, without the steam client running, it frequently crashes with memory error and also crashes when alt tabbing. it also can crash on in-level loading screens.

with the steam client running, it's fine. you don't actually need the client running, since HL2 has no DRM

this does not happen with the native D3D9 renderer. this also did not happen before, even with DXVK. but I don't know if its an update of DXVK that causes it, or if it's the latest 20 year anniversary HL2 patch that is the problem

Ffenderjaguarnet 2024-11-24 github

8943798

TTiagoquix 2024-11-24 github

Did you launch the executable with the -game launch option?

For example: open a CMD, use cd /d "directory here" and then use .\hl2.exe -game hl2_complete.

Ffenderjaguarnet 2024-11-24 github

hmmm, no I wasn't using that. I see now I look at the new folders

I've tried it now. doesn't seem to crash on alt tab anymore, but initially it crashed upon launch

TTiagoquix 2024-11-24 github

See https://github.com/doitsujin/dxvk/wiki/Windows if more issues pop-up. I don't see a reason for you to use DXVK in HL2, as it has a decent Direct3D render, but you do you.

Ffenderjaguarnet 2024-11-24 github

thanks. but it stutters a lot in the original renderer. it stutter nearly every time you switch your torch on, and much, much more...

with vulkan it is totally smooth, I think because of "VK_EXT_graphics_pipeline_library"? :)

TTiagoquix 2024-11-24 github

Half-Life 2 has DXVK built-in with the Windows binaries. You don't need to download it from GitHub.

Delete the DXVK binaries you manually installed and run the game with:

.\hl2.exe -game hl2_complete -vulkan -novid

This may solve the rest of your problems.

Ffenderjaguarnet 2024-11-24 github

ok I will. thanks

yes I did see a "dxvk_d3d9.dll" file in the bin directory, but I always thought it was an older version of dxvk

TTiagoquix 2024-11-24 github

You can determine the version being used by reading the file hl2_d3d9.log (next to hl2.exe).

Ffenderjaguarnet 2024-11-24 github

yes, I also see it with dxvk.conf command "dxvk.hud = full". it is really old v1.8.1-3-gd3e43ed3

TTiagoquix 2024-11-24 github

Weird, I would expect it to be version 2.0 at least (as it is on Linux). Well, I think you can stick to the DXVK binaries you downloaded then (so remove -vulkan to avoid using the game's built-in binaries).

Is the game running normally with DXVK version 2.5.1?

Ffenderjaguarnet 2024-11-24 github

I think you were right about the whole needing to add "-hl2_complete" to the shortcut. cause when you launch the normal hl2.exe without shortcut it does actually run the kind of "old version", and I think it is somehow conflicting with the "complete". it's not that the steam client is running that solves the problem, it's that the steam client always launch the complete, in much the same was as creating the custom shortcut, that you suggested, does.

thanks

TTiagoquix 2024-11-24 github

Glad to hear! If you have been able to solve your issues, please consider closing this help request. Thanks!

SSakuraRK 2024-11-25 github

Weird, I would expect it to be version 2.0 at least (as it is on Linux). Well, I think you can stick to the DXVK binaries you downloaded then (so remove -vulkan to avoid using the game's built-in binaries).

Is the game running normally with DXVK version 2.5.1?

Valve has hardly updated DXVK since its initial inclusion. I have encountered stranger issues on L4D2 cuz of it... Lazy Valve.(By google translate)

DLLs