NVIDIAGameWorks / rtx-remix

Combined repo for the RTX-Remix runtime
https://www.nvidia.com/en-us/geforce/rtx-remix/
MIT License
1.36k stars 68 forks source link

HL2 not attaching/working #58

Open Dal1ster opened 1 year ago

Dal1ster commented 1 year ago

Describe the bug

Attach logs!

To Reproduce Steps to reproduce the behavior:

  1. Download specified version
  2. Extract to hl2 root folder
  3. run game
  4. see result

Expected behavior I expected it to boot with remix enabled along with the splash saying the shortcut to access settings for it

Screenshots If applicable, add screenshots to help explain your problem.

SirenGlitch commented 1 year ago

I'm getting the same issue, have not been able to fix yet. Even tried with Portal, oddly didn't work despite NVIDIA proving otherwise with Portal With RTX

dbwrush commented 1 year ago

It looks like Source games need a slightly different install process, see this other issue. You don't just dump all the files to the root folder with hl2.exe, you actually need to move d3d9.dll and the .trex folder into the /bin/ folder.

SirenGlitch commented 1 year ago

and the .trex folder

Ah, so thats what i've been missing, someone mentioned the dll in /bin but never .trex. will try that now!

Dal1ster commented 1 year ago

So it boots with remix, but then does something very unexpected. After a little bit, the world will start "flashing" a bright white and black (i think) really fast.

Dal1ster commented 1 year ago

Thats odd, upon rebooting the game, it now just shows a black sky instaid of the flashing one from before. Video for reference [NOTE: I Had to use drive since nvidia share recording file sizes are way too big to upload directly here] https://drive.google.com/file/d/1fr4uslqASFrgTU1UC44uOzO09uSNbc62/view?usp=sharing

MarkEHenderson commented 1 year ago

Please try running Half Life 2 using these instructions:

Half Life 2 recommended installation instructions:
1. Install Half Life 2 and PortalRTX.  Make sure both are fully updated - Portal With RTX just got a bugfix patch as of 2:30 PST today.
2. Copy the contents of "common\PortalRTX\portal_rtx\cfg" to "common\Half-Life 2\hl2\cfg" overwriting existing files
3. Copy the contents of "common\PortalRTX\bin" to "common\Half-Life 2\bin" overwriting the existing files
4. Copy rtx.conf and dxvk.conf from "common\PortalRTX" to "common\Half-Life 2"
5. Extract the contents of Remix 0.1.1 to "common\Half-Life 2\bin" overwriting existing files
6. Launch from steam.
RoyaleNoir commented 1 year ago

Please try running Half Life 2 using these instructions:

Half Life 2 recommended installation instructions:
1. Install Half Life 2 and PortalRTX.  Make sure both are fully updated - Portal With RTX just got a bugfix patch as of 2:30 PST today.
2. Copy the contents of "common\PortalRTX\portal_rtx\cfg" to "common\Half-Life 2\hl2\cfg" overwriting existing files
3. Copy the contents of "common\PortalRTX\bin" to "common\Half-Life 2\bin" overwriting the existing files
4. Copy rtx.conf and dxvk.conf from "common\PortalRTX" to "common\Half-Life 2"
5. Extract the contents of Remix 0.1.1 to "common\Half-Life 2\bin" overwriting existing files
6. Launch from steam.

An alternative that doesn't involve overwriting the engine binaries would likely just be to copy the common\Half-Life 2\hl2 folder into common\PortalRTX\hl2 and launching it by running common\PortalRTX\hl2.exe, since that should result in the same binaries being run with the same content.

SirenGlitch commented 1 year ago

Yes, but that would destroy the PortalRTX installation. You would need to reinstall to fix it

RoyaleNoir commented 1 year ago

Would it? The hl2 folder already in portal is just the content used in a regular install of hl2 (in fact, prior to 2013 they were stored in the same gcf). As long as the vpks are still there Portal should theoretically still run as that is all it cares about.

EDIT: just tested it - it works fine

RoyaleNoir commented 1 year ago

The reason that regular source doesn't work with RTX Remix seems to be that source 2013 is hardcoded to only go down to dxlevel 80, which still uses Shader Model 1 shaders. I think RTX Remix is meant to have partial support for dx8 shaders but it doesn't seem to work in this case.

using bridge.conf to set the device's reported shader version (client.shaderVersion) to 0 just causes source to crash, presumably due to the "dxsupportlevel" also never seeming to go below 80 and the shaders used in dxlevel 80 only falling back to fixed function when the dxsupportlevel is below 80. There may also be some that don't have fallbacks at all.

dbwrush commented 1 year ago

The reason that regular source doesn't work with RTX Remix seems to be that source 2013 is hardcoded to only go down to dxlevel 80, which still uses Shader Model 1 shaders. I think RTX Remix is meant to have partial support for dx8 shaders but it doesn't seem to work in this case.

using bridge.conf to set the device's reported shader version (client.shaderVersion) to 0 just causes source to crash, presumably due to the "dxsupportlevel" also never seeming to go below 80 and the shaders used in dxlevel 80 only falling back to fixed function when the dxsupportlevel is below 80. There may also be some that don't have fallbacks at all.

Hmm. Perhaps we would get better results with the Source Unpack versions that speedrunners use, as these use older Source Engine versions.

NV-LL commented 4 months ago

Hello @Dal1ster! Will you please test this on the latest release and let us know if the issue persists? Thank you!

Dal1ster commented 4 months ago

I tried to run the game with the latest version, but nothing opens or happens window wise, and according to steam, immediately closes afterwards @NV-LL