Skip to main content

A command-line app for fixing the .xml files generated by the Magic Set Editor Cockatrice exporter.

Reason this release was yanked:

Application couldn't run.

Project description

mse-export-fixer

PRERELEASE DEVELOPMENT - NOT YET FUNCTIONING

A command-line app for fixing the .xml files generated by the Magic Set Editor Cockatrice exporter. Written in Python 3.7.7.

Install using pip install mse-export-fixer and run at the command line using fixer /path/to/setfile.xml. Use the -h or --help flags to see all options, including custom output file naming, verbose running, automatic datestamping, etc.

By way of background: the current version MSE Cockatrice export template "Cockatrice Exporter ReUpdated" has many issues, some worse than others.

  1. The main issue (which I'm pretty sure causes most of the improper or missing tag issues) is that it still uses the old (v3) Cockatrice set formatting. Among other things, this makes it more likely that Cockatrice reads the .xml incorrectly.
  2. It doesn't export DFCs (double-faced cards) the way Cockatrice expects them, which is as two separate cards connected using the <related> tag, one with the tag <side>front</side> and the other with the tag <side>back</side>.
  3. It doesn't use the <related> tag to link cards that create tokens to the predefined tokens they create.
  4. It doesn't add rarity information.
  5. It adds converted mana costs (the <cmc> tag) inconsistently, if at all.
  6. Because (I think) of the use of the v3 formatting, it uses the <color> tag instead of <colors>, and consequently does not properly tag the card colors of hybrid and multicolored cards.
  7. It doesn't add color identity (the <coloridentity> tag).
  8. It doesn't add card numbering within a set (the num option within the <set ... > tag of a card).

Of these issues, the app will fix 1, 2, 5, 6, and 7. Rarities and numbering are totally absent from the files that MSE generates, and parsing token names from rules text is hard. I'll work the latter out when I can actually be arsed to do it. Probably.

Note: You'll need to split the card images for the two sides of DFCs yourself, since MSE normally exports them as one file. Just be sure to name the images according to the names of the respective sides and put them in with the rest of your card images, and you should be good.

I'm writing this because I can't find the actual source code for the exporter and can't decompile the .exe. If anyone can point me to the source, I'd be happy to fix the exporter itself instead.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mse-export-fixer-1.0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distributions

mse_export_fixer-1.0.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

mse_export_fixer-1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file mse-export-fixer-1.0.1.tar.gz.

File metadata

  • Download URL: mse-export-fixer-1.0.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for mse-export-fixer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 76707424d0fbc464fd7da31bdb0accf23e317103648fb31ea6f570bf89291ee0
MD5 87cb30d84a17a8cc1ea5ef4d075d89d5
BLAKE2b-256 6d6eed465f41add30df8db6a02829dcc3ac3fba1af943219c334823bd9f608c1

See more details on using hashes here.

File details

Details for the file mse_export_fixer-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mse_export_fixer-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for mse_export_fixer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a96bbd38e97ceb9ebb6c176bbe62cdca1c94fa08bcfca9c34f5dd22a4062be1
MD5 d17e14ad1a1a6397084d895290304df9
BLAKE2b-256 126556da111646919878471f50f7e834a0605631a2ae2054b4f9daaae89f3a8d

See more details on using hashes here.

File details

Details for the file mse_export_fixer-1.0-py3-none-any.whl.

File metadata

  • Download URL: mse_export_fixer-1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for mse_export_fixer-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed21d1985d4ae0333ab7fbbcc6af4bccd4b83583e33c2c1835f5beee7bd01a5b
MD5 ec6299ba8b5cddc4bdcd3f3d10be75fa
BLAKE2b-256 17775e63d5350110a2253d5112f07e2fa5105be16878cb3d4a0591760a82e2b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page