Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work in any game with d3d9.dll #135

Open
nglzzz opened this issue May 1, 2023 · 11 comments
Open

Doesn't work in any game with d3d9.dll #135

nglzzz opened this issue May 1, 2023 · 11 comments

Comments

@nglzzz
Copy link

nglzzz commented May 1, 2023

Hello! I have tried to test RTX Remix in several old games and it doesn't work for me at all.

For example:

  • Need For Speed: Underground 2
    I copied all filles from folder remix-0.1.1 to game's folder. Result: Game can't start (it worked before). If I delete d3d9.dll it works again but of course without rtx remix features.
    d3d9.log:
[19:00:45.408] info:  No default config found for: G:\NFS Underground 2\speed2.exe
[19:00:45.409] info:  Trying to open config file: G:\NFS Underground 2\.trex\bridge.conf
[19:00:45.411] info:  Using shared heap for textures.
[19:00:45.412] info:  Using shared heap for static buffers.
[19:00:45.413] info:  Using shared heap for dynamic buffers.
[19:00:45.414] info:  ==================
[19:00:45.414] info:  NVIDIA RTX Remix Bridge Client
[19:00:45.415] info:  ==================
[19:00:45.417] info:  Version: remix-0.1.1-2-gdc825b6
[19:00:45.418] info:  Loaded d3d9.dll from G:\NFS Underground 2\speed2.exe
  • Blur
    The same as for NFS: U2. Game can start only without d3d9.dll.
    d3d9.log:
[18:55:51.808] info:  No default config found for: G:\Blur\Blur.exe
[18:55:51.808] info:  Trying to open config file: G:\Blur\.trex\bridge.conf
[18:55:51.808] info:  Using shared heap for textures.
[18:55:51.808] info:  Using shared heap for static buffers.
[18:55:51.808] info:  Using shared heap for dynamic buffers.
[18:55:51.808] info:  ==================
[18:55:51.809] info:  NVIDIA RTX Remix Bridge Client
[18:55:51.809] info:  ==================
[18:55:51.809] info:  Version: remix-0.1.1-2-gdc825b6
[18:55:51.809] info:  Loaded d3d9.dll from G:\Blur\Blur.exe
[18:55:51.816] info:  DirectInput8 hook attached.
[18:55:51.821] info:  DirectInput hook attached.
[18:55:51.822] info:  Initializing new shared memory object.
[18:55:51.846] info:  Shared memory: [ClientChannel_202ae9b4-cba9-4819-96a2-35744020943d] created and initialized successfully!
[18:55:51.846] info:  Initializing new shared memory object.
[18:55:51.855] info:  Shared memory: [ServerChannel_202ae9b4-cba9-4819-96a2-35744020943d] created and initialized successfully!
[18:55:51.855] info:  Initializing new shared memory object.
[18:55:51.855] info:  Shared memory: [SharedDataHeap_meta_202ae9b4-cba9-4819-96a2-35744020943d] created and initialized successfully!
[18:55:51.855] info:  Initializing new shared memory object.
[18:55:51.921] info:  Shared memory: [SharedDataHeap_data_0_202ae9b4-cba9-4819-96a2-35744020943d] created and initialized successfully!
[18:55:51.921] info:  Initializing new shared memory object.
[18:55:51.986] info:  Shared memory: [SharedDataHeap_data_1_202ae9b4-cba9-4819-96a2-35744020943d] created and initialized successfully!
[18:55:51.997] info:  Launching server with GUID 202ae9b4-cba9-4819-96a2-35744020943d
[18:55:51.998] info:  Sending SYN command, waiting for ACK from server...
[18:55:52.236] info:  Ack received! Handshake completed! Telling server to continue waiting for commands...
[18:55:52.236] info:  Server crash recovery enabled
  • Half-Life 1 (Steam). No any effects. Game starts but without RTX Remix. No any logs like NvRemixBridge.log or d3d9.log.

  • Max Payne 2. Game can start but crashed after several seconds in the game.

d3d9.log:

[16:34:41.684] info:  No default config found for: G:\Updated Classic Max Payne 1&2\Max Payne 2 The Fall of Max Payne\MaxPayne2.exe
[16:34:41.685] info:  Trying to open config file: G:\Updated Classic Max Payne 1&2\Max Payne 2 The Fall of Max Payne\.trex\bridge.conf
[16:34:41.685] info:  Using shared heap for textures.
[16:34:41.685] info:  Using shared heap for static buffers.
[16:34:41.685] info:  Using shared heap for dynamic buffers.
[16:34:41.685] info:  ==================
[16:34:41.685] info:  NVIDIA RTX Remix Bridge Client
[16:34:41.685] info:  ==================
[16:34:41.685] info:  Version: remix-0.1.1-2-gdc825b6
[16:34:41.685] info:  Loaded d3d9.dll from G:\Updated Classic Max Payne 1&2\Max Payne 2 The Fall of Max Payne\MaxPayne2.exe
[16:34:41.692] info:  DirectInput8 hook attached.
[16:34:41.697] info:  DirectInput hook attached.
[16:34:41.697] info:  Initializing new shared memory object.
[16:34:41.722] info:  Shared memory: [ClientChannel_b48a8a8f-e310-4199-997b-10b1cd4686c3] created and initialized successfully!
[16:34:41.723] info:  Initializing new shared memory object.
[16:34:41.731] info:  Shared memory: [ServerChannel_b48a8a8f-e310-4199-997b-10b1cd4686c3] created and initialized successfully!
[16:34:41.731] info:  Initializing new shared memory object.
[16:34:41.731] info:  Shared memory: [SharedDataHeap_meta_b48a8a8f-e310-4199-997b-10b1cd4686c3] created and initialized successfully!
[16:34:41.731] info:  Initializing new shared memory object.
[16:34:41.797] info:  Shared memory: [SharedDataHeap_data_0_b48a8a8f-e310-4199-997b-10b1cd4686c3] created and initialized successfully!
[16:34:41.797] info:  Initializing new shared memory object.
[16:34:41.861] info:  Shared memory: [SharedDataHeap_data_1_b48a8a8f-e310-4199-997b-10b1cd4686c3] created and initialized successfully!
[16:34:41.862] info:  About to unload bridge client.
[16:34:41.904] info:  Shutdown cleanup successful, exiting now!
[16:34:41.904] info:  DirectInput8 hook detached.
[16:34:41.904] info:  DirectInput hook detached.
[16:34:41.904] info:  [Uptime]: 0s

