Setting up decompdecomp on Windows

Work packet: WP-011: Case File #1 decompdecomp Collaboration holds the trial’s rules, status, checklist and decision log. This page is how to carry them out.

These steps get a Windows 11 PC ready to join the Case File #1 cooperative decompilation room, which is part of WP-011. There are five installs, then a build that checks the collaborator’s figures, then the join.

What the trial is for. Matched C rebuilds the original 2002 Windows program. It isn’t a port, and it isn’t engine code. The project’s deliverable is still an independent ScummVM engine, written from documented behavior. The decompilation is research evidence for that engine (WP-011 §ScummVM integration boundaries). The trial asks a narrower question: does decompdecomp produce that evidence faster or more cheaply than Ghidra work alone? decompdecomp’s guide marks its Windows PC support as beta, so expect some friction.

Where each instruction comes from

The page mixes three kinds of instruction. Each one is tagged with its source:

Tag Source What it covers
decompdecomp The tool’s README and GUIDE, read 2026-11-11 against release v1.0.10-alpha.1 How the tool installs, which compilers it supplies, how rooms and agents work
Case File #1 project The collaborator’s project files: its README, tools/configure.py and config Which compiler this game is matched with, the build commands, where the game files go
WP-011 This project’s trial rules Spend caps, helper count, how the trial is measured, what gets recorded, hygiene

decompdecomp is young and self-updates, and its docs leave some screens undescribed. Where they don’t cover a step, this page says so, so you know to look and write down what you find.

Before you start

1. Install decompdecomp

Source: decompdecomp.

  1. Open the latest release and download decompdecomp-<version>-windows-x64-setup.exe. The guide also mentions an MSI; use whichever Windows installer the release actually lists.
  2. Run it. Setup also installs WebView2 and .NET Framework 4.8 if they’re missing. If Windows SmartScreen stops an unsigned installer, choose More info → Run anyway. Then start decompdecomp from the Start menu.
  3. Record the version you installed. The app offers one-click updates, and WP-011 records the tool version with every finding.

2. Install the Visual C++ 6.0 compiler

decompdecomp: the GUIDE’s platform table lists, for Windows PC, “Visual C++ 6.0 · 7.0 · 7.1 · 2005 · 2008 · 2010 · 2017”, plus any other version “from your own copy” for 32-bit games. The GUIDE says proprietary compilers install after you accept their licenses in a Setup screen, but v1.0.10-alpha.1 has no Setup entry in its sidebar. The compilers install from Compilers & tools instead (observed 2026-11-11).

Case File #1 project: the game is matched with Visual C++ 6.0 by default, with one file on 7.1. Those two are the ones you need. Changed 2026-11-15: Mony made decomp.me’s msvc6.5pp, the VC6 Processor Pack, the project’s default, added as a custom compiler (WP-011). Every member needs it installed too (Mony, 2026-11-16). It isn’t on decompdecomp’s card; step 5 below adds it.

You don’t need to install Visual Studio, old or new. decompdecomp’s docs don’t mention it. What matters is the period compiler that decompdecomp supplies, because every attempt is rebuilt with that compiler and compared byte for byte.

