# The Force Engine

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

The Force Engine emulates Star Wars: Dark Forces and Outlaws. It reads 6 files, 4 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/TheForceEngine/TheForceEngine](https://github.com/TheForceEngine/TheForceEngine) |
| Version | v1.22.420, the tag at this revision |
| Revision | [TheForceEngine/TheForceEngine@cc25205cc94c](https://github.com/TheForceEngine/TheForceEngine/commit/cc25205cc94c36a396f6f50295772f6ec83069a2) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/theforceengine.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/theforceengine.json) |
| Cores | theforceengine, tfe |
| Systems | Star Wars: Dark Forces, Outlaws |
| Checks the file by | existence |

**Install this emulator's files**

With Batocera or RetroBat: the installer finds Batocera or RetroBat and its BIOS folder, then downloads only the files The Force Engine 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 theforceengine
```

**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 theforceengine
```

**Technical notes**

Modern Jedi engine reimplementation by Lucius Dark, supporting LucasArts Dark Forces (shipping) and Outlaws (in-progress).

TFE itself bundles the engine data under TheForceEngine/ in the source tree, which batocera.ports/theforceengine.mk rsyncs to /usr/share/batocera/datainit/system/configs/theforceengine/ on install: Captions/ Documentation/ ExternalData/ Fonts/ Mods/ Shaders/ SoundFonts/ UI_Text/ UI_Images/

The user is expected to supply the retail game data. Dark Forces is probed by checking for DARK.GOB in the configured source-data path ([`TheForceEngine/main.cpp:484-485`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/main.cpp#L484-L485), with PATH_SOURCE_DATA from TFE_Paths).

Dark Forces loader list (TFE_DarkForces/darkForcesMain.cpp:70-83): c_gobFileNames[] = DARK.GOB, SOUNDS.GOB, TEXTURES.GOB, SPRITES.GOB c_optionalGobFileNames[] = enhanced.gob The DOS retail Dark Forces floppy and CD both ship DARK.GOB, SOUNDS.GOB, TEXTURES.GOB, SPRITES.GOB, and enhanced.gob is the TFE-only HD asset pack.

Dark Forces official patch v1.22 (df_patch4) is pulled by the build script as df_patch4.zip from df-21.net and dropped under Mods/, so the engine applies the retail v1.22 patches on top of any user retail install (THEFORCEENGINE_ PATCH_SOURCE in the batocera mk). The patch itself is bundled with the emulator, not with the retail data.

Outlaws: every method of TFE_Outlaws/outlawsMain.cpp is a stub and runGame() returns false. The only Outlaws file the code names is Outlaws.lab, tested by the settings dialog before it stores the Outlaws source path (TFE_FrontEndUI/frontEndUi.cpp:1340). The line that would make it the active source path is commented out (:1344).

## Files

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

By kind: 6 game data.

In this collection: 0 in repo and 6 missing.

## Game data

| File | Status |
|---|---|
| ** ### `DARK.GOB` ** Dark Forces main data archive (levels, briefings, scripts) - System: Star Wars: Dark Forces **Source** - Source: [`TheForceEngine/TFE_DarkForces/darkForcesMain.cpp:74`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_DarkForces/darkForcesMain.cpp#L74) (c_gobFileNames[0]), `main.cpp:484-485` (install detection) | required for Star Wars: Dark Forcesmissinggame data |
| ** ### `SOUNDS.GOB` ** Dark Forces audio archive - System: Star Wars: Dark Forces **Source** - Source: [`TheForceEngine/TFE_DarkForces/darkForcesMain.cpp:75`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_DarkForces/darkForcesMain.cpp#L75) (c_gobFileNames[1]) | required for Star Wars: Dark Forcesmissinggame data |
| ** ### `TEXTURES.GOB` ** Dark Forces texture archive - System: Star Wars: Dark Forces **Source** - Source: [`TheForceEngine/TFE_DarkForces/darkForcesMain.cpp:76`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_DarkForces/darkForcesMain.cpp#L76) (c_gobFileNames[2]) | required for Star Wars: Dark Forcesmissinggame data |
| ** ### `SPRITES.GOB` ** Dark Forces sprite archive - System: Star Wars: Dark Forces **Source** - Source: [`TheForceEngine/TFE_DarkForces/darkForcesMain.cpp:77`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_DarkForces/darkForcesMain.cpp#L77) (c_gobFileNames[3]) | required for Star Wars: Dark Forcesmissinggame data |
| ** ### `enhanced.gob` ** Optional enhanced HD asset pack - System: Star Wars: Dark Forces **Source** - Source: [`TheForceEngine/TFE_DarkForces/darkForcesMain.cpp:80-83`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_DarkForces/darkForcesMain.cpp#L80-L83), [`TheForceEngine/TFE_DarkForces/darkForcesMain.cpp:1360-1372`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_DarkForces/darkForcesMain.cpp#L1360-L1372) | optionalmissinggame data |
| ** ### `Outlaws.lab` ** Outlaws main LAB archive - System: Outlaws- Tested for existence when the user picks the Outlaws source path. The Outlaws game class is stubs and opens no file. **Source** - Source: [`TheForceEngine/TFE_FrontEndUI/frontEndUi.cpp:1306`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_FrontEndUI/frontEndUi.cpp#L1306), [`TheForceEngine/TFE_FrontEndUI/frontEndUi.cpp:1340`](https://github.com/TheForceEngine/TheForceEngine/blob/cc25205cc94c36a396f6f50295772f6ec83069a2/TheForceEngine/TFE_FrontEndUI/frontEndUi.cpp#L1340) | 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.
