mtgassistant

module
v0.0.0-...-dc0ce62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2020 License: MIT

README

MTG Arena Assistant

Helper code for Magic The Gathering: Arena

Requirements

You will need a computer that can run Magic The Gathering: Arena, and set it up so it exports logs. To do so, open the game, go to Settings > View Account > Enable Logs, then restart the game and exit.

These programs work by parsing the resource files inside your installation of MTG: Arena, as well as the game logs. If those things are not in the standard locations, you will need to specify those to the programs via command-line flags.

What can I do?

Right now the assistant only has two binaries: a collection exporter, and a deck helper.

Collection Exporter

Collection Exporter is a program that will parse your MTG:A collection and print it in the MTG:A format. To run it, just do:

$ go run collectionexporter/main.go

Deck Helper

Given a decklist in the MTG:A format, deck helper will parse your MTG:A collection and will tell you which cards are missing from the decks (cards that you need to craft). Currently it only supports the standard rotation, but that can be easily changed from the code.

To run it:

$ go run deckhelper.go -deck=<path-to-your-deck>

Libraries

There's a carddb library that parses the resource files and creates a database of magic cards. You can use it to make queries based on card names, card ids, or just iterate over it and run the code that you want.

There's also a collectionfinder library that parses the game logs and gets your card collection.

Directories

Path Synopsis
Package carddb provides functions to interact with a Magic The Gathering Arena cards.
Package carddb provides functions to interact with a Magic The Gathering Arena cards.
program collectionexporter parses a "Magic The Gathering - Arena" output log and prints out the card collectioon of the user.
program collectionexporter parses a "Magic The Gathering - Arena" output log and prints out the card collectioon of the user.
Package collectionfinder parses the Magic The Gathering: Logs, returning user decks.
Package collectionfinder parses the Magic The Gathering: Logs, returning user decks.
program collectiontracker tells you how many boosters of a given expansion you need to open to complete your rare/mythic rare collection.
program collectiontracker tells you how many boosters of a given expansion you need to open to complete your rare/mythic rare collection.
program deckhelper takes a list of cards (a card deck in mtga format, and will tell you how many cards do you have to craft.
program deckhelper takes a list of cards (a card deck in mtga format, and will tell you how many cards do you have to craft.
program limitedcollection helps users arrange limited tournaments by allowing them to easily export their booster results.
program limitedcollection helps users arrange limited tournaments by allowing them to easily export their booster results.
program webserver is a web server that parses out MTG Arena Logs and outputs the contents of the cards boosters that you opened
program webserver is a web server that parses out MTG Arena Logs and outputs the contents of the cards boosters that you opened

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL