Code Monkey home page Code Monkey logo

mtga-utils's Introduction

Export your card collection from MTG: Arena

If you want to use just the pre-built Windows executable, there are no pre-requisites.

Otherwise you will need to install mtgatracker/python-mtga to use the export tool. You can try following forks, if the original python-mtga module fails:

Note:

mtga-export reads the MTGA/Unity log file located under:

"%AppData%\LocalLow\Wizards Of The Coast\MTGA\Player.log"

In order for this export tool to work, "Detailed Logs (Plugin Support)" must be enabled in MTGA's Options / Account screen. If the MTGA game developers stop logging to this file, this export tool will not work anymore.

Quick installation without python on Windows

Just download the standalone windows latest pre-built executable from releases.

Run it from cmd

Export your collection in mtggoldfish format:

mtga-export.exe --goldfish -f mtga_collection_goldfish.csv

Export your collection in deckstats format:

mtga-export.exe --deckstats -f mtga_collection_deckstats.csv

Your collection will be saved to the current folder into mtga_collection_goldfish.csv or mtga_collection_deckstats.csv, which you can use to import into mtggoldfish.com or deckstats.net.

Examples:

Export your collection in mtggoldfish format:

mtga-export.py --goldfish -f mtga_collection_goldfish.csv

Export your collection in deckstats format:

mtga-export.py --deckstats -f mtga_collection_deckstats.csv

General usage:

usage: mtga-export.py [-h] [-v] [-l LOG_FILE] [-k KEYWORD] [--collids] [-c]
                      [-e {name,pretty_name,cost,sub_types,set,set_number,card_type,mtga_id,count} [{name,pretty_name,cost,sub_types,set,set_number,card_type,mtga_id,count} ...]]
                      [-gf] [-ds] [-ct] [-i] [-ij] [--decks] [--decksjson]
                      [--decknames] [--deckinfo DECK_NAME]
                      [--deckexport DECK_NAME] [-f FILE] [--log [LOG]]

Parse MTGA log file

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -l LOG_FILE, --log_file LOG_FILE
                        MTGA/Unity log file [Win: %AppData%\LocalLow\Wizards
                        Of The Coast\MTGA\output_log.txt]
  -k KEYWORD, --keyword KEYWORD
                        List json under keyword
  --collids             List collection ids
  -c, --collection      List collection with card data
  -e {name,pretty_name,cost,sub_types,set,set_number,card_type,mtga_id,count} [{name,pretty_name,cost,sub_types,set,set_number,card_type,mtga_id,count} ...], --export {name,pretty_name,cost,sub_types,set,set_number,card_type,mtga_id,count} [{name,pretty_name,cost,sub_types,set,set_number,card_type,mtga_id,count} ...]
                        Export collection in custom format
  -gf, --goldfish       Export in mtggoldfish format
  -ds, --deckstats      Export in deckstats format
  -ct, --completiontracker
                        Export set completion
  -i, --inventory       Print inventory
  -ij, --inventoryjson  Print inventory as json
  --decks               Print user decks
  --decksjson           Print user decks as json
  --decknames           Print names of user's decks
  --deckinfo DECK_NAME  Print info about specific deck
  --deckexport DECK_NAME
                        Export specific deck in Arena format
  -f FILE, --file FILE  Store export to file
  --log [LOG]           Log level

mtga-utils's People

Contributors

kelesi avatar pak21 avatar bhughes339 avatar bterrific2008 avatar eavdagic avatar sschmitt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.