A very simple tool made in javascript to batch creation of json files for KeyForge cards.
- Edit the
config.jsonfile and enter a valid expansion data. - Edit the
decks.jsonfile by adding deck ids's to array. For example:
[
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002",
"00000000-0000-0000-0000-000000000003"
]So far there are 8 distinct commands. See more below.
To create the decks.json file, run the following command:
$ npm run createDecksJsonTo create the JSON files for all the cards present on the decks informed, run the following command:
$ npm run createJsonsOr the following command to consolidate all parts / versions of the same card:
$ npm run createJsonCardsTo create the XML files for all the sets with the Jsons already created, run the following command:
$ npm run createXmlsTo create the COD files for all the decks informed, run the following command:
$ npm run importDecksTo generate the GitHub Pages for all the sets with the Jsons already created, run the following command:
$ npm run generatePagesTo generate the images of all cards for all the sets with the Jsons already created, run the following command:
$ npm run generateImagesTo generate the card totals by sets and general, run the following command:
$ npm run generateStatsTo generate the card totals by sets and general of a collection, run the following command:
$ npm run generateCollectionStatsPlace the collection in the "collection" folder one file per set (
cota.json,aoa.json, etc.).
To create the TTS file for a KeyForge deck, run the following command:
$ npm run vaultToTTS <DECK ID>To create the TTS file for a Magic deck, run the following command:
$ npm run scryfallToTTS <Scryfall Deck File.json> <Sleeve Color>The available sleeves colors are:
- Red
- Blue
- Black