Skip to content

Support for compressed save files (Nintendo Switch) #130

@Turmoil1112

Description

@Turmoil1112

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions