# OpenJKDF2

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

OpenJKDF2 emulates Star Wars Jedi Knight: Dark Forces II, Star Wars Jedi Knight: Mysteries of the Sith and Star Wars: DroidWorks. It reads 23 files, 17 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/shinyquagsire23/OpenJKDF2](https://github.com/shinyquagsire23/OpenJKDF2) |
| Version | 0.9.9.0, stated in [`cmake_modules/version.cmake`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/cmake_modules/version.cmake) |
| Revision | [shinyquagsire23/OpenJKDF2@ae6ed8a81b31](https://github.com/shinyquagsire23/OpenJKDF2/commit/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/openjkdf2.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/openjkdf2.json) |
| Systems | Star Wars Jedi Knight: Dark Forces II, Star Wars Jedi Knight: Mysteries of the Sith, Star Wars: DroidWorks |

**Install this emulator's files**

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

**Technical notes**

Reimplementation of LucasArts' Sith engine. Runs Star Wars Jedi Knight: Dark Forces II (1997), its Mysteries of the Sith expansion (1998) with the `-motsCompat` switch, and Star Wars DroidWorks (1998) via the DroidWorks branch of the build.

Resource mounting (src/Main/jkRes.c): aGobDirectories[3] "resource" root, auto-mounted at startup ([`src/Main/jkRes.c:37`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/jkRes.c#L37) jkRes_LoadNew) aGobDirectories[1] "episode&lt;name>.gob" / ".goo" for the active episode, mounted by jkRes_LoadGob ([`src/Main/jkRes.c:103-106`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/jkRes.c#L103-L106)) aGobDirectories[4] gamedata\resource (CD overlay), mounted by jkRes_LoadCd ([`src/Main/jkRes.c:130-131`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/jkRes.c#L130-L131))

The asset root is the working directory when it holds resource/jk_.cd, else the per-user data directory, whose last component is openjkdf2, openjkmots or opendroidworks ([`src/Main/InstallHelper.c:97`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L97), [`src/Main/InstallHelper.c:239-270`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L239-L270)). Paths below are written under that component.

jkRes_LoadNew mounts every .gob (.goo in Mysteries of the Sith mode) of resource/ ([`src/Main/jkRes.c:287-300`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/jkRes.c#L287-L300)) and jkEpisode lists every one of episode/ ([`src/Main/jkEpisode.c:106`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/jkEpisode.c#L106)).

Required-asset lists are declared in src/Main/InstallHelper.c and checked by InstallHelper_CheckInstalled / AttemptInstallFromExisting; a missing entry aborts installation ([`src/Main/InstallHelper.c:748-756`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L748-L756), 1091-1097, 1229-1256).

JK.EXE / JKM.EXE are only consumed by the 32-bit static-recomp build ([`src/main.c:696-718`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/main.c#L696-L718), gated by `!ARCH_64BIT && !ARCH_WASM && !TARGET_ANDROID`), which mmaps the retail binary at 0x400000 and patches it via do_hooks(). The 64-bit, WASM and Android builds skip that path and do not read JK.EXE at all.

## Files

**23 files**: 17 required, 6 optional.

By kind: 23 game data.

In this collection: 5 in repo and 18 missing.

## Game data

| File | Status |
|---|---|
| ** ### `JK1.gob` ** - Path: `openjkdf2/episode/JK1.gob`- System: Star Wars Jedi Knight: Dark Forces II- Single-player episode data. **Source** - Source: [`src/Main/InstallHelper.c:34`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L34) (aRequiredAssets) | required for Star Wars Jedi Knight: Dark Forces IImissinggame data |
| ** ### `JK1CTF.gob` ** - Path: `openjkdf2/episode/JK1CTF.gob`- System: Star Wars Jedi Knight: Dark Forces II- Multiplayer CTF episode. **Source** - Source: [`src/Main/InstallHelper.c:35`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L35) (aRequiredAssets) | required for Star Wars Jedi Knight: Dark Forces IImissinggame data |
| ** ### `JK1MP.gob` ** - Path: `openjkdf2/episode/JK1MP.gob`- System: Star Wars Jedi Knight: Dark Forces II- Multiplayer deathmatch episode. Default -episode value in [`src/Main/Main.c:133`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/Main.c#L133). **Source** - Source: [`src/Main/InstallHelper.c:36`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L36) (aRequiredAssets) | required for Star Wars Jedi Knight: Dark Forces IImissinggame data |
| ** ### `Res1hi.gob` ** - Path: `openjkdf2/resource/Res1hi.gob`- System: Star Wars Jedi Knight: Dark Forces II- High-resolution textures and sprites. **Source** - Source: [`src/Main/InstallHelper.c:37`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L37) (aRequiredAssets) | required for Star Wars Jedi Knight: Dark Forces IImissinggame data |
| ** ### `Res2.gob` ** - Path: `openjkdf2/resource/Res2.gob`- System: Star Wars Jedi Knight: Dark Forces II- Shared engine resources: sounds, 3DOs, materials. **Source** - Source: [`src/Main/InstallHelper.c:38`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L38) (aRequiredAssets) | required for Star Wars Jedi Knight: Dark Forces IImissinggame data |
| ** ### `jk_.cd` ** - Path: `openjkdf2/resource/jk_.cd`- System: Star Wars Jedi Knight: Dark Forces II- 4-byte marker. The install helper writes JKRES_MAGIC_1 into it once the assets are copied, 0x699232C4 for this game. At startup a missing marker sends the engine to the required-asset check. - Collection copy: [`bios/Game Engines/OpenJKDF2/openjkdf2/resource/jk_.cd`](https://abdess.github.io/retrobios/systems/game-engines/#sha1-13cfde8b6623) **Source** - Source: [`src/Main/InstallHelper.c:39`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L39) (aRequiredAssets), [`src/Main/InstallHelper.c:764-769`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L764-L769), [`src/Main/InstallHelper.c:1334-1336`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L1334-L1336), [`src/engine_config.h:261`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/engine_config.h#L261) | required for Star Wars Jedi Knight: Dark Forces IIin repogame data |
| ** ### `jk1demo.gob` ** - Path: `openjkdf2/episode/jk1demo.gob`- System: Star Wars Jedi Knight: Dark Forces II- Single-player episode of the demo, copied by the install helper when present. - Collection copy: [`bios/Game Engines/OpenJKDF2/openjkdf2/episode/jk1demo.gob`](https://abdess.github.io/retrobios/systems/game-engines/#sha1-23aba9279b5a) **Source** - Source: [`src/Main/InstallHelper.c:654`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L654), [`src/Main/InstallHelper.c:841`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L841) | optionalin repogame data |
| ** ### `jk1mpdem.gob` ** - Path: `openjkdf2/episode/jk1mpdem.gob`- System: Star Wars Jedi Knight: Dark Forces II- Aliases: `jk1mpdemo.gob`- Multiplayer episode of the demo. The install helper copies it under either name. - Collection copy: [`bios/Game Engines/OpenJKDF2/openjkdf2/episode/jk1mpdem.gob`](https://abdess.github.io/retrobios/systems/game-engines/#sha1-d2b6982051f2) **Source** - Source: [`src/Main/InstallHelper.c:655-656`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L655-L656), [`src/Main/InstallHelper.c:842-843`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L842-L843) | optionalin repogame data |
| ** ### `res1demo.gob` ** - Path: `openjkdf2/resource/res1demo.gob`- System: Star Wars Jedi Knight: Dark Forces II- Resources of the demo, copied by the install helper when present. - Collection copy: [`bios/Game Engines/OpenJKDF2/openjkdf2/resource/res1demo.gob`](https://abdess.github.io/retrobios/systems/game-engines/#sha1-2fcc3d225460) **Source** - Source: [`src/Main/InstallHelper.c:657`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L657), [`src/Main/InstallHelper.c:844`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L844) | optionalin repogame data |
| ** ### `Res1low.gob` ** - Path: `openjkdf2/resource/Res1low.gob`- System: Star Wars Jedi Knight: Dark Forces II- Low-resolution textures shipped on the CD under MININSTALL/. **Source** - Source: [`src/Main/InstallHelper.c:71`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L71) (aDiskAssetMap) | optionalmissinggame data |
| ** ### `JK.EXE` ** - System: Star Wars Jedi Knight: Dark Forces II- Retail executable mmap'd at 0x400000 and patched by do_hooks() in the 32-bit static-recomp build. Not read by the 64-bit, WASM or Android builds. **Source** - Source: [`src/main.c:696-718`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/main.c#L696-L718), [`src/Main/InstallHelper.c:494`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L494) (aInstallOptionalAssets) | optionalmissinggame data |
| ** ### `JKM.goo` ** - Path: `openjkmots/episode/JKM.goo`- System: Star Wars Jedi Knight: Mysteries of the Sith- Main MoTS single-player episode. **Source** - Source: [`src/Main/InstallHelper.c:48`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L48) (aRequiredAssetsMots) | required for Star Wars Jedi Knight: Mysteries of the Sithmissinggame data |
| ** ### `JKM_KFY.goo` ** - Path: `openjkmots/episode/JKM_KFY.goo`- System: Star Wars Jedi Knight: Mysteries of the Sith **Source** - Source: [`src/Main/InstallHelper.c:45`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L45) (aRequiredAssetsMots) | required for Star Wars Jedi Knight: Mysteries of the Sithmissinggame data |
| ** ### `JKM_MP.goo` ** - Path: `openjkmots/episode/JKM_MP.goo`- System: Star Wars Jedi Knight: Mysteries of the Sith **Source** - Source: [`src/Main/InstallHelper.c:46`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L46) (aRequiredAssetsMots) | required for Star Wars Jedi Knight: Mysteries of the Sithmissinggame data |
| ** ### `JKM_SABER.goo` ** - Path: `openjkmots/episode/JKM_SABER.goo`- System: Star Wars Jedi Knight: Mysteries of the Sith **Source** - Source: [`src/Main/InstallHelper.c:47`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L47) (aRequiredAssetsMots) | required for Star Wars Jedi Knight: Mysteries of the Sithmissinggame data |
| ** ### `Jkmres.goo` ** - Path: `openjkmots/resource/Jkmres.goo`- System: Star Wars Jedi Knight: Mysteries of the Sith- Shared MoTS engine resources. **Source** - Source: [`src/Main/InstallHelper.c:49`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L49) (aRequiredAssetsMots) | required for Star Wars Jedi Knight: Mysteries of the Sithmissinggame data |
| ** ### `JKMsndLO.goo` ** - Path: `openjkmots/resource/JKMsndLO.goo`- System: Star Wars Jedi Knight: Mysteries of the Sith- Low-quality sound bank (MININSTALL/JKMSNDLO.GOO on the CD). **Source** - Source: [`src/Main/InstallHelper.c:50`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L50) (aRequiredAssetsMots) | required for Star Wars Jedi Knight: Mysteries of the Sithmissinggame data |
| ** ### `jk_.cd` ** - Path: `openjkmots/resource/jk_.cd`- System: Star Wars Jedi Knight: Mysteries of the Sith- 4-byte marker holding 0x3B426929. InstallHelper_SetCwd reads it at startup and enables Mysteries of the Sith mode when it finds that value. - Collection copy: [`bios/Game Engines/OpenJKDF2/openjkmots/resource/jk_.cd`](https://abdess.github.io/retrobios/systems/game-engines/#sha1-72b046501d01) **Source** - Source: [`src/Main/InstallHelper.c:51`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L51) (aRequiredAssetsMots), [`src/Main/InstallHelper.c:1318-1320`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L1318-L1320), [`src/Main/jkRes.c:232-235`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/jkRes.c#L232-L235), [`src/engine_config.h:265-268`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/engine_config.h#L265-L268) | required for Star Wars Jedi Knight: Mysteries of the Sithin repogame data |
| ** ### `JKM.EXE` ** - System: Star Wars Jedi Knight: Mysteries of the Sith- MoTS retail executable, used only by the 32-bit static-recomp build. **Source** - Source: [`src/main.c:696-718`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/main.c#L696-L718), [`src/Main/InstallHelper.c:495`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L495) (aInstallOptionalAssets) | optionalmissinggame data |
| ** ### `dwCD.GOB` ** - System: Star Wars: DroidWorks- CD-image data archive, mounted by dwGob. **Source** - Source: [`src/Main/InstallHelper.c:58`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L58) (aRequiredAssetsDroidworks), [`src/Dw/dwInits.cpp:72-98`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Dw/dwInits.cpp#L72-L98) | required for Star Wars: DroidWorksmissinggame data |
| ** ### `dwHD.GOB` ** - System: Star Wars: DroidWorks- Hard-drive install archive. **Source** - Source: [`src/Main/InstallHelper.c:59`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L59) (aRequiredAssetsDroidworks), [`src/Dw/dwInits.cpp:72-98`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Dw/dwInits.cpp#L72-L98) | required for Star Wars: DroidWorksmissinggame data |
| ** ### `dwMin.GOB` ** - System: Star Wars: DroidWorks- Minimum-install archive. **Source** - Source: [`src/Main/InstallHelper.c:60`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L60) (aRequiredAssetsDroidworks), [`src/Dw/dwInits.cpp:72-98`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Dw/dwInits.cpp#L72-L98) | required for Star Wars: DroidWorksmissinggame data |
| ** ### `dwStream.GOB` ** - System: Star Wars: DroidWorks- Streamed WAV audio, listed only in the WAV ext search path. **Source** - Source: [`src/Main/InstallHelper.c:61`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Main/InstallHelper.c#L61) (aRequiredAssetsDroidworks), [`src/Dw/dwInits.cpp:98`](https://github.com/shinyquagsire23/OpenJKDF2/blob/ae6ed8a81b316421f08a46719b12a4fa9e2fbed9/src/Dw/dwInits.cpp#L98) | required for Star Wars: DroidWorksmissinggame 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.
