Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of nxm:// URLs for MO2 #1082

Merged
merged 3 commits into from
Apr 14, 2024

Conversation

zerodogg
Copy link
Contributor

It now writes the MO2Conf files on each startup of MO2, and in addition to the STEAM/PROTON variables it will now also write MO2PFX, MO2WINE and MO2INST, so that it can launch URLs in an MO2 instance launched by startMO2.

It now writes the MO2*Conf files on each startup of MO2, and in addition to the
STEAM*/PROTON variables it will now also write MO2PFX, MO2WINE and MO2INST, so
that it can launch URLs in an MO2 instance launched by startMO2
@zerodogg
Copy link
Contributor Author

Resolves #848 (improves #851)

@sonic2kk
Copy link
Owner

sonic2kk commented Apr 14, 2024

Thanks for the PR! I'll do some testing to confirm.

I'd like to know though, why does this NXM link handling work for some people and not others? It works for me already.

If you don't have an answer that's fine. I'll test when I have some time and confirm that at the very least this doesn't break anything.

Really nice to see the community stepping up to help here!

@sonic2kk
Copy link
Owner

For some reason, ShellCheck CI didn't run against this PR. Odd. I'll see if I can manually kick it off!

@zerodogg
Copy link
Contributor Author

It seems like it only wrote the MO2Conf file in certain instances when running the actual game, but never when MO2 was just started on its own. So the file wouldn't exist (or could be wrong, referencing an older game). This patch adds writing that file when starting MO2 as well, and I had to just add some additional vars since starting MO2 references WINE and WINEPREFIX rather than a PROTON.

steamtinkerlaunch Show resolved Hide resolved
steamtinkerlaunch Show resolved Hide resolved
@sonic2kk
Copy link
Owner

sonic2kk commented Apr 14, 2024

Oh, right, can you bump the version at the top of the file to PROGVERS="v14.0.2040415-1"? :-)

I can't leave a review comment about that.

@sonic2kk
Copy link
Owner

Changes make sense overall and don't break anything. ShellCheck is also green locally. I'm not sure why it didn't run on CI but I'll look into that separately, that isn't an issue for your PR.

MO2 still starts up in Standalone Mode and Game Mode correctly. NXM URLs still work for me with no change in behaviour, and code makes sense. I did request a slight change but since ShellCheck isn't complain it's not a huge deal. I've also asked a question just for my own clarity, since I'm not overly familiar with this part of the code. Version needs bumped but at worst I can bump it myself.

Thank you a ton for taking the time to investigate and fix this issue! It comes up all the time, despite me highly disapproving of this feature in MO2 to begin with, I appreciate that you spent the time to fix it.

@zerodogg
Copy link
Contributor Author

Oh, right, can you bump the version at the top of the file to PROGVERS="v14.0.2040415-1"? :-)

I can't leave a review comment about that.

Done

@sonic2kk
Copy link
Owner

Awesome change, thank you! Will merge now.

@sonic2kk sonic2kk merged commit 109c6f3 into sonic2kk:master Apr 14, 2024
@zerodogg
Copy link
Contributor Author

Thanks ! :)

@sonic2kk
Copy link
Owner

Changelog has been updated with credit to you 🙂 https://github.com/sonic2kk/steamtinkerlaunch/wiki/Changelog#fixes

@frostworx
Copy link
Collaborator

Really nice to see the community stepping up to help here!

full ack ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants