1.0.0.3850 · Added 2026-11-301. CDAL (Core Foundation)
v0.8.1 · Public BetaPermanent numeric IDs for 4,986 targets across 1,629 BlackSpace namespaces in CrimsonDesert.exe plus a shared hook chain manager (cdal::hooks).
2. BSX & BSX Lua (Script Extender)
v0.4.0 · Public AlphaEvent dispatcher, per-slot CoSave, tiered Lua runtime (Safe / Changes / Native), tweaks.json packs, and Experimental default-off F10 ImGui overlay (BSX.Lua.UI/5).
3. CDAL Studio & Cookbook
Public Beta · Desktop + CLIIntegrated workbench for C++ ASI porting and BSX Lua authoring: offline runner (bsx-lua-run), Flow Builder, Tweak Pack editor, Live Game Inspector, and 125 recipes & examples.
Documentation
Browse all 28 guides →Mod Authors
BSX & BSX Lua
Reference & Agents
Explore by Subsystem
Selected entry points across Lua namespaces, declarative tweak packs, and native C/C++ interfacesData-Only Tweak Packs
tweaks.jsonEdit stack sizes, item prices, craft tools, recipes, stores, and buff multipliers declaratively in JSON (no Lua required; reverted on unload).
ImGui Overlays, HUDs & Audio
BSX.Lua.UI/5Themed ImGui panels (set_theme), live search lists, sliders, pinned HUD overlays, DX12 draw calls, WAV chimes (bsx.audio), easings (bsx.tween), and CoSave.
World, Weather, Camera & VFX
VFX Experimental TestFree Cam, FOV/DOF overrides, Free Fly, sprint & jump multipliers, time-of-day freeze/scale, volumetric-cloud weather presets & sliders, and Experimental Test native .effect VFX sockets (game.vfx.sockets()).
Items, Inventory, Stats & Hooks
56 NamespacesBilingual item catalog search (game.items.search), category trees, inventory grants, player stat deltas, and composable priority hooks (game.hooks).
Appearance, Quests, Pets & World Sim
Lua API 6-8Inspect character definitions, outfits & dyes, skills, active quests, merchants, factions, fishing tables, pets, mounts, minigames, and interaction prompts.
Native C++ ASIs & BSX C Plugins
C / C++23Full native plugins linking cdal.lib with conflict-free FunctionHook/MidHook/Patch chains or subscribing to BSX's C ABI dispatcher (bsx.h).
Quickstart by Role
Minimal starter snippets across CLI, JSON, INI, Lua, and C++Install CDAL once for all CDAL-based .asi mods. Add BSX when using Lua scripts or BSX plugins, and flip only the INI gates you want under Crimson Desert\bin64\.
Crimson Desert\bin64\CDAL\Update CDAL.cmd
; BSX\plugins\BSX.Overlay.dll.ini (Experimental, off by default) [Overlay] Enabled=1 ; Press F10 in game for mod panels ; BSX\plugins\BSX.Lua.dll.ini [Lua] SnapshotProvider=1 ; Read-only actor/player snapshots (default on) ServerCommands=1 ; Unlock gameplay/world mutations for approved mods
Place a script.json and tweaks.json in your mod folder to adjust stack limits, stamina cost, or parry windows without writing Lua.
{
"schema_version": 2,
"items": {
"1980": { "max_stack": 999 }
},
"gameplay": {
"stamina_cost_scale": 0.65,
"gather_multiplier": 2
},
"hooks": [
{ "channel": "on_parry_window", "mult": 1.35, "add": 0.0, "priority": 0, "enabled": true }
]
}
Create themed ImGui panels with item catalog search, audio/tween helpers, and automatic cleanup on reload.
-- My Item Browser (BSX Lua API 4+)
local panel = bsx.ui.panel("My Item Browser")
panel:set_theme({ accent = "#D7263D", child_bg = "#141318" })
local rows = game.items.search("sword", 50, 0)
local labels = {}
for _, item in ipairs(rows) do
labels[#labels + 1] = string.format("%d: %s", item.id, item.name)
end
panel:listbox("Matches", labels, function(idx, label)
bsx.log("Selected: " .. label)
end)
Declare a cdal::Feature, resolve permanent IDs with require(), and install hooks through cdal::hooks so mods never clobber each other.
#include <cdal/cdal.hpp>
#include <cdal/hooks.hpp>
#include <cdal/ids.hpp>
using UpdateFn = void (*)(void*);
static cdal::hooks::FunctionHook<UpdateFn> g_hook;
static cdal::Feature feat{"My Mod", "Core hook"};
void on_update(void* self) { g_hook.original()(self); }
void init() {
std::string missing, err;
if (!feat.require({cdal::ids::Game::Update}, &missing)) return;
if (!g_hook.install(cdal::ids::Game::Update, &on_update, {"My Mod", 0}, &err)) feat.off(err);
}
When Steam updates CrimsonDesert.exe, CDAL Studio and cdal_tools validate every enrolled feature and build signature automatically.
cdal-studio check . python -B -m cdal_tools validate --check-generated
Lua Security Tiers & INI Switches
Scripts run read-only by default; mutations and hooks require explicit opt-in| Tier / Setting | Where | Default | What it enables |
|---|---|---|---|
| Safe | script.json (default) | Enabled on load | Read-only game snapshots, HUDs/panels (bsx.ui), corner toasts, draw primitives, bus |
| Changes | BSX.Lua.dll.ini | Manual approve (SHA-256) | Typed mutations (inventory/stats/weather/gameplay/tweaks) guarded by declared IDs & FRAME checks |
| Native | BSX.Lua.dll.ini | Off (SHA-256) | Full trust: cdal.rule mid-hooks, cdal.patch, raw memory & FFI (interpreted only) |
[Lua] SnapshotProvider=1 | BSX.Lua.dll.ini | 0 | Thread-safe actor list, nearby actors, cutscene flags, WeatherController state |
[Lua] ServerCommands=1 | BSX.Lua.dll.ini | 0 | Allows approved Changes scripts to modify stats, weather, inventory, equipment & gameplay rates |
[Overlay] Enabled=1 | BSX.Overlay.dll.ini | 0 | Enables opt-in F10 ImGui workspace (DX12 or ReShade) & BSX.Lua.UI/5 panels |
[BSX] UncheckedBuild=1 | bsx.ini | 0 | Runs BSX hooks on builds not yet marked bsx_checked |
; BSX\plugins\BSX.Lua.dll.ini [Lua] DevMode=1 SnapshotProvider=1 ServerCommands=1 TimeBudgetMs=50 ; BSX\bsx.ini [BSX] CoSave=1 WorldReady=1 CombatEvents=1