Nexus-Mods / NexusMods.App

Home of the development of the Nexus Mods App
https://nexus-mods.github.io/NexusMods.App/
GNU General Public License v3.0
864 stars 43 forks source link

Running Red Mod on Linux in App support #1915

Closed LukeNexusMods closed 1 day ago

LukeNexusMods commented 3 weeks ago

As a user playing Cyberpunk on Linux I want red mods to be compiled with red mod So that I can use red mods on Linux and play the game

Red mod currently doesn't work in Linux, this work will be to get it working so that cyberpunk players can use red mods in Linux.

Sewer56 commented 3 weeks ago

This is directly related to:

and

This issue would be more-less autoclosed on completion of the dependencies.

MattSturgeon commented 3 weeks ago

Note: if Cyberpunk is installed using Heroic Games Launcher and Heroic's "experimental UI" is enabled, they have redmod related settings in the launcher, so it may be a little complex to determine who is responsible for deploying red mods.

I _assume_ the worst case here is that mods get compiled twice leading to a small amount of redundancy, but it's something worth considering. Another thing to note is wine prefix isolation: because wine prefixes are somewhat encapsulated windows environments (with their own registry, APPDATA, etc), you may run into issues if you try deploying redmod using a different WINEPREFIX to the one normally used to run the game. This is awkward, since the game launcher (heroic, steam, etc) may be the one responsible for the prefix, so NM.A may not be able to reliably determine its location. And a further complication: wine prefixes don't like it when you use them with several wine versions. They especially don't like switching between wine and proton. This is a non-issue when using a WINEPREFIX we control, but when using a game's primary WINEPREFIX, we may not know which wine binary the game launcher usually uses... Hopefully these are non-issues. Just things to keep in the back of your mind when working on the issue!

erri120 commented 3 weeks ago

Note: if Cyberpunk is installed using Heroic Games Launcher and Heroic's "experimental UI" is enabled, they have redmod related settings in the launcher, so it may be a little complex to determine who is responsible for deploying red mods.

What does that setting do?

MattSturgeon commented 3 weeks ago

What does that setting do?

It's been a while since I used it, but when enabled and red mods are installed in the game directory, it shows a lists of the mods to allow toggling them individually and/or re-ordering their loadorder.

With a redmod installed

![image](https://github.com/user-attachments/assets/df496c4f-5b47-4c97-ac6a-3249dfe9e092)

Help text

![image](https://github.com/user-attachments/assets/7c65e712-d70f-4822-8677-fe54233208b1)

IIUC when starting the game (or possibly when clicking "Apply") these mods are then "setup" or "deployed" by Heroic, using the redmod CLI.