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

Support for compressed save files (Nintendo Switch) #130

Open
Turmoil1112 opened this issue Dec 9, 2024 · 1 comment
Open

Support for compressed save files (Nintendo Switch) #130

Turmoil1112 opened this issue Dec 9, 2024 · 1 comment

Comments

@Turmoil1112
Copy link

The Nintendo Switch version of Stardew Valley compresses save files using de zlib/deflate algorithm with default settings. I got the hint from gbatemp forums, the user unknowndatax even provied a simple compiled windows tool with source code for compressing an uncompressing.
The files can be recognized with the deflate magic bytes 78 9C. After inflating them stardew.app has no problems opening the resulting xml.
Another project called stardew-checkup already supports compressed save files with a rather simple implementation using pako.
It simply checks whether the savefile is smaller than 500KB and then tries to inflate it.

The Switch has to support homebrew to extract the save files so the target audience might not be the biggest but maybe this is a welcome addition for completeness sake.
Attached is a example savefile created on Nintendo Switch with Stardew Valley 1.6.9 (I had to add a file ending to upload it, this is still zlib compressed, not gzip).
Test_390942675.gz

@AnotherPillow
Copy link
Contributor

AnotherPillow commented Dec 10, 2024

According to a dev, it's the same for all consoles. source

AnotherPillow added a commit to AnotherPillow/stardew.app that referenced this issue Dec 13, 2024
AnotherPillow added a commit to AnotherPillow/stardew.app that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants