Steam cloud save

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Steam cloud save

Post by SealDev »

Do the save files stored work with steam cloud? How?
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Steam cloud save

Post by Tony Li »

Yes, you can save to Steam Cloud with some scripting.

The save system is modular. It consists of these modules:
  • SaveSystem component: coordinates the other modules.
  • Saver components: record & apply save data (e.g., GameObject positions, active/inactive states, DS variables, etc.).
  • Data Serializer: serializes the data from all saver components into a saveable format.
  • Saved Game Data Storer: Stores and retrieves data from a permanent storage source such as PlayerPrefs, disk, etc.
You can plug in any Saved Game Data Serializer, and the other modules will work happily with it, without requiring any other changes. If you want to save to any type of cloud storage, just write a subclass of SavedGameDataStorer that writes to/from that storage.
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Re: Steam cloud save

Post by SealDev »

At what location are saved files being stored for "Disk Saved Game Data Storage"?
Attachments
locations.png
locations.png (21.01 KiB) Viewed 999 times
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Steam cloud save

Post by Tony Li »

The usual: Application.persistentDataPath

Individual saved game files are in save_slot#.dat and a catalog file enumerating all of the saved game files in in saveinfo.dat.
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Re: Steam cloud save

Post by SealDev »

Thank you so much :)
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Steam cloud save

Post by Tony Li »

Glad to help! :-)
Post Reply