Menu

#532 Import filter for ScryGlass mobile app

Feature
open
Import (3)
1
2016-03-21
2016-02-06
No

Hi :)

I am using your MagicAssistant heavily and discovered a new mobile phone app which is able to scan a heap of cards very fast and is able to export it to dropbox (ScryGlass App, watch?v=-C_8czfRDrQ).

The problem is the format coming from the app:

1 Mayael's Aria [ARB]
1 Varchild's War-Riders [AL]
1 Ice Cave [AP]
3 Unscythe, Killer of Kings [ARB]
1 Mishra's Workshop [AQ]
1 Ring of Ma'rûf [AN]
1 Molimo, Maro-Sorcerer [ARC]
1 Angel of Glory's Rise [MBP]
1 Somberwald Sage [AVR]
1 Slayers' Stronghold [AVR]
1 Land's Edge [CH]
1 Library of Lat-Nam [6E]
3 Zur's Weirding [6E]
1 Garza Zol, Plague Queen [CS]
1 Garza's Assassin [CS]
1 Sek'Kuar, Deathkeeper [CS]
1 Endrek Sahr, Master Breeder [MM2]
2 Thousand-Year Elixir [C13]
1 Æther Gale [C14]
1 Æther Snap [C14]
1 Blue Sun's Zenith [C15]
1 Overwhelming Stampede [C15]
1 Edric, Spymaster of Trest [CRS]
1 Æther Snap [DS]
1 Bound // Determined [DIS]
1 Hide // Seek [DIS]

I just checked out the magic assistant source code from sf and discovered the Editions.java class as long as the DeckParser.java and the ImportData.java. I have no idea how to find the definition of the parseable language to look further into it and solve it by myself :)

Therefore I would like you to ask to please create a new import mode.

Challenge:
The parser must parse from [MM2] -> Modern Masters 2

Cheers

Werner

