I wanted to generate some custom decks for Cards Against Humanity in Tabletop Simulator.
A python script manages compiling custom lines of card text into PNG images for importing into Tabletop Simulator. Additionally, an image is generated for each of the two cardbacks.
Each generated sheet will contain at most 70 cards. The first number in a sheet name is the number of that sheet for the set, and the second number is the number of cards on that sheet, to make it a little easier to import without too much thought.
Under sets
, create a <name>_black.csv
file and a <name>_white.csv
file, and add the text for your cards (one line for each card).
Then follow the steps under "Run" to produce cardsheets in the output
folder.
(Tested on Windows)
Install Python - https://www.python.org/ (tested on 3.10.7)
Install Pillow - python -m pip install Pillow
(tested on 9.5.0)
Then run python main.py
in the root of the cloned repository.
You may wish to download HelveticaNeue Bold to make the font more appealing.
You can download it from https://fontsgeek.com/fonts/helveticaneue-bold for example, then place the .ttf
file in the root of the cloned repository. The examples were produced with this font theme.
Cards Against Humanity and its related concepts are Creative Commons BY-NC-SA 4.0 license. That means you can use, remix, and share the game for free, but you can't sell it without their permission.
Otherwise, feel free to use this as you please :)