Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating old Save Files #21

Open
Katniss218 opened this issue Apr 10, 2024 · 0 comments
Open

Updating old Save Files #21

Katniss218 opened this issue Apr 10, 2024 · 0 comments
Labels
api Requesting a change or addition to the API - might affect mods or other parts of the code new feature A new addition to HSP

Comments

@Katniss218
Copy link
Owner

Katniss218 commented Apr 10, 2024

Problem:
Save files will become incompatible if the mod used updates and changes the save file format or structure.

Solution:
Introduce a 'Data Fixer' in every mod, that takes in a (old_version, new_version) pair, and transforms the given save file accordingly.

The old version will be taken from the save itself, and the new version from the version that's currently loaded.

The DataFixer may only support certain pairs of versions, which needs to be communicated out, to display to the player.

@Katniss218 Katniss218 added the new feature A new addition to HSP label Apr 10, 2024
@Katniss218 Katniss218 changed the title Mod-friendly save file updating Updating old Save Files Jul 11, 2024
@Katniss218 Katniss218 added the api Requesting a change or addition to the API - might affect mods or other parts of the code label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Requesting a change or addition to the API - might affect mods or other parts of the code new feature A new addition to HSP
Projects
None yet
Development

No branches or pull requests

1 participant