# OpenJK

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

OpenJK emulates Star Wars Jedi Knight: Jedi Academy and Star Wars Jedi Knight II: Jedi Outcast. It reads 8 files, 2 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/JACoders/OpenJK](https://github.com/JACoders/OpenJK) |
| Version | v0.0.0-951-g260c59c, 951 commits after tag [`v0.0.0`](https://github.com/JACoders/OpenJK/tree/v0.0.0) |
| Revision | [JACoders/OpenJK@260c59c29071](https://github.com/JACoders/OpenJK/commit/260c59c2907187af555a676fe0cc798893bf7757) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/openjk.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/openjk.json) |
| Cores | openjk |
| Systems | Star Wars Jedi Knight: Jedi Academy, Star Wars Jedi Knight II: Jedi Outcast |

**Install this emulator's files**

With Batocera: the installer finds Batocera and its BIOS folder, then downloads only the files OpenJK 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 openjk
```

**Technical notes**

id Tech 3 source port for Star Wars Jedi Knight: Jedi Academy (JKA, single and multiplayer) and Star Wars Jedi Knight II: Jedi Outcast (JK2, single player only, as JK2 MP is not supported and upstream points users to JK2MV).

One source tree, three binaries: openjk_sp JKA SP, built from code/ with BuildSPEngine openjk JKA MP, built from codemp/ with BuildMPEngine openjo_sp JK2 SP, built from code/ with BuildJK2SPEngine (same translation units, JK2_MODE defined, [`code/CMakeLists.txt:450-453`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/CMakeLists.txt#L450-L453))

BASEGAME = "base" ([`code/qcommon/q_shared.h:86`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/q_shared.h#L86)). FS_Startup( BASEGAME ) adds base/ from cdpath, basepath, apppath, homepath via FS_AddGameDirectory ([`code/qcommon/files.cpp:2730`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L2730)) which enumerates every *.pk3 found there with Sys_ListFiles ([`code/qcommon/files.cpp:2770`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L2770)). No specific pak filename is hard-coded in the loader: the retail archives listed below are the files the stock games ship under base/, not a list the engine looks up by name.

Hard engine dependency: default.cfg (SP) or mpdefault.cfg (MP) must be readable through the virtual filesystem, otherwise FS_Startup aborts with Com_Error( ERR_FATAL, "Couldn't load default.cfg" ) at [`code/qcommon/files.cpp:3002-3003`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L3002-L3003),[`3041`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L3041) and [`codemp/qcommon/files.cpp:4039-4040`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L4039-L4040),[`4089`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L4089). Both config files live inside the retail assets0.pk3.

FS_idPak matches base/assets0 through base/assets8 (NUM_ID_PAKS = 9, [`codemp/qcommon/qcommon.h:567`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/qcommon.h#L567), [`codemp/qcommon/files.cpp:3169-3170`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L3169-L3170)). The MP client never auto-downloads a pak with one of those names ([`codemp/qcommon/files.cpp:3241`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L3241)) and never offers one for download ([`codemp/qcommon/files.cpp:4447`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L4447)). The check does not make any of them required.

## Files

**8 files**: 2 required, 6 optional.

By kind: 8 game data.

In this collection: 0 in repo and 8 missing.

## Game data

| File | Status |
|---|---|
| ** ### `assets0.pk3` ** - Path: `base/assets0.pk3`- System: Star Wars Jedi Knight: Jedi Academy- Carries default.cfg and mpdefault.cfg, the only files the SP and MP engines refuse to start without. **Source** - Source: [`code/qcommon/files.cpp:3002-3003`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L3002-L3003) (default.cfg ERR_FATAL), [`codemp/qcommon/files.cpp:4039-4040`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L4039-L4040) (mpdefault.cfg ERR_FATAL), [`codemp/qcommon/files.cpp:3169-3170`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L3169-L3170) (NUM_ID_PAKS index 0) | required for Star Wars Jedi Knight: Jedi Academymissinggame data |
| ** ### `assets1.pk3` ** - Path: `base/assets1.pk3`- System: Star Wars Jedi Knight: Jedi Academy- Retail JKA base content (audio). Loader scans the directory, no hard reference. **Source** - Source: [`codemp/qcommon/files.cpp:3169-3170`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L3169-L3170) (NUM_ID_PAKS index 1) | optionalmissinggame data |
| ** ### `assets2.pk3` ** - Path: `base/assets2.pk3`- System: Star Wars Jedi Knight: Jedi Academy- Retail JKA base content (video/cinematics). **Source** - Source: [`codemp/qcommon/files.cpp:3169-3170`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L3169-L3170) (NUM_ID_PAKS index 2) | optionalmissinggame data |
| ** ### `assets3.pk3` ** - Path: `base/assets3.pk3`- System: Star Wars Jedi Knight: Jedi Academy- Retail JKA patch 1.01 content. **Source** - Source: [`codemp/qcommon/files.cpp:3169-3170`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/codemp/qcommon/files.cpp#L3169-L3170) (NUM_ID_PAKS index 3) | optionalmissinggame data |
| ** ### `assets0.pk3` ** - Path: `base/assets0.pk3`- System: Star Wars Jedi Knight II: Jedi Outcast- Retail JK2 base archive. Carries default.cfg, and openjo_sp aborts without it. **Source** - Source: [`code/qcommon/files.cpp:3002-3003`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L3002-L3003) (default.cfg ERR_FATAL), [`code/CMakeLists.txt:450-453`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/CMakeLists.txt#L450-L453) (JK2_MODE build) | required for Star Wars Jedi Knight II: Jedi Outcastmissinggame data |
| ** ### `assets1.pk3` ** - Path: `base/assets1.pk3`- System: Star Wars Jedi Knight II: Jedi Outcast- Retail JK2 base content. **Source** - Source: [`code/qcommon/files.cpp:2770`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L2770) (Sys_ListFiles over .pk3) | optionalmissinggame data |
| ** ### `assets2.pk3` ** - Path: `base/assets2.pk3`- System: Star Wars Jedi Knight II: Jedi Outcast- Retail JK2 base content. **Source** - Source: [`code/qcommon/files.cpp:2770`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L2770) (Sys_ListFiles over .pk3) | optionalmissinggame data |
| ** ### `assets5.pk3` ** - Path: `base/assets5.pk3`- System: Star Wars Jedi Knight II: Jedi Outcast- Retail JK2 patch 1.04 content. **Source** - Source: [`code/qcommon/files.cpp:2770`](https://github.com/JACoders/OpenJK/blob/260c59c2907187af555a676fe0cc798893bf7757/code/qcommon/files.cpp#L2770) (Sys_ListFiles over .pk3) | optionalmissinggame 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.
