Repository navigation
Releases
v4.0 — Gabriel Knight 1 supported end to end 🎉 (the first SCI2 game)
🎉 Gabriel Knight: Sins of the Fathers (1993) is supported, end to end. It is the first SCI2
(SCI32) title, and the sixth game the analyzer detects, guards and patches. The same engine is
used throughout, with no game-specific analysis code.
What the patched GK1 does
-
The bayou ritual, day 6. Using the croc mask, or walking into the ritual, needs the mask
worn and the snake tattoo painted. In the stock game, either one missing means Dr John
kills you at the ritual. -
Grace's room, day 10, the finale's point of no return.
- The requirement: both guises in hand, and the rod and a signal device left on the
confessional bench. - Where it refuses: at the hallway keypad, the player's last click before the scene takes
over. An earlier build refused inside the scene. Its message was drawn over a black screen,
and dismissing it crashed the game, so the refusal moved to the keypad.
- The requirement: both guises in hand, and the rod and a signal device left on the
-
Guard modes in the game's own control panel.
- Full: refuses.
- Lite: refuses once, then says "You have been warned!" and lets the stock behaviour run.
- Off: the stock game.
The four bottom buttons move up over the gargoyle and the picker takes their slot, inside the
panel and inside the area GK1 lets the mouse reach.
All of it was play-tested in the patched game: the bayou (B1–B3), the hounfour (G1, G2, G4–G7),
the modes (M0, M2) and the picker (C1). The rows are in docs/GK1-TESTPLAN.md.
What it took
- Reading the game's own patches. GK1's CD keeps 62 of Sierra's patched scripts in
PATCHES/. The decompiler's lowercase-only scan missed them, so the analysis had been reading
scripts the game never runs. That's fixed in our sci-tools fork (json-ir@ 352916e) and the
pin is bumped. - Scene refusals at the click that starts the hand-over.
trigger.scene_routesfinds the
player-controllable armings that cue the hounfour's scene dispatcher. The refusal is guarded by
the dispatcher's own scene variable. - A recompiled Main on SCI2, carrying the mode and warned globals. All 44 objects keep
Sierra's class numbers, superclasses and property counts. - A third guard-picker shape:
patcher._install_sci2_bar_chooser, derived by shape.- The host: the icon bar whose
initadds the Save and Restore icons. - The face: a runtime text bitmap made the way the game's own
DTextmakes one. - The sizes: every length is measured at run time.
- The host: the icon bar whose
False positives
Flags 14, 42 and 269 are reported by the detector but are not softlocks: each was traced in
the source and ruled a false positive. None gets a guard.
The GK1 oracle now has two lists:
- Required: the real softlocks.
- Tolerated: false positives the detector may flag or not, with neither outcome failing a
check.
The test suite
- Trimmed to the regression gate: the frozen goldens, LB2's watched surface, the five
oracles, the emitted patch source of all six games, and the model-cache check. - Runs locally: the emission check now builds one game per process, so the peak is a single
game, which fits a 5 GB WSL VM. - Green: 146 passed, 0 declared red, 0 unexpected, 0 crashed, run locally.
Also in this release
- LB2: the press pass is no longer required. It was ruled a gate rather than a stranding, and
its two cab guards left the emission; the other mechanism pins were re-pinned to the audited
rows. - Goldens: LSL2, KQ4 and KQ6 are refreshed, and the only change is the new
scene_carryinskey.
v3.3 — lite guards and the guard picker, working and tested (KQ5 + LB2)
Lite guard mode and the in-game guard picker now work and are tested on KQ5 and LB2.
What Lite means
Every softlock guard refuses once, then says "You have been warned!" and lets the stock
behavior run — the player gets a second thought, never a wall. The picker (in the game's own
control panel) switches between Full (guards refuse), Lite, and Off (stock) at any
time, per save.
Fixed on the way — three emission defects, each found in play, each red-first
- The refusal now ends the click. The deny path never claimed the event, so where several
cast members route one click to one handler (KQ5's toy shop, the eagle), one click both
refused and sold. The refusal now consumes the event exactly as the action it replaces did. - One action, one warned bit. Stacked guards each owned a warned bit, so Lite's two-step
became a three-step with contradictory boxes (the hermit, Charon's ferry). Nested wraps now
share the innermost bit. - A body's own condition is hoisted, not guarded. A guard wrapped around a one-armed
conditional spoke where stock was silent (the mid-cliff sled). The condition stays outside;
the failing state is byte-for-byte stock.
Also: scicompile emitted wrong bytecode for value-position and/or (11 sites) — fixed and
pinned; and a ScummVM List node-walk crash that made automated testing nondeterministic is
worked around (tools/scummvm-patches/0005).
How it was tested
- KQ5: the whole emitted lite surface is attributed — 21 inventory-offer sites driven end to
end by the scripted-click harness (no hands, virtual clock), 9 positional/click sites
play-verified, one ruled unreachable with the reasoning recorded
(docs/KQ5-LITE-MANUAL-CHECKS.md). - LB2: the act-flip holds and guard modes play-confirmed; the picker ships with panel probes.
- Every emission change measured byte-for-byte against pre-change trees; LSL2/KQ4/KQ6 goldens
byte-identical throughout. KQ6 is now a golden game (full-surface frozen). - Suite: 815 passed, 0 known-red, 0 unexpected, 0 crashed.
Also new: `tools/reconstruct_selector_vocab.py` — rebuilds a missing `vocab.997` selector
table for game releases that shipped without one (the LB2 floppy), by voting two builds of the
same game against each other.