decompdecomp's start screen. Compilers & tools is in the sidebar, bottom left.

  1. Open Compilers & tools from the sidebar.
  2. On the Microsoft Visual C++ 6.0, 7.0 and 7.1 (PC) card, choose Install, and accept the license if it asks. That one card covers both versions this game needs. Skip the 2005–2010 and 2017 cards. Use Microsoft Visual C++ (your own copy) only for msvc6.5pp, in item 5.
  3. The install downloads the three compilers from the decomp.me community’s archives (GitHub releases and files.decomp.dev) and prints where it put them: %LOCALAPPDATA%\decompnet\toolchains\msvc, with a 6.0, 7.0 and 7.1 folder, each holding Bin\CL.EXE (observed 2026-11-11). Step 6 uses that folder.
  4. WP-011: the 6.0 folder holds VC6 RTM, build 8168 (its CL.EXE, C1XX.DLL and C2.DLL all report 12.00.8168, observed 2026-11-14). Case File #1’s own C++ was built with the later Processor Pack, build 8943. The project’s default is now the Processor Pack compiler in step 5. See WP-011 §decomp.me’s VC6 builds.
  5. Case File #1 project: add the Processor Pack compiler, decomp.me’s msvc6.5pp.
    1. Download msvc6.5pp.tar.gz from the msvcwin9x release of OmniBlade/decomp.me. It’s about 6.7 MB, and the copy used here had SHA-256 0DE4C5DC848D59B8AF842EB157FFE8B1D24FBA6621B18BE67EA9932E219CE14E.
    2. Extract it to a folder of its own beside decompdecomp’s projects, for example %USERPROFILE%\Decomp\compilers\msvc6.5pp. Keep it out of %LOCALAPPDATA%\decompnet\toolchains, which decompdecomp manages itself. The folder holds Bin, Include, MFC and ATL.

      $dst = "$env:USERPROFILE\Decomp\compilers\msvc6.5pp"
      New-Item -ItemType Directory -Force $dst | Out-Null
      tar -xzf "$env:USERPROFILE\Downloads\msvc6.5pp.tar.gz" -C $dst
      
    3. In Compilers & tools, give that folder to the Microsoft Visual C++ (your own copy) card. It should read the version as 13.00.9044: the copy’s C2.DLL, the Processor Pack’s code generator. CL.EXE is 12.00.8804 and C1XX.DLL 12.00.8964 (observed 2026-11-16).

    decompdecomp: a copy’s name in a project is MSVC/own-<C2.DLL version> (kits/visualcpp.py, consoles/pc/__init__.py, v1.0.10-alpha.2). So a member’s copy has to be the same build as the host’s for the room’s project to find it. The same archive guarantees that (Inferred from the source).

The Compilers & tools screen. The Microsoft Visual C++ 6.0, 7.0 and 7.1 (PC) card is at the right of the second row, and Ghidra is at the top left.

3. Install Java

Ghidra runs on Java, and step 4 uses it twice: for decompdecomp’s own Ghidra and for a standalone copy. Ghidra needs a 64-bit Java development kit (JDK), version 21 or newer; its install guide names the minimum for each release (JDK 21 for 11.x and 12.x). A Java runtime alone isn’t enough, because decompdecomp looks for javac.exe beside java.exe (why). Install the JDK before Ghidra, so decompdecomp finds it instead of reaching for its own Java, which on Windows needs WSL 2.

On Windows

  1. Install a 64-bit Windows JDK, version 21 or newer. Any JDK that meets Ghidra’s minimum works; a long-term support (LTS) release, 21 or 25, changes least over the trial. Oracle JDK 27.0.1 also works with decompdecomp’s Ghidra (observed 2026-11-13).
  2. In a new PowerShell window, check that decompdecomp will accept it. This repeats its own test, and must print True and a version of 21 or more:

    $java = (Get-Command java).Source; $real = (Get-Item $java).ResolvedTarget ?? $java
    Test-Path (Join-Path (Split-Path $real) 'javac.exe'); java -version
    

    False means the java found first is a runtime without javac, or an older Java ahead of the new one on the PATH. (Get-Command java).Source shows which.

  3. If decompdecomp is open, quit it completely and start it again, so it sees the new PATH.
  4. Record the JDK’s vendor and version for the trial record.

Not on a Raspberry Pi

decompdecomp doesn’t run on a Pi, and this setup doesn’t put Ghidra there either. decompdecomp’s README lists Linux on x86-64 only, v1.0.10-alpha.1 ships no ARM64 Linux package, and its Visual C++ compilers are 32-bit x86 Windows programs, which it runs on Linux through wibo or wine (read 2026-11-11). Join the room from the Windows PC, or from an x86-64 Linux machine. The studio’s Pi 5 test box has OpenJDK 21 and does no decompilation work (Jeff’s call, 2026-11-11).

4. Install Ghidra

decompdecomp: the GUIDE names Ghidra as the analysis tool for Windows PC projects started from scratch. For x86 work it is optional: it writes the C drafts that agents start from (“Ghidra (optional) for x86”). The GUIDE describes no Ghidra step for joining a room.

Case File #1 project: the collaborator’s function list came from Ghidra, so joining his project doesn’t need Ghidra to find functions. This project needs Ghidra anyway for WP-001.

Ghidra inside decompdecomp: install a Windows JDK first

