Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silverwind

Commands

slcatalog [-t https://...] [-s https://...] [-a 1.x.x] [-p <ios/android>] [catalog.sqlite3]

(or python -m silverwind.tool.download_catalog)

Query the live server for the current game data version. If a catalog filename is passed, also download the catalog to <catalog.sqlite3>. If '%s' is in the destination filename, it will be replaced with ''.

  • -p sets the platform type, which can be one of ios or android.
  • -a sets the app version number.
  • -t sets the API base URL, for targeting staging/dev servers.
  • -s sets the assets base URL, for targeting staging/dev servers. Effectively does nothing if not downloading the catalog.
slassets [-s https://...] [-p <ios/android>] [-c | --categories] [-i | --stdin] <catalog.sqlite3> <download_dir> <patterns...>

(or python -m silverwind.tool.get_assets)

Downloads assets from the given catalog database. If --categories is passed, patterns is treated as a list of asset categories to download, otherwise it's a list of filename patterns. If --stdin is passed, the patterns list is read from standard input instead, separated by newlines.

  • -p sets the platform type, which can be one of ios or android.
  • -s sets the assets base URL, for targeting staging/dev servers.
slmaster <mst.sqlite3> <file.tsv ...>
slmaster [-d | --download] [-s https://...] [-p <ios/android>] [-u output.toml] <mst.sqlite3> <catalog.db>

(or python -m silverwind.tool.parse_master)

Parses the binary master data in all file.tsvs and updates the appropriate table(s) in mst.sqlite3. With --download, it will download all the master files listed in catalog.db and insert those into the database instead. The arguments listed below only apply when --download is used.

  • -p sets the platform type, which can be one of ios or android.
  • -s sets the assets base URL, for targeting staging/dev servers. Does nothing if not used in conjunction with --download.
  • -u will write out a new master_mapping.toml with default values for missing field names.
sldchart <file.bytes ...>

(or python -m silverwind.tool.decompress_charts)

Decompresses the (JSON) chart data in each file.bytes and writes it to file.bytes.json. This tool currently doesn't do a lot and is mostly intended as code-documentation for the format. However, it does attach a SilverwindDecodedFlags to each note object with the unpacked form of its corresponding Flags object.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages