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

Latest windows release not working (Windows 10) #83

Open dilirity opened 2 years ago

dilirity commented 2 years ago

So I downloaded the latest available version from the releases section (1.4.0 - switch-library-manager.GUI.windows.zip).

I've added my prod.keys in the same directory as the exe.

Starting it creates several files and that's it - nothing else.

sim.log

2022-01-06T22:25:55.926+0200    INFO    nsp-update/main.go:39   [SLM starts]
2022-01-06T22:25:55.926+0200    INFO    nsp-update/main.go:40   [Executable: D:\Games\Nintendo Switch\tools\switch-library-manager.GUI.windows\Switch-Library-Manager.exe]
2022-01-06T22:25:55.926+0200    INFO    nsp-update/main.go:41   [Working directory: D:\Games\Nintendo Switch\tools\switch-library-manager.GUI.windows]

Waited more than 10 minutes, restarted - nothing.

Any ideas?

Masamune3210 commented 2 years ago

Its working fine for me on latest, so whatever the issue is its with your environment

dilirity commented 2 years ago

@Masamune3210 ah I guessed that's the case, but I have no clue how to debug anything.

azumukupoe commented 2 years ago

not working for me neither below is my settings.json

{
 "versions_etag": "W/\"d987c9d7d2cd81:0\"",
 "titles_etag": "W/\"c65bd3aa812cd81: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": []
}

@dilirity, have you modified the settings.json file?

dilirity commented 2 years ago

@azumukupoe - no. Simply downloaded, extracted and started the exe. Spawns a bunch of electron processes, the exe itself sometimes shows up in the task manager, but nothing ever happens.

azumukupoe commented 2 years ago

@dilirity well maybe you should read the readme first though I've not been able to get it work

dilirity commented 2 years ago

@azumukupoe - thanks. I read it several times. Third step is an alternative as far as I understand, so it should work just by starting it like a normal program. Unfortunately, it doesn't. I want to use the GUI.

EDIT: Running it through the cmd results in the same thing - nothing happens. Just stays as a process in the task manager.

giwty commented 2 years ago

@dilirity - can you please set debug to "true" , re-run, and paste the log here ?

dilirity commented 2 years ago

@giwty - sure.

slm.log

2022-03-01T07:44:27.528+0200    INFO    nsp-update/main.go:39   [SLM starts]
2022-03-01T07:44:27.529+0200    INFO    nsp-update/main.go:40   [Executable: F:\Games\Nintendo Switch\tools\switch-library-manager\Switch-Library-Manager.exe]
2022-03-01T07:44:27.529+0200    INFO    nsp-update/main.go:41   [Working directory: F:\Games\Nintendo Switch\tools\switch-library-manager]

settings.json

{
 "versions_etag": "W/\"2ef50d1cb6bd61:0\"",
 "titles_etag": "W/\"a5b02845cf6bd61:0\"",
 "prod_keys": "",
 "folder": "",
 "scan_folders": [],
 "gui": true,
 "debug": true,
 "check_for_missing_updates": true,
 "check_for_missing_dlc": true,
 "organize_options": {
  "create_folder_per_game": false,
  "rename_files": false,
  "delete_empty_folders": false,
  "delete_old_update_files": false,
  "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": []
}
dilirity commented 2 years ago

@giwty - I was able to get it to work by running the build process for windows. I had to remove some of the environments from the bundler.json to get it to properly though, since I got some errors (removed mac and linux).

{
  "app_name": "Switch-Library-Manager",
  "icon_path_darwin": "resources/icon.icns",
  "icon_path_linux": "resources/icon.png",
  "icon_path_windows": "resources/icon.ico",
  "environments": [
    {"arch": "amd64", "os": "windows"}
  ]
}

Anyway - after bundling, the exe properly starts up. The size of my bundled exe is 89mb, the one in the releases is 77.

giwty commented 2 years ago

Nice work, happy you got it working. Will look into why the released version is different, and check the build error you encountered. Thanks

grimson73 commented 1 year ago

I tried every version, combining folders but also for me the v1.40 version does not start (Windows 11). Is there somewhere to download the working build? The v1.35 version does start but when I put the v1.40 binary in the v135 folder it doesn't start (v1.40 ofcourse :)). Anyway thanks for this app!

Masamune3210 commented 1 year ago

1.40 works fine for me on fully up to date 11, so once again, it will likely fall onto you figuring out what is abnormal about your environment. Check the event logs for any mention of it crashing and it might at least give a hint as to what is going on.

grimson73 commented 1 year ago

The CLI does work, I will use this one. Thanks for answering. To me it seems (not a programmer) but somehow the v1.4.0 is about 15MB and the working ones are about 75MB. Also it seems the electron runtime is included (as the web page folder on earlier ones?). So for me starting at v1.4.0 and backwards working to v-older I noticed the folders created in %appdata% (ad said the runtime?). But the v1.4.0 doesn't spawn any runtime download or whatever on my system (fairly clean installed). So again, I will use the CLI version, it works for me now. thanks again! :)

https://gbatemp.net/threads/switch-library-manager-easily-manage-your-switch-game-backups.568639/page-11 I subscribed to this topic, maybe some progress will be made eventually :)

grimson73 commented 1 year ago

also v1.4.0 GUI log file with debug=true

2023-05-20T12:32:20.073+0200    INFO    nsp-update/main.go:39   [SLM starts]
2023-05-20T12:32:20.074+0200    INFO    nsp-update/main.go:40   [Executable: C:\Users\Admin\OneDrive\Nintendo\SwitchHacks\SWWindowsTools\switch-library-manager\v1.4.0\switch-library-manager\switch-library-manager.exe]
2023-05-20T12:32:20.074+0200    INFO    nsp-update/main.go:41   [Working directory: C:\Users\Admin\OneDrive\Nintendo\SwitchHacks\SWWindowsTools\switch-library-manager\v1.4.0\switch-library-manager]
2023-05-20T12:32:20.196+0200    INFO    db/utils.go:47  file [https://tinfoil.media/repo/db/titles.json] was not downloaded, reason - [no new updates]
2023-05-20T12:32:20.272+0200    INFO    db/utils.go:47  file [https://tinfoil.media/repo/db/versions.json] was not downloaded, reason - [no new updates]
Masamune3210 commented 1 year ago

Well, considering I already said it works fine for me, It's not a issue of missing parts of the file.