ebkr / r2modmanPlus

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

Steam launch command not working #109

Closed LeagueRaINi closed 4 years ago

LeagueRaINi commented 4 years ago

Issue: Risk of Rain 2 launches without BepInEx beeing run

What i have tried:

What does work:

Possible solution: Since you ask the user for the Risk of Rain 2 directory anyways why not launch the Risk of Rain 2.exe with the --doorstop-enable true --doorstop-target r2modman\BepInEx\core\BepInEx.Preloader.dll parameters directly instead of launching it through steam

OS: Win10 - 1909 [18363.657]

Other: I got Steam on my nvme [C:\] and my Steam games on my hdd [D:\]

ebkr commented 4 years ago

Thanks for the detailed information.

Are you trying to launch the game through the r2modman exe? If you are, does an error overlay appear?

Can you also try running it as an administrator?

I don't launch the game directly using the EXE because of the Steam overlay not starting.

LeagueRaINi commented 4 years ago

Are you trying to launch the game through the r2modman exe? If you are, does an error overlay appear?

Yes i'm trying to start it through your mod manager [clip]

Can you also try running it as an administrator?

Doesnt seem to make a difference

ebkr commented 4 years ago

Could you try re-installing the game? Ensure everything is gone from the Risk of Rain 2 folder before redownloading.

LeagueRaINi commented 4 years ago

Could you try re-installing the game? Ensure everything is gone from the Risk of Rain 2 folder before redownloading.

Still doesnt work

ebkr commented 4 years ago

Can you try switching to legacy mode in the manager?

LeagueRaINi commented 4 years ago

Can you try switching to legacy mode in the manager?

its not he symlink that doesnt work its starting the game through the steam.exe with the doorstop params

ebkr commented 4 years ago

I'm not sure, this hasn't happened before, there doesn't appear to be any errors, and the game still launches. I'll look in to it, and it'll likely involved a config option to launch using the EXE directly.

ebkr commented 4 years ago

For something to test, could you try fully quitting steam prior to launching through the manager?

LeagueRaINi commented 4 years ago

For something to test, could you try fully quitting steam prior to launching through the manager?

same bug

ebkr commented 4 years ago

Does this work if you run it through PowerShell? Start-Process "steam://run/632360//--doorstop-enable true --doorstop-target r2modman\\BepInEx\\core\\BepInEx.Preloader.dll"

Steam will have a warning popup prior to launching the game.

LeagueRaINi commented 4 years ago

Does this work if you run it through PowerShell? Start-Process "steam://run/632360//--doorstop-enable true --doorstop-target r2modman\\BepInEx\\core\\BepInEx.Preloader.dll"

Steam will have a warning popup prior to launching the game.

doesnt work either

ebkr commented 4 years ago

And if you replace the backslashes with single backslashes, same result?

If it is, it's weird that manually adding it as a non steam game works, as it's doing the exact same stuff.

ebkr commented 4 years ago

Someone else has just reported having this issue on the Thunderstore Discord server.

The solution was to uninstall the manager, and then clear out all folders relating to r2modman under AppData subdirectories.

You'll then have to manually remove the r2modman folder under Risk of Rain 2.

After that, you should be able to reinstall the manager, and everything should be fine.

If you have a profile you want to keep, you can export it through the settings, and move the exported file to a different location.

LeagueRaINi commented 4 years ago

ok so i uninstalled r2modman & cleaned the RoR2 folder and removed the 2 r2modman folders from appdata and it still doesnt work

LeagueRaINi commented 4 years ago

funny enough i just looked at the startup params of RoR2 and saw that it started from C:\, what happened is that instead of using my game copy in D:\Games\Steam\<RoR2> like steam did for every other game i have there it silently installed a new copy on my C:\ drive 🤦‍♂