end6: A Web Compiler/Decompiler for the .end Ending Scripts in Classic Touhou (fork)
end6 is a web tool that compiles and decompiles the .end files from the classic Touhou games th06/th07/th08/th09. I didn’t write this from scratch; it’s a fork of the original project that I keep under my own account.
.end is the script format for these games’ ending screens. It’s stored as binary, and staring at the bytes tells you nothing about the structure. What the tool does is parse the binary into a readable script, let you edit it, then compile it back. The whole flow runs in the browser, no environment setup needed.
I forked it because I was digging into the IL2CPP and asset formats of the classic games back then, and the .end part happened to be right in my way. Reading through its implementation makes it clear how the format parses and how the bytes are laid out, and I can tweak a bit whenever I need to.
The format details are fiddly: one offset off and a whole section is garbage. All the credit goes to the original author; my copy is just a snapshot I kept along the way while reverse engineering.
The repo is here https://github.com/dwgx/end6