giwty / switch-library-manager

Complete solution to manage, organize and keep your local switch backup game library up to date . Cross platform, supports all game formats.
230 stars 43 forks source link

Prod.keys was not found, deep NSP scan is disabled, library content is based on file names tags. #88

Open azumukupoe opened 2 years ago

azumukupoe commented 2 years ago

log

2022-03-05T20:07:45.435+0900    INFO    nsp-update/main.go:39   [SLM starts]
2022-03-05T20:07:45.436+0900    INFO    nsp-update/main.go:40   [Executable: C:\switch-library-manager.GUI.windows\Switch-Library-Manager.exe]
2022-03-05T20:07:45.436+0900    INFO    nsp-update/main.go:41   [Working directory: C:\switch-library-manager.GUI.windows]
2022-03-05T20:07:48.224+0900    DEBUG   nsp-update/gui.go:191   Received message from client [{loadSettings }]
2022-03-05T20:07:48.225+0900    DEBUG   nsp-update/gui.go:311   Server response [{
 "versions_etag": "W/\"b4cddaa6930d81:0\"",
 "titles_etag": "W/\"e47d6c736d30d81:0\"",
 "prod_keys": "C:\\Users\\azumu\\AppData\\Roaming\\Ryujinx\\system\\prod.keys",
 "folder": "D:\\Roms\\Switch",
 "scan_folders": [],
 "gui": true,
 "debug": true,
 "check_for_missing_updates": true,
 "check_for_missing_dlc": true,
 "organize_options": {
  "create_folder_per_game": true,
  "rename_files": true,
  "delete_empty_folders": true,
  "delete_old_update_files": true,
  "folder_name_template": "{TITLE_NAME}",
  "switch_safe_file_names": true,
  "file_name_template": "{TITLE_NAME} ({DLC_NAME})[{TITLE_ID}][v{VERSION}]"
 },
 "scan_recursively": true,
 "gui_page_size": 100,
 "ignore_dlc_title_ids": []
}]
2022-03-05T20:07:48.226+0900    DEBUG   nsp-update/gui.go:191   Received message from client [{isKeysFileAvailable }]
2022-03-05T20:07:48.226+0900    DEBUG   nsp-update/gui.go:311   Server response [false]
2022-03-05T20:07:48.226+0900    DEBUG   nsp-update/gui.go:191   Received message from client [{checkUpdate }]
2022-03-05T20:07:48.285+0900    DEBUG   nsp-update/gui.go:311   Server response [false]
2022-03-05T20:07:48.285+0900    DEBUG   nsp-update/gui.go:191   Received message from client [{updateDB }]
2022-03-05T20:07:48.285+0900    DEBUG   nsp-update/gui.go:429   Downloading titles.json (1/4)
2022-03-05T20:07:48.337+0900    INFO    db/utils.go:47  file [https://tinfoil.media/repo/db/titles.json] was not downloaded, reason - [no new updates]
2022-03-05T20:07:48.337+0900    DEBUG   nsp-update/gui.go:429   Downloading versions.json (2/4)
2022-03-05T20:07:48.554+0900    INFO    db/utils.go:47  file [https://tinfoil.media/repo/db/versions.json] was not downloaded, reason - [no new updates]
2022-03-05T20:07:48.555+0900    DEBUG   nsp-update/gui.go:429   Processing switch titles and updates ... (3/4)
2022-03-05T20:07:49.307+0900    DEBUG   nsp-update/gui.go:429   Finishing up... (4/4)
2022-03-05T20:07:49.307+0900    DEBUG   nsp-update/gui.go:311   Server response []
2022-03-05T20:07:49.308+0900    DEBUG   nsp-update/gui.go:191   Received message from client [{updateLocalLibrary undefined}]
2022-03-05T20:07:49.309+0900    DEBUG   nsp-update/gui.go:429   Complete (14/14)
2022-03-05T20:07:49.310+0900    DEBUG   nsp-update/gui.go:311   Server response []
giwty commented 2 years ago

You certain you have the prod.keys file in this location ? C:\\Users\\azumu\\AppData\\Roaming\\Ryujinx\\system\\prod.keys

azumukupoe commented 2 years ago

yes

image

78Alpha commented 2 years ago

Looks like this part of the code

// init from a file path := filepath.Join(baseFolder, "prod.keys")

Is just looking for a folder, and not the direct prod.keys file. So just "C:\Users\azumu\AppData\Roaming\Ryujinx\system" should work.

azumukupoe commented 2 years ago

Looks like this part of the code

// init from a file path := filepath.Join(baseFolder, "prod.keys")

Is just looking for a folder, and not the direct prod.keys file. So just "C:\Users\azumu\AppData\Roaming\Ryujinx\system" should work.

that was it thank you

azumukupoe commented 2 years ago

nvm setting.json resets to "prod_keys": "${HOME}/.switch/prod.keys", when set to folder path

78Alpha commented 2 years ago

nvm setting.json resets to "prod_keys": "${HOME}/.switch/prod.keys", when set to folder path

In windows you can set the settings.json to read only to prevent it from altering that file. Capture

azumukupoe commented 2 years ago

nvm setting.json resets to "prod_keys": "${HOME}/.switch/prod.keys", when set to folder path

In windows you can set the settings.json to read only to prevent it from altering that file. Capture

👍

azumukupoe commented 2 years ago

I still think it's a issue that setting the path is overly complicated so I'll leave this opened

bmn001 commented 1 year ago

I'm seeing this in Linux as well.

If I put prod.keys in the app's folder, I'm told it's not found. (settings.json is correctly pointing to it)

If I remove prod.keys from the app's folder and put it in ~/.switch instead, everything works fine. (Settings.json is auto-updated when the app launches.)

keilmillerjr commented 8 months ago

@bmn001 I am on Linux and have the same issues as well. I got a custom path for prod.keys path to work once. restarting the app, and it couldn't be found. I tried your suggestion of using the default path, and it didn't work. A second time of restarting the app did the trick. It seems hit or miss whether it works or not. Two years of inactivity. I hope we at least see a PR accepted. This is a useful app.