Actually, looking at the data, I think there may be something we can use already there:
If you look at the entry for Daybreak Ranger, you can see that it has a "layout" of "double-faced", and an additional entry in the "names" array naming the other face. When parsing the data, we can link the two cards together by cross checking the names array
This is what I would use to link them together. You are exactly right that the layout will be 'double-faced' and there will be two entries in the 'names' array. One of those entries will be the name for this side of the card, the other entry will be the name for the other side. The 'light' side always appears first in the array 'names' array.
Any other problems I can think of are fringe cases, basically - if Wizards decided to create an alt-art version of a card in the same set, for example, then you could conceivably end up with a scenario in which you could have the front of one version of the card associated with the back of another. Unlikely, though, unless they decide to include Planeswalkers in the intro packs
Private Mod Note
():
Rollback Post to RevisionRollBack
Minouris's Library - Collection manager and deck builder. It's nifty - Check it out!
Is it normal that cards miss the "Salvat-Hachette 2011" and "Salvat-Hachette" edition on their printings list ?
I don't usually have sets on the site that were not printed in English (aside from some basic land promo sets). Only sets that I have on the site will show up in the 'printings' list. Full foreign language support is something that I've been meaning to add some day, but it's not a very high priority as it's a bunch of work.
Is it also normal that, eg. "Tasigur, the Golden Fang" just has printings "Fate Reforged" while he was also printed in "Media Inserts" aka "Fate Reforged: Promos" ?
I get most sets from Gatherer and promo sets from magiccards.info. Magiccards.info doesn't have that card yet in the 'Media Inserts' set. I don't manually keep track of promos, that's way too much work for me so I rely on magiccards.info which doesn't always have the most timely updates, but I suppose it's better than nothing.
Sembiance, first let me say thank you so much for building an excellent resource. i used to rely on the text file from yawgatog.com, but mtgjson.com is so much easier to work with. it is a boon to programmers/mtg enthusiasts everywhere. in my hope to contribute to the project in some small way, i compiled a list of issues i found with the current data (AllSets-x.json, ver. 2.20.4).
1. in set pPRE, "Sultai Ascendancy" is misspelled "Sultai Ascendacy".
2. it does seem yawgatog has a few planes/schemes/vanguards that are not present in your list. here they are:
planes -- Celestine Reef, Horizon Boughts, Mirrored Depths, Tember City
schemes -- Drench the Soil in Their Blood, Imprison This Insolent Wretch, Perhaps You've Met My Cohort, Plots That Span Centuries, Your Inescapable Doom
vanguards -- Jace Beleren Avatar, The Avenger Avatar, The Harvester Avatar, The Hunter Avatar, The Philosopher Avatar, The Protector Avatar, The Warrior Avatar
3. in the "printings" field under cards, the sets appear to be ordered by the "dateReleased" field for the corresponding set. however, the ordering is inconsistent in case of ties. "Portal Second Age" is listed before "Judge Gift Program" for "Armageddon", but it is the other way around for basic lands. additionally, "Arabian Nights" is listed before "Unlimited Edition" for some "Mountain"'s, but reversed for others.
4. the same error occurs on gatherer, but Planes (e.g. "Academy at Tolaria West") and Phenomenons (e.g. "Interplanar Tunnel") are listed as commander/legacy/vintage legal. i believe they should not be.
5. "Regrowth" is no longer restricted in vintage, another error presumably caused by gatherer
6. this is subjective, but my opinion is that being on the reserved list is a property of the card, not a specific printing, so all instances of a card under different sets should have the value. e.g. the alpha, beta, and unlimited printings of "Contract from Below" are marked as reserved, but the revised edition is not.
Sembiance, first let me say thank you so much for building an excellent resource. i used to rely on the text file from yawgatog.com, but mtgjson.com is so much easier to work with. it is a boon to programmers/mtg enthusiasts everywhere.
You are welcome!
I have just updated the site with several changes/fixes, see below:
2. it does seem yawgatog has a few planes/schemes/vanguards that are not present in your list. here they are:
planes -- Celestine Reef, Horizon Boughts, Mirrored Depths, Tember City
schemes -- Drench the Soil in Their Blood, Imprison This Insolent Wretch, Perhaps You've Met My Cohort, Plots That Span Centuries, Your Inescapable Doom
vanguards -- Jace Beleren Avatar, The Avenger Avatar, The Harvester Avatar, The Hunter Avatar, The Philosopher Avatar, The Protector Avatar, The Warrior Avatar
I'll look into correcting this once I have some more time available.
3. in the "printings" field under cards, the sets appear to be ordered by the "dateReleased" field for the corresponding set. however, the ordering is inconsistent in case of ties. "Portal Second Age" is listed before "Judge Gift Program" for "Armageddon", but it is the other way around for basic lands. additionally, "Arabian Nights" is listed before "Unlimited Edition" for some "Mountain"'s, but reversed for others.
4. the same error occurs on gatherer, but Planes (e.g. "Academy at Tolaria West") and Phenomenons (e.g. "Interplanar Tunnel") are listed as commander/legacy/vintage legal. i believe they should not be.
6. this is subjective, but my opinion is that being on the reserved list is a property of the card, not a specific printing, so all instances of a card under different sets should have the value. e.g. the alpha, beta, and unlimited printings of "Contract from Below" are marked as reserved, but the revised edition is not.
hey Sembiance, i am impressed at how quickly you responded and updated the file; thank you as always for your dedication to this valuable project. i looked at the new release and found some additional issues (AllSets-x.json, ver. 2.20.5):
1. regarding the printings fields, it oddly appears that the duel decks anthology sets (DD3_DVD,DD3_EVG,DD3_GVL,DD3_JVC) are now listed in reverse alphabetical order. all other date-ties though are in normal alphabetical order.
2. pPRE needs to be added to the printings/printingsCodes for Sultai Ascendancy.
4. regarding the planes and phenomenons (both oversized cards) i mentioned before, they are currently set as "Banned" in legacy/vintage/commander. again this is subjective, but i think the more uniform approach is to simply exclude those formats from the 'legalities' dict. this is how schemes, vanguards, and unset cards are handled. one nice consequence of this change would be that, if you look for all Banned cards in the .json, it would then exactly match the ban list from wizard's official page
I didn't notice them, or maybe they are just a subset of something else...Vanguard cards and Planeshift Planes. Are they in there? Or are they not cards?
Private Mod Note
():
Rollback Post to RevisionRollBack
I am looking for Date Stamped promos from Khans of Tarkir block so I can finish my set. Check my wants if you have any.
Currently offering 2 non-foil Kolighan's Command for a Date Stamped foil!
1. regarding the printings fields, it oddly appears that the duel decks anthology sets (DD3_DVD,DD3_EVG,DD3_GVL,DD3_JVC) are now listed in reverse alphabetical order. all other date-ties though are in normal alphabetical order.
3. i looked further into the missing oversize cards. the planes and schemes are all promos. the planes are listed as the bottom 4 cards on -- http://magiccards.info/query?q=celestine reef&v=card&s=cname -- and the schemes are listed as the bottom 5 cards on -- http://magiccards.info/query?q=plots that span centuries&v=card&s=cname -- the missing vanguards however i could not find anywhere on gatherer or magiccards.info. they appear to also be promos, but only available online.
Thanks for the addiitonal info, I've added the new info to my to-do list item.
4. regarding the planes and phenomenons (both oversized cards) i mentioned before, they are currently set as "Banned" in legacy/vintage/commander. again this is subjective, but i think the more uniform approach is to simply exclude those formats from the 'legalities' dict. this is how schemes, vanguards, and unset cards are handled. one nice consequence of this change would be that, if you look for all Banned cards in the .json, it would then exactly match the ban list from wizard's official page
Seems like these cards should indeed be marked as banned in Commander. Gathere appears to just be out of date again. I'll work on getting this fixed soon.
7. as printed, the flip of "Erayo, Sortami Ascendant" is called "Erayo Essence", not "Erayo's Essence" as indicated on gatherer
That's interesting, all physical scans of this card that I can find show it correctly as "Erayo's Essence", printed right there on the card.
In fact, the only 'image' of the card that has the non-plural version is the one on gatherer and places that copied the gatherer image.
According to this thread it may be either due to the card being fixed before being printed, or intentional on Wizard's part to catch people who copy their images.
I have updated mtgjson with this Commander banning information. I have a script that automatically watches this page and notifies me if any cards are added or removed from this list, so I'll keep MTGJSON updated in the future.
Firstly thanks very much for this, it really helped me with building a DB of all the cards for my online singles store!
Just a quick question though, MtG Origins is the first new release that I've been operating for now and I'd like to use the importer I've built for AllSetsArray.json but it isn't yet included, just want to know generally how long after a new set is fully spoiled is there an update to the json please?
Firstly thanks very much for this, it really helped me with building a DB of all the cards for my online singles store!
Just a quick question though, MtG Origins is the first new release that I've been operating for now and I'd like to use the importer I've built for AllSetsArray.json but it isn't yet included, just want to know generally how long after a new set is fully spoiled is there an update to the json please?
I have new sets added to MTGJSON within 24 hours of the set being added to Gatherer. Usually I have it added in even less time than that.
Gatherer usually adds new sets anywhere from a few days to a week or more before the official set release date.
However, those appear to be generated from MTG Salvation, as in someone there may have just guessed at artist/card number. Before publishing this data to MTGJSON, I'm going to wait for a second source of info confirming the correct number and artists. Ideally I'd love to see physical images of the cards, however as these are sample decks sent to dealers and not available for sale directly, finding them has proven to be quite difficult
However, those appear to be generated from MTG Salvation, as in someone there may have just guessed at artist/card number. Before publishing this data to MTGJSON, I'm going to wait for a second source of info confirming the correct number and artists. Ideally I'd love to see physical images of the cards, however as these are sample decks sent to dealers and not available for sale directly, finding them has proven to be quite difficult
The images in those links look like hi-rez card scans, and each includes the number and artist at the bottom.
I just want to give a big thank you for all the work you do to maintain this. I'm sure you've saved a lot of people a lot of time and effort.
I'm starting a college course in Javascript in a few weeks, so I hope to start using your Json files soon. I've got some great ideas for a new MTG web site. What base knowledge would you say is needed to be able to take advantage of your files? I've been reading up on Jquery and Ajax as well, although it's kind of difficult to take in without formal training.
Private Mod Note
():
Rollback Post to RevisionRollBack
Play history: Revised through Mirage, then M14 to present.
However, those appear to be generated from MTG Salvation, as in someone there may have just guessed at artist/card number. Before publishing this data to MTGJSON, I'm going to wait for a second source of info confirming the correct number and artists. Ideally I'd love to see physical images of the cards, however as these are sample decks sent to dealers and not available for sale directly, finding them has proven to be quite difficult
The images in those links look like hi-rez card scans, and each includes the number and artist at the bottom.
At the bottom of those images it says 'MTGS Mockup'
However, those appear to be generated from MTG Salvation, as in someone there may have just guessed at artist/card number. Before publishing this data to MTGJSON, I'm going to wait for a second source of info confirming the correct number and artists. Ideally I'd love to see physical images of the cards, however as these are sample decks sent to dealers and not available for sale directly, finding them has proven to be quite difficult
The images in those links look like hi-rez card scans, and each includes the number and artist at the bottom.
At the bottom of those images it says 'MTGS Mockup'
Heh, whoops.
Private Mod Note
():
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
This is what I would use to link them together. You are exactly right that the layout will be 'double-faced' and there will be two entries in the 'names' array. One of those entries will be the name for this side of the card, the other entry will be the name for the other side. The 'light' side always appears first in the array 'names' array.
Any other problems I can think of are fringe cases, basically - if Wizards decided to create an alt-art version of a card in the same set, for example, then you could conceivably end up with a scenario in which you could have the front of one version of the card associated with the back of another. Unlikely, though, unless they decide to include Planeswalkers in the intro packs
Minouris's Library - Collection manager and deck builder. It's nifty - Check it out!
Fixed! Site has been updated.
I don't usually have sets on the site that were not printed in English (aside from some basic land promo sets). Only sets that I have on the site will show up in the 'printings' list. Full foreign language support is something that I've been meaning to add some day, but it's not a very high priority as it's a bunch of work.
I get most sets from Gatherer and promo sets from magiccards.info. Magiccards.info doesn't have that card yet in the 'Media Inserts' set. I don't manually keep track of promos, that's way too much work for me so I rely on magiccards.info which doesn't always have the most timely updates, but I suppose it's better than nothing.
1. in set pPRE, "Sultai Ascendancy" is misspelled "Sultai Ascendacy".
2. it does seem yawgatog has a few planes/schemes/vanguards that are not present in your list. here they are:
planes -- Celestine Reef, Horizon Boughts, Mirrored Depths, Tember City
schemes -- Drench the Soil in Their Blood, Imprison This Insolent Wretch, Perhaps You've Met My Cohort, Plots That Span Centuries, Your Inescapable Doom
vanguards -- Jace Beleren Avatar, The Avenger Avatar, The Harvester Avatar, The Hunter Avatar, The Philosopher Avatar, The Protector Avatar, The Warrior Avatar
3. in the "printings" field under cards, the sets appear to be ordered by the "dateReleased" field for the corresponding set. however, the ordering is inconsistent in case of ties. "Portal Second Age" is listed before "Judge Gift Program" for "Armageddon", but it is the other way around for basic lands. additionally, "Arabian Nights" is listed before "Unlimited Edition" for some "Mountain"'s, but reversed for others.
4. the same error occurs on gatherer, but Planes (e.g. "Academy at Tolaria West") and Phenomenons (e.g. "Interplanar Tunnel") are listed as commander/legacy/vintage legal. i believe they should not be.
5. "Regrowth" is no longer restricted in vintage, another error presumably caused by gatherer
6. this is subjective, but my opinion is that being on the reserved list is a property of the card, not a specific printing, so all instances of a card under different sets should have the value. e.g. the alpha, beta, and unlimited printings of "Contract from Below" are marked as reserved, but the revised edition is not.
again, thanks for all your hard work.
Correct, there are no images.
I used to run mtgimage.com which had all the images, but Wizards demanded I shut it down.
You are welcome!
I have just updated the site with several changes/fixes, see below:
Fixed!
I'll look into correcting this once I have some more time available.
Fixed!
I agree, Fixed!
Yup, another Gatherer error as it still lists it as restricted.
Fixed!
I agree with you, fixed!
Thank you for reporting this list of issues
1. regarding the printings fields, it oddly appears that the duel decks anthology sets (DD3_DVD,DD3_EVG,DD3_GVL,DD3_JVC) are now listed in reverse alphabetical order. all other date-ties though are in normal alphabetical order.
2. pPRE needs to be added to the printings/printingsCodes for Sultai Ascendancy.
3. i looked further into the missing oversize cards. the planes and schemes are all promos. the planes are listed as the bottom 4 cards on -- http://magiccards.info/query?q=celestine reef&v=card&s=cname -- and the schemes are listed as the bottom 5 cards on -- http://magiccards.info/query?q=plots that span centuries&v=card&s=cname -- the missing vanguards however i could not find anywhere on gatherer or magiccards.info. they appear to also be promos, but only available online.
4. regarding the planes and phenomenons (both oversized cards) i mentioned before, they are currently set as "Banned" in legacy/vintage/commander. again this is subjective, but i think the more uniform approach is to simply exclude those formats from the 'legalities' dict. this is how schemes, vanguards, and unset cards are handled. one nice consequence of this change would be that, if you look for all Banned cards in the .json, it would then exactly match the ban list from wizard's official page
5. according to -- http://magic.wizards.com/en/gameinfo/gameplay/formats/commander -- both "Sway of the Stars" and "Yawgmoth's Bargain" are banned. however, i know very little about commander, this might not be the ban list the community follows.
6. according to -- http://archive.wizards.com/Magic/tcg/article.aspx?x=magic/products/reprintpolicy -- the following cards are on the reserve list: Bosium Strip, Ifh-Biff Efreet, Juzam Djinn, Khabal Ghoul, Marton Stromgald, Ring of Ma'ruf
7. as printed, the flip of "Erayo, Sortami Ascendant" is called "Erayo Essence", not "Erayo's Essence" as indicated on gatherer
Currently offering 2 non-foil Kolighan's Command for a Date Stamped foil!
convert bulk into good cards? PucaTrade - https://pucatrade.com/invite/gift/21195
Ebay - decks/Promos/DVDs
Trade thread (constantly updated)
http://www.mtgsalvation.com/trading-post/details/337-pokerbob1s-casual-trading-emporium
Whoops! Fixed.
Whoops again! Fixed.
Thanks for the addiitonal info, I've added the new info to my to-do list item.
I agree! Fixed!
Seems like these cards should indeed be marked as banned in Commander. Gathere appears to just be out of date again. I'll work on getting this fixed soon.
Whoops! On this page they don't have their unicode symbols and thus their names from this page did not match the actual names of the cards.
Fixed.
That's interesting, all physical scans of this card that I can find show it correctly as "Erayo's Essence", printed right there on the card.
In fact, the only 'image' of the card that has the non-plural version is the one on gatherer and places that copied the gatherer image.
According to this thread it may be either due to the card being fixed before being printed, or intentional on Wizard's part to catch people who copy their images.
So I'm gonna stick with Erayo's Essence.
Thanks again for the bug list
I have updated mtgjson with this Commander banning information. I have a script that automatically watches this page and notifies me if any cards are added or removed from this list, so I'll keep MTGJSON updated in the future.
Thanks for the heads up.
Firstly thanks very much for this, it really helped me with building a DB of all the cards for my online singles store!
Just a quick question though, MtG Origins is the first new release that I've been operating for now and I'd like to use the importer I've built for AllSetsArray.json but it isn't yet included, just want to know generally how long after a new set is fully spoiled is there an update to the json please?
I have new sets added to MTGJSON within 24 hours of the set being added to Gatherer. Usually I have it added in even less time than that.
Gatherer usually adds new sets anywhere from a few days to a week or more before the official set release date.
I have added an RSS feed to the website and all updates will be announced there too now.
Enjoy
Thank you! Keep up the awesome work.
Awesome! Thanks, man
Minouris's Library - Collection manager and deck builder. It's nifty - Check it out!
This is the same thing they did in M15 and I handle that by simply specifying 'starter' : true for these cards.
Sadly however Gatherer doesn't list these cards for Magic Origins, yet they did for M15. Sigh.
Does anyone know which of the Magic Origin Sample Cards are numbered which number? Also which artist is attributed for each card?
I can't find any images of these cards online and I can't find a list that contains the card number and artist either.
Fixed, thanks for the heads up!
That is useful, thank you!
However, those appear to be generated from MTG Salvation, as in someone there may have just guessed at artist/card number. Before publishing this data to MTGJSON, I'm going to wait for a second source of info confirming the correct number and artists. Ideally I'd love to see physical images of the cards, however as these are sample decks sent to dealers and not available for sale directly, finding them has proven to be quite difficult
The images in those links look like hi-rez card scans, and each includes the number and artist at the bottom.
I'm starting a college course in Javascript in a few weeks, so I hope to start using your Json files soon. I've got some great ideas for a new MTG web site. What base knowledge would you say is needed to be able to take advantage of your files? I've been reading up on Jquery and Ajax as well, although it's kind of difficult to take in without formal training.
At the bottom of those images it says 'MTGS Mockup'
Heh, whoops.