It is currently 21 Nov 2019, 20:46
   
Text Size

XML files for (almost) all MTG cards

Moderators: Xander9009, CCGHQ Admins

XML files for (almost) all MTG cards

Postby Emashzed » 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 :

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>
I hope this is useful for some people :)
Last edited by Emashzed on 13 Feb 2013, 10:08, edited 4 times in total.
Emashzed
 
Posts: 62
Joined: 02 Feb 2011, 15:19
Has thanked: 15 times
Been thanked: 30 times

Re: XML files for (almost) all MTG cards

Postby --Dream-- » 30 Jul 2012, 15:10

great great work man!

Conflux is missing. Are you going to add it later?
--Dream--
 
Posts: 65
Joined: 28 Jul 2012, 12:01
Has thanked: 4 times
Been thanked: 0 time

Re: XML files for (almost) all MTG cards

Postby daenon611 » 30 Jul 2012, 16:02

--Dream-- wrote:great great work man!

Conflux is missing. Are you going to add it later?
I think it is in alara. The number of cards will match (Shards of Alara, Conflux, Alara Reborn 539 cards % 20 lands missing)?!?
User avatar
daenon611
 
Posts: 68
Joined: 04 Sep 2011, 15:19
Location: Germany
Has thanked: 45 times
Been thanked: 4 times

Re: XML files for (almost) all MTG cards

Postby Emashzed » 30 Jul 2012, 17:41

Yup, Conflux is in Alara.
Each zip contains the cards for its 3 expansions (except Lorwyn/Shadowmoor of course) ; minus the basic lands.
Emashzed
 
Posts: 62
Joined: 02 Feb 2011, 15:19
Has thanked: 15 times
Been thanked: 30 times

Re: XML files for (almost) all MTG cards

Postby --Dream-- » 30 Jul 2012, 18:44

Correct, thanks!
--Dream--
 
Posts: 65
Joined: 28 Jul 2012, 12:01
Has thanked: 4 times
Been thanked: 0 time

Re: XML files for (almost) all MTG cards

Postby Emashzed » 09 Aug 2012, 17:32

Added XMLs for Portal and Commander sets
Emashzed
 
Posts: 62
Joined: 02 Feb 2011, 15:19
Has thanked: 15 times
Been thanked: 30 times

Re: XML files for (almost) all MTG cards

Postby Emashzed » 13 Feb 2013, 10:09

Added XMLs for Gatecrash to r2ravnica v2.zip
http://www.mediafire.com/?zpazdggdkb8xaew
Emashzed
 
Posts: 62
Joined: 02 Feb 2011, 15:19
Has thanked: 15 times
Been thanked: 30 times

Re: XML files for (almost) all MTG cards

Postby xXAwsomesXx » 14 Feb 2013, 00:07

Theres no link for the mediafire folder
xXAwsomesXx
 
Posts: 33
Joined: 10 Dec 2012, 07:08
Has thanked: 11 times
Been thanked: 11 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 3 guests


Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 553 on 18 Nov 2019, 23:05

Users browsing this forum: No registered users and 3 guests

Login Form