How deluxghost/darktide-mods works
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.lua crosshair_remap · HudElementSpeed.lua Speed meter · color_viewer_view.lua ColorViewer · private_char_map_view.lua PrivateCharMap
Components 22
Runtime boundary
Darktide loader and in-game Lua scripting environment where all mods execute.
- Game loader · 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 · Most packages follow the same self-contained manifest plus entry/data/localization structure.
- CleanForceBlocking · Gameplay-rule override focused on blocking behavior.
CleanForceBlocking/scripts/mods/CleanForceBlocking/CleanForceBlocking.lua - Highest blessing · Tweaks default selection behavior for blessing tiers.
DefaultToHighestBlessingTier/scripts/mods/DefaultToHighestBlessingTier/DefaultToHighestBlessingTier.lua - DifficultyColor · Presentation-oriented mod that colors or labels difficulty information.
DifficultyColor/scripts/mods/DifficultyColor/DifficultyColor.lua - MergedTalentStats · Combines talent statistics into a single view of character power.
MergedTalentStats/scripts/mods/MergedTalentStats/MergedTalentStats.lua - ShareTalents · Shares talent loadouts or talent state across players.
ShareTalents/scripts/mods/ShareTalents/ShareTalents.lua - Real weapon stats · Reveals or reconstructs more accurate weapon statistics.
ShowMeRealWeaponStats/scripts/mods/ShowMeRealWeaponStats/ShowMeRealWeaponStats.lua - ReturnOfTheTraitor · 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 · Persistent HUD element for speed display.
SimpleSpeedMeter/scripts/mods/SimpleSpeedMeter/HudElementSpeed.lua - Warp timer · 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 · Custom view for browsing or editing colors.
ColorViewer/scripts/mods/ColorViewer/color_viewer_view/color_viewer_view.lua - PrivateCharMap · Custom view and definitions for private character map UI.
PrivateCharMap/scripts/mods/PrivateCharMap/private_char_map_view/private_char_map_view.lua - SoloPlay · 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 · Template-driven crosshair remapping core with initialization, localization, and preset selection.
crosshair_remap/scripts/mods/crosshair_remap/crosshair_remap.lua - Crosshair templates · Built-in crosshair templates used by the remap core.
crosshair_remap/scripts/mods/crosshair_remap/builtin_crosshair_templates.lua - Crosshair presets · 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 · Centralizes sorting definitions and helper utilities for item normalization.
ItemSorting/scripts/mods/ItemSorting/ItemSorting.lua - WhatTheLocalization · Provides built-in localization templates and supporting text handling.
WhatTheLocalization/scripts/mods/WhatTheLocalization/WhatTheLocalization.lua - Crosshair plugin · Reference package showing how to author a crosshair remap plugin.
ExampleCrosshairRemapPlugin/scripts/mods/ExampleCrosshairRemapPlugin/ExampleCrosshairRemapPlugin.lua - Localization bundle · Reference package demonstrating localization bundle structure.
ExampleLocalizationBundle/scripts/mods/ExampleLocalizationBundle/ExampleLocalizationBundle.lua
Workflow
Local development and deployment helpers.
- symlink_mods.bat · Windows helper for linking mod folders into the game's expected location.
symlink_mods.bat
Connections 21
- 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.