Magi-Soft Forums

Magic Workstation
It is currently Tue Sep 07, 2010 7:57 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Need Help with creating foreign language Master.mwBase
PostPosted: Sat Jul 03, 2010 10:17 am 
Offline
User

Joined: Sun May 15, 2005 9:19 pm
Posts: 5
Location: Berlin
Hi there,

I am trying to create a German Master.mwBase using Firefox, http://www.magiccards.info, AutoIt3 and some weird old Version of cdsExplorer ;)
When it's done and works, it shouldn't be such a big problem to do this for other languages as well.

Anyway...
I converted the original Master.mwBase to xml to see what a single entry has to look like. If you are interested, this is it (random example):

Code:
<ROW RowState="4"
Name="Paladin en-Vec"
Edition="EX"
Version="3"
ID="0"
Color="W"
Cost="1WW"
Type="Creature - Human Knight"
Text="First strike, protection from black and from red #(This creature deals combat damage before creatures without first strike. It can’t be blocked, targeted, dealt damage, or enchanted by anything black or red.)#"
Power="2"
Toughness="2"
Flavor="“Our belief shall be the lance that pierces Volrath’s heart.”"
Rarity="R"
Artist="Randy Elliott"
Number="12"
Mana="3"
MtgEncID="5199"
Internal="&lt;T2:B&gt;&lt;EX:1&gt;&lt;T15:1&gt;&lt;T1:1&gt;"
TypeIndex="3"
P/T="2/2"/>


Most of those attributes are kinda self explaining, but I have problems understanding the following attributes:
Code:
MtgEncID="5199"
Internal="&lt;T2:B&gt;&lt;EX:1&gt;&lt;T15:1&gt;&lt;T1:1&gt;"
TypeIndex="3"


The second one seems to have something to do with the legality in the formats, but I'm not sure what the exact syntax is.
The first and third ones are a complete mystery to me...

Also, I would like to know the difference between those two:
Code:
Version="1"
ID="1"


Maybe someone here knows something about this and can help me :)


Top
 Profile  
 
 Post subject: Re: Need Help with creating foreign language Master.mwBase
PostPosted: Sun Jul 04, 2010 8:42 pm 
Offline
Registered User
Registered User
User avatar

Joined: Wed May 14, 2003 12:30 pm
Posts: 2034
Location: The Magic Geekery
MtgEncID refers to the card ID used in the Magic Interactive Encyclopedia, so that MWS can display a card art from that installed software. Ignore this- its not used anymore, and in fact this whole dataset has been stripped from the latest masterbase from GoblinHero.

Internal - notice the html entities. lt= < gt= >
it is for legality. B would be banned, 1 would be allowed.

TypeIndex is a code for the type of card. Theres a number for each type like Instant, Sorcery, Creature, Artifact, Enchantment, Land, and a mixture of numbers (added) for mixed types. Compare the value of this field over several cards to discern the pattern.

Version is for the same card with more than one version of art. Lands use this.
ID is not used at all, AFAIK.

You're welcome!
And you get my 2000th post! :mrgreen:

_________________
MTG Software Wizard
See my website (in Profile) with unique MWS updates and many MTG software links!
♫In the year {#my post count#}, if MWS is still alive.. if the devs survive, we may find... ♫


Top
 Profile  
 
 Post subject: Re: Need Help with creating foreign language Master.mwBase
PostPosted: Mon Jul 05, 2010 9:42 am 
Offline
User

Joined: Sun May 15, 2005 9:19 pm
Posts: 5
Location: Berlin
Thanks, that was very helpful.

As soon as I get XPath to do what I want it to do, I'll be able to continue my efforts and of course post the results here ;)
My estimation is that it will take another 2 weeks until I have a satisfying result (of course, I can't work on that all day long).


Top
 Profile  
 
 Post subject: Re: Need Help with creating foreign language Master.mwBase
PostPosted: Sat Jul 17, 2010 9:50 am 
Offline
User

Joined: Sun May 15, 2005 9:19 pm
Posts: 5
Location: Berlin
Hi again,

I've made some pretty good process and can save editions and pictures in the right format and load them into MWS.

But there are still some optimizations to make, bugs to fix, etc. before I will make it public. My estimation: Another week shall pass.

Also, I have two questions:

1. Is this part of the Master.mwBase of any importance?
Code:
<PARAMS CHANGE_LOG="1 0 4 2 0 4...etc... />

I wonder if it is needed at all since all it does is repeating the pattern "INCREASINGNUMBER 0 4". Seems like some very redundant information to me. And leaving it out of the file doesn't seem to have any negative effect on MWS.


2. Is the order of the cards in the *.mwBase of any importance?


I hope that someone can help me, again. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group