Editing DCK file format

From LOTR-TCG Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
=DCK File Format=
=====DCK File Format=====
The *.dck file format was first devised for use with [[SdA]], the earliest fan-made electronic game client.  Unlike most later formats, it uses XML for storing data, which has the advantage of being parsed easier with other programs, but is as a result less readable to human eyes, with a very large (relative) file size to boot.
The *.dck file format was first devised for use with [[SdA]], the earliest fan-made electronic game client.  Unlike most later formats, it uses XML for storing data, which has the advantage of being parsed easier with other programs, but is as a result less readable to human eyes, with a very large (relative) file size to boot.


A sample DCK deck is below:
A sample DCK deck is below:


<code xml>
<code xml>
<?xml version====="1.0"?>
<?xml version="1.0"?>
<Deck>
<Deck>
   <DeckNotes />
   <DeckNotes />
Line 88: Line 92:
Each card within the deck is kept within its own DeckCard tag, with the exception of cards that have multiple copies (as there is a quantity tag).  Each of the sub-tags are below:
Each card within the deck is kept within its own DeckCard tag, with the exception of cards that have multiple copies (as there is a quantity tag).  Each of the sub-tags are below:


====ID====
==ID==
The Collector's Info of the card.  This includes the rarity and has no spaces, so 1R1 for The One Ring, Isildur's Bane.  If an unexpected ID is given (such as a site for the ring-bearer or vice-versa), SdA handles it differently depending on what card received unexpected data.  The ring-bearer and one ring are both drop-down boxes, so they will show blank info if the value is unexpected.  Free Peoples and Shadow will both remove the offending entry if it not a card that fits within that classification.  Site cards however are not checked, and so any card can be erroneously placed as a site.
The Collector's Info of the card.  This includes the rarity and has no spaces, so 1R1 for The One Ring, Isildur's Bane.  If an unexpected ID is given (such as a site for the ring-bearer or vice-versa), SdA handles it differently depending on what card received unexpected data.  The ring-bearer and one !ring are both drop-down boxes, so they will show blank info if the value is unexpected.  Free Peoples and Shadow will both remove the offending entry if it not a card that fits within that classification.  Site cards however are not checked, and so any card can be erroneously placed as a site.


====Quantity====
==Quantity==
How many of this card are in the deck.  Has no effect on the Ring-bearer, One Ring, or Sites.  No validation is performed, so any int value is valid.
How many of this card are in the deck.  Has no effect on the Ring-bearer, One !Ring, or Sites.  No validation is performed, so any int value is valid.


However, if there are multiple DeckCard entries with the same card info, the values will in fact be validated when combined.  The first entry's quantity is used, and each subsequent entry adds 1 to the quantity, regardless of how many are listed in the successive entries.  The total quantity will also be reduced to 4 if it is greater.  
However, if there are multiple DeckCard entries with the same card info, the values will in fact be validated when combined.  The first entry's quantity is used, and each subsequent entry adds 1 to the quantity, regardless of how many are listed in the successive entries.  The total quantity will also be reduced to 4 if it is greater.  


====Side====
==Side==
One of: '''Frodo, Ring, Site, FellowShip, Shadow'''.  "Frodo" means Ring-bearer, and "!FellowShip" means Free Peoples.  Note the weird capitalization of "!FellowShip"; if the S is not capitalized it will not read into SdA, so it's just something one has to put up with.
One of: **Frodo, !Ring, !Site, !FellowShip, !Shadow**.  "Frodo" means Ring-bearer, and "!FellowShip" means Free Peoples.  Note the weird capitalization of "!FellowShip"; if the S is not capitalized it will not read into SdA, so it's just something one has to put up with.


====Name====
==Name==
The Name entry seems a bit redundant seeing as the ID actually saves the card identity.  The Name can be anything or even blank and the card will still be looked up by its ID.  This may have been an effort to allow translated card names, showing the given name instead of the English one within the database.
The Name entry seems a bit redundant seeing as the ID actually saves the card identity.  The Name can be anything or even blank and the card will still be looked up by its ID.  This may have been an effort to allow translated card names, showing the given name instead of the English one within the database.


There are some odd conventions with a few types of cards.  None of them are critical, and appear to be attempts to make cards more easily scanned by human eyes.  These include:
There are some odd conventions with a few types of cards.  None of them are critical, and appear to be attempts to make cards more easily scanned by human eyes.  These include:


* Ring-bearers usually (but not always) have their title/subtitle followed by "(RB)"   
  * !Ring-bearers usually (but not always) have their title/subtitle followed by "(RB)"   


* Sites are all prefixed with their Shadow Number, ''not'' their site number, leading to confusion if you have two sites with a shadow number of (6) or something.   
  * Sites are all prefixed with their Shadow Number, //not// their site number, leading to confusion if you have two sites with a shadow number of (6) or something.   


* Unique cards are all prefixed with an asterisk ("*") as a replacement for the actual dot used.   
  * Unique cards are all prefixed with an asterisk ("*") as a replacement for the actual dot used.   


{{:Electronic_Platform_Table}}
{{page>:electronic_platform_table}}
&nbsp;
Please note that all contributions to the LOTR-TCG Wiki may be edited, altered, or removed by other contributors. Your writing is liable to be edited mercilessly, so be sure to back up any major claims with links if possible.

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)