trembon / 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.
MIT License
46 stars 2 forks source link

when i launch the app 7 times out of 10 i need to set local games folder / Prod.keys folder again #36

Open larg000 opened 2 months ago

larg000 commented 2 months ago

when i launch the app 7 times out of 10, i need to set local games folder again

it always occurs after app download and start process title update approximatively at 75%.

Sans titre

larg000 commented 2 months ago

could there be a problem when reading settings.json ? the same problem that could delete url variable in settings.json for some reason ?

harvestry-of-ghosts commented 2 months ago

@larg000 As stated in the other issue, the url variables don't ever disappear on my end. It also reads the prod.keys fine for me. Have you tried running as an administrator and/or setting the settings.json to read only after you've configured it the way you want? Also, try placing an extra copy of prod.keys in C:\Users(your user name).switch

larg000 commented 2 months ago

it's not an administrator right problem. sometimes the app starts ok, sometimes not. my file is not read only, i can change settings if needed.

could still be a problem of access right and priority when reading file settings.json multiple times at the same time in the app that could also explain the other bug

mspykerez commented 2 months ago

This problem is not exclusive of this fork, it also used to happen from time to time with giwty original build. If you close the app and relaunch it should fix without the need to have to rescan everything.

larg000 commented 1 month ago

I know this problem is not exclusive to this fork. However, closing the application and restarting it, does not solve the problem.

larg000 commented 1 month ago

*edit, update info about the bug

bug always occurs after app download and start process title update approximatively at 75%. then it breaks

and even if app says that prod.keys was not found i think it just concerns the local games folder because as soon as i set the local games folder the "start process finish" processing to 100% and everything become ok.

Sans titre

Sans titre

Sans titre

harvestry-of-ghosts commented 1 month ago

I have started experiencing this as well. There seems to be no rhyme or reason for when it happens. Sometimes it opens fine, sometimes it wants me to set game folder and prod.keys location when it gets to 75%. Seems completely random.

trembon commented 1 month ago

the prod.keys should hopefully be fixed with #45, havent had time to test it fully yet though

harvestry-of-ghosts commented 1 month ago

the prod.keys should hopefully be fixed with #45, havent had time to test it fully yet though

Still happening.

harvestry-of-ghosts commented 2 weeks ago

Still happening on 1.7.0.

Clipboard_08-18-2024_01

trembon commented 1 week ago

i rewrote how the app loads the prod.keys now and removed the support for changing the prod.keys to not confuse people by having the settings overwritten also added some logging to see where the prod.keys file is loaded from

will continue to see if i can find where it overwrites the local games folder, as that property is not touched by the app currently

harvestry-of-ghosts commented 1 week ago

Thanks for the update. It's crashing and closing for now due to tinfoil.media/repo/db/titles.json being down with the message "404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable."

Hopefully it's not permanent. Will try again later today.

trembon commented 12 hours ago

update to try fix some of these problems are released with 1.8.0