Proton icon indicating copy to clipboard operation
Proton copied to clipboard

Nioh 2 - The Complete Edition (1325200)

Open Hielyr opened this issue 5 years ago • 53 comments

Compatibility Report

  • Name of the game with compatibility issues: Nioh 2 - The Complete Edition
  • Steam AppID of the game: 1325200

System Information

  • GPU: Vega 64
  • Driver/LLVM version: Mesa 20.2.6
  • Kernel version: 5.8.0-7630-generic
  • Link to full system information report as Gist: https://gist.github.com/Hielyr/b822852b253bcb7ad5c31334cb46cf6b
  • Proton version: 5.13-5

I confirm:

  • [x] that I haven't found an existing compatibility report for this game.
  • [x] that I have checked whether there are updates for my system available.

Symptoms

Attempted to launch with Proton 5.13-5, Proton-6.1-GE-1at first. Under Proton 5.13-5, the game launches a window and then immediate closes / crashes most of the time, but will sometimes launch full screen and just behave as below with Proton GE.

Under Proton-6.1-GE-1, the same window will appear, and immediately minimize. If given enough time, there will be some initial menu audio. Attempting to switch to the minimized game window, the window appears to open, but then immediately minimizes again. After switching several time back and forth, the window will sometimes maximize and display a completely black screen. At this point, the mouse cursor changes to the in-game cursor and you can hear menu sounds if clicking, or pressing direction buttons on a game pad.

Reproduction

Launch the game.

steam-1325200.zip

Hielyr avatar Feb 05 '21 20:02 Hielyr

At this point, the mouse cursor changes to the in-game cursor and you can hear menu sounds if clicking, or pressing direction buttons on a game pad.

Once at this point I was able to get the game playable with the same fixes that worked for the original Nioh:

1). Disable Esync in launch options (PROTON_NO_ESYNC=1) 2). Force Large Address Aware in launch options (PROTON_FORCE_LARGE_ADDRESS_AWARE=1) 3). Create a config file e.g. in your home directory (nioh.conf) with the line: dxgi.deferSurfaceCreation = True 4). Add the launch command: DXVK_CONFIG_FILE="/home/username/nioh.conf" %command%

My full launch options look like this: PROTON_NO_ESYNC=1 PROTON_FORCE_LARGE_ADDRESS_AWARE=1 DXVK_CONFIG_FILE="/home/username/nioh.conf" %command%

Performance seems as expected, I have a crash every 1-2h so far. Videos (e.g. the intro cutscene or videos that showcase skills do not work at all), ingame cutscenes do work fine. The broken videos seem to have been a thing in the original Nioh as well, would be neat if someone maybe has an idea for a fix there.

evopls avatar Feb 06 '21 01:02 evopls

Hello @evopls, it should be noted that PROTON_FORCE_LARGE_ADDRESS_AWARE has been enabled by default since Proton 5.0-4 and manually setting that is not needed.

kisak-valve avatar Feb 06 '21 01:02 kisak-valve

Making a nioh.conf file within the game's folder with the following:

dxgi.deferSurfaceCreation = True

and setting launch option:

DXVK_CONFIG_FILE="./nioh.conf" %command%

Works here. Did not need to disable esync. and as kisak mentioned LAA is already enabled by default. cutscenes are broken even with mfplat patches.

GloriousEggroll avatar Feb 06 '21 06:02 GloriousEggroll

In reference to GE's comment about just being able to use the conf file with "dxgi.deferSurfaceCreation = True" set, that definitely does the trick and no other launch options appear to need to be set. However, at least on my system, the game is highly unstable and just loves to crash at any given opportunity.

Most frequently I notice crashes happen at the timing of several events:

  • Swapping weapons and armor. As soon as a weapon or armor item is selected and the button is pressed to equip the item, a crash may occur.
  • Loading a level. As soon as a level load is complete and you hit the button to start the level from the Tips / level information loading screen, the game may crash.
  • When receiving a Steam chat message, the game is minimised immediately to display the chat window and proceeds to crash 100% of the time.
  • Seemingly crashes routinely in intervals of thirty minutes /one hour, but not every time. I've managed to play for up to three hours without a crash a single time, but in most cases the game seems to crash around the one or two hour mark.
  • Summoning from Bloody or Benevolent graves. When holding B to summon, the game will sometimes crash when the gauge is full. This has only happened to me with graves from other players, not the default graves built into the game.

Other than that, when exiting the game via the in-game quit option, many times the game fails to fully close and must be killed via either Steam's stop button or a process manager / terminal. Otherwise the game may remain running and is detected by Steam as still being played.

Hielyr avatar Feb 09 '21 14:02 Hielyr

Replying to https://github.com/ValveSoftware/Proton/issues/4593#issuecomment-775995130

About the closing issue, i play on Windows until the game is "playable" (crashes addressed and such), and the game would not close unless minimized, if not, it would remain in a black screen. So it may have to do with that

CygnusTerminal avatar Feb 09 '21 22:02 CygnusTerminal

