Page 1 of 1

Two save data files?

Posted: Sat Nov 11, 2023 3:46 pm
by muttsang
Hello,

I come to you asking a very simple question about the save system. It works fantastically and I have no problems whatsoever.

I was hoping to get something cleared up though.

When I used the save system from the Dialogue system, it seemed to create two files.

I was wondering if someone could explain why it needs two files of type SaveGameFile and SavedGameInfoFile.

I've never done any slot-based save system so maybe this is why we need it? If this is the reason, then does that mean we don't need two save files for a non-slot-based save system?
savedata.png
savedata.png (1.52 KiB) Viewed 423 times
Thanks!

Re: Two save data files?

Posted: Sat Nov 11, 2023 5:15 pm
by Tony Li
Hi,

save_1.dat is the saved game for slot 1.

saveinfo.dat is a catalog file that records which slots have saved game files. It's optional. If it doesn't exist, the DiskSavedGameDataStorer component will scan the folder for save_*.dat files to recreate it.

Re: Two save data files?

Posted: Sun Nov 12, 2023 10:57 am
by muttsang
Ah, nice thanks for the clarification Tony!

Re: Two save data files?

Posted: Sun Nov 12, 2023 3:44 pm
by Tony Li
Glad to help!