Code Monkey home page Code Monkey logo

Comments (12)

NinjaPedroX avatar NinjaPedroX commented on August 9, 2024 2

See #1848

from nitrox.

Measurity avatar Measurity commented on August 9, 2024 2

@bcw222 The team wants to support macOS, but we don't have any developers/testers for macOS at the moment.

If you want to build the linux branch you can run this command in the "Nitrox" folder after you run git clone or download from here:

git clean -xdf && dotnet restore && dotnet run --framework net8.0 --project Nitrox.BuildTool && dotnet build -c Release Nitrox.Launcher

Then run Nitrox.Launcher like so:

dotnet Nitrox.Launcher/bin/Release/Nitrox.Launcher.dll

from nitrox.

SavageJayGatsby avatar SavageJayGatsby commented on August 9, 2024

MacOS and Linux is not supported at this time. Feel free to come back and attempt later when we do support it.

from nitrox.

bcw222 avatar bcw222 commented on August 9, 2024

So, will you add support for macOS (I see the branch is named linux but .NET 7 is cross-platform)? Are there any instruction to build Measurity:linux currently (through I know it's unstable now)?

See #1848

from nitrox.

bcw222 avatar bcw222 commented on August 9, 2024

Well, I have no linux platform so I tried to build it on Windows. But it returns:

Game version is 68598, which is not supported by Nitrox.
Please update your game to the latest version.

This version is actually 71288 and works well with old Launcher. What's the problem?

If you want to build the linux branch you can run this command in the "Nitrox" folder after you run git clone or download from here:

git clean -xdf && dotnet restore && dotnet run --framework net8.0 --project Nitrox.BuildTool && dotnet build -c Release Nitrox.Launcher

from nitrox.

Measurity avatar Measurity commented on August 9, 2024

Thanks for checking.

I can't reproduce the error on my side. If you have multiple Subnautica installations on your PC that could cause confusion. I've added the path to the version file to that message.

Can you check if the correct version file is used by Nitrox.Launcher?

from nitrox.

bcw222 avatar bcw222 commented on August 9, 2024

It seems like the mistake was mine: I copied the legacy version 68598 (required by the old launcher) and passed it through SUBNAUTICA_INSTALLATION_PATH. However, when I checked the version by directly running Subnautica.exe, it called the Steam installation and returned version 71288.

Now I can build it with the correct version. But it crashes every time I attempt to launch the game or server. Is the linux branch only supports linux currently and expected?

from nitrox.

Measurity avatar Measurity commented on August 9, 2024

No, not yet. I still need to do a test run for Linux and OSX. It seems supporting them is a bit more involved as Subnautica has different file locations on each platform. I plan to go through that next week.

from nitrox.

kylianpl avatar kylianpl commented on August 9, 2024
[18:42:42.099] [INF] Launching Subnautica in singleplayer mode.
[18:42:42.199] [ERR] Error while starting game in singleplayer mode:
NitroxModel.Platforms.Store.Exceptions.PlatformException: Steam: Steam is not running and could not be found.
   at NitroxModel.Platforms.Store.Steam.StartGameAsync(String pathToGameExe, Int32 steamAppId, String launchArguments) in NitroxModel/Platforms/Store/Steam.cs:line 124
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSubnauticaAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 175
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSingleplayerAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 77
[18:53:53.684] [INF] Launching Subnautica in multiplayer mode.
[18:53:53.729] [ERR] Error while starting game in multiplayer mode:
System.UriFormatException: Invalid URI: The Authority/Host could not be parsed.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
   at System.Uri..ctor(String uriString)
   at NitroxModel.Helper.NitroxUser.get_CurrentExecutablePath() in NitroxModel/Helper/NitroxUser.cs:line 164
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.<StartMultiplayerAsync>b__12_0() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 118
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartMultiplayerAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 92

(after starting steam)

[18:53:56.369] [INF] Launching Subnautica in singleplayer mode.
[18:53:56.425] [ERR] Error while starting game in singleplayer mode:
System.ComponentModel.Win32Exception (8): An error occurred trying to start process '/mnt/Jeux/games/steam/steamapps/common/Subnautica/Subnautica.exe' with working directory '/mnt/Jeux/games/steam/steamapps/common/Subnautica'. Exec format error
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at NitroxModel.Platforms.Store.Steam.StartGameAsync(String pathToGameExe, Int32 steamAppId, String launchArguments) in NitroxModel/Platforms/Store/Steam.cs:line 154
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSubnauticaAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 175
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSingleplayerAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 77

Is there anything i missed that makes me have errors ? Running arch linux with the steam flatpak. I don't have wine installed because i only use proton. The launcher was started with dotnet 8.0.106 from the arch repos

from nitrox.

oliver408i avatar oliver408i commented on August 9, 2024
[18:42:42.099] [INF] Launching Subnautica in singleplayer mode.
[18:42:42.199] [ERR] Error while starting game in singleplayer mode:
NitroxModel.Platforms.Store.Exceptions.PlatformException: Steam: Steam is not running and could not be found.
   at NitroxModel.Platforms.Store.Steam.StartGameAsync(String pathToGameExe, Int32 steamAppId, String launchArguments) in NitroxModel/Platforms/Store/Steam.cs:line 124
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSubnauticaAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 175
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSingleplayerAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 77
[18:53:53.684] [INF] Launching Subnautica in multiplayer mode.
[18:53:53.729] [ERR] Error while starting game in multiplayer mode:
System.UriFormatException: Invalid URI: The Authority/Host could not be parsed.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
   at System.Uri..ctor(String uriString)
   at NitroxModel.Helper.NitroxUser.get_CurrentExecutablePath() in NitroxModel/Helper/NitroxUser.cs:line 164
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.<StartMultiplayerAsync>b__12_0() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 118
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartMultiplayerAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 92

(after starting steam)

[18:53:56.369] [INF] Launching Subnautica in singleplayer mode.
[18:53:56.425] [ERR] Error while starting game in singleplayer mode:
System.ComponentModel.Win32Exception (8): An error occurred trying to start process '/mnt/Jeux/games/steam/steamapps/common/Subnautica/Subnautica.exe' with working directory '/mnt/Jeux/games/steam/steamapps/common/Subnautica'. Exec format error
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at NitroxModel.Platforms.Store.Steam.StartGameAsync(String pathToGameExe, Int32 steamAppId, String launchArguments) in NitroxModel/Platforms/Store/Steam.cs:line 154
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSubnauticaAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 175
   at Nitrox.Launcher.ViewModels.LaunchGameViewModel.StartSingleplayerAsync() in Nitrox.Launcher/ViewModels/LaunchGameViewModel.cs:line 77

Is there anything i missed that makes me have errors ? Running arch linux with the steam flatpak. I don't have wine installed because i only use proton. The launcher was started with dotnet 8.0.106 from the arch repos

Subnautica.exe doesn't seem to exist (obviously). I think custom file pathing is required for linux (and Macos). I was helping Meas do some testing on macos yesterday and there's a ton of paths that need changing. Perhaps drop the file tree of subnautica here and the devs can do some changes for linux.

from nitrox.

kylianpl avatar kylianpl commented on August 9, 2024

tree.txt
this is the very long tree
tree.txt
and this is a "trimmed" tree without all the bundles

I can help testing for linux if you need, and there is a Subnautica.exe (the windows version) because it wasn't compiled natively on linux, so steam uses proton (which is wine with modifications) to "adapt" the windows api calls to linux, which mean it can't run directly, it needs be be run with proton, and proton is ran by the linux version of steam (it can also be run without steam, but is more annoying to run).

from nitrox.

bcw222 avatar bcw222 commented on August 9, 2024

The problem I met was building on Windows successfully and starting on windows but crashed when launching the game.
The issue's original purpose is to run the launcher in Wine as well so I attempt to do so with launcher built on Windows. It however even does'nt show any windows.

No, not yet. I still need to do a test run for Linux and OSX. It seems supporting them is a bit more involved as Subnautica has different file locations on each platform. I plan to go through that next week.

from nitrox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.