Excuse me but even when I make all these changes, Nioh 2 doesnt work for me. Its always stays running, but no screen appears, and neither is minimized. Game is "working" as it is in theory running, but no screen appears, and no sound happens. My PC is this: OS: EndeavourOS LinuxKERNEL: 5.10.16-arch1-1CPU: AMD Ryzen 5 1400 Quad-CoreGPU: AMD Radeon RX 560 (POLARIS11, DRM 3.40.0, 5.10.16-arch1-1, LLVM 11.0.1)GPU DRIVER: 4.6 Mesa 20.3.4RAM: 8 GB

I tried both proton 15.3-6, experimental, proton-6.0 GE-1 and proton-6.1 GE-2. But noone of them fixed the problem. I even tried moving all movie files to trashcan, if maybe the intro movie was the problem (As I heard both Nioh games have issues with movies playing) but it didnt work. Here is my Proton Log

======================
Proton: 1612754589 6.1-GE-2
SteamGameId: 1325200
Command: ['/run/media/username/0E320D610E320D61/INSTALATIONS LINUX D/steamapps/common/Nioh2/nioh2.exe']
Options: {'forcelgadd'}
SteamLinuxRuntime: v0.20210114.1-0-g5a1cbb7
pressure-vessel: 0.20210126.0+srt1 scout 0.20210127.0
soldier: 0.20210126.1 soldier 0.20210126.1
======================
ERROR: ld.so: object '/home/username/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

This or similar appears regardless of proton version, or if I empty launch options, or place the "DXVK_CONFIG_FILE=path to nioh.conf" launch option. Anything I missed?

55JinS77 avatar Feb 15 '21 23:02 55JinS77

Replying to https://github.com/ValveSoftware/Proton/issues/4593#issuecomment-779484407

Hey, could you upload the log file here so we can take a look at it? It's usually located in your home directory, remember to add "PROTON_LOG=1" to your launch options (without the quotations marks). Oh, and pay no mind to the gameoverlayrenderer error, it's always there, as far as i know, it's nothing to worry about.

CygnusTerminal avatar Feb 16 '21 13:02 CygnusTerminal

Replying to https://github.com/ValveSoftware/Proton/issues/4593#issuecomment-779844285

I posted the proton log already...But anyways: I already fixed the issue I had. Its was because I installed the game in a drive that is not the one the Linux boot is, somehow WINE/Proton couldnt load, so I just reinstalled the game, but this time on my main drive. Its a beginner mistake, sorry for your inconvenience everyone...

55JinS77 avatar Feb 16 '21 14:02 55JinS77

Hello @55JinS77, what filesystem are you using with /run/media/username/0E320D610E320D61? I suspect that it's an NTFS-formatted partition and Proton interacting with NTFS is known to be finicky.

kisak-valve avatar Feb 16 '21 14:02 kisak-valve

I agree that it might likely be a formatting issue on the partition. I use two different drives that are not my boot drive for my Steam games and I've never encountered an error like that when I use a Linux FS. I primarily use ext4 at the moment but I have used Btrfs with no issue as well.

Hielyr avatar Feb 16 '21 16:02 Hielyr

Hello @55JinS77, what filesystem are you using with /run/media/username/0E320D610E320D61? I suspect that it's an NTFS-formatted partition and Proton interacting with NTFS is known to be finicky. Its says at details "fuseblk". And yes, the Linux boot drive its a ext4.

55JinS77 avatar Feb 16 '21 17:02 55JinS77

@55JinS77 if the partition is showing as fuseblk, then it is indeed most likely formatted as NTFS and would be the cause of the errors you were getting.

Hielyr avatar Feb 16 '21 19:02 Hielyr

In reference to GE's comment about just being able to use the conf file with "dxgi.deferSurfaceCreation = True" set, that definitely does the trick and no other launch options appear to need to be set. However, at least on my system, the game is highly unstable and just loves to crash at any given opportunity.

Most frequently I notice crashes happen at the timing of several events:

* Swapping weapons and armor. As soon as a weapon or armor item is selected and the button is pressed to equip the item, a crash may occur.

* Loading a level. As soon as a level load is complete and you hit the button to start the level from the Tips / level information loading screen, the game may crash.

* When receiving a Steam chat message, the game is minimised immediately to display the chat window and proceeds to crash 100% of the time.

* Seemingly crashes routinely in intervals of thirty minutes /one hour, but not every time. I've managed to play for up to three hours without a crash a single time, but in most cases the game seems to crash around the one or two hour mark.

* Summoning from Bloody or Benevolent graves. When holding B to summon, the game will sometimes crash when the gauge is full. This has only happened to me with graves from other players, not the default graves built into the game.

Other than that, when exiting the game via the in-game quit option, many times the game fails to fully close and must be killed via either Steam's stop button or a process manager / terminal. Otherwise the game may remain running and is detected by Steam as still being played.

Can confirm. Game runs well, but it can crash occasionally when what you said happens. Its relatively a minor issue, but its annoying. At least that is what I got when using Proton-6.1-GE-2. Can anyone confirm if the game improves by using either proton 5.13 or experimental