v1.0.10-alpha.1 offers Ghidra on its Compilers & tools screen (540 MB; see step 2’s screenshot). Ghidra needs a Java development kit (JDK), version 21 or newer. decompdecomp uses the computer’s own JDK when the java on the PATH belongs to one: version 21 or newer, with javac.exe beside java.exe (a Java runtime alone doesn’t count). Otherwise it installs its pinned Eclipse Temurin 21, which on Windows is a Linux build that runs under WSL 2. Without a WSL Linux distribution, that install stops with “WSL has no working Linux distribution yet” (observed 2026-11-11). The README and GUIDE don’t mention any of this; it is read from decompdecomp’s source (toolchains.py, forks/ghidra.py).

So give it a Windows JDK first:

  1. Install it and run the check in step 3, then restart decompdecomp.
  2. Choose Install on the Ghidra card. It downloads Ghidra only, with no Java development kit, and needs no WSL distribution. Observed 2026-11-13 with Oracle JDK 27.0.1: it installed Ghidra 12.1.4 into %LOCALAPPDATA%\decompnet\toolchains\ghidra, and that folder’s .decompnet-toolchain.json says "wsl": false.

There are two other ways through. Whichever you pick, record it in the trial record, because it changes what the agents start from.

Ghidra for this project’s own analysis

decompdecomp keeps its own Ghidra for the app. For WP-001 and your own reading of the executable, install a Windows copy:

  1. Use the JDK from step 3. Ghidra’s install guide names the minimum for each release (JDK 21 for 11.x and 12.x).
  2. Download Ghidra from ghidra-sre.org or its GitHub releases. Unzip it to a folder with no spaces in the path, such as C:\tools\ghidra_<version>, and start it with ghidraRun.bat.
  3. Record the Ghidra and JDK versions. The docs don’t say whether decompdecomp can use this copy instead of its own, so don’t count on it.

5. Set up an agent provider and a spend limit

decompdecomp: its GUIDE describes no budget cap, but v1.0.10-alpha.2 has one (observed 2026-11-16). Under Settings → Agents, Budget stops helper agents once a project’s agents have spent that much in US dollars, “as the agents report it”. 0 means no limit, which is the default. Its dollars are the same app-priced figure as the spent figure below, so for a subscription such as a Claude plan the budget is an API-equivalent stop, not your bill. The same panel’s Functions per agent session (default 8) starts a fresh agent session after that many functions, which keeps each session’s context small. Otherwise, when a provider limit is hit, it waits for the limit to reset and then carries on. It pauses only after five fast failures in a row. The guide reports that a small function cost about 8 cents with Claude Code; that figure is the tool’s, not ours.

Don’t take the trial’s cost from decompdecomp’s own spent figure. The collaborator reports (2026-11-12) that it prices subscription usage, such as a Claude plan, as if it were API usage. Take the cost from the provider’s billing page.

WP-011: set both stops. The provider’s own limit caps the real spend, and decompdecomp’s Budget stops the agents at the trial’s app-priced cap.

  1. Pick a provider.
    • API key: DeepSeek, OpenRouter, OpenAI, or any OpenAI-compatible API, including a local model. decompdecomp recommends this route.
    • CLI agent: Claude Code, Codex CLI, and others. The app installs the agent and tells you how to sign in.
  2. In the provider’s console, set the strongest spending limit it offers before creating the key. Providers differ: some have a hard cap, others only prepaid credit or budget alerts. Prepaid credit equal to the trial’s dollar cap works as a hard stop.
  3. In decompdecomp, open Agents & models → API key and paste the key. Don’t put it in any file in any repository.

Give the agents Mony’s matching notes

Case File #1 project: Mony reports (2026-11-16) that one standing instruction “greatly improves the rate of matches”: point the agents at the MSVC matching notes in his outmatch repository. You don’t need outmatch’s tools for this, only its notes.

  1. Clone outmatch into decompdecomp’s own folder, beside its projects:

    git clone https://github.com/monyarm/outmatch "$env:USERPROFILE\Decomp\outmatch"
    
  2. In the decompdecomp app, not a terminal, go to Agents & models, open Agent prompts, then open App instructions. Tick Use a custom override. The box then becomes editable, with decompdecomp’s built-in text still in it. Add this line at the end, with your own full path, and choose Save prompts. Don’t clear the text that’s there: an override replaces decompdecomp’s own instructions rather than adding to them.

    Read C:\Users\<you>\Decomp\outmatch\skills\msvc-matching\references for more info on how to match functions.
    

    Point it at the references folder, not the skill. Mony reports that decompdecomp doesn’t load skills well. decompdecomp: App instructions is one of four prompt fields. The others are the three initial prompts, for ROM work, imported projects and polishing. It can be set for all helpers or for one helper, and it’s literal text, not a template (src/decompnet/app/prompt_settings.py and static/js/prompt-settings.js, v1.0.10-alpha.2). The Agent prompts panel sets it for all helpers. Each running helper’s Prompts link sets it for that helper only.

  3. Pull the clone before each session. Mony updates the notes.

