Easy Save doesn't work on built Project (SOLVED)
Posted: Sat Mar 14, 2020 3:13 pm
Hi all I hope you can help me with this issue.
The problem here is that inside Unity Editor the project is working fine. It does the saving and loading without any issues, but when I build it, it does not load or save anything.
The only thing I have tested that it does good in the builded project, is that it checks that the file exists before trying to acces to it.
What I am doing is that I preserve 1 object of EasySave3Manager as long as the application is running. This is because I use several Load Scene Additively in the game.
The way I try to load the variables is using PlayMaker "Load" Action. I use both variables, the one where it stores the data in case the key exists and the other one that overrides the value in case the key does not exists.
Right now my test is at the Start Screen of my game. I try to acces to a int variable inside my SaveFile to get the lastSavedScene to load the last saved scene (Single Loading), but the action does not do what I expect. It loads the value of 0, but since the variable exists in the file it should return the value from it, or at least load the override value of the default variable, that in this case, is 5.
(Don't know how to load an image here, so I added it via google drive.)
https://drive.google.com/open?id=1plb06 ... zrYJ8JW2X6
Maybe it could be that I am doing something wrong in how I manage the assets, but so far I don't know.
Please any recommendation or comment to fix my issue is really appreciated.
Regards
The problem here is that inside Unity Editor the project is working fine. It does the saving and loading without any issues, but when I build it, it does not load or save anything.
The only thing I have tested that it does good in the builded project, is that it checks that the file exists before trying to acces to it.
What I am doing is that I preserve 1 object of EasySave3Manager as long as the application is running. This is because I use several Load Scene Additively in the game.
The way I try to load the variables is using PlayMaker "Load" Action. I use both variables, the one where it stores the data in case the key exists and the other one that overrides the value in case the key does not exists.
Right now my test is at the Start Screen of my game. I try to acces to a int variable inside my SaveFile to get the lastSavedScene to load the last saved scene (Single Loading), but the action does not do what I expect. It loads the value of 0, but since the variable exists in the file it should return the value from it, or at least load the override value of the default variable, that in this case, is 5.
(Don't know how to load an image here, so I added it via google drive.)
https://drive.google.com/open?id=1plb06 ... zrYJ8JW2X6
Maybe it could be that I am doing something wrong in how I manage the assets, but so far I don't know.
Please any recommendation or comment to fix my issue is really appreciated.
Regards