Forum rules - please read before posting.

Save files and variables

Hello! Our game contains quite a few variables that relate to the game's narrative and other events. To assist testing, we'd like to be able to transfer/build custom saves and pass them around

We have successfully tested the copy / paste of a save file into another developer's game. But these show up as binary files when opened in a notepad or something similar. Is there a way to export the saves to something more editable, such as xml or similar? Thank you!

Comments

  • Welcome to the community, @theacefes.

    When building to desktop platforms, AC's default behaviour is to save in Binary. Both Json and XML are available as alternatives, but you need to enforce this through a custom script.

    The following code, inside a script attached to your PersistentEngine prefab, will enforce XML saving instead:

    void Awake ()
    {
        AC.SaveSystem.FileFormatHandler = new AC.FileFormatHandler_Xml (); 
    }
    

    However, be aware that you can also view unserialized save-file data via the Save File Manager, which is available at the top of the Settings Manager. Opening this will list all valid save files found in the persistentDataPath, from which you can select and view data for individual save files.

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.