Forum rules - please read before posting.

Save Names

Hi all,

Hope you are doing well!

So I noticed when syncing with steam or giving save files to my friends, it looks like the names are not preserved in the save files -- is it possible to have the save file names be stored as part of the save file?

Thank you!

Comments

  • Save game labels are stored in the Options data, so that they can be accessed without having to load the save files themselves.

    To have this work across machines, you'd need to also transfer this data - but it would mean their own options / profile data is overwritten. I wouldn't recommend it for file-sharing, but would be useful for one's own syncing.

    By default, Options data is stored in PlayerPrefs, which varies from platform to platform, so doesn't work with syncing AFAIK. What you can do, however, is switch over to file-based Options data. Though, this would mean updating your game and losing existing Options data.

    See the end of the Manual's "Custom save formats and handling" chapter for details - OptionsFileHandler_SystemFile is the one you want.

  • Hi Chris,

    Thank you so much for getting back to me! I see -- so I will have to switch over to file-based Options data if I want to retain the save names across machines for a single person in steam? I gave the handbook a quick look as reference as well just in case.

    Also on another note -- I did notice a bit of a strange issue going on. It looks like the save slots are not updating in the same place the user clicked sometimes?

    Here's a video of what one of my players were facing: https://drive.google.com/file/d/1y0pPIqExvsnKOyf9EVFkT4kC0LPKtjcG/view

    I tried it on my end as well, and I noticed the slot id + the save name are correct in the variables, so I wasn't sure what could be going on.

    For reference, I followed this tutorial to handle saves: https://adventurecreator.org/tutorials/custom-save-game-labels

    Any help is appreciated, thank you!

  • So I will have to switch over to file-based Options data if I want to retain the save names across machines for a single person in steam?

    That's my understanding of it, yes.

    I tried it on my end as well, and I noticed the slot id + the save name are correct in the variables, so I wasn't sure what could be going on.

    The video does seem to suggest that's the thing to check for - be sure to have the save reference the "Slot index", and not the "Save ID".

    Were you able to recreate the issue on youer end?

  • Re: file-based Options -- I see thiank you!

    Re: slot ID issue -- yes I was able to recreate it on my end. I tried removing the autosave functionality just in case to see if that might have been doing it, but the issue still persists without it.

  • edited October 2024

    Also just pulling from above --

    for the persistentDataPath -- let's say the user is on a mac in one device and on a windows in another device (they are using the same steam account, just different devices), would this syncing with the same file names / slot locations still work?

    Was taking a look at page 328 on the manual along with Unity's official documentation on this https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html

    Also just wanted to clarify -- so let's say there are two players using the same computer. Player 1 logs into their steam account, syncs their saves, and logs off. Player 2 then uses the same computer, logs into their steam account, deletes the saves from the app + creates their own new saves, and logs off.

    When player 1 logs back into steam in the same computer, will they see their original saves, or will they see Player 2's saves?

  • Re: slot ID issue -- yes I was able to recreate it on my end.

    Can you share screenshots of your ConfirmSaves ActionList, and your Save menu's SavesList element properties?

    Also just wanted to clarify -- so let's say there are two players using the same computer. Player 1 logs into their steam account, syncs their saves, and logs off. Player 2 then uses the same computer, logs into their steam account, deletes the saves from the app + creates their own new saves, and logs off.

    Are you using Steam's Auto-Cloud feature?

    If both users are using the same account (on the machine, not Steam), then the local save/options files will be shared. It's my understanding that Steam will check the timestamp of these files, however, and will prompt the user about it - asking them if they want to use the local files or those in the cloud.

  • The configuration of your SavesList element means that the "Slot index" variable is actually assigned the clicked save ID, rather than the index.

    Because of this, the Save: Save or load Action's Save to overwrite needs to be set to Set Save ID.

    The "Save ID" then needs to be set from an Integer parameter. Define one, and then precede the Action with an ActionList: Set parameter Action to set its value to the "Slot index" variable.

    I'll see about amending the tutorial with these details.

  • I see, thank you! I think this worked -- will ask my beta-testers just in case to try this out and let you know if I am running into any further issues :)

  • Hi @ABABAB - hope all well. Just wondering if you ever got Steam Cloud Saves to work in AC, and if so, if you have any tips/suggestions for how to set that up? From my understanding, if Steam can be directed to the location of the actual .save file(s), it should be pretty straightforward to get it to push those saves to the cloud, but the issue is that AC doesn't output an actual saved game file by default?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.