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

Adding a way to specify the installation path through environment variables #1727

Conversation

LionZXY
Copy link
Contributor

@LionZXY LionZXY commented Feb 8, 2022

Background
Right now we have no way to specify the install location explicitly. It would be useful to have a way to do this, as other ways can fail and the user can specify the path to the game himself.

Changes

  • Added SUBNAUTICA_INSTALLATION_PATH, which doesn't break the current functionality in any way.

How to test

  • Change environment variable SUBNAUTICA_INSTALLATION_PATH (see how here)
  • Run server and check that path from environment variable catch correctly

If you have the game installed and one of the classes above has already found its way, you can test this change by moving that class up.

@Measurity
Copy link
Collaborator

In which cases does finding the Subnautica path fail? I'm interested in how we can fix the other lookups.

@LionZXY
Copy link
Contributor Author

LionZXY commented Feb 14, 2022

@Measurity My case: server installation via Steam CLI. But I believe there may be other uses in the future (such as Hotfix for the new launcher/breaking changes)

…r.cs

Co-authored-by: Jannify <23176718+Jannify@users.noreply.github.com>
@Measurity Measurity merged commit 13ef61c into SubnauticaNitrox:master Mar 7, 2022
@LionZXY LionZXY deleted the feature/set_installation_location_via_environment branch March 11, 2022 12:42
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.

3 participants