msk86 / ygo-card-print

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RUN

  1. install nodejs: https://nodejs.org/en/download/
  2. update your resources/cards.cdb to latest
  3. move ydk file to resources/deck/ (test-deck.ydk as example)
  4. run npm install
    • for Chinese user, you can try to use cnpm or yarn to install the package
    • to use cnpm: npm install cnpm --global then run cnpm install instead of running npm install
    • to use yarn: npm install yarn --global then run yarn install instead of running npm install
  5. run node index.js test-deck
  6. checkout the pdf in output/test-deck.pdf

Multilingual

  1. accepted languages: cn, jp, en.
  2. find a cdb file with your language, rename it to cards-${lang}.cdb and move it to /resources folder.
  3. run node index.js test-deck ${lang}
  4. default language is Chinese, cn can be passed automatically so you can still run node index.js test-deck

THANKS

Thanks for the inspiration of https://github.com/ymssx/yugioh-card, there is lot's unclear params in this lib but I tested out...

About


Languages

Language:JavaScript 100.0%