# deluxghost/darktide-mods architecture

> Architecture diagram of the GitHub repository deluxghost/darktide-mods, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deluxghost/darktide-mods
- Repository: https://github.com/deluxghost/darktide-mods

## Overview

1. This repository is a monorepo of independent Darktide Lua mods, not a single application. Each top-level folder is a separately distributable mod package with its own `.mod` manifest and a `scripts/mods/<ModName>/` tree.

2. The common runtime boundary is the Darktide mod loader / game scripting environment. Most mods are tiny entrypoints that hook game events, tweak game state, or alter UI presentation. There is no shared service layer across packages; isolation is the default architectural pattern.

3. The main code shape repeats across mods:
   - a primary `<ModName>.lua` entry file
   - a `<ModName>_data.lua` for configuration/defaults
   - a `<ModName>_localization.lua` for user-facing strings
   This makes each mod self-contained and easy to package independently.

4. Several mods are pure gameplay-rule overrides or quality-of-life tweaks, such as `CleanForceBlocking`, `DefaultToHighestBlessingTier`, `DifficultyColor`, `MergedTalentStats`, `ShareTalents`, `ShowMeRealWeaponStats`, and `ReturnOfTheTraitor`. These likely sit closest to game state and mechanics, translating player/game events into modified behavior.

5. Another cluster focuses on UI overlays and HUD elements. `SimpleSpeedMeter` and `WarpUnboundTimer` include `HudElement*.lua` files, which indicates they render persistent on-screen indicators rather than changing game logic. These mods sit at the presentation boundary: game state in, HUD output out.

6. Some mods provide custom views / configuration screens with explicit view definitions. `ColorViewer`, `PrivateCharMap`, and `SoloPlay` contain `*_view` or `*_mod_view` directories with definitions, blueprints, settings, and builders. That suggests a UI subsystem layered on top of the mod logic, with data flowing from settings and templates into rendered menu panels.

7. `crosshair_remap` is the most framework-like package in the tree. It contains an initialization file, a core remap module, localization, built-in crosshair templates, and many built-in crosshair definitions. The architecture here is template-driven: crosshair presets are defined as separate Lua modules, then selected and remapped by the core mod.

8. `ExampleCrosshairRemapPlugin` and `ExampleLocalizationBundle` are reference packages rather than end-user mods. They demonstrate extension points: plugin-style crosshair definitions in one case, and localization bundle structure in the other. These examples show how the repo expects new mods or modules to be authored.

9. `SoloPlay` is one of the richer subsystems. It includes settings, mission brief logic, Havoc-related files, a workaround, and a full mod view tree. This implies a layered design: gameplay/session customization in the core scripts, with configuration UI and helper utilities separated into their own files.

10. `ItemSorting` and `WhatTheLocalization` suggest reusable utility-oriented architecture. `ItemSorting` has `definitions` and `utils`, while `WhatTheLocalization` includes built-in templates. These modules appear to centralize data normalization and text/template handling before other mod logic consumes them.

11. The repository also includes a Windows helper, `symlink_mods.bat`, which indicates a local development/deployment workflow based on symlinking mod folders into the game’s expected location. The repo’s distribution boundary is therefore “mod folder per package,” rather than one bundled build artifact.

12. Overall, the architecture is a set of small, decoupled Darktide extensions built in Lua, each with its own manifest, localization, and optional UI/template submodules. The key diagram should show: game/mod loader at the center, many isolated mod packages around it, and a few richer packages that add HUD or configuration UI layers on top of core gameplay hooks.

