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

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