Save slot summaries with a separate file

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
jlhacode
Posts: 77
Joined: Fri Jul 03, 2020 6:23 am

Save slot summaries with a separate file

Post by jlhacode »

This is follow up to the How To: Include Summary Info In Saved Games post from 2019.
(https://www.pixelcrushers.com/phpbb/vie ... php?t=2594)

It seems like storing a separate file with summary data would be a bit more efficient to me. What would be the recommended way of doing this using the SaveSystem?
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save slot summaries with a separate file

Post by Tony Li »

Hi,

I don't have many specific tips. Here are some that come to mind:

- You could make a subclass of SavedDataStorer (or DiskSavedDataStorer) that has an extra method to also save a summary file in addition to calling StoreSavedGameData. For example, save the game to save_1.dat and the summary info to save_1_summary.dat.

- Make it platform-independent. On PC, you might save to a local disk file. On consoles, you might save to cloud storage. Hide the implementation details from the rest of your project, which will just call the extra method.
jlhacode
Posts: 77
Joined: Fri Jul 03, 2020 6:23 am

Re: Save slot summaries with a separate file

Post by jlhacode »

Awesome, thanks Tony!
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save slot summaries with a separate file

Post by Tony Li »

Glad to help!
Post Reply