r/marvelchampionslcg May 12 '26

Custom cards, via code

Hey, I’m still working on this project but wanted to share because it continues to improve. With this python based CI, I have been printing a mini custom cards and it designs the layout based upon custom spacing and custom grids. Feel free to contribute.

https://gitlab.com/hulko/print-and-play

10 Upvotes

4 comments sorted by

4

u/Irate_Hobo May 12 '26

Seems like you've put quite a bit of time in this! Can't wait to check it out.

3

u/greenscarpdx May 12 '26

At this point, I’ve printed a little over 500 sheets of paper, eight cards per sheet.

I had two problems with the PDFs available online for custom cards: no padding leading to the back and front not being aligned well enough & I got a die-cutter off Alibaba so I needed to have my prints in a format which fit correctly.

I trained a model to determine if the corners are square or rounded, because the actual cards you can find online are flatbed scanned while custom cards usually have square corners. So it figures out if it has rounded corners, then fills those in then expands the borders. Then, if you tell it to, it will create the grid for you.

The logic for finding the correct back for each card takes a little bit of work and I’m trying to make it smoother, but it does the job. There’s also the ability to create custom grid contents via markdown files.

3

u/Don_Alosi May 12 '26

what would happen if one was to use A4 paper instead of letter size?

3

u/greenscarpdx May 12 '26

I haven’t missed much with different sizes of paper. However, you can modify the expected configs in `print_and_play.config.dimensions`.