Discussion

  • Werner Maier

    Werner Maier - 2016-02-07

    ScryGlassImportDelegate.java

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-02-09

    In your file you expect header to be set like Count,Name,Edition but in your example it is not set. Does it actually has a header?

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-02-09

    Ok it was not right import patterm, it is not csv. Anyway I added importer for that.
    Unfortunately these abbreviation would probably not match what I have now and what official abbreviations are, but you can add extra abbreviations in the UI now (before import). The code is on the master branch now, can you run it from the source code to test?

     
  • Werner Maier

    Werner Maier - 2016-02-09

    Hi,

    you are right! A scanned file does not have a header like COUNT, NAME, SET. I am sorry. I also created a UTF-8 extended Text file to test the parser.

    I will tell you my test results! :-)

    Cheers

    Werner

     

    Last edit: Werner Maier 2016-02-09
  • Werner Maier

    Werner Maier - 2016-02-09

    Hi,

    when I try to build from source with jdk 1.8.0_71, x86_64 I go to step "Find magiccards.target project, it will have target defintions file, for example rcp_mars.target, double click on it, and use Set as Target Platform link on top of its editor to reset you target platform. It will take some times to download all required stuff. "

    I have no idea how to do the "Set as Target" step in Eclipse Mars and download the required packages. I don't know how to reset and start to compile (Run Configurations) for my platform.

    Cheers

    Werner

     

    Last edit: Werner Maier 2016-02-09
  • Alena Laskavaia

    Alena Laskavaia - 2016-02-09

    If you double click on that file it will open it Editor. In editor it has a link "Set as Target Platform" on top.

     
  • Clint Herron

    Clint Herron - 2016-02-10

    Hi, I'm the ScryGlass developer.

    I'm still working on making my set codes synchronize more properly with other sites -- my next step is to add a CSV exporter for integrating with other sites / tools.

    If I exported a Deckbox-style CSV, will that be sufficient for importing to Magic Assistant?

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-02-10

    I think I have deckbox import but I need a sample to know for sure.
    I already implemented current import, so it will be in the next version.
    The "classic" test import which already works was accepting format like this
    1 Mayael's Aria (ARB)

    I.e. brackets instead of square brackets.

    The problem is actually more abbreviations. Some of them really not standard and it will choke.
    Where you are getting your abbreviations (set codes?). I recently switch everything to grab codes from https://en.wikipedia.org/wiki/List_of_Magic:_The_Gathering_sets

     
  • Clint Herron

    Clint Herron - 2016-02-10

    My set codes come from MagicCards.info and mtgjson.com -- they're not entirely consistent with each other, and I'm slowly trying to learn who expects which set codes as "authoritative".

    I think I'm going to jettison the MagicCards.info set codes since they seem to be the least "standard" and try to use the same ones that Gatherer uses on things. But I have to store them all internally.

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-02-10

    thanks for the info! I will scrub these one too I guess.
    I have not heard about mtgjson, its neat!

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-02-10

    I did a quick check my code match exactly codes from mtgjson, which matches wiki page codes. I don't know where mtgcardsinfo gets their codes but some of them definitly does not match.

     
  • Clint Herron

    Clint Herron - 2016-02-10

    Oh nice, thanks for checking on that!

    MagicCards.info would be worth ignoring, except that they have the best database of promos and tokens -- far better than any other site on the 'net. So I interface with them because I want a more complete database of images (for my scanner to build its database of image fingerprints from) -- that's why I use their set codes.

    But I'll definitely try to switch to using Gatherer / mtgjson set codes as my default.

    Thanks for looking at this with me! :)

     
  • Werner Maier

    Werner Maier - 2016-02-11

    I am so happy ^_^

    @Clint I tried several times to contact you via website or app feature request to add a CVS export tool but your mail server always answered me:

    sales@hanclinto.com
    SMTP error from remote mail server after RCPT TO:sales@hanclinto.com:
    host aspxxxxxxxxxxxxom [74.125.136.xxxxxxx]: 550-5.1.1 The email account that you tried to reach does not exist.

    And that you two meet together here... can't believe ^_^

    Cheers from Germany

    Werner

     

    Last edit: Werner Maier 2016-02-11
  • Werner Maier

    Werner Maier - 2016-02-13

    Hi,

    I am testing the new import mode. It is working smoothly...

    So even if it doesn't recognize the set, it offers you a drop down of possible sets. Brilliant!

    Thank you! ^_^

    Cheers from Germany

    Werner

     

    Last edit: Werner Maier 2016-02-13
  • Alena Laskavaia

    Alena Laskavaia - 2016-02-13

    wow, thanks for you donation, its a lot of money!

     
  • Anonymous

    Anonymous - 2016-03-20

    Hmmm... I downloaded the latest version of magic assistant and tried to import Scryglass data but I didn't find option to do so. Am I missing something?

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-03-20

    Did you do software update from the app itself? What version do you have now?

     
  • Anonymous

    Anonymous - 2016-03-20

    I did update from the software itself (Magic Assistant asked for updating and I confirmed). It is build 1.4.2 (ID 1.4.2.020). When checking for software updates, it says that no updates were found.

    I right-click on "decks", click on import and on "options" I click on the drop-down-list "Import Type". There I can't find anything that looks remotely like scryglass.

    :'( <-- sad face

    ^^

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-03-20

    I am not sure which version I put it in. Most likely its in beta now. Install in separate folder and run in diffrent workspace, import cards, and if you want to contrinue using 1.4 copy xml's into 1.4 workspace
    https://sourceforge.net/projects/mtgbrowser/files/Magic_Assistant/1.5.0-beta/

     
  • Clint Herron

    Clint Herron - 2016-03-20

    I recently updated ScryGlass to both

    • Use proper set abbreviations more in line with standards used by Magic Assistant and other software
    • Support Deckbox-style CSV for exporting

    So if you're using ScryGlass version 0.1.44 or greater (current most recent version is 0.1.48) you should be able to export to CSV and take that over easily into MagicAssistant?

    Alena, what specifically is added for your ScryGlass importer? Basically the text "1 card name [SetCode]" format?

     
  • Alena Laskavaia

    Alena Laskavaia - 2016-03-21

    Yep, "1 card name [SetCode]"
    And I added aliases for some weird abbreviations of sets missing in mtgjson

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB