XML files for (almost) all MTG cards
Posted: 30 Jul 2012, 12:57
Many persons are working on code generators, card editors, or making their cards "by hand" (sometimes only including the english text).
I just thought I'd try to help and do the basic work "once and for all" so everyone can concentrate on the "interresting" bits.
So I've made myself a little card generator that extracts info from gatherer + magiccards.info and generates every card for every block.
The files are available in my mediafire folder :
Each zip contains all the cards for a given MTG block.
The XMLs contain full localisation for every DOTP2013 supported language (when it exists), and all "basic" abilities (such as flying, hexproof...) as best as I could do with automatic generation/detection, and also correct MultiverseId, artist, type, etc, etc...
It's not 100% perfect, it's not complete cards (specific scripting still has to be done by hand), but it takes care of 95% of the automatic and tedious work when working on cards.
Edit: Added cards for Portal sets and Commander
Edit (12 Nov 2012): Added Return to Ravnica
Edit (13 Feb 2013): Added Gatecrash to r2ravnica v2.zip
Here is an example of a generated card :
I just thought I'd try to help and do the basic work "once and for all" so everyone can concentrate on the "interresting" bits.
So I've made myself a little card generator that extracts info from gatherer + magiccards.info and generates every card for every block.
The files are available in my mediafire folder :
Each zip contains all the cards for a given MTG block.
The XMLs contain full localisation for every DOTP2013 supported language (when it exists), and all "basic" abilities (such as flying, hexproof...) as best as I could do with automatic generation/detection, and also correct MultiverseId, artist, type, etc, etc...
It's not 100% perfect, it's not complete cards (specific scripting still has to be done by hand), but it takes care of 95% of the automatic and tedious work when working on cards.
Edit: Added cards for Portal sets and Commander
Edit (12 Nov 2012): Added Return to Ravnica
Edit (13 Feb 2013): Added Gatecrash to r2ravnica v2.zip
Here is an example of a generated card :
- Code: Select all
<?xml version='1.0'?>
<CARD_V2>
<FILENAME text="SIMIC_SKY_SWALLOWER_247196" />
<CARDNAME text="SIMIC_SKY_SWALLOWER" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Simic Sky Swallower]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Divora Cieli Simic]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Simischer Himmelsverschlinger]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Briffaud céleste des Simic]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Devorador celeste simic]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[シミックの空呑み]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Simic Sky Swallower]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Небоглот Симиков]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Engolidor de Céu Simic]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="247196" />
<ARTID value="A247196" />
<ARTIST name="rk post" />
<CASTING_COST cost="{5}{U}{G}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA["We've bred out the shortcomings of the species' natural form and replaced them with assets of our own design."—Momir Vig]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA["Abbiamo tolto con gli incroci i difetti naturali delle specie, sostituendoli con qualità di nostra progettazione."—Momir Vig]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Wir haben die Mängel der ursprünglichen Rasse herausgezüchtet und sie mit neu geschaffenen Anlagen ersetzt."—Momir Vig]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Nous nous sommes débarrassés des inconvénients de la forme naturelle de l'espèce et nous les avons remplacés par des atouts de notre propre conception. »—Momir Vig]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA["Hemos eliminado las limitaciones de la forma natural de la especie y las hemos reemplazado con mejoras diseñadas por nosotros mismos."—Mómir Vig]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[我々は自然における種族の欠点を排除し、我々自身が設計した能力と入れ替えたのだ。――モミール・ヴィグ]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA["We've bred out the shortcomings of the species' natural form and replaced them with assets of our own design."—Momir Vig]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA["Мы удалили все недостатки из исходной формы этого биологического вида и заменили их на усовершенствования собственной разработки."—Момир Виг]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA["Nós geramos as deficiências da forma natural das espécies e as substituímos com artigos de nossa própria criação."—Momir Vig]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Leviathan" order_de-DE="0" order_es-ES="0" order_fr-FR="0" order_it-IT="0" order_jp-JA="0" order_ko-KR="0" order_pt-BR="0" order_ru-RU="0" />
<EXPANSION value="DPG" />
<RARITY metaname="R" />
<POWER value="6" />
<TOUGHNESS value="6" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying, trample]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Volare, travolgere]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Fliegend, verursacht Trampelschaden]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vol, piétinement]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Vuela, arrolla.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[飛行、トランプル]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Flying, trample]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Полет, Пробивающий удар]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Voar, atropelar]]></LOCALISED_TEXT>
<CONTINUOUS_ACTION>
local characteristics = Object():GetCurrentCharacteristics()
characteristics:Characteristic_Set( CHARACTERISTIC_FLYING, 1 )
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION>
local characteristics = Object():GetCurrentCharacteristics()
characteristics:Characteristic_Set( CHARACTERISTIC_TRAMPLE, 1 )
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Shroud (This creature can't be the target of spells or abilities.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Il Divora Cieli Simic non può essere bersaglio di magie o abilità.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Der Simische Himmelsverschlinger kann nicht das Ziel von Zaubersprüchen oder Fähigkeiten sein.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Le Briffaud céleste des Simic ne peut pas être la cible de sorts ou de capacités.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[El Devorador celeste simic no puede ser objetivo de hechizos o habilidades.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[シミックの空呑みは呪文や能力の対象にならない。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Shroud (This creature can't be the target of spells or abilities.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Небоглот Симиков не может стать целью заклинания или способности.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Engolidor de Céu Simic não pode ser alvo de mágicas nem de habilidades.]]></LOCALISED_TEXT>
<CONTINUOUS_ACTION>
local characteristics = Object():GetCurrentCharacteristics()
characteristics:Characteristic_Set( CHARACTERISTIC_SHROUD, 1 )
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
</CARD_V2>