ebkr / r2modmanPlus

A simple and easy to use mod manager for several games using Thunderstore
MIT License
1.23k stars 187 forks source link

[BUG] - Risk of Rain 2 does not start with mods due to BepInEx launch method (Linux). #927

Open elekius opened 1 year ago

elekius commented 1 year ago

Describe the bug Game fails to start with mods, instead instantly closes.

To Reproduce Steps to reproduce the behavior:

  1. Create a profile for Risk of Rain 2.
  2. Install BepInEx.
  3. Launch Game modded.

Expected behavior Game starts with all installed and enabled Mods.

Additional context This bug occurs because r2modman tries to inject BepInEx via the method used for unix-native games, which in the case of Risk of Rain 2, is not applicable. r2modman thinks the game is native even though it's using Proton. r2modman's checks for proton by reading the game's manifest file and looking for the line platform_override_source and checking, if it has the value windows. If it does, it uses Proton, if not then it assumes it is a native application. Risk of Rain 2's manifest file, does not contain this line, which leads to r2modman defaulting to the injection method used for unix-native games, which fails. This issue has been reported by other users as well. I was able to reproduce this issue on three different machines and two different virtual machines. However, not all users encounter this issue.

jj-code-00 commented 1 year ago

Current work around I have found is don't add the launch arguments to ror2 and use https://thunderstore.io/package/Foldex/r2mod_cli/ and run it once letting it install bepinexpack, R2API, and HookGenPatcher. Then just use r2modman normally and everything should work. Might need to check updates every once in a while with r2cli too.

ardittristan commented 1 year ago

Above issue describes the location of the manual compatibility tool settings. Potentially being able to be used as a secondary proton check