> [!WARNING]
> **State: very early beta — unoptimised, heavy on your PC, and even heavier with Blueprints.** Right now this is mostly a walking simulator through your own Skyrim files (Helgen `MQ101` test ground), with rough/partial menus, scripts, and AI. There is **no optimization yet**: with UE5 Lumen hardware ray tracing, it is very heavy on CPU, GPU, RAM, and VRAM (lower-spec PCs will struggle).
> **Even heavier with Blueprints:** DovahKin converts and runs Skyrim scripts as Unreal **Blueprints by default** (which builds thousands of script Blueprints on first run and adds extra runtime overhead). To skip Blueprint generation and run the lighter C++ script VM instead, set `DK_MAKE=0` and `DK_SCRIPTS=vm` before running `Edit.bat play`.
> **Tested on:** AMD Ryzen 7 9800X3D · AMD Radeon RX 7900 XTX (24 GB) · 64 GB RAM. See [How it was made](#how-it-was-made) for accessibility notes, AI limitations, and why New Vegas is currently the main focus.
> [!IMPORTANT]
> **No game content is in this repo, and none is shipped.** DovahKin is a game reader. It opens your own copy of Skyrim Special Edition (archives, plugins, models, skeletons, scripts, menus) while the game runs in Unreal, and builds the world from them — the Skyrim engine is not running, so you need your own installed copy of the game. Also see our active sister repo: **[DovaSins-NewVegas](https://github.com/DovaSinS/DovaSins-NewVegas)**.
---
## What Works vs. Not Ready Yet
*Summarized from project notes with AI — expect gaps and rough edges.*
| Area | Working / Experimental | Not Ready Yet / Rough |
|---|---|---|
| **Live asset & record reading** | Reads `.bsa` archives, `.esm`/`.esp` plugins, `.nif` models, `.hkx` skeletons/animations, `.pex` Papyrus scripts, and `.swf` menus directly from your Skyrim `Data` folder | Many script natives, edge cases, and mod features remain incomplete |
| **World & rendering** | Streams exterior and interior cells with Lumen hardware ray tracing, landscape, lighting, sky, water, and crossed-plane tree LODs | Visual glitches and unfinished world details; optional AMD FSR / AMDNR add-ons (`Mods\UE5Settings\`) are not bundled and must be installed yourself |
| **Gameplay & AI** | The Helgen intro (`MQ101`), quests, AI package schedules, basic combat/knockdown, and HUD/menus | All rough and partial; mostly suitable for exploring/testing rather than a full playthrough |
---
## How to Try It
### 1. What you need
| Tool | What for | Where |
|---|---|---|
| Windows 10 or 11 (64-bit) | Supported OS | — |
| DirectX 12 GPU with hardware ray tracing | Required for UE5 Lumen | — |
| Unreal Engine 5.9 | Engine | Epic Games Launcher |
| Visual Studio (C++ game tools) | Builds the C++ module | visualstudio.microsoft.com |
| Skyrim Special Edition (tested on 1.6.1170) | Your own game files (read at runtime) | Steam |
**Performance & Blueprints note:** This build is unoptimised and uses heavy CPU, GPU (Lumen hardware ray tracing), RAM, and VRAM — and **running scripts as Unreal Blueprints (the default) makes load times and runtime overhead significantly heavier**. Use `DK_MAKE=0` and `DK_SCRIPTS=vm` to run the lighter C++ script VM instead. **Author's test PC:** AMD Ryzen 7 9800X3D · AMD Radeon RX 7900 XTX (24 GB VRAM) · 64 GB RAM.
### 2. Setup and launch
1. Install **Unreal Engine 5.9**, **Visual Studio** (with the **Game development with C++** workload), and **Skyrim Special Edition**.
2. Start Skyrim Special Edition once through its normal launcher so `Plugins.txt` exists in `%LOCALAPPDATA%\Skyrim Special Edition\`.
3. Download or clone this repository, open a Command Prompt in that folder, set any paths that differ from defaults, and run `Edit.bat play`:
```bat
:: Only needed if Unreal or Skyrim are not in their default folders:
set "UE_ROOT=C:\Program Files\Epic Games\UE_5.9"
set "DK_GAME_DATA=C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data"
:: Optional: skip heavy script Blueprint generation and use the lighter C++ script VM instead:
:: set "DK_MAKE=0"
:: set "DK_SCRIPTS=vm"
:: Optional overrides:
:: set "DK_LOAD_ORDER=C:\path\to\Plugins.txt"
:: set "DK_WINPOS=-WinX=0 -WinY=0"
:: set "DK_EDITOR_DISPLAY=DISPLAY2" (moves the editor window to that screen)
:: Note: if a lab copy exists at test-data\Skyrim\plugins.txt, it is used as the load order unless DK_LOAD_ORDER is set.
Edit.bat play
```
| Command | What it does |
|---|---|
| `Edit.bat` | Builds the C++ module and opens the Unreal Editor |
| `Edit.bat play` | Builds script Blueprints if needed, then launches the game window (`1920x1080`) |
| `Edit.bat fly` | Opens the Helgen intro (`MQ101`) with the free camera (`F7` = slow-mo fly cam, `F8` = normal) |
| `Edit.bat test` | Runs a fixed-60 FPS deterministic test pass and prints `Saved\test_result.txt` |
> [!TIP]
> **First `Edit.bat play` takes a while — that is normal.** On the first run, it compiles C++, builds script Blueprints before opening the window (check `Saved\Logs\make_blueprints.log`), and compiles Unreal shaders. Later runs only rebuild stale Blueprints; set `DK_MAKE=0` to skip that step.
---
## Controls
| Mode / Key | What it does |
|---|---|
| `Edit.bat play` | Launches normal play mode in `1920x1080` |
| `Edit.bat fly` | Opens Helgen (`MQ101`) in free-camera fly mode |
| `F7` | Slow-motion fly camera (in `Edit.bat fly`) |
| `F8` | Normal speed (in `Edit.bat fly`) |
---
## Troubleshooting
- **First `Edit.bat play` takes a while:** The first run builds script Blueprints before opening the window (check `Saved\Logs\make_blueprints.log`) and compiles Unreal shaders. Later runs only rebuild stale Blueprints; set `DK_MAKE=0` to skip that step.
- **"BUILD FAILED" from `Edit.bat`** (it runs Unreal's own `Build.bat`): Make sure `UE_ROOT` points to your `UE_5.9` folder and Visual Studio has the **Game development with C++** workload installed.
- **Missing load order / empty world:** Launch the real game once so `Plugins.txt` is generated, or set `DK_GAME_DATA` and `DK_LOAD_ORDER` explicitly.
- **Black screen or crash on startup:** Confirm your GPU supports DirectX 12 hardware ray tracing (Lumen is enabled in `Config\DefaultEngine.ini`).
---
## Developer and Technical Details