Skip to content
Epix edited this page Jun 3, 2015 · 2 revisions

Enabling the protocol

  • options > tracker > importing > activate hdt protocol

Functions

###hdt:start

  • Will start HDT

###hdt:sync

  • Will sync HDT with HearthStats

###hdt:import=... Takes:

  • raw json object url encoded
  • url to json file: local ("C:/...") or web (starting with "http://...")
json:
autosave:bool //optional - default: 1 deck => false, >1 decks => true (can't be set false)
decks:deck[]

deck:
deck.name:string
deck.cards:card[]
deck.tags:string[] //optional
deck.url:string //optional
deck.arena:bool //optional - sets "IsArena" property of deck
deck.nonenglish:bool //optional - set true to use non-english card names in "cards"

card:
card.name:string //optional*
card.id:string //optional*
card.count:int //optional - default 1

* EITHER NAME OR ID IS REQUIRED

Example:

{
  "autosave": "false",
  "decks": [
    {
      "name": "deckname",
      "cards": [
        {
          "name": "Fireball",
          "id": "CS2_029",
          "count": 1
        }
      ],
      "tags": [
        "tempo"
      ],
      "url": "http://www.sourceurl.com",
      "arena": "false",
      "nonenglish": "false"
    }
  ]
}
Clone this wiki locally