Main entry points: [`crosshair_remap/scripts/mods/crosshair_remap/crosshair_remap.lua`](https://github.com/deluxghost/darktide-mods/blob/main/crosshair_remap/scripts/mods/crosshair_remap/crosshair_remap.lua) (crosshair_remap), [`SimpleSpeedMeter/scripts/mods/SimpleSpeedMeter/HudElementSpeed.lua`](https://github.com/deluxghost/darktide-mods/blob/main/SimpleSpeedMeter/scripts/mods/SimpleSpeedMeter/HudElementSpeed.lua) (Speed meter), [`ColorViewer/scripts/mods/ColorViewer/color_viewer_view/color_viewer_view.lua`](https://github.com/deluxghost/darktide-mods/blob/main/ColorViewer/scripts/mods/ColorViewer/color_viewer_view/color_viewer_view.lua) (ColorViewer), [`PrivateCharMap/scripts/mods/PrivateCharMap/private_char_map_view/private_char_map_view.lua`](https://github.com/deluxghost/darktide-mods/blob/main/PrivateCharMap/scripts/mods/PrivateCharMap/private_char_map_view/private_char_map_view.lua) (PrivateCharMap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime boundary"]
  node_darktide_loader(("Game loader<br/>runtime"))
end

subgraph group_gameplay["Gameplay tweaks"]
  node_single_file_mods["Single-file mods<br/>mod family"]
  node_clean_force_blocking["CleanForceBlocking<br/>gameplay mod"]
  node_default_highest_blessing["Highest blessing<br/>gameplay mod"]
  node_difficulty_color["DifficultyColor<br/>ui tweak"]
  node_merged_talent_stats["MergedTalentStats<br/>gameplay mod"]
  node_share_talents["ShareTalents<br/>gameplay mod<br/>[ShareTalents.lua]"]
  node_show_real_weapon_stats["Real weapon stats<br/>gameplay mod"]
  node_return_traitor["ReturnOfTheTraitor<br/>gameplay mod"]
end

subgraph group_hud["HUD overlays"]
  node_speed_meter["Speed meter<br/>hud mod"]
  node_warp_timer["Warp timer<br/>hud mod"]
end

subgraph group_ui["Config UIs"]
  node_color_viewer["ColorViewer<br/>config ui"]
  node_private_char_map["PrivateCharMap<br/>config ui"]
  node_solo_play["SoloPlay<br/>session ui<br/>[SoloPlay.lua]"]
end

subgraph group_framework["Frameworks and templates"]
  node_crosshair_remap["crosshair_remap<br/>framework mod"]
  node_crosshair_templates["Crosshair templates<br/>template set"]
  node_crosshair_defs["Crosshair presets<br/>preset library<br/>[chevron.lua]"]
end

subgraph group_utility["Utilities and examples"]
  node_item_sorting["ItemSorting<br/>data utility<br/>[ItemSorting.lua]"]
  node_what_localization["WhatTheLocalization<br/>text utility"]
  node_example_crosshair_plugin["Crosshair plugin<br/>example package"]
  node_example_loc_bundle["Localization bundle<br/>example package"]
end

subgraph group_workflow["Workflow"]
  node_symlink_helper["symlink_mods.bat<br/>workflow<br/>[symlink_mods.bat]"]
end

node_darktide_loader -->|"loads"| node_single_file_mods
node_darktide_loader -->|"runs"| node_clean_force_blocking
node_darktide_loader -->|"runs"| node_speed_meter
node_darktide_loader -->|"runs"| node_color_viewer
node_darktide_loader -->|"runs"| node_crosshair_remap
node_darktide_loader -->|"runs"| node_item_sorting
node_single_file_mods -->|"includes"| node_default_highest_blessing
node_single_file_mods -->|"includes"| node_difficulty_color
node_single_file_mods -->|"includes"| node_merged_talent_stats
node_single_file_mods -->|"includes"| node_share_talents
node_single_file_mods -->|"includes"| node_show_real_weapon_stats
node_single_file_mods -->|"includes"| node_return_traitor
node_speed_meter -->|"same layer"| node_warp_timer
node_color_viewer -->|"same layer"| node_private_char_map
node_private_char_map -->|"same layer"| node_solo_play
node_solo_play -.->|"reuses patterns"| node_item_sorting
node_crosshair_remap -->|"uses"| node_crosshair_templates
node_crosshair_remap -->|"loads"| node_crosshair_defs
node_crosshair_remap -.->|"extends"| node_example_crosshair_plugin
node_what_localization -.->|"demonstrates"| node_example_loc_bundle
node_symlink_helper -->|"deploys to"| node_darktide_loader

click node_clean_force_blocking "https://github.com/deluxghost/darktide-mods/blob/main/CleanForceBlocking/scripts/mods/CleanForceBlocking/CleanForceBlocking.lua"
click node_default_highest_blessing "https://github.com/deluxghost/darktide-mods/blob/main/DefaultToHighestBlessingTier/scripts/mods/DefaultToHighestBlessingTier/DefaultToHighestBlessingTier.lua"
click node_difficulty_color "https://github.com/deluxghost/darktide-mods/blob/main/DifficultyColor/scripts/mods/DifficultyColor/DifficultyColor.lua"
click node_merged_talent_stats "https://github.com/deluxghost/darktide-mods/blob/main/MergedTalentStats/scripts/mods/MergedTalentStats/MergedTalentStats.lua"
click node_share_talents "https://github.com/deluxghost/darktide-mods/blob/main/ShareTalents/scripts/mods/ShareTalents/ShareTalents.lua"
click node_show_real_weapon_stats "https://github.com/deluxghost/darktide-mods/blob/main/ShowMeRealWeaponStats/scripts/mods/ShowMeRealWeaponStats/ShowMeRealWeaponStats.lua"
click node_return_traitor "https://github.com/deluxghost/darktide-mods/blob/main/ReturnOfTheTraitor/scripts/mods/ReturnOfTheTraitor/ReturnOfTheTraitor.lua"
click node_speed_meter "https://github.com/deluxghost/darktide-mods/blob/main/SimpleSpeedMeter/scripts/mods/SimpleSpeedMeter/HudElementSpeed.lua"
click node_warp_timer "https://github.com/deluxghost/darktide-mods/blob/main/WarpUnboundTimer/scripts/mods/WarpUnboundTimer/HudElementWarpUnboundTimer.lua"
click node_color_viewer "https://github.com/deluxghost/darktide-mods/blob/main/ColorViewer/scripts/mods/ColorViewer/color_viewer_view/color_viewer_view.lua"
click node_private_char_map "https://github.com/deluxghost/darktide-mods/blob/main/PrivateCharMap/scripts/mods/PrivateCharMap/private_char_map_view/private_char_map_view.lua"
click node_solo_play "https://github.com/deluxghost/darktide-mods/blob/main/SoloPlay/scripts/mods/SoloPlay/SoloPlay.lua"
click node_crosshair_remap "https://github.com/deluxghost/darktide-mods/blob/main/crosshair_remap/scripts/mods/crosshair_remap/crosshair_remap.lua"
click node_crosshair_templates "https://github.com/deluxghost/darktide-mods/blob/main/crosshair_remap/scripts/mods/crosshair_remap/builtin_crosshair_templates.lua"
click node_crosshair_defs "https://github.com/deluxghost/darktide-mods/blob/main/crosshair_remap/scripts/mods/crosshair_remap/builtin_crosshairs/chevron.lua"
click node_item_sorting "https://github.com/deluxghost/darktide-mods/blob/main/ItemSorting/scripts/mods/ItemSorting/ItemSorting.lua"
click node_what_localization "https://github.com/deluxghost/darktide-mods/blob/main/WhatTheLocalization/scripts/mods/WhatTheLocalization/WhatTheLocalization.lua"
click node_example_crosshair_plugin "https://github.com/deluxghost/darktide-mods/blob/main/ExampleCrosshairRemapPlugin/scripts/mods/ExampleCrosshairRemapPlugin/ExampleCrosshairRemapPlugin.lua"
click node_example_loc_bundle "https://github.com/deluxghost/darktide-mods/blob/main/ExampleLocalizationBundle/scripts/mods/ExampleLocalizationBundle/ExampleLocalizationBundle.lua"
click node_symlink_helper "https://github.com/deluxghost/darktide-mods/blob/main/symlink_mods.bat"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_darktide_loader,node_symlink_helper toneBlue
class node_single_file_mods,node_clean_force_blocking,node_default_highest_blessing,node_difficulty_color,node_merged_talent_stats,node_share_talents,node_show_real_weapon_stats,node_return_traitor toneAmber
class node_speed_meter,node_warp_timer toneMint
class node_color_viewer,node_private_char_map,node_solo_play toneRose
class node_crosshair_remap,node_crosshair_templates,node_crosshair_defs toneIndigo
class node_item_sorting,node_what_localization,node_example_crosshair_plugin,node_example_loc_bundle toneTeal
```

## Components

### Runtime boundary

Darktide loader and in-game Lua scripting environment where all mods execute.

- **Game loader**: runtime · Darktide mod loader and scripting host that all packages hook into.

### Gameplay tweaks

Mods that alter rules, stats, interactions, or session behavior.

- **Single-file mods**: mod family · Most packages follow the same self-contained manifest plus entry/data/localization structure.
- [CleanForceBlocking](https://github.com/deluxghost/darktide-mods/blob/main/CleanForceBlocking/scripts/mods/CleanForceBlocking/CleanForceBlocking.lua): gameplay mod · Gameplay-rule override focused on blocking behavior. · `CleanForceBlocking/scripts/mods/CleanForceBlocking/CleanForceBlocking.lua`
- [Highest blessing](https://github.com/deluxghost/darktide-mods/blob/main/DefaultToHighestBlessingTier/scripts/mods/DefaultToHighestBlessingTier/DefaultToHighestBlessingTier.lua): gameplay mod · Tweaks default selection behavior for blessing tiers. · `DefaultToHighestBlessingTier/scripts/mods/DefaultToHighestBlessingTier/DefaultToHighestBlessingTier.lua`
- [DifficultyColor](https://github.com/deluxghost/darktide-mods/blob/main/DifficultyColor/scripts/mods/DifficultyColor/DifficultyColor.lua): ui tweak · Presentation-oriented mod that colors or labels difficulty information. · `DifficultyColor/scripts/mods/DifficultyColor/DifficultyColor.lua`
- [MergedTalentStats](https://github.com/deluxghost/darktide-mods/blob/main/MergedTalentStats/scripts/mods/MergedTalentStats/MergedTalentStats.lua): gameplay mod · Combines talent statistics into a single view of character power. · `MergedTalentStats/scripts/mods/MergedTalentStats/MergedTalentStats.lua`
- [ShareTalents](https://github.com/deluxghost/darktide-mods/blob/main/ShareTalents/scripts/mods/ShareTalents/ShareTalents.lua): gameplay mod · Shares talent loadouts or talent state across players. · `ShareTalents/scripts/mods/ShareTalents/ShareTalents.lua`
- [Real weapon stats](https://github.com/deluxghost/darktide-mods/blob/main/ShowMeRealWeaponStats/scripts/mods/ShowMeRealWeaponStats/ShowMeRealWeaponStats.lua): gameplay mod · Reveals or reconstructs more accurate weapon statistics. · `ShowMeRealWeaponStats/scripts/mods/ShowMeRealWeaponStats/ShowMeRealWeaponStats.lua`
- [ReturnOfTheTraitor](https://github.com/deluxghost/darktide-mods/blob/main/ReturnOfTheTraitor/scripts/mods/ReturnOfTheTraitor/ReturnOfTheTraitor.lua): gameplay mod · Gameplay logic that changes a core rule or encounter behavior. · `ReturnOfTheTraitor/scripts/mods/ReturnOfTheTraitor/ReturnOfTheTraitor.lua`

### HUD overlays

Mods that render persistent on-screen indicators.

- [Speed meter](https://github.com/deluxghost/darktide-mods/blob/main/SimpleSpeedMeter/scripts/mods/SimpleSpeedMeter/HudElementSpeed.lua): hud mod · Persistent HUD element for speed display. · `SimpleSpeedMeter/scripts/mods/SimpleSpeedMeter/HudElementSpeed.lua`
- [Warp timer](https://github.com/deluxghost/darktide-mods/blob/main/WarpUnboundTimer/scripts/mods/WarpUnboundTimer/HudElementWarpUnboundTimer.lua): hud mod · Persistent HUD element for warp-unbound timing. · `WarpUnboundTimer/scripts/mods/WarpUnboundTimer/HudElementWarpUnboundTimer.lua`

### Config UIs

Mods that expose custom views, settings screens, or menu panels.

- [ColorViewer](https://github.com/deluxghost/darktide-mods/blob/main/ColorViewer/scripts/mods/ColorViewer/color_viewer_view/color_viewer_view.lua): config ui · Custom view for browsing or editing colors. · `ColorViewer/scripts/mods/ColorViewer/color_viewer_view/color_viewer_view.lua`
- [PrivateCharMap](https://github.com/deluxghost/darktide-mods/blob/main/PrivateCharMap/scripts/mods/PrivateCharMap/private_char_map_view/private_char_map_view.lua): config ui · Custom view and definitions for private character map UI. · `PrivateCharMap/scripts/mods/PrivateCharMap/private_char_map_view/private_char_map_view.lua`
- [SoloPlay](https://github.com/deluxghost/darktide-mods/blob/main/SoloPlay/scripts/mods/SoloPlay/SoloPlay.lua): session ui · Layered mod with settings, mission brief logic, Havoc support, and a full configuration view. · `SoloPlay/scripts/mods/SoloPlay/SoloPlay.lua`

### Frameworks and templates

Mods that provide reusable remapping, templates, or content-definition layers.

- [crosshair_remap](https://github.com/deluxghost/darktide-mods/blob/main/crosshair_remap/scripts/mods/crosshair_remap/crosshair_remap.lua): framework mod · Template-driven crosshair remapping core with initialization, localization, and preset selection. · `crosshair_remap/scripts/mods/crosshair_remap/crosshair_remap.lua`
- [Crosshair templates](https://github.com/deluxghost/darktide-mods/blob/main/crosshair_remap/scripts/mods/crosshair_remap/builtin_crosshair_templates.lua): template set · Built-in crosshair templates used by the remap core. · `crosshair_remap/scripts/mods/crosshair_remap/builtin_crosshair_templates.lua`
- [Crosshair presets](https://github.com/deluxghost/darktide-mods/blob/main/crosshair_remap/scripts/mods/crosshair_remap/builtin_crosshairs/chevron.lua): preset library · Many built-in crosshair definition modules selected by the framework. · `crosshair_remap/scripts/mods/crosshair_remap/builtin_crosshairs/chevron.lua`

### Utilities and examples

Supportive mods and reference packages that normalize data or demonstrate extension patterns.

- [ItemSorting](https://github.com/deluxghost/darktide-mods/blob/main/ItemSorting/scripts/mods/ItemSorting/ItemSorting.lua): data utility · Centralizes sorting definitions and helper utilities for item normalization. · `ItemSorting/scripts/mods/ItemSorting/ItemSorting.lua`
- [WhatTheLocalization](https://github.com/deluxghost/darktide-mods/blob/main/WhatTheLocalization/scripts/mods/WhatTheLocalization/WhatTheLocalization.lua): text utility · Provides built-in localization templates and supporting text handling. · `WhatTheLocalization/scripts/mods/WhatTheLocalization/WhatTheLocalization.lua`
- [Crosshair plugin](https://github.com/deluxghost/darktide-mods/blob/main/ExampleCrosshairRemapPlugin/scripts/mods/ExampleCrosshairRemapPlugin/ExampleCrosshairRemapPlugin.lua): example package · Reference package showing how to author a crosshair remap plugin. · `ExampleCrosshairRemapPlugin/scripts/mods/ExampleCrosshairRemapPlugin/ExampleCrosshairRemapPlugin.lua`
- [Localization bundle](https://github.com/deluxghost/darktide-mods/blob/main/ExampleLocalizationBundle/scripts/mods/ExampleLocalizationBundle/ExampleLocalizationBundle.lua): example package · Reference package demonstrating localization bundle structure. · `ExampleLocalizationBundle/scripts/mods/ExampleLocalizationBundle/ExampleLocalizationBundle.lua`

### Workflow

Local development and deployment helpers.

- [symlink_mods.bat](https://github.com/deluxghost/darktide-mods/blob/main/symlink_mods.bat): workflow · Windows helper for linking mod folders into the game's expected location. · `symlink_mods.bat`

## Connections

- Game loader → Single-file mods: loads · The mod loader discovers and executes each independently packaged mod.
- Game loader → CleanForceBlocking: runs · Representative gameplay mod entrypoint.
- Game loader → Speed meter: runs · Representative HUD overlay entrypoint.
- Game loader → ColorViewer: runs · Representative custom UI entrypoint.
- Game loader → crosshair_remap: runs · Framework-style mod with internal preset selection.
- Game loader → ItemSorting: runs · Utility-oriented package loaded inside the game scripting environment.
- Single-file mods → Highest blessing: includes · Common self-contained package shape repeats across many mods.
- Single-file mods → DifficultyColor: includes · Common self-contained package shape repeats across many mods.
- Single-file mods → MergedTalentStats: includes · Common self-contained package shape repeats across many mods.
- Single-file mods → ShareTalents: includes · Common self-contained package shape repeats across many mods.
- Single-file mods → Real weapon stats: includes · Common self-contained package shape repeats across many mods.
- Single-file mods → ReturnOfTheTraitor: includes · Common self-contained package shape repeats across many mods.
- Speed meter → Warp timer: same layer · Both mods render persistent HUD indicators rather than changing core game logic.
- ColorViewer → PrivateCharMap: same layer · Both provide dedicated configuration views built from definitions and blueprints.
- PrivateCharMap → SoloPlay: same layer · Both expose richer settings/menu surfaces on top of mod logic.
- SoloPlay → ItemSorting: reuses patterns · Shares the repository pattern of separating logic, settings, and UI helpers.
- crosshair_remap → Crosshair templates: uses · Core remap logic consumes built-in templates.
- crosshair_remap → Crosshair presets: loads · Preset modules provide selectable crosshair definitions.
- crosshair_remap → Crosshair plugin: extends · Example package shows the plugin-style extension point.
- WhatTheLocalization → Localization bundle: demonstrates · Reference package shows the expected localization bundle structure.
- symlink_mods.bat → Game loader: deploys to · Developer workflow links packaged mods into the game install path.
