Skip to content
brine edited this page Mar 20, 2018 · 4 revisions

Deck files (.o8d) are simple XML files used by OCTGN to store deck data. Usually, OCTGN will auto-generate these files through the Deck Editor, but they can also be created manually or generated through external sources (such as websites)

Each different card in a Deck file is given its own tag. A qty is required, and id refers to the card's GUID. A typical card in a deck file looks like:

<card qty="1" id="8ad098c1-ffbf-4d12-a141-7f3b6272c4dc">Ace of Spades</card>

You do not require the id value as long as a Card Name is specified. If id is ignored, OCTGN will query the card database for a card that matches the card's name instead. Likewise, the card name can be ignored if the id is provided. As examples:

<card qty="1" id="8ad098c1-ffbf-4d12-a141-7f3b6272c4dc"></card>

<card qty="1">Ace of Spades</card>

An example of a Deck file:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<deck game="8f437fff-fc8f-4abf-a2e6-f77ebff2ac6d">
  <section name="Main">
    <card qty="1" id="8c0320d2-7791-4a9b-bbcb-8fc50ffad8c6">Ace of Hearts</card>
    <card qty="1" id="8ad098c1-ffbf-4d12-a141-7f3b6272c4dc">Ace of Spades</card>
    <card qty="1" id="34429bfa-8e7c-4fd4-84d0-d526cef9b9c1">Ace of Diamonds</card>
    <card qty="1" id="62f610ee-9535-4b5d-9659-7789ceeaafa7">Ace of Clubs</card>
    <card qty="1" id="57f2aa50-31c8-4bf5-8d5b-4e49985e67e6">Two of Hearts</card>
    <card qty="1" id="d769f34d-4528-4695-8fe8-35923589ad1a">Two of Spades</card>
    <card qty="1" id="5db143b9-3111-4b44-b1f9-95ab99609222">Two of Diamonds</card>
    <card qty="1" id="8a2d39c8-b45a-4b61-8ff2-38eca10b712c">Two of Clubs</card>
    <card qty="1" id="656fdd87-fdbf-483f-a42b-f5f293bac775">Three of Hearts</card>
    <card qty="1" id="aa31c0d5-c521-4c5f-bf42-ba53624bec27">Three of Spades</card>
    <card qty="1" id="1d81446d-8654-4643-b356-8247533fd848">Three of Diamonds</card>
    <card qty="1" id="5f428d25-fab0-4526-aa65-ecbf1c900413">Three of Clubs</card>
    <card qty="1" id="52c2de6e-d3f7-4c0c-88d4-10ddf54e2990">Four of Hearts</card>
    <card qty="1" id="e0c7ea89-b0e6-4364-8b50-a12ce09c2b29">Four of Spades</card>
    <card qty="1" id="9f8e32b0-72b3-4eac-9ce3-be3eeee4d45a">Four of Diamonds</card>
    <card qty="1" id="cdd22c47-6b4c-4218-8b1f-c929c96841ef">Four of Clubs</card>
    <card qty="1" id="c253af0a-5069-44ae-8418-67ca8f5c480d">Five of Hearts</card>
    <card qty="1" id="70a7ae36-6642-472e-8c57-3387eb05e364">Five of Spades</card>
    <card qty="1" id="e25680bd-58cc-4e44-aa47-c4471cee6881">Five of Diamonds</card>
    <card qty="1" id="ddda24cd-2854-4e3c-9a6b-f0e70cd39a8a">Five of Clubs</card>
    <card qty="1" id="0ed89112-d3a9-49b1-8d94-5263497a8be0">Six of Hearts</card>
    <card qty="1" id="fc375cee-2d02-4887-8e61-8d573fcb0426">Six of Spades</card>
    <card qty="1" id="c4e7cb23-1553-465c-9246-a856788223ad">Six of Diamonds</card>
    <card qty="1" id="ee604810-b6e8-45dc-919e-757a8cd67b16">Six of Clubs</card>
    <card qty="1" id="e34495a1-da0f-406a-affb-dcc0f4d68083">Seven of Hearts</card>
    <card qty="1" id="b113943a-4e59-4606-b9df-45d77dfdbf83">Seven of Spades</card>
    <card qty="1" id="21bb24fe-7b02-4b4b-b6a9-10368f55517c">Seven of Diamonds</card>
    <card qty="1" id="d240101a-88f7-428e-a5d8-89fd802b84cc">Seven of Clubs</card>
    <card qty="1" id="46db2892-af8a-45d1-b710-d8f063eed105">Eight of Hearts</card>
    <card qty="1" id="54db979d-bed4-4e13-83be-afe9db218c44">Eight of Spades</card>
    <card qty="1" id="bc566269-3408-45df-8e28-9494f03194ab">Eight of Diamonds</card>
    <card qty="1" id="79155ceb-0625-42fc-947c-a411b7f9585f">Eight of Clubs</card>
    <card qty="1" id="0865f779-179f-4821-ae29-0a1fc674aa01">Nine of Hearts</card>
    <card qty="1" id="0763abdb-fb48-47a5-8380-7726b7bb0658">Nine of Spades</card>
    <card qty="1" id="6ae6e65c-9a82-4d1e-8288-326eb2829a72">Nine of Diamonds</card>
    <card qty="1" id="034bedbd-8706-4218-9ee7-ae5787e5b861">Nine of Clubs</card>
    <card qty="1" id="ef49e12f-73fb-477a-9210-e9ab0469e6a8">Ten of Hearts</card>
    <card qty="1" id="53875a93-95a0-44e0-bd20-311ea00709b4">Ten of Spades</card>
    <card qty="1" id="cc813430-ad87-430c-81a0-0d606cce918f">Ten of Diamonds</card>
    <card qty="1" id="f84eb6e6-dd9b-423a-8fb6-6e7cff2a7d76">Ten of Clubs</card>
    <card qty="1" id="23d73ac9-00e4-4c74-b759-ff55475987c7">Jack of Hearts</card>
    <card qty="1" id="0a1f8d6c-00a7-452f-8ef8-0459e8c4d6ed">Jack of Spades</card>
    <card qty="1" id="39df7349-e420-4c9f-a9fc-aa5e52e8419c">Jack of Diamonds</card>
    <card qty="1" id="30a392dc-8810-4577-97b3-82db4d09ac49">Jack of Clubs</card>
    <card qty="1" id="0f6caf74-4bba-4d54-9361-bb807baaac53">Queen of Hearts</card>
    <card qty="1" id="ec1ba723-fb84-4a8b-b0b5-7de09619173d">Queen of Spades</card>
    <card qty="1" id="634e5c26-eec5-4b63-be94-16f6cae62cac">Queen of Diamonds</card>
    <card qty="1" id="12903676-cdd5-47d0-af4e-410cd734edd9">Queen of Clubs</card>
    <card qty="1" id="0d81dd02-06ae-4c8c-ac8d-6256e88a8156">King of Hearts</card>
    <card qty="1" id="21c01754-5884-46b9-a72d-2c544cc99cda">King of Spades</card>
    <card qty="1" id="b86fd37d-b11f-4512-b731-25148d320c6d">King of Diamonds</card>
    <card qty="1" id="82b2cf72-ea9e-4cca-a90e-50f8ce98cbe6">King of Clubs</card>
    <card qty="1" id="a3b553f9-3454-4f4b-9469-5f1b456dda76">Red Joker</card>
    <card qty="1" id="e9d7579b-0c04-46db-96da-588c62cb4c37">Black Joker</card>
  </section>
</deck>