Floogen / Stardrop

Stardrop is an open-source, cross-platform mod manager for the game Stardew Valley.
https://floogen.gitbook.io/stardrop/
GNU General Public License v3.0
110 stars 31 forks source link

Stardrop refuses to install "new mods" from nexus but appears to be able to update mods that i had previously installed. #157

Open BenTGI opened 5 months ago

BenTGI commented 5 months ago

log.txt Stardrop Log

https://smapi.io/log/407197521ff1412ea37c8e91805e6d7f Smapi Log

Stardrop refuses to install "new mods" from nexus saying that it can't but appears to be able to update mods that i had previously installed though it does still come up with the same error message as it would with new mods on some of the updates. it appears to be random whether it will appear or not per mod but it always appears on the same mod. error message

Adda0 commented 5 months ago

Hello. Relevant Stardrop log output:

[22/01/2024 18:43:52][Debug][MainWindow.AddMods: Line 1946] Install path for mod Lnh.SimpleFarm2:D:\Users\Benjamin Willis\Documents\Stardew Valley - 1.5.6\Mods\Stardrop Installed Mods
[22/01/2024 18:43:52][Warning][MainWindow.AddMods: Line 2000] Failed to unzip the file C:\Users\Benjamin Willis\AppData\Roaming\Stardrop\Data\Nexus\Lnh's Simple Farm2 due to the following error: System.UnauthorizedAccessException: Access to the path 'D:\Users\Benjamin Willis\Documents\Stardew Valley - 1.5.6\Mods\Stardrop Installed Mods\Lnh's Simple Farm2' is denied.
   at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
   at System.IO.Directory.CreateDirectory(String path)
   at Stardrop.Views.MainWindow.AddMods(String[] filePaths)
...
[22/01/2024 18:42:36][Warning][MainWindow.AddMods: Line 2000] Failed to unzip the file C:\Users\Benjamin Willis\AppData\Roaming\Stardrop\Data\Nexus\Alchemist's Valley due to the following error: System.UnauthorizedAccessException: Access to the path 'D:\Users\Benjamin Willis\Documents\Stardew Valley - 1.5.6\Mods\Stardrop Installed Mods\Alchemist's Valley\[BF] Potion Effects' is denied.
   at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
   at System.IO.Directory.CreateDirectory(String path)
   at Stardrop.Views.MainWindow.AddMods(String[] filePaths)

According to this, you do not have access rights to create a directory in the installed mods path. I cannot reproduce this issue on Linux with the newest Stardrop version. I do not have any Windows machine to try it there, however.

Does this issue appear with all new mods, and especially with mods which does not contain an apostrophe in the name, or just a select few new mods?

Also, if you want, you could try the following actions to further investigate. Just to be sure, could you move the mod archive files from AppData/Roaming directory somewhere under your user documents, for example? And try to install the mods from there. Afterwards, try to go to Stardrop settings and change the Stardrop installed mods path to something else, under your documents for example as well. And try to install the mod (from the place where you put the archive files, as described above) again.

What I suspect is that there is a problem with handling apostrophes in the folder names. That might lead to such access right failures. Either at Windows level, or Stardrop level on Windows.

BenTGI commented 5 months ago

setting the Executable as run as admin worked.

i have never needed to do that in the past...5 months or so that i have had Stardrop configured in this way.

Sweatytitties commented 3 months ago

im currently having the same issue even if I open Stardrop as admin image Stardrop log: log.txt