Magic Data
General Discussion of the Intricacies
Moderator: CCGHQ Admins
Re: Magic Data
by Marek14 » 16 Feb 2013, 13:41
Vanguard cards are missing the hand size/life modifiers
Re: Magic Data
by Arch » 18 Feb 2013, 16:15
Updated text
http://dl.dropbox.com/u/2771470/mtg-data-txt.zip
- Added hand/life modifiers to vanguard cards.
- Added loyalty and brackets around costs for planeswalkers.
http://dl.dropbox.com/u/2771470/mtg-data-txt.zip
- Added hand/life modifiers to vanguard cards.
- Added loyalty and brackets around costs for planeswalkers.
Re: Magic Data
by Marek14 » 24 Feb 2013, 22:03
It seems that there are only second halves of split cards, first halves are missing. Second halves appear twice, though.
Re: Magic Data
by Max mtg » 04 Mar 2013, 18:36
Do you somehow extract split cards? Such as Assault // Battery ?
http://gatherer.wizards.com/Pages/Card/ ... eid=205409
http://gatherer.wizards.com/Pages/Card/ ... eid=205409
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Magic Data
by Arch » 05 Mar 2013, 11:31
No. Not in a proper way anyway. I used to get the data from http://gatherer.wizards.com/Pages/Searc ... hase%22%5d With the rewrite I did recently I'm looking at http://gatherer.wizards.com/Pages/Searc ... hase%22%5d instead. Notice that both links are going to the same page. This works for transform and flip cards since they have all the data on a single page but double cards have a different format. I'm going to have to do some custom work for extracting and matching them.
Re: Magic Data
by friarsol » 08 Mar 2013, 16:21
They goto different pages for me.Arch wrote:No. Not in a proper way anyway. I used to get the data from http://gatherer.wizards.com/Pages/Searc ... hase%22%5d With the rewrite I did recently I'm looking at http://gatherer.wizards.com/Pages/Searc ... hase%22%5d instead. Notice that both links are going to the same page.
The text spoiler looks like:
- text | Open
- Name: Assault // Battery (Assault)
Cost: R
Type: Sorcery
Pow/Tgh:
Rules Text: Assault deals 2 damage to target creature or player.
Set/Rarity: Planechase Uncommon, Time Spiral "Timeshifted" Special, Invasion Uncommon, Invasion Uncommon
Name: Assault // Battery (Battery)
Cost: 3G
Type: Sorcery
Pow/Tgh:
Rules Text:
Put a 3/3 green Elephant creature token onto the battlefield.
Set/Rarity: Planechase Uncommon, Time Spiral "Timeshifted" Special, Invasion Uncommon, Invasion Uncommon
The Checklist goes to something that looks like this:
- checklist | Open
- 103 Assault Ben Thompson Red U Planechase
103 Battery Ben Thompson Green U Planechase
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Magic Data
by Arch » 10 Mar 2013, 10:37
I was referring to the links on the pages. From the first link you can extract the card data straight up. The "Assault" and "Battery" links however goes to the same page. So from the second page you have to follow the links on the linked page and then figure out which is actually the "main" card.
http://dl.dropbox.com/u/2771470/mtg-data-2013-03-10.zip
http://dl.dropbox.com/u/2771470/mtg-dat ... -03-10.zip
Updates fixes double cards and removes letters from the collectors number.
http://dl.dropbox.com/u/2771470/mtg-data-2013-03-10.zip
http://dl.dropbox.com/u/2771470/mtg-dat ... -03-10.zip
Updates fixes double cards and removes letters from the collectors number.
Re: Magic Data
by friarsol » 24 Apr 2013, 03:04
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Magic Data
by Marek14 » 24 Apr 2013, 07:59
Some split cards might still be broken -- just found that there's no Crime and two instances of Punishment.
Re: Magic Data
by Arch » 24 Apr 2013, 17:29
Probably not going to get anything up until friday, won't be home much until then.friarsol wrote:Looks like DGM is up on Gatherer a bit early:
http://gatherer.wizards.com/Pages/Searc ... Maze%22%5D
Think that has been corrected with this commit. Haven't verified it yet though.Marek14 wrote:Some split cards might still be broken -- just found that there's no Crime and two instances of Punishment.
Re: Magic Data
by melvin » 13 May 2013, 05:37
Thanks for the update, Arch. In the 04-26 release, some of the Planeswalker abilities show up as "[null] null" in the mtg-data.txt file. For example,
- Code: Select all
Jace, Memory Adept
{3}{U}{U}
Planeswalker - Jace
4
[+1] Draw a card. Target player puts the top card of his or her library into his or her graveyard.
[null] null
[-7] Any number of target players each draw twenty cards.
M12 M, M13 M
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Return to Magic Rules Engine Programming
Who is online
Users browsing this forum: No registered users and 10 guests