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

[Resident evil 2 Remake Demo] invisible object #855

Closed
nickfaces opened this issue Jan 12, 2019 · 110 comments

Comments

Projects
None yet
9 participants
@nickfaces
Copy link

commented Jan 12, 2019

Software information

Name of the game, settings used etc.

System information

  • GPU: RX590
  • Driver: mesa-git
  • Wine version: wine-git
  • DXVK version: latest dev-branch

Log files

2019-01-12 21-57-25

@doitsujin

This comment has been minimized.

Copy link
Owner

commented Jan 12, 2019

I already did some debugging on this. It's a game bug, a compute shader that relies on undefined behaviour. This can probably not be fixed in DXVK and may require a driver hack.

The Vulkan driver from the AMDGPU-PRO package renders this game correctly.

@doitsujin doitsujin added the game bug label Jan 12, 2019

@nickfaces

This comment has been minimized.

Copy link
Author

commented Jan 12, 2019

So, maybe I have to issue a bug report on mesa bugtracker ?

@doitsujin

This comment has been minimized.

Copy link
Owner

commented Jan 12, 2019

Not necessary.

@doitsujin doitsujin added the amd radv label Jan 12, 2019

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 13, 2019

how you even get the demo to start? I try to launch and black screen comes for a minute and quits. Using steam and latest nvidia drivers.

@nickfaces

This comment has been minimized.

Copy link
Author

commented Jan 13, 2019

Its just working

@Arias800

This comment has been minimized.

Copy link

commented Jan 13, 2019

@mixalis1987 You need DXVK 0.95 ^^

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 13, 2019

@Arias800 How to run the game with DXVK 0.95 in Steam Play or Wine?

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 13, 2019

Not necessary.

Why not?

@Arias800

This comment has been minimized.

Copy link

commented Jan 13, 2019

I don't know . I use dxvk-docker for automatically compile and setup dxvk on lutris https://github.com/cheald/dxvk-docker

@doitsujin

This comment has been minimized.

Copy link
Owner

commented Jan 13, 2019

@laichiaheng it's not helpful when multiple people report the same thing on different channels. I already did inform a RADV developer about the issue, although not on the public bug tracker.

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 13, 2019

@doitsujin I see, thank you.

@nickfaces

This comment has been minimized.

Copy link
Author

commented Jan 13, 2019

@laichiaheng At least two amd developers(Samuel and Marek) are monitoring dxvk bug reports. :)

just install steam in wine prefix with latest dxvk and install the game, must working

@kassindornelles

This comment has been minimized.

Copy link

commented Jan 13, 2019

to fix any graphic issue on Resident Evil 2 Remake you need to change that line in the game config file (is on the .exe path)
"UseOptimizeShader=Disable"
the default value is enabled and seems like it causes the issues, please test and let me now if this fix everything for you guys.
Alt text

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 13, 2019

to fix any graphic issue on Resident Evil 2 Remake you need to change that line in the game config file (is on the .exe path)
"UseOptimizeShader=Disable"
the default value is enabled and seems like it causes the issues, please test and let me now if this fix everything for you guys.
Alt text

My default is disable.
Proton 3.16-beta

@kassindornelles

This comment has been minimized.

Copy link

commented Jan 13, 2019

to fix any graphic issue on Resident Evil 2 Remake you need to change that line in the game config file (is on the .exe path)
"UseOptimizeShader=Disable"
the default value is enabled and seems like it causes the issues, please test and let me now if this fix everything for you guys.
Alt text

My default is disable.

it was enabled by default with my GTX 750, i had weird graphic issues with that on.

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 13, 2019

yea using dxvk 0.95 works, game wont crash now when launched. But when you go to start the video on the laptop in the police station nothing happens and then you cant interface with anything, cant even pick up bullets etc but you can still move around and run but you also cant access your inventory. This only happens when trying to start the video on the laptop. If you don't do that everything works fine. So my guess is something to do with video. Also HUD disappears, can't see bullets left or anything once you activate the laptop.

@doitsujin

This comment has been minimized.

Copy link
Owner

commented Jan 13, 2019

That's some sort of wine bug (you might be right about it being related to the video). It does work with DXVK on Windows.

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 13, 2019

