TheZoq2 / dcs_on_linux

Instructions for running DCS World on linux. Mostly extracted from https://github.com/ValveSoftware/Proton/issues/1722
79 stars 4 forks source link

Lutris #12

Open Aiyarree opened 2 years ago

Aiyarree commented 2 years ago

Could we have this built as a Lutris Script?

TheZoq2 commented 2 years ago

I have no idea how to write a lutris script, but it sounds like a great idea. In fact, it looks like there is one available already which was updated 5 days ago https://lutris.net/games/dcs-world/

Aiyarree commented 2 years ago

Thats a very cool info indeed. I only noticed the first ones with several month old edits. Seem my brain went offline after this info ;-) Perhaps it is possible to focus on the Lutris stuff as this gets a wider audience than git in this case. A stable DCS on Linux would be my dream. Especially since windows refuses to run on my new gaming notebook. It has TB4 and that seems to kill windows to a point where i cant even use a external screen. It is a pure mess. To stay polite.

TheZoq2 commented 2 years ago

Lol, windows being windows. A lutris script would certainly make things more accessible, in fact, I think I may have started out with one of those lutris scripts a few years ago.

The advantage of having the info in git is that it has a place for a bunch of extra info like srs, scratchpad etc. And also works with proton (which is needed in order to play the game in VR)

T-X commented 1 year ago

These were the steps I used with Lutris, which worked great for me on a Thinkpad T14s AMD Gen3 with its Radeon 680M iGPU:

Install via the script from https://lutris.net/games/dcs-world/, called:

"Install the non-Steam version of DCS World directly from the Eagle Dynamics website. This installer will allow you to play without any other configuration."
-> https://lutris.net/games/install/15006/view

* Install a Wine staging (Wine-GE) version runner to Lutris:

https://www.youtube.com/watch?v=eEbcm__hgpU
-> "How To Install & Use Glorious Eggroll’s Lutris Wine-GE Builds in Lutris – Multiple Launcher Fixes"

https://github.com/GloriousEggroll/wine-ge-custom/releases
-> Wine-GE-Proton7-35 Released
  -> https://github.com/GloriousEggroll/wine-ge-custom/releases/download/GE-Proton7-35/wine-lutris-GE-Proton7-35-x86_64.tar.xz

* Unpack to ~/.local/share/lutris/runners/wine/

* Select Wine-GE runner in Lutris
  -> Right Click "DCS World" -> Configure -> Runner options -> Wine version: lutris-GE-Proton7-35-x86_64

And specific to this iGPU I also had to enable Vsync, but I have this issue with any 3D game at the moment, even native ones on Linux (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028549), so most people won't need this step:

 * Enable VSync against sync-hang bug:
  -> /home/linus/Games/dcs-world/drive_c/users/linus/Saved\ Games/DCS/Config/options.lua
    -> options.graphics.sync = true

The wine version which Debian unstable provided a months ago or so first did not work for me and crashed on startup (8.0~rc5, I think). That's why I tried the "Wine staging" version with Wine-GE.

However now a recent wine on Debian unstable nearly works for me too (Runner: System (8.0 (Debian 8.0~repack-4))). I only have one issue with Debian's wine 8 where I can't use keys with special characters like "ü", "ä", "ö". They weirdly work in the search menu in DCS World's keyboard settings and are shown as "ü", "ä" and "ö". But when assigning those keys then DCS World says "Unknown:103" for instance and I can't use it in the game. With Wine-GE Proton7 I don't have this issue and they are shown like their US keyboard layout variants when assigned: "ü" will be shown as "[" (but in the search, even weirder, it still shows "ü" and not "[" - but at least the key works now in the game).

Would it make sense to add a note about Wine-GE to the README.md for Lutris?