Resident Evil 2

Resident Evil 2

Not enough ratings
Resident Evil 2 Remake and more games on Linux using Wine TKG + Lutris + DXVK
By B4RR3L RiD3R
Play Resident Evil 2 (or others windows games for steam) using Linux and Wine instead of Proton.

Advantage is performance and flexibility, with any modular package of your choice.

You are able to customize your favorite version of wine, dxvk, prefix, Hud options, etc
   
Award
Favorite
Favorited
Unfavorite
Configuration


1 - Create a Home folder "steamwin"

2 - Download and intall latest: Wine-staging, DXVK and Lutris available dor your distro.

3 - Download SteamSetup.exe for windows from steam site

4 - Grab the file mfplat.dll from syswow64 of an updated copy of windows 7

5 - Download python-installcab by tonix64
Head to https://github.com/tonix64/python-installcab [github.com] and click Clone or download -> Download ZIP to download the repo. Unpack it somewhere.

5.1 - Edit installcab.py
Open installcab.py in a text editor, and head to line 129, which should look like this:
# value = value.replace("%SystemRoot%", "C:\\windows")
Lines 129 to 137 are commented out, go ahead an uncomment them (remove # from beginning of each line) and save the file.

5.2 Edit install-mf-64.sh
Some Linux distributions have switched to running Python scripts through python3 by default. However, installcab.py runs properly only through python2, it's better to explicitly state that.

Open install-mf-64.sh and add "python2 " before every installcab.py invocation (lines 3-8).

The script should look like this now:

#! /bin/bash
DIRECTORY=`dirname $(realpath $0)`
python2 $DIRECTORY/installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X64.exe mediafoundation
python2 $DIRECTORY/installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X64.exe mf_
python2 $DIRECTORY/installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X64.exe mfreadwrite
python2 $DIRECTORY/installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X64.exe wmadmod
python2 $DIRECTORY/installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X64.exe wmvdecod
python2 $DIRECTORY/installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X64.exe wmadmod
...


6 - Place the mfplat.dll file from syswow64 of windows7 into your game executable folder, in this case: /home/"user"/steamwin/drive_c/Program Files (x86)/Steam/steamapps/common/RESIDENT EVIL 2 BIOHAZARD RE2


7 - Open a terminal window from your extracted python-installcab-master add the downloaded file SteamSetup.exe to the same folder


and run:

export WINEPREFIX=
winetricks mf

an than:

export WINEPREFIX=~/steamwin
./install-mf-64.sh

for the required libraries

export WINEPREFIX=~/steamwin
winecfg

Go to libraries tab and add: dxgi.dll and d3d11.dll (also check if MF.dll is already there)
In Staging tab uncheck every box and the CSMT one
Press OK

Finally
export WINEPREFIX=~/steamwin
wine ./SteamSetup.exe

Follow through steam installation and install your game also.


8 - Now go to Lutris and add a new app, right-click and choose configure

In Game info tab

Name it as you wish "SteamWin"

Runner: Wine


Game Options tab

Browse for your steam.exe executable inside your /steamwin/drive_c/Program Files (x86)/Steam/Steam.exe

As working directory ~/steamwin/drive_c/Program Files (x86)/Steam

And your ~/steamwin as wine prefix

Prefix architecture: 64-bit


Runner Options tab

Wine version: Staging 4.0+ or later
Enable DXVK
show advanced options
choose dxvk version 0.96+ or later

System Options tab

Go to Environment variables
add: DXVK_HUD (as key) and fps,memory (as values) press enter and save


9 - Optional

Esync activation

Go to your root/etc/security

add the line:

"youruser" hard nofile 524288

at the end of the text, save it and restart your PC.


Open lutris, runner settings, scroll to wine and choose manage settings.
Select the latest TKG wine available and wait for download to complete.

Select your application and configure, choose the TKG version of wine in runner options and enable esync.
1 Comments
John Helldiver Jul 9 @ 8:35pm 
I have a feeling that with the advancements of Proton Experimental, this is highly unneeded. At least since last year, PE has become very mainstream and better performing than even Proton 9-4