Installation of redistributables

Questions about Wine on Linux
Locked
hiigaran
Level 2
Level 2
Posts: 41
Joined: Fri Sep 22, 2017 12:41 am

Installation of redistributables

Post by hiigaran »

So, I've seen a lot of people getting software under WINE to work by manually installing certain software, such as DirextX, or the Visual C redistributables, but without mentioning how they did it. Before going on an assumption, can I just confirm that I'd be downloading the relevant installers as I would on a Windows system, then running them under WINE? If not, what's the proper way to do it?

Also, is there a list of commonly used redistributables I could use to increase the chances of Windows software working correctly? Probably a vague question, given that different programs needs different installers, but I'm trying to cover all my bases here. Or at least, most of them.
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: Installation of redistributables

Post by dimesio »

The best way to do it is to use winetricks, as that works around known bugs in Wine. https://wiki.winehq.org/Winetricks

As for which ones to install, only install the ones you know your app or game needs, as using native dlls unnecessarily can prevent things from working.
hiigaran
Level 2
Level 2
Posts: 41
Joined: Fri Sep 22, 2017 12:41 am

Re: Installation of redistributables

Post by hiigaran »

Problem is, I'm not sure which ones would be needed, and which ones would be unnecessary, as what I want to run isn't listed in the app database. I figured I'd start experimenting.

On that note though, what would you recommend when it comes to trying different things out for untested software (this may or may not be a vague/broad question)?
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: Installation of redistributables

Post by dimesio »

