Open Houtworm opened 6 years ago
Max Payne 3 ERR_D3D_GFX_NOD3DX1_4
Issue transferred from https://github.com/ValveSoftware/Proton/issues/805. @RBFraphael posted on 2018-08-28T04:39:49:
When I try to run Max Payne 3, I got an pop-up that says "Unrecoverable error. Please restart the game." and this pop-up's title says "ERR_D3D_GFX_NOD3DX1_4". I've tried to run the game with this command DRI_PRIME=1 %command% -dx9
to force using my dedicated graphics card (because I'm on a laptop with two gpus - processor's integrated and a dedicated gpu) and DirectX 9 (according to Rockstar's official post here. So, how can I run Max Payne 3?
My computer specs: Intel Core i5 5200U @2.7GHz 2x physical (4x logical) cores 8gb Ram DDR3L 1600MHz AMD Radeon HD 8500M / Radeon R5 M230 Linux Mint 19 Tara Kernel 4.15.0-33-generic
System information (from inxi -Fxr
in Terminal):
System:
Host: Lenovo-G40-80 Kernel: 4.15.0-33-generic x86_64
bits: 64 gcc: 7.3.0
Desktop: Cinnamon 3.8.8 (Gtk 3.22.30-1ubuntu1)
Distro: Linux Mint 19 Tara
Machine:
Device: laptop System: LENOVO product: 80JE v: Lenovo G40-80 serial: N/A
Mobo: LENOVO model: Lancer 4A1 v: SDK0J40679 WIN serial: N/A
UEFI: LENOVO v: B0CN99WW date: 08/09/2016
Battery
BAT0: charge: 0.0 Wh 0.0% condition: 23.3/37.5 Wh (62%)
model: Lenovo IdeaPad status: Charging
CPU:
Dual core Intel Core i5-5200U (-MT-MCP-)
arch: Broadwell rev.4 cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 8779
clock speeds: max: 2700 MHz 1: 2384 MHz 2: 2436 MHz 3: 2451 MHz
4: 2290 MHz
Graphics:
Card-1: Intel HD Graphics 5500 bus-ID: 00:02.0
Card-2: Advanced Micro Devices [AMD/ATI] Sun LE [Radeon HD 8550M / R5 M230]
bus-ID: 04:00.0
Display Server: x11 (X.Org 1.19.6 )
drivers: modesetting,ati,amdgpu (unloaded: fbdev,vesa)
Resolution: 1366x768@60.00hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (Broadwell GT2)
version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:
Card-1 Intel Broadwell-U Audio Controller
driver: snd_hda_intel bus-ID: 00:03.0
Card-2 Intel Wildcat Point-LP High Def. Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Sound: Advanced Linux Sound Architecture v: k4.15.0-33-generic
Network:
Card-1: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: 4000 bus-ID: 02:00.0
IF: enp2s0 state: down mac:
UPDATE:
Game runs fine with this Launch Options:
DRI_PRIME=1 PROTON_USE_WINED3D11=1 %command%
But stays on "Initializing" screen and Social Club process is not opened (checked with Gnome System Monitor)
I've experienced the same issues as @RBFraphael.
System specs: AMD FX-8140 32GB DDR3 Memory AMD RX580 8GB - Mesa 18.0.5 Ubuntu 18.04 - kernel 4.15.0-24
I just realised I am only on 18.0.5, I mustn't have installed 18.2 after installing a fresh copy of ubuntu 18.04. I'll install 18.2 from padoka tonight and retry, though I don't know if it is the cause of the issue.
I too was able to launch the game with
DRI_PRIME=1 PROTON_USE_WINED3D11=1 %command%
But then am stuck at Initializing screen.
I am fairly confident this is an issue with the Social Club, as it is even an issue with Windows installations as well.
I was able to at least set some sane display settings to help, by editing the file at
/path/to/steam-library/steamapps/compatdata/204100/pfx/drive_c/users/steamuser/My Documents/Rockstar Games/Max Payne 3/graphics.xml
I set fullscreen=1 and display resolution to 1920x1080.
I have tried modifying the DirectXVersion setting but it didn't resolve the issue.
There have also been issues with the social club reported for GTAV. I have tried some of their solutions, such as installing corefonts in the wineprefix with the command:
WINEPREFIX=/path/to/steam-library/steamapps/compatdata/204100/pfx winetricks corefonts
This also had no affect on the issue.
The logfile for social club is located at
path/to/steam-library/steamapps/compatdata/204100/pfx/drive_c/users/steamuser/My Documents/Rockstar Games/Social Club/socialclub.log
It contains some interesting information.
Here is mine:
[00000000] Thu Aug 30 19:00:17 2018 [00000000] Rockstar Games Social Club SDK: x86 RELEASE [00000000] [00000000] Settings: [00000000] Offline Only Mode: false [00000000] Launcher Mode: false [00000000] Running title: mp3 [00000000] Platform: Steam [00000000] Steam user: edenist [00000000] Language: E[00000000] Thu Aug 30 19:00:17 2018 [00000000] Rockstar Games Social Club SDK: x86 RELEASE [00000000] [00000000] Settings: [00000000] Offline Only Mode: false [00000000] Launcher Mode: false [00000000] Running title: mp3 [00000000] Platform: Steam [00000000] Steam user: edenist [00000000] Language: English [00000000] Environment: Production [00000000] [00000000] Network initialized [00000000] Presence Supported: 1 [00000000] Friends Supported: 1 [00000000] Connection State Change Supported: 0 [00000000] Achievements Supported: 1 [00000000] Autologin/Transfer Supported: 0 [00000000] [00000000] RAGE initialized [00000000] Social Club Directory: C:\Program Files (x86)\Rockstar Games\Social Club\ [00000000] Root Data Directory: C:\users\steamuser\My Documents\Rockstar Games\ [00000000] File System Initialized [00000000] [00000000] Command Line Arguments: [00000000] [00000001] Version Info: 1.2.4.0 [00000001] JSON Interface initialized [00000003] Metadata initialized [00000003] Achievement Manager initialized [00000003] Player Manager initialized [00000003] Gamer Pic Manager initialized [00000003] Profile Manager initialized [00000003] Presence Manager initialized [00000004] Commerce Manager initialized [00000004] Task Manager initialized [00000004] Telemetry Manager initialized [00000004] Network interface initialized [00000004] Cloud Saves interface initialized [00000005] Multi-Factor Authentication initialized [00000007] Browser Cache Directory: C:\users\steamuser\My Documents\Rockstar Games\Social Club\Renderer\ [00000082] SDK fully initialized [00000082] [00000097] Social Club UI - Entering State: 'LOADING' [00000099] Social Club UI - Entering State: 'WAITING_FOR_PAGE_LOAD_COMPLETION' [00017844] UpdateConnectionState :: Connection state changed from offline to online [00038014] Shutting down... nglish [00000000] Environment: Production [00000000] [00000000] Network initialized [00000000] Presence Supported: 1 [00000000] Friends Supported: 1 [00000000] Connection State Change Supported: 0 [00000000] Achievements Supported: 1 [00000000] Autologin/Transfer Supported: 0 [00000000] [00000000] RAGE initialized [00000000] Social Club Directory: C:\Program Files (x86)\Rockstar Games\Social Club\ [00000000] Root Data Directory: C:\users\steamuser\My Documents\Rockstar Games\ [00000000] File System Initialized [00000000] [00000000] Command Line Arguments: [00000000] [00000001] Version Info: 1.2.4.0 [00000001] JSON Interface initialized [00000003] Metadata initialized [00000003] Achievement Manager initialized [00000003] Player Manager initialized [00000003] Gamer Pic Manager initialized [00000003] Profile Manager initialized [00000003] Presence Manager initialized [00000004] Commerce Manager initialized [00000004] Task Manager initialized [00000004] Telemetry Manager initialized [00000004] Network interface initialized [00000004] Cloud Saves interface initialized [00000005] Multi-Factor Authentication initialized [00000007] Browser Cache Directory: C:\users\steamuser\My Documents\Rockstar Games\Social Club\Renderer\ [00000082] SDK fully initialized [00000082] [00000097] Social Club UI - Entering State: 'LOADING' [00000099] Social Club UI - Entering State: 'WAITING_FOR_PAGE_LOAD_COMPLETION' [00017844] UpdateConnectionState :: Connection state changed from offline to online [00038014] Shutting down...
I wonder if we can set 'Offline only mode' to true?
Worst-case scenario, I wonder if we may need to copy over profile data from a windows installation?
Hello @edenist, please use a gist or other pastebin service for large pastes from now on.
It is a problem with the installation folder. An old problem. Under Windows it must be installed under 'C:\Program Files (x86)\Steam\Steamapps\Common\Max Payne 3' which means under linux steam it must be 'home/username/.steam/steamapps/compatdata/204100/pfx/drive_c/Program Files (x86)/Steam/steamapps/common/Max Payne 3/' but it is installed in: 'home/username/.steam/steamapps/common/Max Payne 3' i tried to hardlink the complete Max Payne 3 folder. It doesnt work. i tried to go in wine registry and change [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Rockstar Games\Max Payne 3] to the right folder, but steam or the game is changing it every start back to default.
With new Proton version 3.16-5 I can confirm that game runs fine and is playable. Minor issues with mouse, but using controller lets avoid them.
Maybe someone already has a fix for random mouse locking?
Still not working for me :( @adojck have you done something (a command line params or file or whatever)?
@RBFraphael I have not done anything for Max Payne 3 specifically, but I had done few things on my system, to run other games, which might have affected Max Payne 3 too.
First thing I did was edit DefaultLimitNOFILE
var in /etc/systemd/user.conf
and /etc/systemd/system.conf
and set its value to 1048576
. This fix let me play Grand Theft Auto V with high settings without any issues.
Another fix was to switch libgnutls
in Steam Runtime with a newer version, to get Uplay working, but anyway none of Uplay games works for me :(
I am using Arch Linux with NVIDIA binary drivers 415.25 if that helps in any way... Proton version 3.16-5, today updated to 3.16-6 and still works with same mouse problem.
As I don't enjoy playing shooters with Steam Controller, I really would like to hear someone who had fixed this mouse problem :) any suggestions what I could try are also very welcome
Picked up Max Payne 3 Complete; seems to work more or less perfectly on my end with no special tweaking/workarounds required. Proton 3.16-7. I briefly tried out my XBOX360 pad which works but I play with keyboard and mouse.
Performance isn't quite what it was under Windows but it's still very respectable; any modern CPU (Ryzen/Intel Core) shouldn't have an issue with framerate dips which my screenshots don't show. DX9 is virtually unusable.
The biggest problem is a disappearing mouse cursor when interacting with the Rockstar Social Club especially if I use ALT-TAB to switch between windows. Thankfully it's really only needed to register multiplayer DLC once through the in-game shop - I used a Rockstar Pass to unlock the lot.
I don't experience any abnormal issues with the mouse whilst in-game - I'm able to run around and shoot accurately. I don't see any serious graphical issues either. Very playable. Impressive.
@adojck I fixed the mouse locking issue by disabling my second monitor in nvidia-settings. I hope this works for you as well.
So the game does actually work with proton 3.16-9 without any probs, even DXVK works with that version. There are some graphical issues with certain settings however.
Now, the first time I tried with current proton versions, the game cant find Directx Setup files, thus cant complete its first time setup. Rockstar Social Club is also missing because of that.
But for some reason, after I deleted compat folder 204100, things were different. The game finishes now its initial setup but nothing happens after that. Steam says the game runs, but it doesnt. You have to kill the wineserver and restart steam. Doing so let the game start.
Edit: Seems the game actually launches just fine using proton 4.11-8. And even my custom proton versions work till 4.18. But 4.20 causes a crash with DXVK.
Edit 2: Now tested with proton-tkg 4.20 r7 (build of today) and DXVK 1.4.5 - no crash, everything works.
There's been a regression.
In the latest versions of Steam Play/Proton, the game doesn't have audio. (Despite winecfg successfully playing the test sound.)
Last working version 5.0-10.
Both version newer than that don't play sound.( ie 5.13-5 and Experimental )
It's probably something game specific because winecfg successfully plays the audio test sound.
Hello @kingsly, please add PROTON_LOG=1 %command%
to the game's launch options, reproduce the regression, and attach the generated $HOME/steam-$APPID.log to this issue report as a file. (Proton logs compress well if needed.) Also, please copy your system information from Steam (Steam
-> Help
-> System Information
) and put it in a gist, then include a link to the gist in this issue report.
This game works fine for me, except when I turn on Tessellation it causes the polygons to go missing and/or flicker. I think I remember seeing similar thing in other games long time ago such as Witcher3...
Anyone know a fix. Using AMDGPU (6800xt) RADV MESA here.
Doesn't happen with PROTON_USE_WINED3D11=1, which suggests its a DXVK issue.
Hello @jarrard, can you grab a screenshot of the misrendering and share it? Also, please copy your system information from Steam (Steam
-> Help
-> System Information
) and put it in a gist, then include a link to the gist in this issue report.
I will, and a Linux apitrace via the wrapper method.
GIST https://gist.github.com/jarrard/83901432e10599bab09c96d6ba471f0d
Steam log with dxvk steam-204100.log
Relevant https://github.com/doitsujin/dxvk/issues/2202
The polygons of the character at main menu dance around wildly. Only happens with Tessellation enabled (disabled by default). Only happens with DXVK, not WineD3D11, also amdvlk driver does not fix the issue.
Thanks, one more quick thing to check. Can you disable vkBasalt and confirm that that doesn't have an effect on the issue you're seeing?
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_icd32.json:/usr/share/vulkan/icd.d/amd_icd64.json %command%
This fixes the issue; it seems this is indeed YET ANOTHER RADV related issue. lol
Yes MANGOHUD and Basalt don't hurt this game, just RADV being broken as usual.
@jarrard Are you still able to reproduce?
With RADV? probably. I reverting back to 21.5 or something MESA not long ago. It may be fixed in upstream mesa, I'll test it sometime.
Yes, with RADV.
The game runs fine, But it stays at initializing forever, I think it has something to do with the Social Club. Arch Linux Nvidia 396.54