Closed juk0de closed 1 week ago
After verifying that those lines are actually ignored by the MegaMek MTF parser, I've reported the issue to MegaMek (https://github.com/MegaMek/megamek/issues/6022). I'm going to implement a workaround to mtf2json
that also ignores those lines.
As reported in #12, there are MTF files that contain lines without a key in the fluff section.
Example: ThunderHawk TDK-7S
The line starting with
<p>Despite these alterations
contains no key and this is not correctly handled. Currently, this results in wrong entries to the right leg slots:However, I'm not sure if these MTF files are actually valid or legal. Although there's no MTF specification, the code seems to only parse the line content after the key, ignoring the following line (see here and here)