It is currently 19 Oct 2018, 00:55
Text Size

Card Development Questions

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Re: Card Development Questions

Postby Hanmac » 18 Aug 2016, 08:34

i did a big change with ChooseCardName
now it does use (I)CardFace objects.

that makes it possible for Alhammarret to select Split Card Names.

But please check if i broke something.
Posts: 937
Joined: 06 May 2013, 18:44
Has thanked: 228 times
Been thanked: 153 times

Re: Card Development Questions

Postby vinnie » 24 Oct 2016, 00:13

older request | Open
where I can find all the abbreviated names of the sets that put in ./pics/cards? Today I spent the whole afternoon trying without find any documentation.

I looked also in the sources that I could find in doing a grep of a knew name (grep -ir "bng" ./*), and never finding anything (I've been looking at forge-ai-1.5.56-sources.jar, forge-core-1.5.56-sources.jar, forge-gui-desktop-1.5.56-sources.jar, forge-game-1.5.56-sources.jar).

In forge-core I found the file with the following comment:
* @param code the MTG 3-letter set code
* @param code2 the 2 (usually) letter code used for image filenames/URLs distributed by the HQ pics team that
* use Magic Workstation-type edition codes. Older sets only had 2-letter codes, and some of the 3-letter
* codes they use now aren't the same as the official list of 3-letter codes. When Forge downloads set-pics,
* it uses the 3-letter codes for the folder no matter the age of the set.

* @param mciCode the code used by website.
but this does not explain the situation.

In ./res/editions/ there is a list of all editions with this codenames but here are two examples:
Code: Select all
Name=Limited Edition Beta
Booster=11 Common, 3 Uncommon, 1 Rare
Beta edition is an old set but also if should still use 3 characters code (as written in the previous comment), it uses only the "B" in Code2.
OK, then all sets using the Code2? NO! here another example:

Code: Select all
Name=Born of the Gods
Booster=10 Common, 3 Uncommon, 1 RareMythic, 1 BasicLand THS
This edition totally lacking Code2, and use the BNG as folder name.
Please where can I find a unique and updated source of abbreviations of the set?


Here is the current full list (helped by forge cards site):
Code: Select all
10E   Tenth Edition
4E    Fourth Edition
5E    Fifth Edition
6E    Classic Sixth Edition
7E    Seventh Edition
8E    Eighth Edition
9E    Ninth Edition
A     Limited Edition Alpa
AL    Alliances
ALA   Shards of Alara
AN    Arabian Nights
AP    Apocalypse
AQ    Antiquities
ARB   Alara Reborn
ARC   Archenemy
AVR   Avacyn Restored
B     Limited Edition Beta
BFZ   Battle for Zendikar
BNG   Born of the Gods
BOK   Betrayers of Kamigawa
C13   Commander 2013
C14   Commander 2014
C15   Commander 2015
C16   Commander 2016
CFX   Conflux
CH    Chronicles
CHK   Champions of Kamigawa
CM1   Commander's Arsenal
CN2   Conspiracy: Take the Crown
CNS   Conspiracy
COM   Commander
CS    Coldsnap
DD2   Duel Decks: Jave vs. Chandra
DDC   Duel Decks: Divine vs. Demonic
DDD   Duel Decks: Garruk vs. Liliana
DDE   Duel Decks: Phyrexia vs. the Coalition
DDF   Duel Decks: Elpeth vs. tezzeret
DDG   Duel Decks: Knights vs. Dragons
DDH   Duel Decks: Ajani vs. Nicol Bolas
DDI   Duel Decks: Vanser vs. Koth
DDJ   Duel Decks: Izzet vs. Golgari
DDK   Duel Decks: Sorin vs. Tibalt
DDL   Duel Decks: Heroes vs. Monsters
DDM   Duel Decks: Jave vs. Vraska
DDN   Duel Decks: Speed vs. Cunning
DDO   Duel Decks: Kiora vs. Elspeth
DDP   Duel Decks: Zendikar vs. Eldrazi
DDQ   Duel Decks: Blessed vs. Cursed
DDR   Duel Decks: Nissa vs. Ob Nixilis
DGM   Dragon's Maze
DIS   Dissension
DK    The Dark
DKA   Dark Ascension
DRB   From the Vault: Dragons
DS    Darksteel
DTK   Dragons of Tarkir
EMA   Eternal Masters
EMN   Eldritch Moon
EVE   Eventide
EVG   Duel Decks: Elves vs. Goblins
EX    Exodus
EXP   Zendikar Expeditions
FD    Fifth Dawn
FE    Fallen Empires
FRF   Fate Reforged
FUT   Future Sight
FVE   From the Vault: Exiled
FVL   From The Vault: Legends
FVR   From the Vault: Relics
GP    Guildpact
HL    Homelands
HOP   Planechase
IA    Ice Age
IN    Invasion
ISD   Innistrad
JOU   Journey into Nyx
JU    Judgment
KLD   kaladesh
KTK   Khans of Tarkir
LE    Legions
LG    Legends
LRW   Lorwyn
M10   Magic 2010
M11   Magic 2011
M12   Magic 2012
M13   Magic 2013
M14   Magic 2014
M15   Magic 2015
MBP   Promo set for Gatherer
MBS   Mirrodin Besieged
MI    Mirage
MM    Mercadian Masques
MM2   Modern Masters 2015
MMA   Modern Masters
MOR   Morningtide
MPS   kaladesh inventions
MR    Mirrodin
NE    Nemesis
NPH   New Phyrexia
OD    Odyssey
OGW   Oath of the Gatewatch
ON    Onslaught
ORI   Magic Origins
P2    Portal Second Age
P3    Portal Three Kingdoms
PC2   Planechase 2012 Edition
PD2   Premium Deck Series: Fire and Lightning
PD3   Premium Deck Series: Graveborn
PDS   Premium Deck Series: Slivers
PS    Planeshift
PLC   Planar Chaos
PT    Portal
PY    Prophecy
R     Revised Edition
RAV   Ravnica: City of Guilds
ROE   Rise of the Eldrazi
RTR   Return to Ravnica
S2K   Starter 2000
SC    Scourge
SH    Stronghold
SHM   Shadowmoor
SOI   Shadows Over Innistrad
SOK   Saviors of Kamigawa
SOM   Scars of Mirrodin
ST    Starter 1999
TE    Tempest
THS   Theros
TO    Torment
TPR   Tempest Remastered
TSB   Time Spiral "Timeshifted"
TSP   Time Spiral
U     Unlimited Edition
UD    Urza's Destiny
UGF   Ugin's Fate
UL    Urza's Legacy
US    Urza's Saga
V12   From the Vault: Realms
V13   From the Vault: Twenty
V14   From The Vault: Annihilation
V15   From the Vault: Angels
V16   From the Vault: Lore
VAN   Vanguard
VI    Visions
VMA   Vintage Masters
W16   Welcome 2016
WL    Weatherlight
WWK   Worldwake
ZEN   Zendikar
User avatar
Posts: 104
Joined: 21 Dec 2015, 14:03
Has thanked: 23 times
Been thanked: 6 times

Re: Card Development Questions

Postby ShivaFang » 19 Jun 2017, 19:45

For my own use, I tried to create Vanquisher's Banner from the Ixalan leaks. Does this look right? I used the code from Door of Destinies and Argothian Enchantress to get it to work.

Code: Select all
Name:Vanquisher's Banner
SVar:ChooseCT:DB$ ChooseType | Defined$ You | Type$ Creature | SpellDescription$ As CARDNAME enters the battlefield, choose a creature type. | AILogic$ MostProminentInComputerDeck
T:Mode$ SpellCast | ValidCard$ Card.ChosenType | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDraw | TriggerDescription$ Whenever you cast a spell of the chosen type, draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
S:Mode$ Continuous | Affected$ Creature.ChosenType+YouCtrl | AddPower$ 1 | AddToughness$ 1 | Description$ Creatures you control of the chosen type get +1/+1.
Oracle:As Vanquisher's Banner enters the battlefield, choose a creature type.\nCreatures you control of the chosen type get +1/+1.\nWhenever you cast a creature spell of the chosen type, draw a card.
Posts: 100
Joined: 25 Jun 2016, 01:15
Has thanked: 26 times
Been thanked: 3 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 5 guests

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 5 guests

Login Form