Admiral-Fish / PokeFinder

Cross platform Pokémon RNG tool
GNU General Public License v3.0
315 stars 77 forks source link

profile manager not working #143

Closed Elvundil closed 3 years ago

Elvundil commented 3 years ago

profile manager does not save profiles on 3.0

Admiral-Fish commented 3 years ago

Try looking at Tools>Settings (or PokeFinder>Preferences on mac) and see where the Profiles Path is set as. This may need to be changed.

Elvundil commented 3 years ago

(I have windows (pokefinder on SSD)) I tested that its does not work the profiles are not kept in memory ,this create a profiles.json file but when I create a profile once I click on done and go back to the profile manager it's empty nothing was saved.I don't have this problem on the older version.

edit 1: I just tested to put the profiles.json file on a hard drive (not ssd) it works so at first I thought it came from the fact that I saved on my ssd but I tried to put the profiles file .json elsewhere on the same ssd it works i think the file path was too long (i have a path like this ("E: \ folder1 \ folder2 \ PokeFinderwindows2.5.4 \ PokeFinderwindows3.0" its not works) (while with a path like this "E: \ folder1 \ profiles.json" works) by shortening the path it seems to have worked well

Real96 commented 3 years ago

(I have windows (pokefinder on SSD)) I tested that its does not work the profiles are not kept in memory ,this create a profiles.json file but when I create a profile once I click on done and go back to the profile manager it's empty nothing was saved.I don't have this problem on the older version.

edit 1: I just tested to put the profiles.json file on a hard drive (not ssd) it works so at first I thought it came from the fact that I saved on my ssd but I tried to put the profiles file .json elsewhere on the same ssd it works i think the file path was too long (i have a path like this ("E: \ folder1 \ folder2 \ PokeFinderwindows2.5.4 \ PokeFinderwindows3.0" its not works) (while with a path like this "E: \ folder1 \ profiles.json" works) by shortening the path it seems to have worked well

Check if there are some folders in the path with an accent in the name. They caused problem to me

Elvundil commented 3 years ago

no accent but I have this"_" '(folder name is "pokefodler")in a folder name I remove the "" and it's works fine now

Real96 commented 3 years ago

no accent but I have this"_" '(folder name is "pokefodler")in a folder name I remove the "" and it's works fine now

It seems that the problem are not ordinary letters in folder names

Admiral-Fish commented 3 years ago

I have not been able to find much about what is a valid filename and what isn't https://doc.qt.io/qt-5/qfile.html

Edit: Same with std::ifstream https://www.cplusplus.com/reference/fstream/ifstream/ifstream/

Elvundil commented 3 years ago

I realized on 2 pc that the problem of unsaved profile only appears when the pokefinder folder is in my download folder if the profile.json file is stored elsewhere than in the download folder it works without problem. I do not know if I am the only one to have this problem but I was able to reproduce the same thing on another pc.

Real96 commented 3 years ago

I realized on 2 pc that the problem of unsaved profile only appears when the pokefinder folder is in my download folder if the profile.json file is stored elsewhere than in the download folder it works without problem. I do not know if I am the only one to have this problem but I was able to reproduce the same thing on another pc.

Do you have PokeFinder in download folder?

Elvundil commented 3 years ago

yes but if I copy the folder elsewhere it works fine with the profils.json file in my pokefinder folder.

Real96 commented 3 years ago

yes but if I copy the folder elsewhere it works fine with the profils.json file in my pokefinder folder.

The thing is that for me this doesn't work. Do you use the profile in the same folder of Pokefinder when you change location to the app?

Elvundil commented 3 years ago

yes and it's work fine . pokefinder

if it's like the picture and its also works if the pokéfinder folder is in download and the profiles.json file is saved elsewhere ("D:\profils.json" and pokéfinder folder is "D:\download\PokeFinderwindows" work) .

edit : also i just tested by removing spaces in my folder name and accents or special characters (type _or.) and it works (before: "E: \ download \ all Games \ PokeFinderwindows", now "E: \ download \ allGames \ PokeFinderwindows ")

tripodface commented 3 years ago

Though profile manager saves profiles without issue PokeFinder won't load any saved Colo/XD profile.

Admiral-Fish commented 3 years ago

Looks like this was resolved by changing path to not include spaces or special characters.

Please reopen or make another issue if there is any follow up problems.

rejji76 commented 9 months ago

(I have windows (pokefinder on SSD)) I tested that its does not work the profiles are not kept in memory ,this create a profiles.json file but when I create a profile once I click on done and go back to the profile manager it's empty nothing was saved.I don't have this problem on the older version.

edit 1: I just tested to put the profiles.json file on a hard drive (not ssd) it works so at first I thought it came from the fact that I saved on my ssd but I tried to put the profiles file .json elsewhere on the same ssd it works i think the file path was too long (i have a path like this ("E: \ folder1 \ folder2 \ PokeFinderwindows2.5.4 \ PokeFinderwindows3.0" its not works) (while with a path like this "E: \ folder1 \ profiles.json" works) by shortening the path it seems to have worked well

I went to Gen8 Tools and set the profile that way and when i went into the egg tool i was going to use my profile was there to pick