This reminds me of the project I started trying to translate Heiretsu. I have twice given up on how to unpack and repack the script.
1. I reverse engineered the graphics format for the game Sopwith 2 so that I could change the sprites. I wanted to change the airplane into a flying ox: the ox was an obstacle in the game that you could crash into.
https://en.wikipedia.org/wiki/Sopwith_(video_game)
2. I reverse engineered the pattern format for the Dreamcast game "Samba de Amigo" so that I could add new songs.
3. I wrote a NES ROM editor with support to change sprites, text, and palettes. I was a junior in high school at that time. The code was a mess.