Skip to content

Conversation

@DasKatzchen
Copy link

Brought CardMachine screaming into the modern age. Replaced all print functions to work with Python 3, cast some float coordinates as ints to work with Pillow, updated the PDF creation command to use 'magick convert' instead of 'convert' (and also fixed the command to handle subdirectories properly). In addition, I've added all the other necessary repositories as submodules, note that secretshipfic/Card-Art#2 and secretshipfic/TSSSFTemplates#3 are necessary for this to work.

Should bring me up to date.
Replace all print statements and cast floats to ints for PIL. PDF generation still broken, IM convert doesn't like something about the format. That's next on my list but it runs now so I'll take what I can get. Also added all card repositories as submodules
Fixing this was easier than I though. Once I figured out that it was doubling up the path, was easily able to fix it. Could refactor all uses of card_set to more accurately deal with subfolders but... the PDF creation was the only spot where it matters, so I just kludged in an os.path.basename() and was done with it.
Changing to Int for PIL caused the bleed for card art to be wrong. Fixed it by adding 2 pixels to the width and shifting it left and up 1 pixel
This makes it work on both both Windows and Linux, since Windows is slash-agnostic
As that is the branch I primarily work with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant