Tools
Every tool and script in GameFrame, with its own help. The same list is in the terminal with ./gameframe tools, and one tool's help with ./gameframe tool NAME.
Discs and disk images
| Tool | Kind | What it does |
|---|---|---|
| checks | library | Checks of a CD's file systems, for discinfo.py: sectors that hold data no file system names, the system area, files that only one directory tree lists, and file dates later than the volume's own date. |
| discinfo | program | First look at a CD image (CUE/BIN, raw BIN or ISO): its tracks, its file systems, its dates, and the files on it. |
| image | library | Read the tracks and sectors of a CD image: a CUE sheet with its BIN files, a raw BIN without a sheet, or a plain ISO. |
| volumes | library | Find and read the file systems in a CD data track: ISO 9660 with its Joliet names, the older High Sierra format, an El Torito boot record, and an Apple HFS or HFS+ volume (hybrid Mac and PC discs). |
Windows PE
| Tool | Kind | What it does |
|---|---|---|
| apitable | program | Write the API table of a 32-bit Windows DLL: every export, its calling convention and the bytes of arguments it takes, read from the DLL's own code. |
| peinfo | program | First look at a Windows executable or DLL: what it is, how it was built, what it uses. |
| peres | program | List and extract the resources inside a Windows executable or DLL: version information, string tables, dialogs, menus, icons, bitmaps, sounds and the game's own data. |
| probegen | program | Write a probe library: a stand-in for a DLL a game imports, which logs every call it gets. |
| readdata | program | Read typed values from a Windows binary at Ghidra addresses (the DAT_ globals in pseudocode). |
| relocs | program | List the pointers in a PE file's data, found from its base relocations. |
| stackstrings | program | Find text that the code builds on the stack a few bytes at a time, which a list of strings in the file does not show. |
| vtable | program | List the slots of a table of function pointers (a C++ vtable) with the functions they hold. |
16-bit DOS
| Tool | Kind | What it does |
|---|---|---|
| dbx_control | program | Drive DOSBox-X's built-in debugger from a script, through its debugger control channel. |
| dosinfo | program | First look at a DOS or Windows 3.x executable (MZ, NE): what it is, how it was built, what it uses. |
| fileio_trace | program | Turn a DOSBox-X file log into a per-file map of reads: which file, at which offset, how many bytes, in what order. |
| ne | library | Read MZ (DOS) and NE (16-bit protected mode, Windows 3.x) executables: the shared parser behind dosinfo.py and readseg.py. |
| nedis | program | Disassemble 16-bit code with its relocations applied and its names shown. |
| omf | program | Read Intel/Microsoft OMF object files and libraries (.OBJ, .LIB): the format of the DOS and 16-bit Windows compilers (Borland, Microsoft, Watcom). |
| readseg | program | Read typed values from a DOS (MZ) or 16-bit NE executable at Ghidra's seg:off addresses. |
| td_rust | library | Rust code from Borland Turbo Debugger symbols: record types, the data segment's variables, and the Pascal reader/writer they use. |
| tdinfo | program | Read Borland Turbo Debugger symbols (TDINFO, signature FB52) from a DOS or NE executable. |
Triage
| Tool | Kind | What it does |
|---|---|---|
| axes | program | Find which axis is "up" in a 3D game's coordinates, its sign, and whether they are mirrored. |
| binview | program | Draw a file as a picture, one pixel per byte (or per block of bytes), to see its structure at a glance: headers, tables of records, text, code, compressed or encrypted parts, padding. |
| buildid | program | Pin down which build of a game this is: everything a copy says about its own version. |
| cite_labels | program | Make function labels from a reimplementation's citations: every item whose comment says "Original: FUN_xxxx" names that original function. |
| compare_trees | program | Compare two copies of a game file by file: are two releases (a CD, a GOG or Steam copy, a patch) the same program and the same data? |
| constants | program | Name the algorithms in a binary by their constants: random number generators, checksums, hashes, ciphers, compressors and well-known maths tricks. |
| coverage | program | How much of the original's code does the reimplementation cite? |
| coverdiff | program | Find the code that runs only when you do something in the game: compare the code coverage of two runs, one without the action and one with it. |
| dates | program | Find dates and times stored in a binary file: a save's time, an archive entry's date. |
| decomp_query | program | Answer questions about a Ghidra export (scripts/ghidra-export.sh) without reading it whole. |
| deviations | program | Collect every known difference from the original into one ledger. |
| dictionary | program | Check a project's data dictionary (labels/dictionary.tsv) and print it as a table. |
| exportcov | program | How much of a program's code a Ghidra export covers, where the gaps are, and where the functions it missed probably start. |
| filetypes | program | What each file of a game is, from its bytes: the format its first bytes name, its size and its entropy. |
| fixity | program | Keep a copy of a game unchanged over the years, and prove it: package it as a BagIt bag with a checksum for every file, and check the checksums again whenever you like. |
| hashnames | program | Name hashed strings: find which hash function a game uses for its names, and which name each hash constant stands for. |
| insns | program | List every instruction of a kind in a program: every port read or write, every interrupt, every timer read, every division, every far call. |
| match_functions | program | Match the functions of two builds of a game, and carry your labels from one to the other: a patch, another release, a demo, a version for another platform with the same compiler. |
| memscan | program | Find where a running game keeps a value, from memory dumps taken while you watch the value change: the gold, a unit's health, the turn counter, the random seed. |
| needs | program | List what a game needs to run: CPU features, operating system, graphics and sound APIs, libraries, extenders, DRM and media, each with its evidence. |
| needs_signs | library | The signs needs.py reads: imported libraries, section names, files and strings, each with the need it shows. |
| pointerpaths | program | Find a way to the address of a value that moves: a chain of pointers from a fixed address (a global variable of the program) through the game's objects to the value. |
| refs | program | List every instruction that refers to an address. |
| report_issue | program | List a port's reports, and file one as a GitHub issue, once per place. |
| screenmarks | program | Mark positions read from the game's memory on a screenshot, through the camera's matrices. |
| sentences | program | List the sentences in a program: the long strings a person wrote for players, such as messages, mission text, item descriptions and notes left by the developers. |
| sigscan | program | Byte signatures with wildcards: make them from functions you have named, and find them in another build, a memory dump or a game that uses the same library. |
| similar | program | How alike two files are, when they are not identical: two versions of an executable, a patched data file, a renamed file, or a library the game links against. |
| tables | program | Find the sine and cosine tables in a binary or a data file, and say exactly how each was made: its length, its scale, its number type and how it was rounded. |
| versiondiff | program | Compare two editions of a game, folder against folder or disc image against disc image, and write the data delta for docs/versions.md: files added, removed and changed, by folder, with the executables' link dates and the languages each edition has. |
Emulators
| Tool | Kind | What it does |
|---|---|---|
| call_trace | library | Record the calls an emulated function makes to chosen functions, in order, with call sites. |
| dos_emu | library | Call functions inside a 16-bit DOS or Windows 3.x program (NE or MZ) under Unicorn. |
| dos_env | library | A small DOS, BIOS and PC for tools/emu/dos_emu/, so a whole 16-bit program can run headless. |
| fragments | program | Capture fragments of a DOS program's main loop, before and after, from one headless run. |
| mem_trace | library | Record which instructions read and write chosen memory while an emulated function runs. |
| pe32_emu | program | Call routines inside a 32-bit Windows (x86) game under Unicorn, without running the game. |
| pe_emu | library | Call functions inside a Windows x64 game's EXE and DLLs under Unicorn, without running the game. |
Formats
| Tool | Kind | What it does |
|---|---|---|
| catalog | program | A first resource viewer: every file of a game, what it is, and what the project's decoders make of it, as a static HTML page for people and a JSON manifest for agents. |
| derived | program | Find which unexplained fields next to geometry are computed from it, such as bounds, centres, normals and plane distances. |
| fields | program | Find the fields in many messages or records of one kind: which byte offsets are constant, which count up, which hold the length, which pick the kind of message, and which vary. |
| markers | program | Mark the fields of a data file with unique values, then find where the game puts each one in memory. |
| pcap | program | Read a network capture (.pcap or .pcapng, from Wireshark or tcpdump) and split it into the conversations of a game: who talks to whom, on which ports, and the bytes of each message. |
| pngio | program | Read and write PNG pictures with the standard library alone. |
| rawimage | program | Turn raw pixel data into a PNG: a dump of video memory, a screen saved by a DOS game, or a block of a data file that may hold a picture. |
| reader | library | A binary reader (little-endian, with big-endian and variable-length reads) for prototyping decoders of a game's data files. |
| shaders | program | Find the shaders inside a game's files: compiled Direct3D 9 and 10-12 shaders, SPIR-V, and shader source text in GLSL, HLSL and the OpenGL ARB assembly. |
| shadetable | program | Read a shade, fog or remap table of a palette game: for each level, the colour that each palette colour turns into. |
| skeleton | program | Find skeletons and poses in a model or animation file: arrays of parent indices, and runs of unit quaternions. |
| swfinfo | program | First look at a Flash game: an SWF file, or a Flash projector (an .exe with the SWF inside). |
| timestamps | program | Decode a number as every common kind of timestamp, or find timestamps inside a file. |
| validate | program | Run a decoder over every file of a type and report which files fail or leave bytes unread. |
| xorscan | program | Find the key of a simply obfuscated data file: XOR with one byte or a repeating key, adding a byte, a key that steps by a fixed amount each byte, or each byte XORed with the one before. |
The running game
| Tool | Kind | What it does |
|---|---|---|
| align | program | Line up a reference picture of a screen with a capture of the screen now: offset and scale. |
| emulock | program | Say who is using a shared emulator or VM, since when and for what, so two sessions do not drive one game at once. |
| emupc | program | Write the files that run the original in an emulated x86-64 PC: QEMU, a Debian cloud image, cloud-init, Wine with 32-bit libraries, Xvfb and a window manager, and the game's disc as a CD-ROM drive. |
| frida_trace | program | Trace calls to chosen functions in a running game, with Frida. |
| gdbremote | library | A small client for the GDB remote protocol: registers, memory, breakpoints, always a detach. |
| harness | program | Put together the modules a game needs to run: a runtime, and a layer for each need it lists. |
| loopcut | program | Cut a recorded path into one closed loop: a racing line, a patrol, a lap of a level. |
| memlog | program | Read a recording made by memrec.py: a summary, a CSV table, or one sample by time. |
| memrec | program | Read a running game's memory from outside: snapshots to diff, and recordings of named values. |
| modfolder | program | Put a folder of changed files into a game's install folder, list what is there, take it out. |
| shot | program | Keep a capture of the screen, a window or a file under a name of its own. |
| winegdb | program | Attach to a program running under Wine or CrossOver through winedbg's GDB server, read its registers and memory, wait at breakpoints, and always detach so the program runs on. |
| winput | program | Build and run winput, which sends keys, mouse moves and clicks to a game from inside Wine. |
Verify
| Tool | Kind | What it does |
|---|---|---|
| bitcompare | program | Compare two raw dumps value by value, bit for bit: ground truth against a port's output. |
| ramdiff | program | Compare the game's memory frame by frame, from the original and from the port, and report the first frame and the first addresses that differ. |
| replay | program | Check a port against a recording of the original that was read from outside, sample by sample. |
| seqdiff | program | Compare two traces line by line and show the first place they differ. |
Ghidra scripts
| Tool | Kind | What it does |
|---|---|---|
| AddMemoryBlocks | ghidra | Build a program's memory from raw pieces: a booter game's load map, an unpacked memory dump, a console's ROM banks, or overlays loaded at run time. |
| ApplyLabels | ghidra | Apply a labels file (labels/names.tsv style: address<TAB>label[<TAB>evidence]) to the program. |
| ExportAddressBatch | ghidra | Decompile selected code addresses in an already analyzed Ghidra project. |
| ExportAddressRefs | ghidra | Export direct references and their containing functions for selected Ghidra addresses. |
| ExportAll | ghidra | Export everything an agent needs to read a binary as text, after Ghidra's auto-analysis. |
| ExportCallArgs | ghidra | List every call to chosen functions with the arguments the decompiler can resolve at each call: constants, strings and global addresses. |
| ExportDisasm | ghidra | Write a disassembly listing (address, bytes, instruction) from an analysed project. |
| ExportNamedFunctions | ghidra | Decompile functions whose Ghidra names contain any supplied search term. |
| ExportVtableSlots | ghidra | Print executable targets from selected 64-bit MSVC vtables in a Ghidra project. |
REA
| Tool | Kind | What it does |
|---|---|---|
| mcp_client | library | A small MCP client for one stdio server, for scripts that drive a provider such as REA. |
| rea_session | program | REA on a game's binary from a script, with the project's labels and a saved snapshot. |
Models
| Tool | Kind | What it does |
|---|---|---|
| ask | program | Ask a question of GameFrame's know-how in plain words, and get an answer that cites entries. |
| client | program | Shared clients for GameFrame's model-powered tools (tools/llm/). |
| decision | program | Ask a configured decision model bounded choice, yes-or-no and scoring questions. |
| decision_feedback | program | Save explicit decision answer corrections per OS user and export a local SFT dataset. |
| fake_api | program | A stand-in for the Claude API and the claude command, so the tests spend nothing. |
| headless | program | Run one of GameFrame's agents through Claude Code and save its report. |
| locate | program | Find a screen element, or a reference screen, in a capture with a vision model. |
| name_functions | program | Suggest a name, a signature and a summary for every unnamed function. |
| skillcheck | program | Check that each skill works on its own: give an agent one skill and a task on the sample game. |
Sites
| Tool | Kind | What it does |
|---|---|---|
| check | program | Check a project's website before it is published: safe to share, and useful to read. |
Installing builds
| Tool | Kind | What it does |
|---|---|---|
| desktop | library | A build as a folder on Linux or Windows: the programs and resources in GameFrame/NAME/, a start script beside them, and a menu entry. |
| install_app | program | Build a project's release programs and install them in the GameFrame folder, as an application the player can open. |
| launch | library | The small start scripts an installed build runs: make the data folder, go into it, and start the build's program with its arguments and the player's own. |
| macos | library | A build as a macOS application bundle: NAME.app with the programs in Contents/MacOS, a start script as the bundle's executable, the resources and the icon in Contents/Resources, and an Info.plist. |
| places | library | Where an installed build goes on each system, and where its player's data goes. |
Scripts
| Tool | Kind | What it does |
|---|---|---|
| codex-cloud-environment-install | script | Install the pinned toolchain and checks used by the GameFrame Codex Cloud environment. |
| dosbox-run | script | Run a DOS program under DOSBox-X from the command line: the whole original game, for ground truth that a single emulated function cannot give (frames, demos, file access, timing). |
| env | script | Source this file to use GameFrame from a shell or an agent session. |
| extract-installer | script | Get a game's files out of the installer or package it came in, without running it. |
| ghidra-export | script | Analyse one or more binaries with Ghidra (no window) and export them as text an agent can search: decomp.c, functions.tsv, strings.txt, imports.txt, exports.txt per binary. |
| ghidra-run | script | Run one of the tools/ghidra scripts on a binary in an existing, analysed Ghidra project, without analysing it again (about a minute of start-up, so batch addresses in one run). |
| lib | library | Shared settings for the scripts: where Ghidra, Java and the Python environment are. |
| mcp-provider | script | Launch one opt-in external MCP provider for a GameFrame project. |
| new-project | script | Start a reverse-engineering project for one game, with GameFrame's toolkit and playbook. |
| new-site | script | Start a website for a project: a VitePress site that logs the work and shows what it found. |
| setup | script | Check, and optionally install, everything GameFrame uses. |
| update-project | script | Bring a project made with GameFrame up to GameFrame's current version. |
| zcc | script | zcc: rustc's linker for 32-bit Windows DLLs (i686-pc-windows-gnu). |