Skip to content

A set of generated markdown files that provide summaries of the units in MegaMek's data files.

Notifications You must be signed in to change notification settings

scottboehmer/megamek-unit-digest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MegaMek Unit Digest

A collection of generated markdown files with summarized versions of the unit files from MegaMek.

The Units

About

As an example of the format used by the generator, here is the generated summary for the Wolverine WVR-6R:

Wolverine WVR-6R

  • Role: Skirmisher
  • Tech Base: Inner Sphere (2575)
  • Chassis: 55 tons
  • Movement: 5 / 8
    • Jumping: 5
  • Armor: 152
  • Heat Sinks: 12 (12)
  • Weapons:
    • AC/5 (ammo: 20)
    • SRM 6 (ammo: 15)
    • Medium Laser
  • Source: TRO 3039 - Star League
  • Battle Value: 1101

These markdown files are generated from the mtf and blk files in the MegaMek repo (or more accurately, my fork of MegaMek with some minor fixes to some files). MegaMek is a networked Java implementation of the BattleTech board game from Catalyst Game Labs. The files are generated using a .Net Core tool that I have written that parses the mtf files into a list of mechs and then creates a markdown file for each name as well as an alphabetical list of names and a list of all variants sorted by weight and name. It is based on an decade-old mech editor that I wrote as a Silverlight out-of-browser app. While that editor is no longer functional since Silverlight is gone, it provided a nice code base for processing data files for BattleTech mechs.

The tool I have written is a work in progress and as a result this set of markdown files is incomplete and has errors. Right now, my tool successfully processes almost all of the mech and combat vehicle files from MegaMek and I've started work on battle armor. There are likely issues in the processing that are slipping by so that some mech summaries won't fully match the MegaMek files. In addition, there are issues with some of the mech files in MegaMek that mean that the generated summaries may not match the official designs even if they do match the MegaMek files.

Some of the major known limitations with my generator are:

  • Battle Value is not calculated for all designs that parse, and the calculations likely have bugs so you shouldn't trust those values yet. Use the Master Unit List or MegaMek for that instead.
  • The summaries are intentionally less detailed than Technical Readout entries or record sheets. They are intended as quick summaries of the units, not a substitute for the actual board game products.
  • The generated summary format includes an entry for the unit's role that is now generated from MegaMek's unit_roles.txt file. That file doesn't contain all of the units though, so some units will list Undefined as their role. As with Battle Value, the Master Unit List has that info if you need it.

If you're curious about the errors encountered by my parser, you can see the current list of errors here: errors.txt.

If you happen to notice a problem with a unit's summary or have an idea for improving the summaries, feel free to open an issue.

About

A set of generated markdown files that provide summaries of the units in MegaMek's data files.

Topics

Resources

Stars

Watchers

Forks