This is not full of games which I tried to test. I also tried Morrowind, Portal, Kane & Lynch etc, not works for at all.

My GPU: Nvidia RTX 4070 TI.
Drivers: Nvidia Studio 531.61

@Ferdam
Copy link

Ferdam commented May 3, 2023

Have you tried any of the newest dxvk-remix builds? I've had issues with original 0.1.1 release in some games, then tried newer dxvk-remix releases and some of these games started to at least load without crashing

Might be worth trying.

Btw, NFS Underground 2 runs on Dx9.0c, which has high chances of it relying on shaders, rendering it incompatible with current remix capabilities.

Lastly: how's your bridge.conf file? Some games have a fallback mode to run in fixed function mode for older cards, if that is a thing and you manage to force it, then you might get better results

GL

@Ferdam
Copy link

Ferdam commented May 3, 2023

Did not notice you were mentioning other games. Current Half-Life 1 build available on Steam runs on OpenGL. There's no DirectX support anymore, that's why it won't run as remix works only on DirectX 9 games right now

Blur and Max Payne 2 im not sure. Might be a good idea to check Discord channel, I think i've seen people having success with Max Payne games.

@nglzzz
Copy link
Author

nglzzz commented May 3, 2023

@Ferdam I tried the newest release. In my case it doesn't work for any games. I tried: NFS: U2, Half-Life 1, Half-Life 2 (Steam version), Half-Life 2 (2004 year's version), Blur, Max Payne 1, Max Payne 2, Morrowind, Portal and Kane & Lynch.
Maybe some issue with drivers or videocard? I don't have any thoughts

@Ferdam
Copy link

Ferdam commented May 4, 2023

Could be drivers yea, not sure. I'm not using studio driver version, I'm using the gaming one, version 531.18

I was successful getting HL2 (Steam version) to work with Remix following this guide: https://discord.com/channels/1028444667789967381/1096558617878089819

Not sure if you are actively checking Discord Channels, but there are threads with people being successful in some of the games you mentioned:

@ColinM9991
Copy link

Have you tried any of the newest dxvk-remix builds? I've had issues with original 0.1.1 release in some games, then tried newer dxvk-remix releases and some of these games started to at least load without crashing

What newer releases?

@Ferdam
Copy link

Ferdam commented May 5, 2023

Have you tried any of the newest dxvk-remix builds? I've had issues with original 0.1.1 release in some games, then tried newer dxvk-remix builds and some of these games started to at least load without crashing

What newer releases?

https://github.com/NVIDIAGameWorks/dxvk-remix/actions

You can get more recent builds of dxvk-remix dlls and place them in the \.trex folder. Some of them are attempts to add new experimental/beta features and bug fixes.
For example, the one that adds experimental anti-culling has fixed some issues for me in games like Thief Deadly Shadows

Again, trial & error process of finding one that might work better if you really believe a game should work with remix.

@ColinM9991
Copy link

Ah, I hadn't considered to check GitHub Actions.

It's worth noting that these aren't releases, they're just compiled outputs from automated build actions. So it's unlikely you'll receive support for using any binaries output from this.

@Ferdam
Copy link

Ferdam commented May 6, 2023

Ah, I hadn't considered to check GitHub Actions.

It's worth noting that these aren't releases, they're just compiled outputs from automated build actions. So it's unlikely you'll receive support for using any binaries output from this.

Yea, I worded it incorrectly, which is why I called them 'builds' in the other comment.

Still, if you check Discord channel you can see people asking nvidia devs about these newer builds, even showing them bugs and issues they found, rendering sometimes internal tickets being opened etc
Worth the shot... RTX Remix is in its early stages and you can see in the Discord channel that official devs are constantly improving their product based on feedback there

@elamaunt
Copy link

I faced the same issue in Warhammer 40k DoW game. The bridge had 0 seconds uptime due to not created d3d9 device. I tried OllyDbg to trace from which place d3d9.dll is loaded. And the game loads it directly from the system32 folder.

I searched all d3d9.dll entries in .*.dll files in the game folder end replaced d3d9.dll to z3d9.dll by HEX editor. Also I renamed the bridge library to z3d9.dll and it fixed the issue for me.

In addition you may try to call the bridge executable directly to inject the dll. It wasn't possible in my case, cause the game is loaded by Steam client.

I hope it will help in many games you tested.

@mirh
Copy link

mirh commented Apr 30, 2024

W40K should be NVIDIAGameWorks/dxvk-remix#58

@NV-LL
Copy link
Collaborator

NV-LL commented May 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants