Log in

Difference between revisions of "Introduction to Modding 2013"

m
Line 52: Line 52:
 
</CARD_V2>
 
</CARD_V2>
 
</nowiki></pre></code>
 
</nowiki></pre></code>
 
{{Hidden begin | title = Example with comments}}
 
<code><pre><nowiki>
 
<?xml version='1.0'?>
 
<CARD_V2>
 
  <FILENAME text="FLYING_BEAR_12345" />  <!-- This is the name of the card, followed by its multiverse id (see below) -->
 
  <CARDNAME text="FLYING_BEAR" />
 
  <TITLE>                                <!-- The actual text that shows as the title on the card in-game -->
 
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying Bear]]></LOCALISED_TEXT>
 
  </TITLE>
 
  <MULTIVERSEID value="12345" />        <!-- This is pulled from http://gatherer.wizards.com. When you look up a card,
 
                                              you can find its multiverse id in the url bar -->
 
  <ARTID value="A12345" />              <!-- I'm not sure how the official cards determine this, but the community generally
 
                                              uses 'A' + the multiverse id -->
 
  <ARTIST name="Joe Cool" />
 
  <CASTING_COST cost="{G}" />            <!-- Mana costs are written in {}'s. {G} for green, {R} for red, {B} for black, {W} for white,
 
                                              and {U} for blue. A number can be placed in the brackets to represent a colorless cost,
 
                                              or {X} can be used for a variable cost. -->
 
  <TYPE metaname="Creature" />          <!-- Defines what type of card this is. Type can be Instant, Sorcery, Enchantment, Artifact, or Creature -->
 
  <SUB_TYPE metaname="Bear" />          <!-- Usually defines a creature type, but is also used to denote equipment or curse enchantments -->
 
  <EXPANSION value="DPG" />              <!-- I'm not sure this is used by the game, but the official cards use DPG as the expansion -->
 
  <RARITY metaname="M" />                <!-- C for common, U for uncommon, R for rare, M for mythic rare -->
 
  <POWER value="1" />                    <!-- Creature's power and toughness -->
 
  <TOUGHNESS value="1" />
 
</CARD_V2>
 
</nowiki></pre></code>
 
{{Hidden end}}
 

Revision as of 08:03, 1 September 2012


Contents

Prelude

This guide aims to teach you how to mod custom cards and decks into Duels of the Planeswalkers 2013 in a local, simple, and easy-to-follow manner. The following will hopefully get you on your feet and into the world of card-coding.

Getting Ready to Modify

Before you start, you'll need some tools to work with, and to tweak Duels of the Planeswalkers to allow your custom content to be run. All of the necessary files can be found here.

Download the tools and extract them into a folder. I created a folder on my Desktop to put them in.

Next, download the patcher DLL and put it in the game directory where DotP_2013.exe is. This could be C:\Program Files\Wizards of the Coast\Duels of the Planeswalkers, or C:\Program Files\Steam\steamapps\common\magic 2013.

Using the Tools

The two tools you'll be using the most are Gibbed.Tools.Pack.exe and Gibbed.Tools.Unpack.exe.

Open up two windows; your tools folder in one, and your game folder in the other.

Drag-and-drop Deck_0001_ST.wad onto the Unpack tool. You should see a console window open and flash some text at you, and when its done you will have a folder named \Deck_0001_ST_Unpacked, which contains all of the content contained in that particular deck, (Ajani's deck, in this case).

Packing a folder works exactly in reverse, but we'll get to that soon.

Your First Card

Rename the \Deck_0001_ST_Unpacked folder to \MY_SUPERAWESOME_DECK, then open it up and click through past \DATA_ALL_PLATFORMS until you've found the "main" section of the folders, with \CARDS and \DECKS, etc. Open \CARDS and delete everything there. That's right, you don't need any of it right now. While you're at it, delete everything in \ART_ASSETS\ILLUSTRATIONS.

Now before we actually get started, I'd like to recommend that you download Notepad++. Its a wonderful text editor and you will have a much better time with it than if you try to write these in Window's default Notepad.

Back to the task at hand, make another folder for you to keep all of your custom cards in a centralized place. I have a \Custom Cards folder in my tools folder. This isn't necessary, but makes organization a lot simpler. This is where you will save the cards you write. Open Notepad++ or your favorite text editor and we'll get started.

A Simple Example

The following is not an existing Magic card, but it will show the basic structure of a card file with a few notes thrown in.

FLYING_BEAR_12345.xml

<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="FLYING_BEAR_12345" />
  <CARDNAME text="FLYING_BEAR" />
  <TITLE>                              
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying Bear]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="12345" />         
  <ARTID value="A12345" />              
  <ARTIST name="Joe Cool" />
  <CASTING_COST cost="{G}" />          
  <TYPE metaname="Creature" />           
  <SUB_TYPE metaname="Bear" />    
  <EXPANSION value="DPG" />             
  <RARITY metaname="M" />               
  <POWER value="1" />                    
  <TOUGHNESS value="1" />
</CARD_V2>