• Running Windows games in Linux gets easier with Lutris

    Home » Forums » AskWoody support » Linux for the Home user » Linux – all distros » Running Windows games in Linux gets easier with Lutris

    Tags:

    Author
    Topic
    #348687

    In my post about the wonders of DXVK, mn- wrote that configuring WINE has been a bit too complicated for mainstream use.  That’s very true, but Lutris is making it a great deal easier!

    In that other post, I highlighted how Lutris makes it easy to use DXVK with WINE to give near Windows frame rates in GPU-accelerated Windows applications (games, primarily, but there’s no reason it would only work in games).

    In addition to that, and to keeping all of your games in one easily-managed central hub, it also makes configuring WINE really simple.

    I’m not much of a gamer, really.  I enjoy them from time to time, but I’m far from the person who waits with anticipation for the latest AAA title to be released.  I haven’t played or seen the vast majority of AAA titles… if I happen to discover one and become interested, I’ll give it a try, but if that doesn’t happen, I am usually happy to play what I have or do something other than play games with my free time.

    As such, I miss the hoopla over nearly all of the new AAA titles.  I’m the same way with movies– I will happily wait for them to come out on Netflix (I don’t have an account, but I am a guest on someone else’s) or on basic cable on TV.

    One such game I missed when it was new is The Witcher 3.  As I’ve gathered, it has quite a following, with some reviewers saying it is the best RPG ever for PC.  It’s begun to irritate me how people use “PC” to mean “Windows.”  PC is hardware, Windows is software.  My PCs don’t change to some other kind of computer when I put Linux on them!

    Aaaanyway, now that Witcher 3 is a few years old, I’ve decided to try it.  It doesn’t hurt that this AAA game with more than $80 million budget was available a week or two ago (along with both expansion packs) for $15 from GoG!  (Maybe it still is; I haven’t checked).

    I actually decided to try it when I saw a splash screen for Witcher 3 on the Lutris web site, lutris.net.  The link took me to the Lutris game database, and there I could see the link that said it was available on GoG.com.  I could get it from Steam or elsewhere and run it with Lutris, but by using GoG, I could have Lutris handle the setup for me.  Other games have Lutris install scripts that work with Steam or with the actual DVD-ROMs if you have them.

    I followed the link and created a GoG account.  I bought the game, and then went back to the Lutris entry for Witcher 3 and hit the Install button.  It popped up a browser link to download the file and open it in Lutris, which I did.  It asked me to log in with my new login credentials for GoG, and after I entered that, it downloaded the game, which took a really long time on my 40 Mbit/s internet connection (the fastest available in my area).  Once it downloaded, the installation commenced automatically, and I started the game with Lutris.

    It started and ran without a hiccup.  I started the game and went through the tutorial, and it worked perfectly except for one annoyance: the mouse look function had a point where it would stop, roughly at my 6 o’clock position to start.  I’m not a keyboard steerer; in games that permit it, like WoW and RIFT, I use the press both mouse buttons thing for “go” and I steer with the mouse.  That didn’t work so well with that stop point– as I turned, the stop point would not reset to be at my six anymore, but would remain in place.

    I began to look for mods to take out that “feature,” thinking it was somehow intentional, but I saw no reference to it at all.  That made me wonder… it’s very annoying, yet no one ever mentioned it.  Could it be that it’s not actually there for most people?

    I tried installing the game in Windows 8.1 on my desktop PC to test.  I copied the game directory from my WINE prefix over to the Windows NTFS volume, and then I installed the Windows GoG client and tried the game.  It did not run, so I used the GoG client to repair the installation.  After another lengthy download (which should not have been necessary, since the game was right there), it finished, and the game ran fine.  And you know what?  The mouse look had no stop point.  All of the same settings were already in place, as I had copied the config folder in the process.

    Then it dawned on me.  What if the KDE compositor was causing issues in Linux?  The game was in borderless window mode (full screen windowed) on both Windows and Linux by default, so I rebooted to Linux and tried it in true fullscreen.

    It worked perfectly, no stopping on mouse look!

    I then turned off the KDE compositor and put the game back in windowed fullscreen mode.  It worked as in Windows once again, no stopping.

    Actually, it was better than in Windows.  Windows stuttered and juddered as I looked around with the mouse.  In Linux, it’s far smoother!  I did not have any frame rate meters up in either OS, but they both felt the same in frame rate.  The look and feel was identical other than the judder in Windows (which I probably could tune out if I was interested, I am thinking).

    I’ve got a bunch of hours in the game now and it has never glitched, crashed, or locked up, and I didn’t have to even touch the WINE settings.  It is using WINE, but Lutris handled all of that for me.

    The Lutris web site has over 7500 games listed as available for Linux.  That includes Windows games in WINE, native Linux games, native Linux Steam games, Steam/Proton games (Proton is the WINE fork that is developed and distributed by Steam as part of their Linux client if the user wants it), and Windows Steam games under WINE instead of proton.  It’s a promising collection, and WINE just keeps getting better too.

    Unfortunately, the multiplayer games that use certain anti-cheat programs won’t work in Proton/WINE, and the WINE devs say they cannot be made to work.  The anticheats detect the simulated Windows environment as suspicious and won’t let the thing run, apparently.  I know that World of Warcraft is supposed to have its own anticheat built in, and it works in WINE just fine, so maybe there’s some hope that the devs of the anticheat programs will work on making them WINE compatible if the Linux platform continues to advance as a bona fide gaming platform.

    Software devs may not see the value in releasing Linux versions of their products, but maybe they can be convinced to make them work with WINE.  Given that WINE is meant to simulate Windows as closely as possible, it should be far easier to make a Windows game WINE-compatible than to port the whole thing.  If it works well on Linux, I’m happy; I don’t care how it works on Linux, only that it does.

    Remember to try turning off the compositor if you run into problems in any Linux setup under WINE or Proton.  Linux Mint Cinnamon has a checkbox to disable the compositor in fullscreen… I wish KDE did, but the devs refuse to implement it despite it being a common feature request.  It’s not that hard to set up a KDE window rule to turn the compositor off when it detects a WINE window, or to turn it off manually (alt-shift-F12, if I recall), but simply turning it off on any fullscreen detection would be even easier.

    Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
    XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
    Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

    3 users thanked author for this post.
    Viewing 1 reply thread
    Author
    Replies
    • #348723

      Thanks, Ascaris. I’ve tried WINE in my transition to Kubuntu and it’s simply too complicated for normal people.

      I’ve also tried PlayOnLinux for Word 2007, and the setup process is far from a model of clarity. Plus, I have never been sure what happens if I set up POL for more than one Windows program (e.g., do I end up with a bunch of different pseudo-C: drives?), nor how to reopen the programs once I close them: every time, I have ended up re-running the POL setup for Word. I just don’t have any clear overall mental picture of the process, where stuff goes, how to get back into it afterward; and their documentation has been little help in this regard.

      Would this Lutris work for non-gaming Windows software and, if so, is it easier to use than PlayOnLinux?

       

      • #348793

        I have used PlayOnLinux too, and I think Lutris is better.  It’s the same idea in a lot of ways, but it also includes software from other sources, and I think the UI is easier to understand.  In some ways, WINE has to be complicated, since this really isn’t Windows, so we have to make adjustments.

        WINE uses prefixes to have separate setups.  They’re not really virtual machines, but they work like that in a lot of ways.  They do have virtualized C drives and registries.  They’re specified by their location.

        WINE by itself uses the prefix ~/.wine .  I use the space between the word wine and the period to show that the period is not part of the prefix.  The leading period, of course, means the folder is hidden, and the ~ is (as I am sure you know) a shortcut for /home/yourusername, where yourusername is actually your user name.

        Everything that is installed in WINE without a prefix specified will end up in the default .wine wineprefix.  When you use PlayOnLinux, it creates its own wineprefixes.  I don’t remember where they are, but I do remember there’s a link (like a Windows shortcut) to them in the ~ folder, entitled PlayOnLinux’s Virtual Drives, or something like that.  It does create a new virtual C drive for each new PoL installation, as far as I know.

        You can have PlayOnLinux add more programs to a given wineprefix, but if you use the automated installer, it will create a new one for each program.  It allows a custom configuration for each program, but takes more space on the hard drive or SSD.  The one for my Witcher installation takes up about 800 MB before the size of the game itself is even considered… but the game takes up so much that <1 GB hardly even seems significant.  The game itself uses 36 GB!

        You can use Lutris to install, configure, and launch non-game programs like Office 2007.  It probably won’t have the predefined installation scripts as for games, though.  I’ve got several things installed in my Lutris that didn’t have Lutris install scripts, including the trial edition of Microsoft Streets and Trips 2013.  I can’t register/buy it, as MS refuses to take anyone’s money for S&T, but the installer is still available from them, and it gives a two week trial upon installation.  I couldn’t get it to run under WINE staging 4.4, but WINE staging 4.5 runs it flawlessly.

        Very annoying that MS flatly refuses to take my money and issue me a registration key.  I’d pay for it even with zero tech support.  I already know the program’s discontinued!  It already works, so no help needed there– I just want to get rid of the two week deadline.  They just decided that a Win32-based mapping program didn’t need to exist anymore, apparently, as did their competition, Delorme. Meanwhile, across the web, you can read messages from dozens of annoyed people who want just such a thing, and for each one of those, there are a ton more who didn’t post.  Like me, unless you count this post I am making now.

        I guess now I am supposed to use my smartphone for mapping purposes.  Only problem with that is that I don’t have one.  Or maybe I am supposed to use Bing Maps, which is an “app” for 8.1 and 10, and I’d never use any Metro/UWP apps even in Windows, let alone in Linux.  One of the first things I did when I installed Windows 8.1 was to remove all of the apps.  Phones use apps… real computers use programs, and I do not support the phone-ization of PCs.  Not only that, but I’d bet it also depends on a live internet connection like Google Maps on Android to grab map tiles for the current location on the fly, whereas Streets and Trips preloads the entire US map on the hard drive at installation time (which is what I need).

        Anyway, back to WINE.

        WINE staging is the branch to get, apparently.  When I was trying to get World of Warcraft running under WINE stable, it just would not work, and I was getting more and more frustrated.  WoW has a platinum rating on WineHQ, meaning it runs flawlessly with little or no configuration required, yet I could not get it to work. Then I realized that everyone who rated it platinum used Staging, so I removed Stable and installed Staging from WineHQ, made sure the option for simulating a virtual desktop was checked in the settings, then tried to run WoW again.  To my surprise, it started and ran without a hitch.  The only setting I changed was to enable DXVK to greatly increase the frame rate.

        I did that WoW installation before I was aware of the Lutris game database and the installation scripts.

        If you install WINE and use the context menu option to run an .exe file from a Linux file explorer (Dolphin for Kubuntu and Neon by default, of course) using WINE, that installation will be in the .wine prefix.  If you use Lutris, you can specify the prefix to use… I am not sure, but I think if you leave that field blank, it will use the .wine prefix.  I have a subdirectory in ~ called Games, and that’s where the Witcher prefix lives.

        As long as programs run like WoW, Streets and Trips 2013, or Plants vs. Zombies, WINE isn’t so bad.  All three of those work with WINE without me having to configure anything, aside from turning DXVK on in WoW by clicking the checkbox.  I just installed all three as if I was in Windows (although I right clicked and selected WINE to run the .exe, not double clicked, as the double click will try to run it with MONO by default, which of course does not work).  I have all three of those programs in the default ~/.wine prefix, while Witcher 3 is in its own.  I still manage them all with Lutris… but because I launched the installers for all of them with the Dolphin context menu, they all went to the .wine prefix.

        The Lutris setup screens will probably seem overly complicated once you see how many options are available, but it lets you know what the various options are up front, and I began to get a feel for it more quickly than I had in Play On Linux.  Most of them don’t need to be changed… only the options in the first two tabs at first need to be modified.  For WoW, that and the option to enable DXVK are all I paid any attention to.

        The predefined install script I used for POL was also vastly out of date (WoW). It would not surprise me if the rest of them were too.

        It’s still not to the point where running all Windows programs on Linux is as easy as in Windows.  For those that have a Lutris script, it’s pretty simple.  For the programs I mentioned here, it was pretty much like installing them in Windows. It just keeps getting better!

        Edit: To keep from having to keep reinstalling Word to run it, you’d have to use the PlayOnLinux options to go into the prefix where it is installed, and there is some option there to create a shortcut for an executable that will appear in the main POL screen.  I don’t have it installed at present, so I am going on memory, but there was some kind of thing that would give a list of executables inside the prefix and let you add them to the POL screen as shortcuts.

        Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
        XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
        Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

        2 users thanked author for this post.
    • #348894

      Ascaris, thanks for the added details. Sounds like it’s pretty straightforward. I’ll give Lutris a try and see how things go!

       

    Viewing 1 reply thread
    Reply To: Running Windows games in Linux gets easier with Lutris

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: