mirror of
https://github.com/ldericher/fftcgtool
synced 2025-12-06 16:43:00 +00:00
(mirror) Card import tool for "Final Fantasy TCG Complete" for "Tabletop Simulator"
| .idea | ||
| fftcg | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| fftcgtool.py | ||
| LICENSE | ||
| Pipfile | ||
| Pipfile.lock | ||
| README.md | ||
fftcgtool
Card import tool for Final Fantasy TCG Complete mod for the Tabletop Simulator
Usage
usage: fftcgtool [-h] [-v] [-l LANG] [-s] {opuses,ffdecks} ...
Imports FFTCG cards for TT-Sim.
optional arguments:
-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
subcommands:
Import either an Opus to extend the mod, or import a deck to play right away.
{opuses,ffdecks} valid subcommands
Run using your system's python3
- Make sure you have at least python version
3.9installed. To test, runpython --versionor similar. Also,pipenvshould be installed for that python version. Refer to pipenv installation guide if needed. - To install
fftcgtooldependencies, runpipenv install --deployfrom project root directory. - Run
pipenv run ./fftcgtool.pyfrom project root directory. - You can
alias fftcgtool='PIPENV_PIPFILE="'$(pwd)'/Pipfile" pipenv run "'$(pwd)'/fftcgtool.py"'from project root directory to definefftcgtoolshorthand for your running shell.
Run using a docker container
Caveat: This simplistic container runs
fftcgtoolas root user. All generated files will thus be owned byroot:rootby default.
- Make sure you have a working installation of
dockersoftware. - 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.
- Either use
- Run
docker run --rm -it -v "$(pwd)/out:/app/out" ldericher/fftcgtoolin any directory. - You can
alias fftcgtool='docker run --rm -it -v "$(pwd)/out:/app/out" ldericher/fftcgtool'to definefftcgtoolshorthand for your running shell.
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)
Future work
- Multiple opus import