Releases: juk0de/mtf2json
Releases · juk0de/mtf2json
v0.2.7
- Unified
tech_basestrings for all components (and mechs). Available strings are:ISClanAllMixedUnknown
- Renamed the mech
techbasetotech_base- this makes it consistent with other components
- The following components now have a tech base entry:
- Engine
- Armor
- Structure
- Mech
- Added new
enginesection to the JSON structure. Example:
"engine": {
"name": "380 XL Engine",
"type": "XL",
"tech_base": "IS"
},
Known issues:
- Some MTF files contain components with two different tech bases
- e.g. the
Turkina Uhas the following engine:engine:285 XL (Clan) Engine(IS) - in this case,
mtf2jsonwill either choose the tech base that corresponds to the mech tech base, or the first one (if the mech hasMixedtech base)
- e.g. the
- Some MTF files contain conflicting tech bases
- e.g. the
Turkina Uhas tech baseClanbut anISstructure (according to the MTF file) - no workaround has been implemented for this (yet)
- e.g. the
- Both issues are very likely MegaMek bugs
v0.2.6
- Added support for legacy-style sizeable equipment (e.g.
(5 tons)or(1 ton)substrings instead of:SIZE:)- they are also added to the
equipmentsection (see https://github.com/juk0de/mtf2json/releases/tag/v0.2.5)
- they are also added to the
v0.2.5
- Format change: renamed
weapontonamein weapon entries - New JSON section:
equipment - Items with a
:SIZE:value are now correctly supported and stored in the newequipmentsection.- E. g.
Liquid Storage (OMNIPOD):SIZE:1.0 (ARMORED)will be stored as:
"equipment": [ { "name": "Cargo (Liquid)", "location": "left_torso", "type": "transport bay", "tags": [ "armored", "omnipod" ], "size": "1t" }, ] - E. g.
- More items will be stored in the
equipmentsection in future releases
v0.2.4
v0.2.3
- The
weaponssection is now a list of dictionaries- this breaks compatibility with the old format
- Weapon quirks are now stored in the
weapon_quirkssection- before that, only the last
weaponquirkkey was stored (verbatim) in case there were multiple of them
- before that, only the last
- The
mtf2jsonversion is now stored as the first key in every JSON file
v0.2.2
v0.2.1
v0.2.0
- If a critical slot line contains
:size:or:SIZE:, the value is set to the preceding string (the size part is discarded)- fixes #15
- Updated latest supported commit to
dfeb43e28132c2723ac8e3147e41b00960b989fd <P>and</P>are now also removed from fluff entries- Added
--verboseflag - Added new testcases
- ShadowHawk SHD-5S
- Hermes_II_HER-4K_Hermes_III
- Code refactoring
- parsing is now done by a generator function
- only known keys are parsed, others are ignored
- lines without keys are ignored, unless it's a known special case
- replaced the
mtf2json.pyistub file withpy.typed - switched from
flake8toruff(for linting and formatting)- reformatted all existing code