Magic Data
General Discussion of the Intricacies
Moderator: CCGHQ Admins
Re: Magic Data
by Arch » 05 May 2011, 08:52
You're welcome to Marek. Not sure if you're a user or co-author at this point though.
What's this? I do not seem to have any {P} in the data. Did I miss a card?Ark wrote:{P} for generic on the one card.
Re: Magic Data
by Ark » 05 May 2011, 15:30
http://gatherer.wizards.com/Pages/Card/ ... eid=214385
I consider this a bug in Gatherer already, as they already said the official symbol for that one card is {P} somewhere.
I consider this a bug in Gatherer already, as they already said the official symbol for that one card is {P} somewhere.
Re: Magic Data
by Marek14 » 05 May 2011, 16:18
"Power user"?Arch wrote:You're welcome to Marek. Not sure if you're a user or co-author at this point though.What's this? I do not seem to have any {P} in the data. Did I miss a card?Ark wrote:{P} for generic on the one card.

Re: Magic Data
by Marek14 » 06 May 2011, 15:50
Spawnsire of Ulamog has a problem in its {20} activation cost
Re: Magic Data
by Arch » 08 May 2011, 09:14
Yeah, seems like quite an obvious bug.Ark wrote:I consider this a bug in Gatherer already, as they already said the official symbol for that one card is {P} somewhere.
Also noted that Draco has the same problem as Spawnsire. Will fix these for future releases.
Re: Magic Data
by Marek14 » 28 Jun 2011, 06:29
Pandora's Box doesn't have {} around symbols in text -- I did that one, so the same bug might exist for other Astral cards, and maybe dreamcast
Re: Magic Data
by Arch » 30 Jun 2011, 12:47
Something is done in the incorrect order which causes those cards to not be cleaned up properly. Will fix in next release.
Re: Magic Data
by melvin » 04 Jul 2011, 14:13
Thanks Arch and Marek14 for maintaining this data. It is very useful for prioritizing which Magic rules/effects to add to an existing game engine such as Magarena.
Two small requests:
1. List exactly one keyword ability per rule. I noticed that some of the cards lists multiple keyword abilities in a single rule eg "Flying, haste", this requires the user to further parse the text to split them.
2. Separate tag for type and subtype, currently both are tagged as type. Easiest would be to add a subtype tag
Thanks!
Two small requests:
1. List exactly one keyword ability per rule. I noticed that some of the cards lists multiple keyword abilities in a single rule eg "Flying, haste", this requires the user to further parse the text to split them.
2. Separate tag for type and subtype, currently both are tagged as type. Easiest would be to add a subtype tag
Thanks!
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Magic Data
by Huggybaby » 04 Jul 2011, 17:07
Good suggestions melvin.
I would like to see more programmers using these files. I know it's fun to write *yet another* parser for Gatherer. But not as much fun as writing another deck or inventory viewer.
I think we can progress faster if we quit reinventing the wheel!
I would like to see more programmers using these files. I know it's fun to write *yet another* parser for Gatherer. But not as much fun as writing another deck or inventory viewer.

I think we can progress faster if we quit reinventing the wheel!
-
Huggybaby - Administrator
- Posts: 3227
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 748 times
- Been thanked: 601 times
Re: Magic Data
by Arch » 05 Jul 2011, 15:51
This is a good idea and it should be done. I still would like to be able to be able to map one-to-one with actual cards, or possibly have a way to convert back. I have two ideas for this so far, not sure I like either though.melvin wrote:1. List exactly one keyword ability per rule. I noticed that some of the cards lists multiple keyword abilities in a single rule eg "Flying, haste", this requires the user to further parse the text to split them.
- Code: Select all
<rulelist>
<rule number="1">Flying</rule>
<rule number="1">Trample</rule>
<rule number="2">5: Each player sacrifices a creature.</rule>
</rulelist>
<rulelist>
<rule>Flying, trample
<rule>Flying</rule>
<rule>Trample</rule>
</rule>
<rule>5: Each player sacrifices a creature.</rule>
</rulelist>
Will probably do something like this:melvin wrote:2. Separate tag for type and subtype, currently both are tagged as type. Easiest would be to add a subtype tag
- Code: Select all
<typelist>
<type type="super">Legendary</type>
<type>Creature</type>
<type type="sub">Bunny</type>
<type type="sub">Ogre</type>
</typelist>
Re: Magic Data
by melvin » 06 Jul 2011, 02:04
-
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 8 guests