WP-011: the notes are large. One file, brickpark-levers.md, is about 335 KB (observed 2026-11-16). If an agent reads the whole folder for every function, that’s a lot of tokens per attempt. Watch the first few attempts’ cost against the cap. If reading the notes eats the budget, name the smaller files in the instruction instead.

Which model. From the collaborator’s own use on this game (Reported, 2026-11-13): DeepSeek V4.1 Flash through opencode made most of the cheap early matches, and Claude Opus is very good at this, especially as several instances. Claude Fable used up usage too fast for him to measure it. The functions left are the larger ones, so expect a higher cost per match than his early figures. Details are in WP-011.

6. Check a build of Mony’s repository

WP-011. Build one of Mony’s pushed commits and measure it. This is what turns his reported progress into a local measurement. It isn’t a step before joining the room: the room itself credits each match to the agent that made it (step 7), so the trial doesn’t need a “before” build to show what our agents added. Treat the clone as read-only. Pull his pushes; don’t push.

Case File #1 project: the build needs Python 3.12 and ninja on the PATH. Make sure python is a real Python install, not one bundled inside another app; py -3.12 avoids the problem. In the clone:

py -3.12 tools/configure.py casefile1 --msvc "$env:LOCALAPPDATA\decompnet\toolchains\msvc"
ninja
ninja rebuild

--msvc takes the folder that holds 6.0\Bin\CL.EXE, which is step 2’s install folder. The one file built with 7.1 finds its compiler in the same folder.

ninja rebuild reassembles the whole program from C where the C matches and from your copy’s bytes elsewhere, and reports whether the result is byte-identical. objdiff.json gives per-function progress in objdiff.

Record, with the commit hash of the clone:

7. Join the cooperative room and run the trial

decompdecomp for the mechanics, WP-011 for the limits.

  1. Ask Mony for the current invite link, privately. The room runs over a temporary tunnel, so the link changes every time he restarts decompdecomp, and an old one won’t work.
  2. In decompdecomp, choose New project → Join a team’s room. Paste the link, type your display name, and pick your copy of the game (orig/casefile1.exe). decompdecomp: the host credits every match your agents make to <display name>.<agent>, for example jeff.claude-1, and you keep the same name when you reconnect. Pick one name and keep it: that’s how the trial’s matches are counted.
  3. WP-011: before pressing Start agents, check that the agents have the matching-notes instruction, and set a small helper count: 2 for the trial. decompdecomp: one start can launch up to 24; the docs don’t say where the count is set.
  4. WP-011: stop when the trial cap is reached (100 functions or your dollar cap, whichever comes first). Then record the matches your agents made, from the “who matched what” list on the project’s overview. On the host they show as <display name>.<agent>, so Mony’s copy can confirm the count.

Keep each project’s material in its place

There are three separate places. Nothing moves between them except what the Trial record below lists.

Place What lives there Rules
This repository (public) Docs, evidence, the trial record Never commit a room link, an API key, the game files, a decompdecomp project, or matched C. .gitignore blocks tools/decomp/, decompdecomp/, .env files and the game data, but those rules are a backstop, not the process.
Mony’s repository (private) Matched C, project config, the game files in gitignored orig/ Its contents stay off this public site (WP-011 §Legal and repository hygiene). Read-only for us: Mony pushes the room’s progress, ours included, every day or so.
decompdecomp’s own folder (Decomp under your user folder, ~/Decomp in its docs) The app’s projects, logs and room state Already outside both repositories. Leave it there.

Run git status before every commit, in both repositories.

Trial record for WP-011

Record these in the WP-011 decision log and trial metrics.

Setup (once):

Build check (step 6):

Post-trial (step 7):