1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00
(mirror) Card import tool for "Final Fantasy TCG Complete" for "Tabletop Simulator"
Find a file
2021-09-01 20:14:56 +02:00
.idea output verbosity 2021-08-25 16:11:17 +02:00
fftcg CardDB construction/loading 2021-09-01 20:14:56 +02:00
.dockerignore Docker 2021-08-03 02:24:14 +02:00
.gitignore Add README, add docker option 2018-11-02 19:49:35 +01:00
Dockerfile Python3.9 (typos) 2021-08-09 05:47:25 +02:00
LICENSE Python3.9 (typos) 2021-08-09 05:47:25 +02:00
main.py CardDB construction/loading 2021-09-01 20:14:56 +02:00
Pipfile use pickle instead of yaml serialization 2021-08-23 13:38:01 +02:00
Pipfile.lock use pickle instead of yaml serialization 2021-08-23 13:38:01 +02:00
README.md README for v2 2021-08-23 17:21:07 +02:00

fftcgtool

Card import tool for Final Fantasy TCG Complete mod for the Tabletop Simulator

Usage

usage: fftcgtool [-h] {opus,deck} ...

Imports FFTCG cards for TT-Sim.

optional arguments:
  -h, --help   show this help message and exit

subcommands:
  Import either an Opus to extend the mod, or import a deck to play right away.

  {opus,deck}  valid subcommands

Run using your system's python3

  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 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.

Run using a docker container

Caveat: This simplistic container runs fftcgtool as root user. All generated files will thus be owned by root:root by default.

  1. Make sure you have a working installation of docker software.
  2. Update your local image .
    • Either use docker pull ldericher/fftcgtool
    • Or run docker build --pull --tag ldericher/fftcgtool .
  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.

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