Krock 5c3266ed2a Update script: ready for use. replace --no-dry-run with --dry-run 2 hete
..
HDiffPatch 7c07954fad Update script: Add HDiffPatch support 3 éve
legacy 11bf633777 Update script: replace update_gi.sh with updater.py 3 hete
.gitignore 11bf633777 Update script: replace update_gi.sh with updater.py 3 hete
README.md 5c3266ed2a Update script: ready for use. replace --no-dry-run with --dry-run 2 hete
check_integrity.sh 4d18fa7dad Script improvements: Faster check and predownload option 2 éve
find_surplus_binaries.sh 77e0e487c9 Improve the error 31-4302 troubleshooting steps 1 éve
manifest.proto 11bf633777 Update script: replace update_gi.sh with updater.py 3 hete
manifest_ldiff.proto 11bf633777 Update script: replace update_gi.sh with updater.py 3 hete
requirements.txt 11bf633777 Update script: replace update_gi.sh with updater.py 3 hete
sophon_api.py 5c3266ed2a Update script: ready for use. replace --no-dry-run with --dry-run 2 hete
updater.py 5c3266ed2a Update script: ready for use. replace --no-dry-run with --dry-run 2 hete

README.md

Game installation and updating

Pick an application from the list below that suits your preferences. Each of them is capable of installing and updating the game. Additional features such as automated patching might or might not be included.


Update script (sophon chunk/diff)

Setup

1. Python requirements

Python 3.8 or newer is required (zstandard library)

pip install -r requirements.txt

2. Generate manifest_pb2.py

  1. Required system package
    • Ubuntu/Debian: protobuf-compiler
  2. Generate
    • $ protoc --python_out=. manifest.proto
    • $ protoc --python_out=. manifest_ldiff.proto

Usage

Show command-line options / help dialogue

python updater.py -h

Game update (example)

python updater.py --update /install/destination/path

New game install (example)

python updater.py --install RELTYPE --select-languages "en,ja,ko,zh" /install/destination/path

Game repair (example)

python updater.py --repair reliable /install/destination/path

For development purposes:

python updater.py <install/update> --dry-run --disallow-download

Developer notes

See sophon_api.py heading