It is currently 26 Aug 2025, 23:28
   
Text Size

Magic Data

General Discussion of the Intricacies

Moderator: CCGHQ Admins

Re: Magic Data

Postby 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.

Ark wrote:{P} for generic on the one card.
What's this? I do not seem to have any {P} in the data. Did I miss a card?
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby 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.
User avatar
Ark
Programmer
 
Posts: 350
Joined: 16 Jul 2008, 04:29
Has thanked: 10 times
Been thanked: 103 times

Re: Magic Data

Postby Marek14 » 05 May 2011, 16:18

Arch wrote:You're welcome to Marek. Not sure if you're a user or co-author at this point though.

Ark wrote:{P} for generic on the one card.
What's this? I do not seem to have any {P} in the data. Did I miss a card?
"Power user"? :)
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby Marek14 » 06 May 2011, 15:50

Spawnsire of Ulamog has a problem in its {20} activation cost
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby Arch » 08 May 2011, 09:14

Ark wrote:I consider this a bug in Gatherer already, as they already said the official symbol for that one card is {P} somewhere.
Yeah, seems like quite an obvious bug.

Also noted that Draco has the same problem as Spawnsire. Will fix these for future releases.
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby Marek14 » 08 May 2011, 15:45

BTW, there should be an Oracle update soon (probably happened already). Check Cocoon -- new wording should have it use +1/+1 counter.
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby Marek14 » 09 May 2011, 09:27

Prismatic Dragon has [2] instead of {2}:
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby Marek14 » 17 Jun 2011, 07:58

Commander is on Gatherer :)
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby Arch » 19 Jun 2011, 20:00

User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby 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
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby 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.
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby 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!
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Magic Data

Postby 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. :P

I think we can progress faster if we quit reinventing the wheel!
User avatar
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

Postby Arch » 05 Jul 2011, 15:51

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.
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.
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>
Protection will/should be split with this as well. "Protection from red and white." -> "Protection from red." & "Protection from white."

melvin wrote:2. Separate tag for type and subtype, currently both are tagged as type. Easiest would be to add a subtype tag
Will probably do something like this:
Code: Select all
     <typelist>
       <type type="super">Legendary</type>
       <type>Creature</type>
       <type type="sub">Bunny</type>
       <type type="sub">Ogre</type>
     </typelist>
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby melvin » 06 Jul 2011, 02:04

For keyword abilities, the first encoding using "number=X" looks better as it does not nest the rules tag.

For types, the <type type="X"> looks rather weird having the word "type" repeated, how about <type kind="X">.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

PreviousNext

Return to Magic Rules Engine Programming

Who is online

Users browsing this forum: No registered users and 8 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 8 guests

Login Form