# Yamagi Quake II

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/yquake2/

Yamagi Quake II emulates Quake II, Quake II: The Reckoning, Quake II: Ground Zero and Quake II: Capture the Flag. It reads 6 files, 1 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Game engine |
| Source | [https://github.com/yquake2/yquake2](https://github.com/yquake2/yquake2) |
| Version | 8.71pre, stated in [`src/common/header/common.h`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/header/common.h) |
| Revision | [yquake2/yquake2@9dbf699273e2](https://github.com/yquake2/yquake2/commit/9dbf699273e2546f3ad14cff3dee6a51a518cd2a) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/yquake2.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/yquake2.json) |
| Cores | yquake2 |
| Systems | [Quake II](https://abdess.github.io/retrobios/systems/id-software/#quake-ii), Quake II: The Reckoning, Quake II: Ground Zero, [Quake II: Capture the Flag](https://abdess.github.io/retrobios/systems/id-software/#quake-ii) |

**Install this emulator's files**

With Batocera or RetroPie: the installer finds Batocera or RetroPie and its BIOS folder, then downloads only the files Yamagi Quake II reads there and checks each one.

Open a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator yquake2
```

**Technical notes**

Quake II source port. BASEDIRNAME = "baseq2" (src/common/header/common.h :36). FS_AddDirToSearchPath ([`src/common/filesystem.c:1646`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1646)) loops pak%d.<ext> from 0 to MAX_PAKS-1 (=99) across fs_packtypes = { pak, pk3 } for the active game directory, loading each one as a protected pak. baseq2/pak0.pak is the retail data, and id's 3.20 point release adds baseq2/pak1.pak, baseq2/pak2.pak and the Three Wave CTF data under ctf/.

Supported official mods are listed in first_mods[] ([`src/common/filesystem.c:1331`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1331)) = { "baseq2", "xatrix", "rogue", "ctf" }. Mod game dirs are selected via the `game` cvar (FS_InitFilesystem + FS_BuildGameSpecificSearchPath, [`src/common/filesystem.c:2075-2097`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L2075-L2097)). Each mod ships its own pak0.pak / pak1.pak (The Reckoning, Ground Zero, Three Wave CTF). Zaero support uses the same path layout (`game zaero`) but no official repository under the yquake2 org.

The engine never hashes a pak. Validation is "does the pack read as a valid PAK header" (FS_LoadPAK, [`src/common/filesystem.c:873`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L873)). Missing files produce "Couldn't load %s" at Com_Error level only for the baseq2 lookup when the game cannot find any game assets at all.

Background music is streamed from <game>/music/track02.ogg ... track22.ogg by OGG_InitTrackList (src/client/sound/ogg.c), not required for gameplay.

## Files

**6 files**: 1 required, 5 optional.

By kind: 6 game data.

In this collection: 4 in repo, 0 missing and 2 unsourceable.

## Game data

| File | Status |
|---|---|
| ** ### `pak0.pak` ** - Path: `baseq2/pak0.pak`- System: [Quake II](https://abdess.github.io/retrobios/systems/id-software/#quake-ii)- Retail Quake II data pak. Not hash-validated. - Collection copy: [`bios/Id Software/Quake II/baseq2/pak0.pak`](https://abdess.github.io/retrobios/systems/id-software/#sha1-b86e8878a8e8) **Source** - Source: [`src/common/filesystem.c:1688`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1688) (pak%d.%s scan), [`src/common/filesystem.c:36`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L36) (BASEDIRNAME), [`src/common/filesystem.c:1331`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1331) (first_mods[0]=baseq2) | required for Quake IIin repogame data |
| ** ### `pak1.pak` ** - Path: `baseq2/pak1.pak`- System: [Quake II](https://abdess.github.io/retrobios/systems/id-software/#quake-ii)- Shipped by the 3.20 point release. - Collection copy: [`bios/Id Software/Quake II/baseq2/pak1.pak`](https://abdess.github.io/retrobios/systems/id-software/#sha1-588ef09965de) **Source** - Source: [`src/common/filesystem.c:1688`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1688) | optionalin repogame data |
| ** ### `pak2.pak` ** - Path: `baseq2/pak2.pak`- System: [Quake II](https://abdess.github.io/retrobios/systems/id-software/#quake-ii)- Shipped by the 3.20 point release. - Collection copy: [`bios/Id Software/Quake II/baseq2/pak2.pak`](https://abdess.github.io/retrobios/systems/id-software/#sha1-67e76a7f3234) **Source** - Source: [`src/common/filesystem.c:1688`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1688) | optionalin repogame data |
| ** ### `pak0.pak` ** - Path: `xatrix/pak0.pak`- System: Quake II: The Reckoning- The Reckoning data. Loaded when `+set game xatrix` is passed.- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`src/common/filesystem.c:1331`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1331) (first_mods[1]=xatrix), [`src/common/filesystem.c:1688`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1688) | optionalunsourceablegame data |
| ** ### `pak0.pak` ** - Path: `rogue/pak0.pak`- System: Quake II: Ground Zero- Ground Zero data. Loaded when `+set game rogue` is passed.- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`src/common/filesystem.c:1331`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1331) (first_mods[2]=rogue), [`src/common/filesystem.c:1688`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1688) | optionalunsourceablegame data |
| ** ### `pak0.pak` ** - Path: `ctf/pak0.pak`- System: [Quake II: Capture the Flag](https://abdess.github.io/retrobios/systems/id-software/#quake-ii)- Three Wave CTF data, shipped by the 3.20 point release. Loaded when `+set game ctf` is passed. - Collection copy: [`bios/Id Software/Quake II/ctf/pak0.pak`](https://abdess.github.io/retrobios/systems/id-software/#sha1-11b2362521cf) **Source** - Source: [`src/common/filesystem.c:1331`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1331) (first_mods[3]=ctf), [`src/common/filesystem.c:1688`](https://github.com/yquake2/yquake2/blob/9dbf699273e2546f3ad14cff3dee6a51a518cd2a/src/common/filesystem.c#L1688) | optionalin repogame data |

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
