Hi,
I'm porting a couple of my games to the Playstation 4 and have been running into issues with my custom Remember scripts always returning null when loading from a save and not loading the saved data. Is this a limitation of using XML files for saving? I ported one of the games to the Nintendo Switch without any issues, but that didn't use XML files for saving even though it saved in PlayerPrefs.
I'm using AC 1.82.5 for one game and 1.75.2 for the other game, both have the same issue with multiple custom Remember scripts.
Any guidance would be appreciated!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Is it only custom Remember scripts that have this issue, and does this occur on Desktop builds as well?
Share the Remember script, if you can.
Yes it only seems to be custom Remember scripts that have the issue. Other Remember scripts like Remember Visibility and Remember Transform seem to work fine.
As a test I set my project to the Windows platform and added SAVE_USING_XML in the scripting defines list in Player settings and the result is still the same on desktop, the save data returns null when loading a save.
If I only have SAVE_IN_PLAYERPREFS set in the defines lists, and not SAVE_USING_XML, then the data loads as expected.
I will message you with a Remember script this is happening with.