vivaria / tja2fumen

Mod tool to convert TJA chart files (.tja) into .bin files compatible with official games
https://pypi.org/project/tja2fumen/
MIT License
12 stars 1 forks source link

Overhaul header metadata code with new `FumenHeader` Python class (plus use ints, not bytes) #45

Closed vivaria closed 1 year ago

vivaria commented 1 year ago

Previously, I had to reverse engineer many of the bytes in a valid fumen header. This meant that I was often working with literal byte values, as well as guessing at what things meant, calling them "padding" or "unknown".

However, thanks to #44, I now have a TON of knowledge about the correct purpose of each byte in the header. This lets me properly document each value's purpose, and it also lets me parse 4-byte groups as ints, rather than dealing with individual raw bytes.

In summary, the changes in this PR are:

Necessary for #40. Fixes #44.