-
Notifications
You must be signed in to change notification settings - Fork 15
Token updating process flow
Remember to update the version on every change!
Version schema: "YYYYMMDD"
(Alphabetical letters can be attached in ascending order for multiple changes on the same day)
-
Find the article on http://magic.wizards.com/en/articles that displays all the new tokens in the set.
An example is: http://magic.wizards.com/en/articles/archive/feature/tokens-amonkhet-2017-04-13
For less complicated sets, the tokens might be shown in a Daily Magic Round-up article instead.Scryfall also has data on tokens: https://scryfall.com/sets/?type=token
They are even accessible via their API, e.g. https://api.scryfall.com/sets/tafr →search_uri
→data
(with name, text, color, p/t, pic url etc.) -
As required, manually create new entries in the xml file with the appropriate image URLs from the aforementioned article.
-
Overwrite your copy of tokens.xml in Cockatrice and use the Deck Editor to verify that each token's attributes match the token image.
-
Commit and push with the set name as the commit message, and mark the commit as
first pass
.
(This step is not required for sets that are entirely reprints.)
-
Run the script at https://github.com/Psithief/Cockatrice-tokens-parser
The script requires an AllCards.json from mtgjson and a tokens XML file.-
The
-j
argument will allow you to specify the path of the JSON input. It is./AllCards.json
by default. -
The
-d
argument will download a copy of AllCards.json to the current directory. Implies that-j
is not used.- The
-r
argument will change the URL queried for AllCards.json when downloading.
- The
-
The
-x
argument will allow you to change the path of the input file. It is./tokens.xml
by default. -
The
-o
argument will allow you to change the path of the output file. It is./tokensOut.xml
by default.
-
-
Compare the input file and the output file to check for errors. At a minimum, make sure each token created in the first pass has at least one
<reverse-related>
field that was added by the script. -
Commit and push with the set name as the commit message, and mark the commit as
second pass
. -
Create a release for the set.
If the parser throws errors, the input data is probably incorrect. The parser won't be able to pick up novel token creation methods from set to set.