mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-09 15:19:50 +03:00
These instructions assume you've already set up the development container.
Adding songs from data
- Navigate to
seeds/scripts/rerunners/chunithmand run themerge-options.tsscript:
ts-node merge-options.ts --version <VERSION> --input /path/to/chunithm/App/data /path/to/chunithm/Option
- In the same directory, reorder the versions by running
node sort-versions.js. - Check the logs to see if the script changed anything unexpected, and fix if it happens.
- Manually add search terms in
seeds/collections/songs-chunithm.json. At a minimum, songs with Japanese titles should be romanized. - In the root project folder, run
just seeds test.
Parsing song durations
- Install
vgmstream-cliin the container to parse song durations:
sudo apt install unzip
# optionally, replace r2055 with the latest version at https://github.com/vgmstream/vgmstream/releases/latest
curl -LO https://github.com/vgmstream/vgmstream/releases/download/r2055/vgmstream-linux-cli.zip
unzip vgmstream-linux-cli.zip
sudo install -Dm755 vgmstream-cli /usr/local/bin
This step only needs to be done once.
- Navigate to
seeds/scripts/rerunners/ongekiand run theparse-song-duration.tsscript:
ts-node parse-song-duration.ts -v "$(which vgmstream-cli)" -d /path/to/chunithm/App/data -g chunithm
ts-node parse-song-duration.ts -v "$(which vgmstream-cli)" -d /path/to/chunithm/Option -g chunithm
- In the root project folder, run
just seeds test.
Adding songs to the international version
See the make-things-available-in-intl.js script. Afterwards, reorder the versions by running the sort-versions.js script.
Adding a new version
- Add a new version in
common/src/config/game-support/chunithm.ts. Also add Omnimix and International variants. - Create tables and folders for the new version (and the omnimix version).
See
seeds/scripts/rerunners/chunith/add-tables-and-folders. You will have to adjust the constants for the version you're adding. - Deactivate old tables using
seeds/scripts/rerunners/toggle-table-inactive.js:
node toggle-table-inactive.js -t chunithm-Single-<VERSION>-levels
Keep tables for the current and last (aka n-1) versions.
-
Switch the new table to the default one by editing
seeds/collections/tables.json. Change to"default": truefor the current version, and"default": falsefor all other tables of the game. -
Verify you've done everything correctly by running
just seeds testin the root project folder.