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

Expanding .zip downloads folder to Program Files causes issues #1559

Closed
isibley765 opened this issue Aug 3, 2021 · 3 comments · Fixed by #1564
Closed

Expanding .zip downloads folder to Program Files causes issues #1559

isibley765 opened this issue Aug 3, 2021 · 3 comments · Fixed by #1564

Comments

@isibley765
Copy link

Version

1.5.0.1

Bug

I can still see the Play button in the Subnautica GUI, but the Multiplayer button leaves me with an otherwise-blank screen to the main options.
image

Expected

Play button not to be present, and Multiplayer to open interface to connect to my friend's server.

Steps to reproduce

I'm on Windows 10

  • downloaded version 1.5.0.1 from the Nitrox download website
  • Unzip to the desired location
    • C:\Program Files\Nitrox\1.5.0.1
  • Run C:\Program Files\Nitrox\1.5.0.1\NitroxLauncher.exe as Admin
  • Click Multiplayer
  • See the image screen as above.

Other details:

I just confirmed as I was writing this that downloading to my Downloads folder instead fixes the issue.
I don't see any issues at a glance in the player.log? Uploading it here
(the previous one, since my current is working fine in my Downloads folder)
Player-prev.log

@Measurity
Copy link
Collaborator

The problem is in the log:

UnauthorizedAccessException: Access to the path "C:\Program Files\Nitrox\1.5.0.1\servers" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
  at NitroxModel.Serialization.ServerList.Save (System.String file) [0x0000a] in <d237b79c941f453c9524154604c5abe3>:0 
  at NitroxModel.Serialization.ServerList.From (System.String file) [0x00031] in <d237b79c941f453c9524154604c5abe3>:0 
  at NitroxModel.Serialization.ServerList.get_Instance () [0x0000e] in <d237b79c941f453c9524154604c5abe3>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMultiplayerPanel.LoadSavedServers () [0x00000] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMultiplayerPanel.Setup (UnityEngine.GameObject loadedMultiplayer, UnityEngine.GameObject savedGames) [0x000a7] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMods.MultiplayerMenuMods () [0x00114] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMods.SceneManager_sceneLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode loadMode) [0x0001e] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at (wrapper delegate-invoke) UnityEngine.Events.UnityAction`2[UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode].invoke_void_T0_T1(UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode)
  at UnityEngine.SceneManagement.SceneManager.Internal_SceneLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode) [0x0000c] in <11d76d5f2da344218c391ad1f20978b4>:0 

It means that the game does not have access to the file (where Nitrox is located).

@isibley765
Copy link
Author

The problem is in the log:

UnauthorizedAccessException: Access to the path "C:\Program Files\Nitrox\1.5.0.1\servers" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
  at NitroxModel.Serialization.ServerList.Save (System.String file) [0x0000a] in <d237b79c941f453c9524154604c5abe3>:0 
  at NitroxModel.Serialization.ServerList.From (System.String file) [0x00031] in <d237b79c941f453c9524154604c5abe3>:0 
  at NitroxModel.Serialization.ServerList.get_Instance () [0x0000e] in <d237b79c941f453c9524154604c5abe3>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMultiplayerPanel.LoadSavedServers () [0x00000] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMultiplayerPanel.Setup (UnityEngine.GameObject loadedMultiplayer, UnityEngine.GameObject savedGames) [0x000a7] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMods.MultiplayerMenuMods () [0x00114] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at NitroxClient.MonoBehaviours.Gui.MainMenu.MainMenuMods.SceneManager_sceneLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode loadMode) [0x0001e] in <2c93c67670e547abbe7a428c7a78976c>:0 
  at (wrapper delegate-invoke) UnityEngine.Events.UnityAction`2[UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode].invoke_void_T0_T1(UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode)
  at UnityEngine.SceneManagement.SceneManager.Internal_SceneLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode) [0x0000c] in <11d76d5f2da344218c391ad1f20978b4>:0 

It means that the game does not have access to the file (where Nitrox is located).

@Measurity while this makes sense, this should likely either be specified in the Readme/install instructions of the site as a warning, or remedied as part of the install process/first boot as admin.

Otherwise, you're going to have a lot more people who prefer an organized directory structure w/ a launcher shortcut on the desktop unable to use Nitrox.
It didn't seem like like there's much if any support or awareness for it when I searched, before making this issue.

@Measurity
Copy link
Collaborator

much if any support

We have a Discord server where you can ask any question about Nitrox and get support for it.

while this makes sense, this should likely either be specified in the Readme/install instructions of the site as a warning, or remedied as part of the install process/first boot as admin.

People can't or won't read. I agree that we should do this as an install step.

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 a pull request may close this issue.

2 participants