1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00
fftcgtool/README.md

111 lines
3.8 KiB
Markdown
Raw Permalink Normal View History

2018-11-02 18:49:35 +00:00
# fftcgtool
2021-09-03 08:11:52 +00:00
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 18:49:35 +00:00
## Usage
2018-11-02 18:49:35 +00:00
2021-08-23 15:21:07 +00:00
```
2021-09-03 09:58:24 +00:00
Usage: fftcgtool.py [OPTIONS] COMMAND [ARGS]...
2018-11-02 18:49:35 +00:00
2021-09-03 09:58:24 +00:00
Imports FFTCG cards for TT-Sim.
2018-11-02 18:49:35 +00:00
2021-09-03 09:58:24 +00:00
Options:
-v, --verbose increase output verbosity [x>=0]
-l, --language LANG language for imported objects
2021-09-06 03:10:52 +00:00
-z, --zip FILE wrap deck files into a zip archive, skip creating
individual JSONs
-o, --output DIR use specified output directory instead of ./out
-u, --db-url URL load immutable CardDB from URL instead of local,
overrides -f
-f, --db-file FILE use specified CardDB file instead of ./out/carddb.zip
2021-09-03 09:58:24 +00:00
--help Show this message and exit.
2021-09-03 09:58:24 +00:00
Commands:
ffdecks Imports Decks from the ffdecks.com API and creates it as a...
opuses Imports Opuses from the square API and creates its elemental...
2021-08-23 15:21:07 +00:00
```
2021-09-03 08:11:52 +00:00
## Examples
### Import Opuses
```sh
fftcgtool opuses 14
```
Import Opus XIV.
Card face images are saved to the `out/images/` subdirectory.
For each of the six base elements, an "elemental deck" is saved to the `out/decks/` subdirectory. An elemental deck
contains all cards of that element. Light and Darkness element cards is contained in a combined elemental deck.
Multi-element cards are contained in another combined elemental deck.
Additionally, the card database zip is saved to the `out/` subdirectory. It contains all card data imported so far.
Finally, you will be asked to upload each card face image and provide a link.
Non-existent subdirectories will be created.
```sh
fftcgtool opuses --help
```
Show more info about the `opuses` subcommand.
```sh
fftcgtool opuses -n 11 chaos 4 8 13
```
2018-11-02 18:49:35 +00:00
2021-09-03 08:11:52 +00:00
Import the "Boss Deck Chaos" and the Opuses IV, VIII and XIII using 11 parallel processes.
For small Opuses like the Boss Cards, only a single deck is saved to the `out/decks/` subdirectory.
### Import decks from ffdecks.com
```sh
fftcgtool ffdecks 6272690272862208
# or
fftcgtool ffdecks 'https://ffdecks.com/deck/6272690272862208'
```
Import the deck [WOL Mono Fire🔥](https://ffdecks.com/deck/6272690272862208) from ffdecks.com.
You will need a card database zip with all needed cards for this to work. Cards not found in the zip will be omitted.
The imported deck will be saved to the `out/decks/` subdirectory. It will be created if it doesn't exist.
```sh
fftcgtool ffdecks --help
```
Show more info about the `ffdecks` subcommand.
## Installation
### Using your system's `python3`
2021-09-07 13:27:03 +00:00
1. Make sure you have at least python version `3.9` with `pip` installed. To test, run `python --version` or similar.
2. Install `fftcgtool`.
- Either from this repository: Use `pip install "git+https://github.com/ldericher/fftcgtool"`.
- Or from your local source: Clone this repository and run `pip install /path/to/fftcgtool`.
2021-09-07 14:23:09 +00:00
3. You can now run `fftcgtool` in any directory.
2021-09-03 08:11:52 +00:00
### Using a `docker` container
2018-11-02 18:49:35 +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.
2021-09-07 13:27:03 +00:00
- Either use `docker pull ldericher/fftcgtool`.
- Or build it yourself: Clone this repository and run `docker build --pull --tag ldericher/fftcgtool .` inside.
2021-09-07 14:23:09 +00:00
3. Run `docker run --rm -it -v "$(pwd)/out:/app/out" -u "$(id -u):$(id -g)" ldericher/fftcgtool` in any directory.
2021-09-07 13:27:03 +00:00
4. You can `alias fftcgtool='docker run --rm -it -v "$(pwd)/out:/app/out" -u "$(id -u):$(id -g)" ldericher/fftcgtool'`
2021-08-23 15:21:07 +00:00
to define `fftcgtool` shorthand for your running shell.
2018-11-02 18:49:35 +00:00
2021-09-03 08:11:52 +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
2021-09-03 08:11:52 +00:00
## To-Do-List
2018-11-02 18:49:35 +00:00
2021-09-03 08:11:52 +00:00
- `deck` subcommand, which would read a custom deck list in text format