Editing DEK 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:
=DEK File Format=
=====DEK File Format=====
The *.dek file format is used by the LackeyCCG program.  Lackey is not a LotR-TCG-specific program, but rather a general program geared towards TCG/CCG games in general, and just so happens to have a LotR-TCG plugin.  Like the SdA *.dck format, *.dek is XML.  Unlike SdA's attempt, however, Lackey is organized very well with support for differentiating cards of the same title between different sets, as well as various meta information.   
The *.dek file format is used by the LackeyCCG program.  Lackey is not a LotR-TCG-specific program, but rather a general program geared towards TCG/CCG games in general, and just so happens to have a LotR-TCG plugin.  Like the SdA *.dck format, *.dek is XML.  Unlike SdA's attempt, however, Lackey is organized very well with support for differentiating cards of the same title between different sets, as well as various meta information.   


This comes at a cost, however, as Lackey has a complete reliance on card names; there is no support for any ID lookup. There is also no validation whatsoever on card quantities, etc due to its nature of generic CCG emulator.
This comes at a !cost, however, as Lackey has a complete reliance on card names; there is no support for any ID lookup. There is also no validation whatsoever on card quantities, etc due to its nature of generic CCG emulator.


A sample deck is given below:
A sample deck is given below:


<code xml>
<code xml>
<?xml version====="1.0" encoding====="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE deck SYSTEM "http://www.lackeyccg.com/deck.!dtd">
<!DOCTYPE deck SYSTEM "http://www.lackeyccg.com/deck.!dtd">
<deck version====="0.8">
<deck version="0.8">
   <meta>
   <meta>
     <title></title>
     <title></title>
Line 19: Line 19:
     <note></note>
     <note></note>
   </meta>
   </meta>
   <superzone name====="Deck">
   <superzone name="Deck">
     <card>
     <card>
       <name id====="LOTR01311">Sam, Son of Hamfast</name>
       <name id="LOTR01311">Sam, Son of Hamfast</name>
       <set>Fellowship</set>
       <set>Fellowship</set>
     </card>
     </card>
     <card>
     <card>
       <name id====="LOTR00013">Legolas, Greenleaf (P)</name>
       <name id="LOTR00013">Legolas, Greenleaf (P)</name>
       <set>Promotional</set>
       <set>Promotional</set>
     </card>
     </card>
     <card>
     <card>
       <name id====="LOTR06040">Gollum, Old Villain</name>
       <name id="LOTR06040">Gollum, Old Villain</name>
       <set>EntsOfFangorn</set>
       <set>EntsOfFangorn</set>
     </card>
     </card>
     <card>
     <card>
       <name id====="LOTR06040">Gollum, Old Villain</name>
       <name id="LOTR06040">Gollum, Old Villain</name>
       <set>EntsOfFangorn</set>
       <set>EntsOfFangorn</set>
     </card>
     </card>
   </superzone>
   </superzone>
   <superzone name====="Sites">
   <superzone name="Sites">
     <card>
     <card>
       <name id====="LOTR07329">Dunharrow Plateau</name>
       <name id="LOTR07329">Dunharrow Plateau</name>
       <set>ReturnOfTheKing</set>
       <set>ReturnOfTheKing</set>
     </card>
     </card>
   </superzone>
   </superzone>
   <superzone name====="Starting">
   <superzone name="Starting">
     <card>
     <card>
       <name id====="LOTR05111">Frodo, Master of the Precious</name>
       <name id="LOTR05111">Frodo, Master of the Precious</name>
       <set>BattleOfHelmsDeep</set>
       <set>BattleOfHelmsDeep</set>
     </card>
     </card>
     <card>
     <card>
       <name id====="LOTR07002">The One Ring, Such a Weight to Carry</name>
       <name id="LOTR07002">The One Ring, Such a Weight to Carry</name>
       <set>ReturnOfTheKing</set>
       <set>ReturnOfTheKing</set>
     </card>
     </card>
Line 55: Line 55:
</deck>
</deck>
</code>
</code>


As a quick reference, here is a walkthrough of the tags used:
As a quick reference, here is a walkthrough of the tags used:
Line 64: Line 65:
Information about the deck's creation.  Older files include all of the entries with empty text, newer files only contain entries that have been defined.   
Information about the deck's creation.  Older files include all of the entries with empty text, newer files only contain entries that have been defined.   


====title====
==title==
Name of the deck.
Name of the deck.


====author====
==author==
Original author of the deck.
Original author of the deck.


====email====
==email==
Contact info for the author.
Contact info for the author.


====date====
==date==
Date originally created.
Date originally created.


====game====
==game==
Always "lotr" when defined.
Always "lotr" when defined.


====format====
==format==
Describes the tournament format this deck follows.
Describes the tournament format this deck follows.


====note====
==note==
Any miscellaneous information.
Any miscellaneous information.


===superzone===
===superzone===
Superzones are major sections of a deck; in the case of the LotR-TCG, the "name" attribute of the superzones can be one of: '''Deck, Sites,''' or '''Starting'''.  Deck contains both Free Peoples and Shadow cards, Sites contains the adventure deck, and Starting contains the ring-bearer and the one ring.
Superzones are major sections of a deck; in the case of the LotR-TCG, the "name" attribute of the superzones can be one of: **Deck, Sites,** or **Starting**.  Deck contains both Free Peoples and Shadow cards, Sites contains the adventure deck, and Starting contains the ring-bearer and the one ring.


===card===
===card===
Contained within superzones, each card is listed individually.  The sub-tags are below:
Contained within superzones, each card is listed individually.  The sub-tags are below:


====name====
==name==
Unlike the SdA *.dck format, the name is entirely how the card is identified, including the suffix (such as "(P)") if it has one.  Names also do not have any accent marks.  In fact, all the names are taken from [[http://lotrtcgwiki.com/files/CardData.xls|this spreadsheet here]], so reference that when in doubt.   
Unlike the SdA *.dck format, the name is entirely how the card is identified, including the suffix (such as "(P)") if it has one.  Names also do not have any accent marks.  In fact, all the names are taken from [[http://lotrtcgwiki.com/files/CardData.xls|this spreadsheet here]], so reference that when in doubt.   


An optional attribute of "id" can be included.  This ID is not the collector's info, but the name of the card's image used by Lackey.  It is in the format of "LOTRSSNNN", where SS is the zero-filled set number, and NNN is the zero-filled card number.  For instance, The One Ring, Isildur's Bane has an ID of "LOTR01001".  Tengwar cards have a T on the end as well.
An optional attribute of "id" can be included.  This ID is not the collector's info, but the name of the card's image used by Lackey.  It is in the format of "LOTRSSNNN", where SS is the zero-filled set number, and NNN is the zero-filled card number.  For instance, The One Ring, Isildur's Bane has an ID of "LOTR01001".  Tengwar cards have a T on the end as well.


====set====
==set==
The set is the name of the set the card comes from, and is used to disambiguate cards with the same title/subtitle.  The format is CamelCaseSetNameWithNoSpacesOrPunctuation, for instance, ReturnOfTheKing or AgesEnd or TreacheryAndDeceit.  
The set is the name of the set the card comes from, and is used to disambiguate cards with the same title/subtitle.  The format is CamelCaseSetNameWithNoSpacesOrPunctuation, for instance, ReturnOfTheKing or AgesEnd or TreacheryAndDeceit.  


{{:Electronic_Platform_Table}}
 
&nbsp;
 
{{page>:electronic_platform_table}}
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)