Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 956 Bytes

File metadata and controls

31 lines (21 loc) · 956 Bytes

PyOMFTools

Some tools for decompiling and compiling OFM2097 AF files to JSON format and back to help with poking at the binary.

HTML cards

Prebuilt version of the HTML data is available at https://katajakasa.fi/projects/openomf/cards/

Installation

  1. Make sure you have python 3.12 installed
  2. Create a virtualenv, eg. poetry env use 3.12 and install deps poetry install --no-root.
  3. Activate the virtualenv, eg. poetry shell
  4. Run! eg. python -m omftools.cli.af_compile -h

How to ...

Generate the taglist.c

  1. Do the installation step above
  2. Make sure the tag omftools/resources/tags.csv is up-to-date.
  3. Run poetry run python -m omftools.cli.tags -i omftools/resources/tags.csv taglist.c
  4. Copy the generated taglist.c as required.

Generate the HTML cards

  1. Do the installation step above
  2. Run poetry run python -m omftools.cli.generate_html <resource-dir> <output-dir>
  3. Check out the shiny HTML!