Skip to content

1) Save redirection

Kubo edited this page Jan 13, 2025 · 5 revisions

Save redirection is not exposed directly, as the user is meant to interact with it using Freedom Manager, or configuration file.

By default, the redirection is disabled unless specifically enabled by the user, and a profile is selected. Once this is done, all save-related reads/writes will be redirected to a folder within the game's directory:

./Saves/ProfileX/

Where X is the current profile selected. Profiles are currently limited to 9 which in turn offers 90 possible saves (including profile 0 aka. original saves).

A special Profile0 folder is also provided for storing extra data related to 'default' set of files in %appdata%. You can use GameInfo.getProfilePath() to get a path to a directory where you are free to keep profile-specific configs.

Following settings are available:

[Save Redirection]

## Enable save file redirection.
# Setting type: Boolean
# Default value: false
Enabled = false

## Makes JSON files more human-readable.
# Setting type: Boolean
# Default value: false
Fancy Json = false

## Select save redirection profile.
# Setting type: Int32
# Default value: 1
Profile = 1

Please note that changing these at runtime, while supported, is not recommended unless you specifically know when and why. For example, if you were to change the profile while on stage, the current save file will blindly overwrite its counterpart in newly selected profile.

If you want to, for example, implement your own save redirection for the mod you would want to disable the redirect at the very launch of the game and run your code instead.

Other option would be - if there is interest in such - a refactor of this functionality to accept mods requesting their own redirect. Contributions in this field are welcome, and should be a fairly easy first issue for anyone wishing to do so :).

Clone this wiki locally