how to get DX 11 game working under wine 5.5, dxvk

Questions about Wine on Linux
Locked
sponsor61
Level 3
Level 3
Posts: 59
Joined: Tue Apr 07, 2020 10:05 pm

how to get DX 11 game working under wine 5.5, dxvk

Post by sponsor61 »

I'm using wine-5.5 on Ubuntu 20.10 with an old nvidia card
I installed dxvk:

sudo apt install -y dxvk

Then I set up dxvk in a new wine prefix:

export WINEPREFIX=<path to empty dir>

dxvk-setup i

<install Falcon BMS 4.35, a DX 11 flight simulator game>

wine Launcher.exe -window &> log.txt

The log file shows that dxvk is working, and recognizes my nvidia card. Even so, the game crashes just before entering a 3D view, producing backtrace.txt (attached). The log file is also attached.
Attachments
log.txt.gz
(1.58 KiB) Downloaded 93 times
backtrace.txt.gz
(2.86 KiB) Downloaded 79 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: how to get DX 11 game working under wine 5.5, dxvk

Post by Bob Wya »

Hi sponsor61,

Does your game work if you install an up-to-date version of winetricks:

Code: Select all

sudo winetricks --self-update
- should work.

Then use the winetricks dxvk verb to install a fully up-to-date PE-build of dxvk:

Code: Select all

winetricks dxvk
You'd also want to re-test with an up-to-date version of Wine / Wine Staging (current release version is 6.0-rc3).
See: WineHQ Download: Ubuntu.

Also see: github: doitsujin / dxvk Wiki: Common issues.

Bob
sponsor61
Level 3
Level 3
Posts: 59
Joined: Tue Apr 07, 2020 10:05 pm

Re: how to get DX 11 game working under wine 5.5, dxvk

Post by sponsor61 »

I installed wine-6.0-rc3. Per the dxvk base graphics driver requirements, I updated to nvidia-driver-455, checked that this was working via nvidia-smi, then ran into the following problem. What should I try next? Thanks!
sudo winetricks --self-update
winetricks dxvk
...
Executing w_do_call d3dcompiler_43
Executing mkdir -p /home/main/Documents/201221
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_d3dcompiler_43
------------------------------------------------------
warning: Working around wine bug 24013 -- Native d3dcompiler_43 may cause some d3d10 apps to crash, see https://bugs.winehq.org/show_bug.cgi?id=24013
------------------------------------------------------
Executing cabextract -q -d /home/main/Documents/201221/WP/dosdevices/c:/windows/temp -L -F *d3dcompiler_43*x86* /home/main/.cache/winetricks/directx9/directx_Jun2010_redist.exe
Executing cabextract -q -d /home/main/Documents/201221/WP/dosdevices/c:/windows/syswow64 -L -F d3dcompiler_43.dll /home/main/Documents/201221/WP/dosdevices/c:/windows/temp/*.cab
/home/main/Documents/201221/WP/dosdevices/c:/windows/temp/*.cab: No such file or directory
------------------------------------------------------
warning: Note: command cabextract -q -d /home/main/Documents/201221/WP/dosdevices/c:/windows/syswow64 -L -F d3dcompiler_43.dll /home/main/Documents/201221/WP/dosdevices/c:/windows/temp/*.cab returned status 1. Aborting.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: how to get DX 11 game working under wine 5.5, dxvk

Post by Bob Wya »

@sponsor61

Please don't trim logs - just post or attach them in their entirety...
We'll need the full winetricks log to ascertain where things are going wrong. :lol:

Also please use the forum Code tags:

Code: Select all

...
to delimit terminal commands and output - </> button - above the full forum edit box.

Thanks
Bob
sponsor61
Level 3
Level 3
Posts: 59
Joined: Tue Apr 07, 2020 10:05 pm

Re: how to get DX 11 game working under wine 5.5, dxvk

Post by sponsor61 »

I tried starting with a clean 20.04 install. This time I did not get the dx compiler error, but the game still crashes under wine as if dxvk was not installed. Please suggest how to get the game working under wine.

starting with clean ubuntu 20.04 install

Code: Select all

sudo apt install nvidia-driver-455

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt update
sudo apt install --install-recommends winehq-devel
sudo apt install -y dxvk
dxvk-setup install
at this point I got the error message "/usr/bin/wine-development not found, please install wine-development as wine-stable does not currently support DXVK." so I tried installing dxvk from winetricks...

Code: Select all

sudo apt install -y winetricks
sudo winetricks --self-update
winetricks dxvk
Thus I am using wine-6.0-rc3
Next I installed the game, Falcon BMS 4.35, which others have succeeded in getting to work with dxvk using mint linux.
Then I run the game:

Code: Select all

wine Launcher.exe -window &> log.txt
Just before entering the 3D screen it crashes. backtrace attached.
The link to the log file is here:
https://www.mediafire.com/file/1y0zbukf ... ak.gz/file

The log file sha256sum is
8ec44200f9ed8e4bb0a3ebb71534ddf799f76649c1013526bfb5bf293731372a log.txt.crashedJustBeforeEntering3DView_2020-12-22.1612.bak.gz

Another user reported that with linux mint and wine 5.5 he was able to get this game to run under dxvk via these commands:

Code: Select all

sudo apt install dxvk
export WINEPREFIX=...
dxvk-setup install
but that didn't work for me because of the "/usr/bin/wine-development not found, please install wine-development as wine-stable does not currently support DXVK." error from dxvk-setup
Attachments
backtrace.txt.gz
backtrace
(1.39 KiB) Downloaded 82 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: how to get DX 11 game working under wine 5.5, dxvk

Post by Bob Wya »

@sponsor61

We'd need the full winetricks log, plus the commands you used to launch this.
Note that: winetricks dxvk - only installs the latest dxvk version to the currently active WINEPREFIX.

Again we'd need the start of the Wine terminal log, from running Falcon BMS...
This will indicate whether dxvk is being used, etc.

Thanks
Bob
sponsor61
Level 3
Level 3
Posts: 59
Joined: Tue Apr 07, 2020 10:05 pm

Re: how to get DX 11 game working under wine 5.5, dxvk

Post by sponsor61 »

Thanks for your reply, Bob. The wine command used was

Code: Select all

wine Launcher.exe -window &> log.txt
The log.txt file, renamed to "log.txt.crashedJustBeforeEntering3DView_2020-12-22.1612.bak", is included in my previous post as a mediafire link. (This log file is about 11Meg in size, too large for an attachment.)

I understand that winetricks installs dxvk only in a single wineprefix. The winetricks.log for the wineprefix is attached to this post.

I don't see any mention of dxvk in log.txt and Falcon BMS acts as if it can't find DX 11. This would suggest that when I issued the

Code: Select all

winetricks dxvk
command the $WINEPREFIX environment variable wasn't pointed at the right wine prefix. However, the winetricks.log in the correct wineprefix seems to indicate that dxvk was in fact installed there.
Attachments
winetricks.log.gz
The winetricks log from the $WINEPREFIX directory
(85 Bytes) Downloaded 83 times
sponsor61
Level 3
Level 3
Posts: 59
Joined: Tue Apr 07, 2020 10:05 pm

Re: how to get DX 11 game working under wine 5.5, dxvk

Post by sponsor61 »

After comparing notes with others who succeeded in getting this game working, I've concluded that the problem is an nvidia card that is too old to run new DX 11 features.
Locked