@55JinS77 if the partition is showing as fuseblk, then it is indeed most likely formatted as NTFS and would be the cause of the errors you were getting.

Indeed, I even formatted that drive not long ago.

55JinS77 avatar Feb 16 '21 21:02 55JinS77

Hey, I tried to play Nioh 2 this weekend, but it didn't work. As described by Hielyr: When starting the game, the window minimizes immediately. If switched to the game window, it sometimes maximizes, only to minimize again. By switching several times, the window will maximize and display a completely black screen. I made all the changes mentioned here, but nothing worked.

OS: LInux Mint 19.1 Kernel: 4.15.0-135-generic x86_64 CPU: AMD Ryzen 5 2600 six-core GPU: Radeon RX 570 series (POLARIS10, DRM 3.23.0, 4.15.0-135-generic, LLVM 11.0.1) 4.6 Mesa 20.3.4 Vulkan instance version: 1.2.162

I tried Proton 15.3-6 and experimental using the Steam Client, but the problem occurred in both. Below are the warning/error lines from my Proton log (file also uploaded):

ERROR: ld.so: object '/home/username/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: Object '/home/username/.steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: Object '/home/username/.steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: Object '/home/username/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
warn: D3D11CoreCreateDevice: adapter is not a DXVK adapter
warn: OpenVR: Initialization of OpenVR failed
warn: OpenXR: Could not determine size of required Vulkan instance extensions
warn: OpenXR: Unable to get required Vulkan device extensions size

I'm not sure how to address this error, since it seems to be a Vulkan-specific issue. But the GPU is running Vulkan just fine (tested with vkcube). Also, I am able to run any other of my games flawlessly. It is only Nioh 2, that is causing problems.

Any suggestions?

steam-1325200.log.zip

aliasP avatar Feb 21 '21 20:02 aliasP

Anyone played the DLC mission "A Song to Calm the Storm"? Because for me, When I enter the Boss room, game stays as a black screen, and never loads. Anyone here had the same issue? Even when I have all NVIDIA settings off (Altough I have all AMD setup), verified the gamefiles, changed Proton version, and even lowered the graphic settings to low, the same issue happens...

55JinS77 avatar Feb 24 '21 11:02 55JinS77

That's the very first DLC main mission, correct?

If so I had the same issue there a few days ago and couldn't get it to work either (Nvidia setup). I wanted to know if this is the only time when this happened so I ended up pushing past it via booting up an old Win7 install which worked fine after forcing the game to use DX11. All other transitions of the DLCs worked perfectly fine on Linux but this specific one remains broken for me.

What should be playing is this transition: https://www.youtube.com/watch?v=YTIKNValUEk

The first 8 seconds of that clip are in the /steamapps/common/Nioh2/movie folder with all the other .wmv files that are broken on Linux: DEV1_0102A_MV.wmv in this case.

Usually when the game tries to play one of these it gives an "Failure To Play Movie" in the top right corner with the file name and simply skips it. I'm not 100% sure but this might be the only instance where such a .wmv leads into an ingame cutscene, maybe that's what breaks everything.

Is there anything besides the mfplat patches that GE mentioned further up that's worth giving a shot to make the .wmv files playable?

evopls avatar Feb 25 '21 10:02 evopls

Replying to https://github.com/ValveSoftware/Proton/issues/4593#issuecomment-785784296

It must be that video. Even tough it should not play, and just be skipped automatically; Somehow, it makes the game freeze. I can comfirm it because I Played the game on my Windows boot, and all played well, and going back to Linux, once the first cutscene happened on the Windows boot, then loading on Linux can you fight the boss.

55JinS77 avatar Feb 25 '21 10:02 55JinS77

Hi, none of the fixes above worked for me. I am running Linux Mint 20, NVIDIA Geforce 1080 GPU. Game forces itself to minimize on startup and does nothing after the initial musical sting when I use Proton-6.1-GE-2. If I use any of the Valve distributions of Proton, I don't even get a window in my DE, still hear the musical sting, and I have to kill the process. I don't typically have issues running games in general using Wine or DXVK. steam-1325200.log.zip

36PopTarts avatar Mar 06 '21 16:03 36PopTarts

Hello again, how can we go about fixing the crashes after 1 hour/2 hours of playing? I want to help debugging, but i surmise a 1 hour long log would be pretty hefty in size.

CygnusTerminal avatar Mar 14 '21 02:03 CygnusTerminal

Hello again, how can we go about fixing the crashes after 1 hour/2 hours of playing? I want to help debugging, but i surmise a 1 hour long log would be pretty hefty in size.

lol seems like even playing that long is a bad idea. Out od curiosity I wanted to see how big a log would even be (1.1 gigs btw). By the end of my session this happened: Screenshot_20210321_210852 As I spent more time playing, more stuff seemed to break, this is what I managed to capture before the game refused to display again after I alt+tabbed out to get the screenshot.

DigitalDevilSummoner avatar Mar 22 '21 02:03 DigitalDevilSummoner