2018-11-02 18:49:35 +00:00
# fftcgtool
Card import tool for [Final Fantasy TCG Complete ](https://steamcommunity.com/sharedfiles/filedetails/?id=889160751 ) mod for the [Tabletop Simulator ](http://berserk-games.com/tabletop-simulator/ )
2018-11-02 22:13:17 +00:00
## Usage
2018-11-02 18:49:35 +00:00
2021-08-23 15:21:07 +00:00
```
2021-09-03 02:59:46 +00:00
usage: fftcgtool [-h] [-v] [-l LANG] [-s] {opuses,ffdecks} ...
2018-11-02 18:49:35 +00:00
2021-08-23 15:21:07 +00:00
Imports FFTCG cards for TT-Sim.
2018-11-02 18:49:35 +00:00
2021-08-23 15:21:07 +00:00
optional arguments:
2021-09-03 02:59:46 +00:00
-h, --help show this help message and exit
-v, --verbose increase output verbosity
-l LANG, --language LANG
language for imported objects
-s, --stdout print the deck files in a zip archive to stdout, skip creating JSONs on disk
2018-11-02 22:13:17 +00:00
2021-08-23 15:21:07 +00:00
subcommands:
Import either an Opus to extend the mod, or import a deck to play right away.
2021-09-03 02:59:46 +00:00
{opuses,ffdecks} valid subcommands
2021-08-23 15:21:07 +00:00
```
2018-11-02 22:13:17 +00:00
### Run using your system's `python3`
2018-11-02 18:49:35 +00:00
2021-08-23 15:21:07 +00:00
1. Make sure you have at least python version `3.9` installed.
To test, run `python --version` or similar.
Also, `pipenv` should be installed for that python version.
Refer to [pipenv installation guide ](https://pipenv.pypa.io/en/latest/install/ ) if needed.
2. To install `fftcgtool` dependencies, run `pipenv install --deploy` from project root directory.
3. Run `pipenv run ./main.py` from project root directory.
4. You can `alias fftcgtool='PIPENV_PIPFILE="'$(pwd)'/Pipfile" pipenv run "'$(pwd)'/main.py"'` from
project root directory to define `fftcgtool` shorthand for your running shell.
2018-11-02 22:13:17 +00:00
### Run using a `docker` container
2018-11-02 18:49:35 +00:00
2021-08-23 15:21:07 +00:00
> Caveat: This simplistic container runs `fftcgtool` as root user.
> All generated files will thus be owned by `root:root` by default.
2018-11-02 22:13:17 +00:00
1. Make sure you have a working installation of `docker` software.
2021-09-03 03:03:22 +00:00
2. Update your local image.
- Either use `docker pull ldericher/fftcgtool` .
- Or build it yourself: Clone this repository and run `docker build --pull --tag ldericher/fftcgtool .` inside.
2021-08-23 15:21:07 +00:00
3. Run `docker run --rm -it -v "$(pwd)/out:/app/out" ldericher/fftcgtool` in any directory.
4. You can `alias fftcgtool='docker run --rm -it -v "$(pwd)/out:/app/out" ldericher/fftcgtool'`
to define `fftcgtool` shorthand for your running shell.
2018-11-02 18:49:35 +00:00
2018-11-02 22:13:17 +00:00
Output files will go to subdirectory `./out` . CLI arguments are supported as `docker run --rm -it -v "$(pwd)/out:/app/out" ldericher/fftcgtool -n 2 5` (imports Opus 5 using 2 threads)
2018-11-02 18:49:35 +00:00
## Future work
- Multiple opus import