From my understanding, at least one other necessary component is dxvk, and that wine is not enough.
If I dont use lutris or some other manager, how can I game on linux? do I have to configure dxvk? do I need soemthing else too? vulkan?
Is there a guide that explains it?
Gaming on the GNU/Linux operating system.
Recommended news sources:
Related chat:
Related Communities:
Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.
If you want to play visual novels, you should watch out for games encumbered by DRM.
It’s possible to play non-Steam games without Lutris, Bottles, or Heroic Games Launcher, though it’s a little more annoying. The easiest way to install DXVK in a Wineprefix is using Winetricks. Just run
WINEPREFIX=~/.local/share/wineprefixes/name winetricks dxvk
.The problem is Winetricks doesn’t support updating DXVK. Lutris makes managing DXVK a lot easier; you can turn it on or off and it will update DXVK and other compatibility components automatically.
Vulkan support is of course required for DXVK to work, but DXVK isn’t your only option for Direct3D translation. You can also use Wine’s OpenGL translation layer, WineD3D, which requires no setup. The downside is that WineD3D’s compatibility and performance is generally not as good as DXVK for the same versions of the Direct3D APIs. However, if your GPU doesn’t support Vulkan, then you need to use WineD3D.
On the other hand, if your GPU does support Vulkan, Lutris’ documentation provides a good place to start on installing Vulkan support for your distribution: https://github.com/lutris/docs/blob/master/InstallingDrivers.md
I wrote a guide explaining how the various components of Wine work to make games compatible. That might help you understand what exactly you need to do if you’re not using a Wine manager. And, if you want to make things easier when working in the terminal, you can try these Quick-Access Shell Functions the Winetricks wiki provides.
Are you sure about that? Every time I run winetricks (once in a blue moon) it always says I have DXVK (Latest)
Reasonably sure, but willing to be corrected. See this section of the Winetricks code (it’s just shellscript):
Followed by:
Winetricks determines whether a verb has been installed by writing and reading to a
winetricks.log
file found in the root directory of the Wineprefix you’re working with. It also tests if the file actually exists too, but let’s just focus onwinetricks.log
for simplicity.The first time Winetricks installs the
dxvk
verb, which takes the latest DXVK release at the time you run it, it writesdxvk
to thewinetricks.log
file. When a new version of DXVK is released, and you runWINEPREFIX=~/.local/share/wineprefixes/whatever winetricks dxvk
, it will hitwinetricks_is_installed
and read~/.local/share/wineprefixes/whatever/winetricks.log
to see if DXVK is already is installed. It will see thatdxvk
is in the log file and give up.When I was writing the Visual Novels on GNU/Linux guide, I did a lot of experimentation with Winetricks. I installed
dxvk
in a Wineprefix a few months ago and haven’t touched it since then. A new version of DXVK was released three weeks ago. When executing thedxvk
verb in that Wineprefix again, I get:Years ago, Winetricks would write a new verb definition for every new DXVK release. Presumably when it was much less stable. You can see remnants of that with the 100+ verbs for installing particular DXVK versions. Now it just takes the latest stable release. Yay for the maintainers, because that’s a lot less work. As a side effect, Winetricks doesn’t have a way of updating it normally.
Why doesn’t Winetricks have the ability to update verbs? Well, you’re often installing very specific versions of a native DLL to override the builtin Wine component. You don’t want that changing on you randomly. The
w_get_github_latest_release
function, which extracts the latest release, was created purely for and only used for DXVK. DXVK is the only component that really works like this in Winetricks.There is an easy way of updating DXVK anyway. Just run Winetricks with
--force
:Now, admittedly, I misspoke about Winetricks “not supporting updating DXVK”. I learned this option exists just now. So you can force-update it with
--force
, which bypasseswinetricks_is_installed
and installs the latest version of DXVK. Guide has been updated accordingly; thank you for making me look into this again!Oh does it not add new entries for every new DXVK release anymore? In that case I guess my DXVK version is probably a year old by now even though it says DXVK (Latest) and that it’s from year 2023: https://i.imgur.com/lNaqTPG.png
Oh I had no idea about this, and I normally just use winetrick’s GUI while using it so I would’ve had to look up how to update dxvk if not for you explaining it.
Although as a side note I’ve got the
winetricks-git
AUR package, not winetricks so maybe there’s some fix for it somewhere already, I’ll have to look into it. So far I haven’t had an issue with DXVK being too old, but I mostly play older gamesUnrelated but I’ll check that guide out, I’ve had trouble playing VNs that are in Japanese, as without
LANG="ja_JP.UTF-8" wine /path/to/game.exe
they won’t even run but even with it the fonts don’t work and are shown as empty boxes.Looks like the last time a verb for a new DXVK version was added was
dxvk2010
or DXVK 2.1, in February this year. We’re up to DXVK 2.3 now. Because the Winetricks codebase is around 20,000 lines of shellscript and I’m not the best at reading shellscript…I don’t think thedxvk
verb updates the Wineprefix’s DXVK version based on what the newest version is. I think that’s just an alternate way of installing DXVK; you can pull the latest stable release, or you can install a particular version.I think executing a particular verb for a DXVK version would override whatever DXVK dlls you currently have installed in that prefix, too. I have no idea how to check what DXVK version is installed a particular Wineprefix, though.
That’s based on the verb metadata; not what version of DXVK you currently have installed. A contributor bumped the year for the
dxvk
verb from 2017 to 2023 in a commit in February this year.Happy if it helps. I’ve never used the GUI, but it’s awesome that they managed to create a functioning GUI frontend with shellscript. Insane, really. God I hate shellscript…
You probably won’t get an issue with DXVK being “too old”, but newer versions of DXVK implement more features (particularly for D3D12) and include bug fixes to improve compatibility or performance. From the 2.3 release notes:
So you want to be running the latest version for better compatibility. That said, I mostly play visual novels. My biggest problems are still DRM and media playback, which DXVK has very little to do with.
You’re the exact person this guide was written for! This sounds like an issue that’s easily fixed by installing
fakejapanese
withwinetricks
. More info here: https://wiki.comfysnug.space/doku.php?id=visualnovel:problems#japanese_characters_aren_t_displaying_properlyAnd if you have
.txt
files in the game directory (like documentation or whatever) with garbled text, that’s probably because they’re encoded in Shift JIS. There’s an easy fix to make them readable: https://wiki.comfysnug.space/doku.php?id=visualnovel:problems#text_files_with_garbled_text(That last one had me scratching my head for a very long time)
Installing the fake japanese font did the trick 👍