NewSetProcess
The following details the steps taken to add the Fate Reforged (FRF) set to Magarena. It should be applicable to future set releases.
-
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 processorjq
) -cat FRF.json | jq .cards | grep '"name"' | sed 's/.*: "//;s/".$//' | sort | uniq > FRF.txt
- Merge any new card names in
FRF.txt
intoresources\magic\data\AllCardNames.txt
.
- Open
FRF.txt
in Notepad++ - Open
AllCardNames.txt
in new tab in Notepad++ - Copy all card names in
FRF.txt
to start/end ofAllCardNames.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
.
Add the FRF set to magic.data.MagicSets
. You can now filter the results in Card Explorer via the Set filter.
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.
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.
- Download
AllSets.json
from http://mtgjson.com/ to root folder of ScriptsBuilder (ie. same location asCardsMissingInMagarena.txt
).
Home
Getting Started
Upgrading
Command-line arguments
Feedback / Bug Reporting
Contributing
Keyboard shortcuts
Supported deck formats
Themes
Customizing Magarena
Translating Magarena
User Interface
Main Menu Screen
New duel
Deck view
Deck Editor
Mulligan screen
Game screen
Card Explorer
Card Script Viewer
Download images
Preferences
- Basic Structure
- Mana Property
- List of Costs
- List of Abilities
- List of Effects
- List of Conditions
- Table of Timings
- Groovy File Setup
- Groovy Basics
- Groovy Triggers
- Groovy Activations
- Groovy Events and Actions
- Groovy Statics