Tools

Things I wrote because the projects needed them.

a816

My 65c816 assembler for the Super Famicom, with a linker, memory pools, typed layouts, debug info and editor support. It grew up with Final Fantasy IV. Version 1.1.0 is out, and every project here builds with it.

Documentation · Source on GitHub

katsuji

活字, movable type. My variable-width font tooling for a816 projects. I give it a font drawn in a PNG and it makes the file for the VWF runtime, with the kerning. It also wraps the text at the pixel, and the fixed strings, it pre-renders them into tiles. It grew out of the Final Fantasy IV build scripts, and the five FF4 fonts still come out identical.

Lately I put my fonts in it as one family, sumi, the ones of the French Final Fantasy IV and of the translations after it. A project calls it by its name instead of copying the PNG.

Source on GitHub

Kintsuki

Reverse engineering tools around the ares SNES core, with Python bindings to dig through memory and the PPU, trace, profile and run automated tests. It's what I use to find the routine that draws the text, or to see who writes where. I also write integration tests with it, I boot the patched game, I drive it to a scene, and I check what ends up on screen and in memory.

Source on GitHub

betaplayer

A beta tester for my patches, on top of kintsuki. The FF4 battle code carries a lot of my changes, so an agent learns to play FF4 battles from real saves, against the fights the game actually rolls on the field. In hunt mode it just plays a new build to see what breaks. When a fight hangs or crashes I get a report with a savestate from just before and a trace up to the crash. A "security TV" shows every worker's screen, I click on a glitch and it makes a report. FF4 only for the moment, and it's not public yet. More in the note.

SD2SnesCommander

A macOS app and CLI for the SD2SNES / FX Pak Pro. I use it to put builds on real hardware: browse the SD card over USB, drop in a patched ROM (IPS applied on the way), boot it, and get back to the menu. The app and the CLI share the cart through a small XPC service, so they don't fight over USB.

Source on GitHub

Patchouli

The ROM patcher of the site, for those who don't want to go find a patching tool. I keep the patches up to date with a manifest that a small script regenerates from the GitHub releases.

Open Patchouli