Signed up on these forums to post this, I hope you guys enjoy it
As a side hobby for the past week or so I've been working on a program for the automatic printing of magic deck lists. The program is written in Java, and uses http://magiccards.info as its source for information.
You input a deck list, and then the program does the following
1) Forms the correct query URL for magiccards.info
2) Parses the results HTML file to find the edition and number of the card
3) Uses that information to download the image of the file
4) Arranges the cards in a 3x3 grid, and outputs the page to a .jpg file
For example, the following decklist:
1 be Black Lotus
1 be Mox Jet
1 be Mox Ruby
1 be Mox Sapphire
1 be Mox Emerald
1 be Mox Pearl
1 be Time Walk
1 be Ancestral Recall
1 be Timetwister
2 be Lightning Bolt
1 new Lightning Bolt
2 new Hypnotic Specter
Results in the following images being produced (which can be printed and cut from an 8.5*11 sheet of paper to produce a near perfect proxy):
LEGAL NOTICE: I believe I am allowed to legally release a program like this since it is meant to simply facilitate in obtaining images of cards that are freely available online. I don't advocate the mass printing or reselling of cards and this is never meant to be used as a tool for forgery. Just for use in legal proxy tournaments. If it ever comes to my knowledge that this is not legal, I will immediately remove the software.
Note: Here is a related thread I made about this program on reddit.com
Cool stuff I did something similar in PHP some time ago, without the possibility of choosing edition, though. (The input is just parsed and the images are fetched, locally, from Wizards web) Can be seen on http://mtg.kvalitne.cz/printer/
Nice work! I thought about making it web-based but I liked the idea of the images being saved to disk automatically. Also, I am more familiar with Java so it didn't take too long to code.
Private Mod Note
():
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
As a side hobby for the past week or so I've been working on a program for the automatic printing of magic deck lists. The program is written in Java, and uses http://magiccards.info as its source for information.
You input a deck list, and then the program does the following
1) Forms the correct query URL for magiccards.info
2) Parses the results HTML file to find the edition and number of the card
3) Uses that information to download the image of the file
4) Arranges the cards in a 3x3 grid, and outputs the page to a .jpg file
For example, the following decklist:
1 be Black Lotus
1 be Mox Jet
1 be Mox Ruby
1 be Mox Sapphire
1 be Mox Emerald
1 be Mox Pearl
1 be Time Walk
1 be Ancestral Recall
1 be Timetwister
2 be Lightning Bolt
1 new Lightning Bolt
2 new Hypnotic Specter
Results in the following images being produced (which can be printed and cut from an 8.5*11 sheet of paper to produce a near perfect proxy):
http://i.imgur.com/89qV3.jpg http://i.imgur.com/PujoH.jpg
(I uploaded them to show, normally it just goes to the hard drive)
The deck list format parses each line as:
cards, edition, cardname
Where edition corresponds to the edition code listed on: http://magiccards.info/sitemap.html
If you put 'new' as the edition, it will grab the latest edition that the card appeared in.
The software is available here as a Java .jar file. If you have Java 6 installed it should work out of the box on any operating system:
http://dl.dropbox.com/u/23817376/mtg/MTGPrinter.zip
LEGAL NOTICE: I believe I am allowed to legally release a program like this since it is meant to simply facilitate in obtaining images of cards that are freely available online. I don't advocate the mass printing or reselling of cards and this is never meant to be used as a tool for forgery. Just for use in legal proxy tournaments. If it ever comes to my knowledge that this is not legal, I will immediately remove the software.
Note: Here is a related thread I made about this program on reddit.com
LEGACY:
GWEnchantressWG
Nice work! I thought about making it web-based but I liked the idea of the images being saved to disk automatically. Also, I am more familiar with Java so it didn't take too long to code.