hmm ill try other wine versions and see, i only tried wine 4.0-rc4 staging
Edit: No other WINE versions didn't work.

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 14, 2019

Why does the AMDGPU-PRO driver render the game correctly if there is a game bug?

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 14, 2019

I already did some debugging on this. It's a game bug, a compute shader that relies on undefined behaviour. This can probably not be fixed in DXVK and may require a driver hack.

The Vulkan driver from the AMDGPU-PRO package renders this game correctly.

I still get the incorrect result with AMDGPU-PRO driver, the objects are still invisible.

@doitsujin

This comment has been minimized.

Copy link
Owner

commented Jan 14, 2019

Why does the AMDGPU-PRO driver render the game correctly if there is a game bug?

Because it is undefined behaviour. The driver is allowed to do whatever it wants to, that includes rendering the game correctly.

I still get the incorrect result with AMDGPU-PRO driver, the objects are still invisible.

Did you set VK_ICD_FILENAMES to point to the correct json file? It definitely does work with the 18.50 version on Polaris.

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 14, 2019

Where do you add this property?
This one? VK_ICD_FILENAMES="/etc/vulkan/icd.d/amd_icd/amd_icd64.json"
Or this one? VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/radeon_icd.x86_64.json"
I added each of them to the Launch Option in Steam properties, but they didn't work. (RX460)

Can I only install AMDVLK instead of the AMDGPU-PRO on Ubuntu?
(I've found the repo of it)

By the way, should I remove mesa-vulkan-drivers first?

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 14, 2019

@nickfaces

@laichiaheng At least two amd developers(Samuel and Marek) are monitoring dxvk bug reports. :)

just install steam in wine prefix with latest dxvk and install the game, must working

How do you install the 1 shot demo via Wine version of Steam? I can't browse the website in it.
I can't see 0.95 in Lutris, either. There is only 0.90 in it.

@doitsujin

This comment has been minimized.

Copy link
Owner

commented Jan 14, 2019

@laichiaheng make sure to set your launch options to VK_ICD_FILENAMES=/etc/vulkan/icd.d/amd_icd/amd_icd64.json %command% (notice the %command%), otherwise it'll just append it to the command which has no effect. If you turn on the DXVK HUD you should should see the device being named AMD Radeon(TM) RX 460 Graphics or something like that, instead of AMD RADV POLARIS11.

radeon_icd.x86_64.json is the JSON file for RADV.

I can't see 0.95 in Lutris, either. There is only 0.90 in it.

You can just type the desired version number (0.95).

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 14, 2019

@doitsujin
It was the result that I didn't add the %command% behind it in Steam Properties, I didn't use Lutris, either.

I didn't test it with AMDGPU-PRO driver, but installed amdvlk only.