Try initially in a clean wineprefix, using the current development or staging release (if one branch doesn't work, try the other). If you're on 64 bit and a 32 bit application doesn't work, try a 32 bit wineprefix. If it's an older application, you might also want to try setting the Windows version to XP or earlier. If none of that works, post terminal output, with a description of what is happening.
hiigaran
Level 2
Level 2
Posts: 41
Joined: Fri Sep 22, 2017 12:41 am

Re: Installation of redistributables

Post by hiigaran »

Okay, so I've tried the following:

1: apt purge all Wine related packages, reinstall, created WINEARCH=win32, and let Wine create the default ~/.wine folder.
2: Installed the game successfully.
3: Downloaded DXVK 0.62 from here: https://github.com/doitsujin/dxvk/releases as it is required for the game to run.
4: Extracted files. Ran WINEPREFIX=~/.wine/ ./setup_dxvk.sh for both 32 and 64 bit folders within archive. 64 bit throws up error about incompatibility with 32 bit prefix.
5: Attempting to run the game .exe results in an error mentioning that 32 bit is not supported.
5: Deleted ~/.wine and created default 64 bit in the same location.
6: Repeated steps 2 to 4. 64 bit DXVK script runs successfully this time.
7: Attempted to run game using command WINEDEBUG="-all" DXVK_HUD=1 wine DarkSoulsIII.exe |& tee ~/debug.txt

debug.txt outputs:

Windows 10: https://pastebin.com/BBHRhN3C
Windows 7: https://pastebin.com/HWvPdy50
Windows XP: https://pastebin.com/08A58Q0i

In all cases with DXVK, the game crashes before opening up. Running a clean install of Wine with a 64 bit prefix and no DXVK will allow me to start the game up, reach the menu, and interact with everything there. Starting the actual game results in a crash. It looks like DXVK is a must, and there are videos on YouTube showing people running the game more or less properly. None of them really provide proper instructions, so I'm left to my own devices here, and trying to figure things out from their terminal outputs and such.
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: Installation of redistributables

Post by dimesio »

DXVK is not supported here; if it crashes before starting and plain Wine does not, report the problem to them.

There's already a bug for the crash on loading the game in plain Wine; you might want to leave a comment there that this is still an issue. https://bugs.winehq.org/show_bug.cgi?id=43739
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Installation of redistributables

Post by Bob Wya »

hiigaran wrote:Okay, so I've tried the following:

1: apt purge all Wine related packages, reinstall, created WINEARCH=win32, and let Wine create the default ~/.wine folder.
2: Installed the game successfully.
3: Downloaded DXVK 0.62 from here: https://github.com/doitsujin/dxvk/releases as it is required for the game to run.
4: Extracted files. Ran WINEPREFIX=~/.wine/ ./setup_dxvk.sh for both 32 and 64 bit folders within archive. 64 bit throws up error about incompatibility with 32 bit prefix.
5: Attempting to run the game .exe results in an error mentioning that 32 bit is not supported.
5: Deleted ~/.wine and created default 64 bit in the same location.
6: Repeated steps 2 to 4. 64 bit DXVK script runs successfully this time.
7: Attempted to run game using command WINEDEBUG="-all" DXVK_HUD=1 wine DarkSoulsIII.exe |& tee ~/debug.txt

debug.txt outputs:

Windows 10: https://pastebin.com/BBHRhN3C
Windows 7: https://pastebin.com/HWvPdy50
Windows XP: https://pastebin.com/08A58Q0i
If you pull the latest Winetricks Git master, then all you need is:

Code: Select all

winetricks dxvk62
Technically DXVK 0.62 requires Nvidia beta driver versions 396.24.02 or 396.24.10 (this requirement has been dropped from the DXVK Git Master).
Nvidia driver version 390.77.0 is very much not supported by DXVK...
See: Github: doitsujin / dxvk Wiki: Driver Support.

You also need to update to at least Wine Development / Staging 3.10. Your Wine Vulkan version is out-of-date as well.
See: Github: doitsujin / dxvk README.


Bob
hiigaran
Level 2
Level 2
Posts: 41
Joined: Fri Sep 22, 2017 12:41 am

Re: Installation of redistributables

Post by hiigaran »

I think I might have to wait until newer drivers are released then. I've got other software that unfortunately does not work under 396 yet.

While I'm waiting however, I'd like to clarify a few things first.

1: Running 'winetricks dxvk62' replaces steps 3 and 4, correct? I assume that if newer versions come out, I just use dxvk63 as the next version, or whichever one is available at the time, right?
2: I'm running staging version 3.12 at the moment, and waiting for 3.13 to pop up in the repos. Is something in the logs showing the version to be incorrect? Seems right from the last few lines.
3: As for Vulkan, I installed the packages libvulkan1, libvulkan-dev, and vulkan-utils. I'm guessing they're outdated in the repos then? Any idea if there's a PPA or something I could add to my sources.list containing more up to date versions? Or is it only available to be installed manually for now? The xorg-edgers PPA doesn't seem to show any newer version. Or are there additional packages I need to install?
dimesio wrote:DXVK is not supported here; if it crashes before starting and plain Wine does not, report the problem to them.

There's already a bug for the crash on loading the game in plain Wine; you might want to leave a comment there that this is still an issue. https://bugs.winehq.org/show_bug.cgi?id=43739
Will probably leave one later on if I can remember my password for it. Cheers.
hiigaran
Level 2
Level 2
Posts: 41
Joined: Fri Sep 22, 2017 12:41 am

Re: Installation of redistributables

Post by hiigaran »

Okay, the other software that depended on an older driver version was updated, so now I'm running 396. Game works more than it did before. There is however one problem that still remains, and this was present when I tried it without DXVK in another thread I made a while back. There seems to be an ungodly amount of input lag from the keyboard. Mouse works fine, and oddly enough, the keyboard works fine in the text box where you name your character. Everywhere else however, whether it is the menu pre-game or in-game, or general in-game use (moving character, etc), the input lag is still an issue.

Basically, if you hold a button down, it takes several seconds to register. When it does register, the game only sees it as a single, quick press of the button, rather than the relevant key being held down.

There's progress now. That's good. Just need to figure this one final issue out. Again, other people are playing it without issue. Then again, they might be playing the game with a controller, as it was stated on other sites that there's no input lag with a controller. Any idea what general area I should look into?
Locked