# vkQuake2

> 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/vkquake2/

vkQuake2 emulates Quake II, Quake II: The Reckoning, Quake II: Ground Zero and Quake II: Capture the Flag. It reads 8 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/kondrak/vkQuake2](https://github.com/kondrak/vkQuake2) |
| Upstream | [https://github.com/id-Software/Quake-2](https://github.com/id-Software/Quake-2) |
| Version | 1.5.10, the tag at this revision |
| Revision | [kondrak/vkQuake2@6763f207229f](https://github.com/kondrak/vkQuake2/commit/6763f207229f97cffabb6fc2da72017a794b139b) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/), [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/) |
| Profiled | 2026-10-23 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/vkquake2.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/vkquake2.json) |
| Cores | vkquake2 |
| 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, RetroBat or KNULLI: the installer finds Batocera, RetroBat or KNULLI and its BIOS folder, then downloads only the files vkQuake2 reads there and checks each one.

**Windows:**

Open Start. Type **PowerShell**, press Enter. Click Copy. Right-click to paste. Press Enter.

PowerShell

```
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator vkquake2
```

**On the device:**

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 vkquake2
```

**Technical notes**

Quake II 3.21 with a Vulkan renderer. VERSION 3.21, VKQUAKE2_VERSION "1.5.10", BASEDIRNAME = "baseq2" ([`qcommon/qcommon.h:26-30`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/qcommon.h#L26-L30)).

FS_InitFilesystem reads the basedir cvar, default ".", and mounts <basedir>/baseq2 ([`qcommon/files.c:858`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L858), [`872`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L872)). A non-empty game cvar adds <basedir>/<game> on top ([`qcommon/files.c:878-880`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L878-L880), [`640`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L640)). FS_AddGameDirectory tries pak0.pak through pak9.pak in each directory and skips an index that does not open ([`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542)).

FS_LoadPackFile computes a checksum of the pak directory, but the comparison against PAK0_CHECKSUM only runs with NO_ADDONS, which is commented out ([`qcommon/files.c:24`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L24), [`28`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L28), [`484-489`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L484-L489)). No pak is rejected for its contents. The Vulkan renderer, vid_ref default "vk" ([`linux/vid_so.c:448`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/linux/vid_so.c#L448)), stops with ERR_FATAL when pics/colormap.pcx is missing ([`ref_vk/vk_image.c:1640-1642`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/ref_vk/vk_image.c#L1640-L1642)). That file is in baseq2/pak0.pak.

Batocera 43.1 copies /usr/bin/vkquake2 (binary, ref_*.so and the game libraries of baseq2, ctf, rogue, smd, xatrix, zaero) into /userdata/roms/quake2, changes to that directory and runs ./quake2, with `+set game rogue|xatrix|zaero|smd` chosen from the ROM name (configgen generators/vkquake2/vkquake2Generator.py). The basedir is therefore /userdata/roms/quake2.

Music is read from <gamedir>/music/trackNN.ogg, .flac, .mp3 or .wav, then from baseq2/music/ ([`client/snd_miniaudio.c:215-220`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/client/snd_miniaudio.c#L215-L220), [`241-246`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/client/snd_miniaudio.c#L241-L246)).

## Files

**8 files**: 1 required, 7 optional.

By kind: 8 game data.

In this collection: 4 in repo, 0 missing and 4 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. Not hash-checked. - Collection copy: [`bios/Id Software/Quake II/baseq2/pak0.pak`](https://abdess.github.io/retrobios/systems/id-software/#sha1-b86e8878a8e8) **Source** - Asked for by: this build- Source: [`qcommon/files.c:872`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L872) (baseq2 mounted) (this build), [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (pak%i.pak loop) (this build), [`ref_vk/vk_image.c:1640-1642`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/ref_vk/vk_image.c#L1640-L1642) (pics/colormap.pcx fatal) (this build) | 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** - Asked for by: this build- Source: [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (this build) | 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** - Asked for by: this build- Source: [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (this build) | optionalin repogame data |
| ** ### `pak0.pak` ** - Path: `xatrix/pak0.pak`- System: Quake II: The Reckoning- The Reckoning data. Loaded with `+set game xatrix`.- 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** - Asked for by: this build- Source: [`qcommon/files.c:878-880`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L878-L880) (game cvar) (this build), [`qcommon/files.c:640`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L640) (game dir mounted) (this build), [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (this build) | optionalunsourceablegame data |
| ** ### `pak0.pak` ** - Path: `rogue/pak0.pak`- System: Quake II: Ground Zero- Ground Zero data. Loaded with `+set game rogue`.- 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** - Asked for by: this build- Source: [`qcommon/files.c:878-880`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L878-L880) (game cvar) (this build), [`qcommon/files.c:640`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L640) (game dir mounted) (this build), [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (this build) | 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 from the 3.20 point release. Loaded with `+set game ctf`. - Collection copy: [`bios/Id Software/Quake II/ctf/pak0.pak`](https://abdess.github.io/retrobios/systems/id-software/#sha1-11b2362521cf) **Source** - Asked for by: this build- Source: [`qcommon/files.c:878-880`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L878-L880) (game cvar) (this build), [`qcommon/files.c:640`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L640) (game dir mounted) (this build), [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (this build) | optionalin repogame data |
| ** ### `pak0.pak` ** - Path: `zaero/pak0.pak`- System: [Quake II](https://abdess.github.io/retrobios/systems/id-software/#quake-ii)- Zaero data. Loaded with `+set game zaero`.- Not collected yet: 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** - Asked for by: this build- Source: [`qcommon/files.c:878-880`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L878-L880) (game cvar) (this build), [`qcommon/files.c:640`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L640) (game dir mounted) (this build), [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (this build) | optionalunsourceablegame data |
| ** ### `pak0.pak` ** - Path: `smd/pak0.pak`- System: [Quake II](https://abdess.github.io/retrobios/systems/id-software/#quake-ii)- Slight Mechanical Destruction data. Loaded with `+set game smd`.- Not collected yet: 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** - Asked for by: this build- Source: [`qcommon/files.c:878-880`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L878-L880) (game cvar) (this build), [`qcommon/files.c:640`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L640) (game dir mounted) (this build), [`qcommon/files.c:537-542`](https://github.com/kondrak/vkQuake2/blob/6763f207229f97cffabb6fc2da72017a794b139b/qcommon/files.c#L537-L542) (this build) | optionalunsourceablegame 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.
