Here's my DotP2014 (web) generator (discontinued)
Posted: 14 Mar 2013, 00:36
Thefiremind's DotP2014 generator
IMPORTANT NOTICE: This tool is discontinued because I lost the credentials that I would need in order to make further changes.
CLARIFICATION FOR NEW USERS: This tool won't give you the full working card, unless you are searching for a "vanilla" card (no abilities). The code that makes the abilities work still needs to be added. That's what modders do... if there were a program that can automatically generate a fully working card, we would all build any deck in the blink of an eye, but that's not possible.
I wanted to make a step forward from my Localised tool, so I started working on a new card generator. I developed it as a web application, like pcastellazzi did.
Here is the link: http://tfm-dotp-gen.herokuapp.com/
I'd say that its special features are still rudimental, but feel free to test it and report if a card shows something strange in the text. I'll improve it when I have time.
How it works:
It fetches the cards on Gatherer, but it also gets the Italian version from mtgdb.net (when available) which allows older cards to have at least the Italian text with the updated wording ("battlefield", "exile", etc.).
Anyway the main source is Gatherer, so if it's down for maintenance, all the searches will fail. If mtgdb.net is down but Gatherer isn't, the processing will be slower because I have set a timeout of 7 seconds, but it will eventually succeed.
The application is written in Java (it uses Jetty for the server part).
Current special features:
Known bugs:
IMPORTANT NOTICE: This tool is discontinued because I lost the credentials that I would need in order to make further changes.
CLARIFICATION FOR NEW USERS: This tool won't give you the full working card, unless you are searching for a "vanilla" card (no abilities). The code that makes the abilities work still needs to be added. That's what modders do... if there were a program that can automatically generate a fully working card, we would all build any deck in the blink of an eye, but that's not possible.
I wanted to make a step forward from my Localised tool, so I started working on a new card generator. I developed it as a web application, like pcastellazzi did.
Here is the link: http://tfm-dotp-gen.herokuapp.com/
I'd say that its special features are still rudimental, but feel free to test it and report if a card shows something strange in the text. I'll improve it when I have time.
How it works:
It fetches the cards on Gatherer, but it also gets the Italian version from mtgdb.net (when available) which allows older cards to have at least the Italian text with the updated wording ("battlefield", "exile", etc.).
Anyway the main source is Gatherer, so if it's down for maintenance, all the searches will fail. If mtgdb.net is down but Gatherer isn't, the processing will be slower because I have set a timeout of 7 seconds, but it will eventually succeed.
The application is written in Java (it uses Jetty for the server part).
Current special features:
- Direct saving of the XML file to disk
- Automatic distinction between types and supertypes
- Automatic generation of combat animation blocks for creatures (it always gives BLUNT as default animation)
- Rudimental guessing of ability type (it can fail, but better than making all abilities of a default type... )
- Rudimental check for abilities that are wrongly placed on the same line (it can fail too, see the known bugs for details)
- Rudimental auto-completion of simple keyword abilities, and when I say simple I mean flying, trample, etc. plus some standard one-keyword abilities like undying, persist, exalted, etc.
- Link to magic-ville.com for searching HQ illustrations
Known bugs:
- If you search for "Juzam Djinn", while it works if searched inside Gatherer, my application gets a 400 error from Gatherer (you see the search failing "gracefully" at least). It doesn't happen if you search for "Juzám Djinn", that is how the name should be really written.
- The check that should recognize when 2 different abilities are wrongly written on the same line can still fail when the first ability doesn't end with a full stop. (Test card: Gyre Sage)
- If you search for a Multiverse ID that belongs to a non-English version of a card, the card fetch seems to work anyway (which has been unexpected for me), but it loads a lot of garbage inside the EXPANSION block.
- You can't search for the back faces of transform cards: the front face will always be retrieved.
- Searching for Blood Tribute or Crypt Ghast generates a "Java heap space" error which seems to be connected to the reminder text removal. Since it's an isolated bug and probably depends on some bad formatting inside Gatherer I won't even try to fix it.
- Sometimes the MagicVille link doesn't work. It happens when the search for the card name gives more than one result in MagicVille, so the site returns a page with the search results rather than the page with the card you are searching for, and my application can't manage it. Making this scenario work would be a bit too complicated and not worth the effort in my opinion, so you'll have to bear with it when it happens. Just browse MagicVille manually and search for the card.