luziferius / mtgdeckconverter Goto Github PK
View Code? Open in Web Editor NEWConvert digital Magic The Gathering (R) deck lists between formats.
License: GNU General Public License v3.0
Convert digital Magic The Gathering (R) deck lists between formats.
License: GNU General Public License v3.0
Some formats require specific information that may not be present in others. E.g. XMage requires both the set abbreviation and the collector’s number. If only the English name of a card is known, the required bits have to be guessed based on some heuristics.
Provide some configurable heuristics to do user-configurable best-effort guesses:
It seems that many platforms use their own convention for promotional cards or card sets.
When translating decks, the promotional sets have to be translated as well, as the target application may not understand the set abbreviations of the source application.
For example, TappedOut uses "000" for special promotional printings: http://tappedout.net/mtg-set/promo-set/, whilst Scryfall has a set for each individual promotional printing.
TappedOut set list: http://tappedout.net/magic-cards/
Scryfall set list: https://scryfall.com/sets
To solve this, some kind of translation layer is required.
Some promotional sets can be translated between TappedOut and Scryfall 1:1, as both sites have the same set, which only differs in the set abbreviation.
But the TappedOut "000" set needs some special handling.
A giant lookup table will solve this, but will be brittle as it has to be maintained manually.
If possible, a dynamic solution should be created for this case.
Stamped cards given as a Prerelease event promo are grouped in the PTC
pseudo-set in XMage. See the source code here: https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/sets/PrereleaseEvents.java
TappedOut CSV exports contain this information in the Foil column by indicating the foiling to be pre
.
To Support Prerelease promos:
MTGDeckConverter/MTGDeckConverter/model.py
Lines 26 to 37 in bdd0341
PTC
if the card is a Prerelease promo.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.