Moving away from cards.txt
Well, it's been a long time coming. Part of mtgrares' vision towards v2 was individual files. A realization that as we move to supporting more cards and features like sets, one text file can't contain all the information we want.
A relatively simple change has converted 4100 blocks of text in one file into 4100 files, one for each card.
The format has changed a bit, which will allow for further enhancements in the future. Without much effort, additional card properties can be supported, like multiple rarities for cards printed across sets or SVars won't have to be handled as keywords.
/res/cardsfolder/ shall now contain files of any name, however keeping with the convention used for the card images would be ideal.
Each file will look like this:
Example - abandoned_outpost.txt:
The upside though is that changes and additional cards won't cause conflicts as often, and individual changes will be more visible in the SVN revision history.
Be prepared, this is at least a 2 MB update.
A relatively simple change has converted 4100 blocks of text in one file into 4100 files, one for each card.
The format has changed a bit, which will allow for further enhancements in the future. Without much effort, additional card properties can be supported, like multiple rarities for cards printed across sets or SVars won't have to be handled as keywords.
/res/cardsfolder/ shall now contain files of any name, however keeping with the convention used for the card images would be ideal.
Each file will look like this:
- Code: Select all
Name:{Card Name}
ManaCost:{Mana Cost}
Types:{Card Types}
Text:{Card Text}
PT:{Power/Toughness}
K:{Keyword}
K:{More Keywords}
End
Example - abandoned_outpost.txt:
- Code: Select all
Name:Abandoned Outpost
ManaCost:no cost
Types:Land
Text:no text
K:tap: add W
K:tap, Sacrifice CARDNAME: Add W to your mana pool.
K:tap, Sacrifice CARDNAME: Add U to your mana pool.
K:tap, Sacrifice CARDNAME: Add B to your mana pool.
K:tap, Sacrifice CARDNAME: Add R to your mana pool.
K:tap, Sacrifice CARDNAME: Add G to your mana pool.
K:Comes into play tapped.
K:SVar:Rarity:Common
K:SVar:Picture:http://www.wizards.com/global/images/magic/general/abandoned_outpost.jpg
End
The upside though is that changes and additional cards won't cause conflicts as often, and individual changes will be more visible in the SVN revision history.
Be prepared, this is at least a 2 MB update.