this post was submitted on 03 Aug 2023
54 points (93.5% liked)
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
54627 readers
540 users here now
⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.
Rules • Full Version
1. Posts must be related to the discussion of digital piracy
2. Don't request invites, trade, sell, or self-promote
3. Don't request or link to specific pirated titles, including DMs
4. Don't submit low-quality posts, be entitled, or harass others
Loot, Pillage, & Plunder
📜 c/Piracy Wiki (Community Edition):
💰 Please help cover server costs.
Ko-fi | Liberapay |
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I've done this a couple of times, and let me tell you, it's a journey.
General info
when I did this, I stored all my games on a generic drive that I wanted to easily access from both windows and Linux. Lutris / Wine would usually expect every game to sit in its own prefix, but since every prefix uses multiple hundreds of MB and makes folder structures annoying to navigate, I instead opted to use my default prefix (~/.wine) for literally everything. While this probably has downsides, it worked for me most of the time.
In this default prefix, through the wineconfig, I added my data drive as an additional D: mount to make Installation paths identical to how they'd be on windows, even if it doesn't really matter. I also mounted library folders like "Documents" to the same folder Windows would access to (hopefully) use the same save files between Windows and Linux. For games saving to AppData, I had to create manual links from the main folder on the data drive into the AppData folder in the wine prefix.
Installing Games
I'll assume you're either getting clean steam files from "the forum" or using repacks that need installing. In the latter case, I'd usually not bother adding the installer to lutris, it seemed more effort than needed. I'd rather open the terminal, navigate to ~/.wine, put the installer .exe in the same folder, and run something along the lines of
WINEPREFIX=$(pwd) installer.exe
. Specifying the prefix made sure that no new prefix would be created. Obviously you can also run the same command anywhere else on the filesystem, just remember to actually specify the prefix you want to use.At that point, the installer should hopefully open. Proceed like usual and specify the installation path (in my case something like "D:/Games/Name of Game" or whatever). Best case scenario, everything works. Worst case, something breaks or fails, at which point id just boot into a windows install I had on the side, installed there, then booted back to Linux. You could probably achieve the same with a vm, but I never tested that.
Running games
Once you've survived the installation, you can add the game to your lutris library. Remember to set the wine prefix to the default one. You'll also want to mess around with different runners ("wine" basically never, "lutris-wine" sometimes, "proton" or "proton-ge" for steam games, and there's plenty more) and environment variables (enabling DXVK and DXVK_ASYNC for performance and other stuff). Since every game is totally different and requires different flags, I skipped all tinkering and went straight to https://www.protondb.com, where you can look up the game and the additional info other people use on the game. Transfer that info into your lutris game settings, and then hopefully things work.
What if they don't
Oh man, this happened a lot. Let me preface that I was on arch, so my troubles might not apply to you. When games don't launch, you can right click the game in lutris and look into the wine logs, where you'll most often find some form of error. Sometimes it's file access permissions (save location read only, game exe not executable, or whatever else), wrong or missing environment variables, or (for me this was the most frequent) problems with some media decoding component of the system that simply couldn't decode the media files no matter how many additional codec packages I installed.
At some point I just gave up and went back to windows. Gaming on Linux is a fucking handful and, for someone with a full time job and at most 2-3 hours of game time per day, spending 2 thirds of that trying to get shit to run wasn't a good investment of my time once the novelty of "wow I'm doing such cool and nerdy stuff" wore off. So I'm hoping this helps you and your experience will be better than mine.
I didn't proof read this, so no guarantee for perfect grammar or content. In addition, some helpful subreddits are /r/LinuxCrackSupport, /r/CrackSupport/ and to an extent /r/linux_gaming/. You can find some limited degree of help and information there too.
Let me know if you have further questions.
Edit: corrected helpful subreddits
This is a very comprehensive guide! Thanks for taking the time.
IMO, it's so much easier to just use Lutris to install your game. Never had an issue with any repacks.
Setup your prefixes in Lutris, point to the installer, then install. After installation is done, just change that same setup to point to the .exe game launcher instead of the installer
Admittedly I didn't have to install many games during my time on Linux, so I'm not surprised that the "right way" to do it went past my head. if this works fine too, that's great!
What did you do when the error logs say "wrong or missing environment variables"? I'm having that error a LOT
I don't remember running into this issue myself, but the error is clear enough that I'd know where to start. If there are environment variables set, remove them one by one until the game starts. If there are none set, or if step one didn't help, go into protondb and see what flags the others are using to get the game running.
Generally, when encountering any sort of issue, trying a different runner can also already solve the issues. It really is a hit or miss process, and in some cases, a game will simply not run at all.