Skip to content
lodici edited this page Jan 19, 2015 · 1 revision

The following details the steps taken to add the Fate Reforged (FRF) set to Magarena. It should be applicable to future set releases.

Create set file

  • Add complete list of card names to resources\magic\data\sets\FRF.txt.

  • (@melvin) generated this file from FRF.json (dowloaded from mtgjson) with the following shell pipeline (using the json processor jq) -

      cat FRF.json | jq .cards | grep '"name"' | sed 's/.*: "//;s/".$//' | sort | uniq > FRF.txt
    

Update complete list of cards

  • Merge any new card names in FRF.txt into resources\magic\data\AllCardNames.txt.

Merge using NotePad++

  • Open FRF.txt in Notepad++
  • Open AllCardNames.txt in new tab in Notepad++
  • Copy all card names in FRF.txt to start/end of AllCardNames.txt.
  • In Notepad++, open TextFX -> TextFX Tools menu.
  • Ensure +Sort ascending and +Sort outputs only UNIQUE (at colum) lines are both enabled.
  • Highlight all cards in AllCardNames.txt and click TextFX -> TextFX Tools -> Sort lines case sensitive (at column)
  • Save AllCardNames.txt.

Update magic.data.MagicSets

Add the FRF set to magic.data.MagicSets. You can now filter the results in Card Explorer via the Set filter.

Add set to block

FRF was added to resources/magic/data/formats/khans_of_tarkir_block.fmt. Selecting this block via the Format filter in Card Explorer will now include all cards defined in FRF as well as KTK.

Create CardsMissingInMagarena.txt

Generate a file containing an ordered list of cards that are defined in AllCardNames.txt but which have not been implemented yet. This file is required by ScriptBuilder.

  • Run Magarena using -DdevMode=true.
  • Open Card Explorer and click on the Save Missing Cards icon.
  • This creates a file, <install>/Magarena/logs/CardsMissingInMagarena.txt.
  • Copy/move CardsMissingInMagarena.txt to root folder of ScriptsBuilder.

Get latest json feed from mtgjson

  • Download AllSets.json from http://mtgjson.com/ to root folder of ScriptsBuilder (ie. same location as CardsMissingInMagarena.txt).
Clone this wiki locally