fifty-six / Scarab

An installer for Hollow Knight mods written in Avalonia.
GNU General Public License v3.0
592 stars 160 forks source link

Scarab says that path to game files is invalid when the files are on the second disk. #169

Closed asgilliard closed 1 year ago

asgilliard commented 1 year ago

Scarab Version

v1.33.0.0

Hollow Knight Version

v1.5.78.11833

Steps to Reproduce

Move your game files to the second disk and then try to enter the game path.

Expected Behaviour

I think, that programm must correctly install the game path whenever you enter it manually or/and your game files are not on the main disk.

Actual Behaviour

My game files are on the second disk, not the disk C://, and when I want to enter path, I choose the correct folder, but Scarab says, that game path is invalid.

Logs

Launching... LogHost: Initializing to normal mode (.cctor) Checking if up to date... Loading settings. Fetching links Fetched links successfully Building service provider Built service provider Displaying model [Binding]Error in binding to 'Avalonia.Input.KeyBinding'.'Command': 'Null value in expression '{empty}' at ''.'(KeyBinding #48616240) [Binding]Error in binding to 'Avalonia.Input.KeyBinding'.'Command': 'Null value in expression '{empty}' at ''.'(KeyBinding #34892981) [Binding]Error in binding to 'Avalonia.Input.KeyBinding'.'Command': 'Null value in expression '{empty}' at ''.'(KeyBinding #45601378)

HeavnWolf commented 1 year ago

I have the same issue on Linux. I reinstalled the game, changed the game directory to another disk, deleted the HKModInstaller folder in the .conf folder in the user folder (~/.conf/HKModInstaller). It still doesn't work and I get the same errors in the .log file

[Binding]Error in binding to 'Avalonia.Input.KeyBinding'.'Command': 'Null value in expression '{empty}' at ''.'(KeyBinding #65737292)
HeavnWolf commented 1 year ago

I've found a workaround on Linux. In the configuration folder (~/.conf/HKModInstaller/), add a file called "HKInstallerSettings.json" and paste the following configuration in the file by editing the path of managed folder :

{"ManagedFolder":"[YOUR_PATH]","AutoRemoveDeps":false}

Like this :

{"ManagedFolder":"/mnt/sda1/SteamLibrary/steamapps/common/Hollow Knight/hollow_knight_Data/Managed","AutoRemoveDeps":false}

On Windows, I don't know if this will work, but you could try creating this file in the same folder where the log files are generated.

fifty-six commented 1 year ago

Could you try the artifacts from this run?

asgilliard commented 1 year ago

On Windows, I don't know if this will work, but you could try creating this file in the same folder where the log files are generated.

I tried it few minutes ago. The file was already exist, and the path was in it, but there were "\" between the folders. And it was "\\" after the disc letter. I replaced all this strange simbols and Scarab now works correctly.

So, github edits my comment. There were two backslashes between folders and four backslashes after the disc letter.

asgilliard commented 1 year ago

Could you try the artifacts from this run?

This fix works correctly, thank you.

HeavnWolf commented 1 year ago

Could you try the artifacts from this run?

I can confirm it works on Linux too, thank you!

Chesare22 commented 10 months ago

Could you try the artifacts from this run?

The artifacts have expired :/