/TJA-Practice

A small tool to extract a specific part from a TJA chart

Primary LanguagePythonMIT LicenseMIT

TJA-Practice

A small tool to extract a specific part from a TJA chart

Requirements

  • Python 3 (tested on 3.7)
  • pydub
  • ffmpeg

Setting up

For instructions on how to install ffmpeg, please see this page.

Using pipenv

pipenv install

Without pipenv

pip install pydub

Usage

Using pipenv

pipenv run python tjapractice.py [tja file] [start time] [end time]

Without pipenv

python tjapractice.py [tja file] [start time] [end time]

Both start time and end time are in milliseconds (ms). After running the script, two new files should appear in the same directory as the original TJA file, both prefixed with practice_.

Bugs / limitations

  • Forked paths are not handled properly
  • Balloon counts are not handled properly
  • Code is a goddamn mess please save me