There are lots of blocks in the image.
(I couldn't capture it in the first screenshot)
2019-01-14 21-09-30
(I can see the blocks clearly in this screenshot)
2019-01-14 21-09-38
2019-01-14 21-10-22
If I add the %command% at behind, it crashes.
2019-01-14 21-15-33
2019-01-14 21-16-06

@doitsujin

This comment has been minimized.

Copy link
Owner

commented Jan 14, 2019

If it crashes than the file path you entered is simply wrong.

AMDVLK does indeed produce artifacts, which is why I pointed you towards PRO and not AMDVLK.

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 14, 2019

@doitsujin It looks really better on the AMDGPU-PRO driver.
I still get the error message if I add the %command% behind it.
Do you play it by Lutris? Or Steam Native?

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 14, 2019

Well about that video error when activating the laptop. I'm pretty convinced now that its some type of video bug because when I try to start demo trailers in-game from the menu I just get a black screen but I can still hear the menu sound (Rain I think) but video wont start, so I have to force quit. Terminal doesn't really show anything of interest.

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@laichiaheng That might be the CPU then. Also if you haven't try lower graphics.

@ahmed-elsayed2017

This comment has been minimized.

Copy link

commented Jan 30, 2019

@mixalis1987
How good is it in RE2? No stutter in game and audio desync in cut scene?

What CPU and GPU are you using? Is anyone also in Gnome3 on Ubuntu18.04.1?

XFCE and KDE are lighter than Gnome and Cinnamon.

Look at this guide to know how to update your Nvidia or AMD card to the latest version if you haven't done it yet

Ubuntu 18.10 uses kernel 4.18, and Ubuntu 18.04 uses kernel 4.15. You might need to upgrade your system. Here is a guild to how to upgrade your system to 18.10 >>> https://www.omgubuntu.co.uk/2018/10/how-to-upgrade-to-ubuntu-18-10

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

Yea always update GPU drivers that helped a lot with Nier: Automata FPS jumped straight up after updating for that game.

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 30, 2019

I've already run on the latest mainline kernel (4.20.5) and latest mesa-git (19.0.0-devel) driver

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@laichiaheng Mesa are opensource drivers right? I read everywhere that the native ones from the companies are always better to use for gaming on linux. I always use the non-free drivers.

@laichiaheng

This comment has been minimized.

Copy link

commented Jan 30, 2019

@mixalis1987 Isn't Mesa RADV better than the proprietary AMDGPU-PRO driver on Linux now?
https://www.phoronix.com/scan.php?page=article&item=amdvlk-2019q12-mesa19&num=2
The Nvidia opensource Nouveau driver on Linux is horrible indeed.

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@laichiaheng Sorry can't say much about the drivers, never owned AMD.

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

Side note. Also got game trainer working with this game. I can make video if there is an interest.

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Nice! Resident Evil 7 Biohazard works as well

screenshot_20190130_014143

The modified script to be used directly:
python-installcab-master.zip

You need to write:
winetricks mf
export WINEPREFIX=/where the prefix of the game is
./install-mf-64.sh
You need to copy mfplat.dll version 12.0.7601.23471 (64bit) to the game folder

Is it the latest Gold version or the old one?

@ahmed-elsayed2017

This comment has been minimized.

Copy link

commented Jan 30, 2019

Is it the latest Gold version or the old one?

The old one.

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Thank you :)
Did you try the newest Gold version? I tried it but it crashes at Start game selection.

@ahmed-elsayed2017

This comment has been minimized.

Copy link

commented Jan 30, 2019

Thank you :)
Did you try the newest Gold version? I tried it but it crashes at Start game selection.

Did you copy mfplat.dll to the game folder?
You need mfplat.dll version 12.0.7601.23471 (Windows7 - 64bit).
IF you don't have the file, send me a private message and I will send it to you.

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Yes I copied the mfplat.dll version 12.0.7601.23471 to the game folder but no go :(

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@mozo78 I think i'm using the gold edition as it has extra content in it banned footage etc

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

and ran the mfplat install script?

@ahmed-elsayed2017

This comment has been minimized.

Copy link

commented Jan 30, 2019

Yes I copied the mfplat.dll version 12.0.7601.23471 to the game folder but no go :(

Did you get any errors while executing the script?

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@mozo78 whats your distro?

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Yes I copied the mfplat.dll version 12.0.7601.23471 to the game folder but no go :(

Did you get any errors while executing the script?

Nope, everything is allright with no errors at all:
https://pastebin.com/d2Mf7dxm

@mozo78 whats your distro?

Arch Linux.

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@mozo78 hmm yea and the install looks good. Only other thing I can think of is are you getting the mfplat from a reliable source?

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Yes, I downloaded it from the net and I installed Windows 7 on a Virtualbox VM. The game doesn't work with both dlls...

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@mozo78 And you sure of the version? did you right click mfplat in windows and go to the details tab to see if its the correct one?

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Yes ahmed-elsayed2 gave me one on email but the game keeps crashing at the new game selection...

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

latest WINE version?

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Yeah - Wine-Staging 4.0. I tried it with wine-3.16-6-proton also.

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

Am I right? Do I have the gold version if I have banned content included?

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

I don't know. I'll try 2017 Deluxe version :)

@mozo78

This comment has been minimized.

Copy link

commented Jan 30, 2019

Now I tried the oldest version and it actually runs without problems. The problem is in the Gold version :)

@mixalis1987

This comment has been minimized.

Copy link

commented Jan 30, 2019

@mozo78 Do you have banned content?

@mozo78

This comment has been minimized.

Copy link

commented Jan 31, 2019

How can I check it? I actually don't play this game. It's a hobby to set games in Wine and just wish to try that too :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.