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

Magic Data

General Discussion of the Intricacies

Moderator: CCGHQ Admins

Re: Magic Data

Postby Marek14 » 23 Apr 2012, 17:52

Baneslayer Angel has wrong capitalization in its text ("protection from demons and from dragons" instead of "protection from Demons and from Dragons").

EDIT: Seems there are more cards with capitalization problems, I just noticed reminder text for Bubbling Muck.

EDIT2: Noticed two spaces in text of Heretic's Punishment.
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby Arch » 25 Apr 2012, 16:28

All of the above problems are present in several cards, will fix it.

The other problems reported should also be fixed in time for the pre-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 friarsol » 27 Apr 2012, 03:58

Looks like Gatherer was updated a few hours ago. Thanks again for hooking up mtgdata files, Arch
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Magic Data

Postby Arch » 27 Apr 2012, 17:28

No problem.

First post updated with new 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 friarsol » 08 May 2012, 03:11

Is there any reason the latest version of mtg-data.txt changed all of the set codes to no longer be 3 characters? We have a few utilities that use mtg-data for parsing, but they seem to all be broken/less functional due to this change.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Magic Data

Postby Arch » 08 May 2012, 10:24

Yes, setcodes are now read from gatherer, which is as close to an official version of the set-codes you can get.

Is the problem that the set-codes are short or that they have changed. (Quite a lot of them changed this time since it was done in bulk.) If the first one; update your code. If the second one; I've got some bad news.

Set-codes are actually not a good identifier for a set. (Guess that's how you're using them.) They have changed multiple times and will quite possibly change again in the future. The set-name would be a better identifier.

If you point me to the tools/source maybe I can give some more concrete advice.
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby friarsol » 12 May 2012, 13:19

Arch wrote:Is the problem that the set-codes are short or that they have changed. (Quite a lot of them changed this time since it was done in bulk.) If the first one; update your code. If the second one; I've got some bad news.
I didn't write this particular piece of code, but for some reason Astral cards are being lumped into the Alliances set for tracking purposes. It seems like since we were looking for a three character code "AL " was being recorded as the Alliances set code, which "ASTRAL " is being found in.

Arch wrote:Set-codes are actually not a good identifier for a set. (Guess that's how you're using them.) They have changed multiple times and will quite possibly change again in the future. The set-name would be a better identifier.
We are actually grabbing the set codes from the Set Name in the file, but on the set line in mtg-data.txt they are only referenced by their code. No worries, it should be fixable, I just wasn't expecting broken code after this release.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Magic Data

Postby Marek14 » 28 May 2012, 06:14

Planechase 2 decks shown today -- we might get Gatherer update soon :)

There's also the promo Stairs to Infinity -- not sure if it will appear in the Gatherer with the rest of the set.
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby Arch » 01 Jun 2012, 05:03

And it's out. Haha, beat you to it!

Will have a look at it tonight. Stairs to Infinity is in gatherer.
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby Arch » 01 Jun 2012, 18:11

Updated first post with new zip.
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby PilotPirx » 03 Jun 2012, 11:36

nice!

There is a difference between the old and new plane cards. The old ones say {C} and the new ones say Chaos...
e^iπ + 1 = 0
User avatar
PilotPirx
 
Posts: 41
Joined: 16 Dec 2009, 15:27
Has thanked: 1 time
Been thanked: 7 times

Re: Magic Data

Postby Arch » 03 Jun 2012, 17:57

Updated again.

Sometimes I wonder if their internal data is as inconsistent or if they're intentionally obfuscating it when adding to gatherer...
User avatar
Arch
Programmer
 
Posts: 206
Joined: 04 Jul 2009, 09:35
Has thanked: 0 time
Been thanked: 15 times

Re: Magic Data

Postby silly freak » 04 Jun 2012, 21:49

I fear it's the first, although I wonder how such thing can happen, considering that Wizards probably employs a load of nerds...
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Magic Data

Postby Marek14 » 05 Jun 2012, 08:14

"Load" is the operative word. As in "not every nerd does things exactly the same way". This list has better consistency since it's overseed by a single person.
Marek14
Tester
 
Posts: 2773
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 303 times

Re: Magic Data

Postby randian » 05 Jun 2012, 17:36

Selesnya Sanctuary is missing metadata for PC2. Here's the info:
{
"artist" => "John Avon",
"number" => 125,
"rarity" => "C",
"series" => "PC2",
},
randian
 
Posts: 15
Joined: 05 Jun 2012, 17:30
Has thanked: 0 time
Been thanked: 0 time

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