CDAL: mark CDAL: mark
CDAL · BSX · BSX Lua
Crimson Desert Address Library & Script Extender
Game 2.06.01 (1.0.0.3850) CDAL IDs 4,799 / 4,799 Lua API 427 fn · 48 ev
Latest Recorded Build
2.06.01
Exe 1.0.0.3850 · Added 2026-11-30
CDAL Engine Database
4,799 / 4,799 IDs
2,874 fn · 1,503 hooks · 238 offsets · 265 data · 106 vtables
181 replaced or removed · 6 held for BSX on 2.06.01 (4,986 cataloged across all builds)
BSX Lua API (1-8)
427 functions
48 events · 176 types · 56 namespaces · API docs →
Cookbook & Examples
125 entries
37 Cookbook recipes + 82 Lua + 6 C/C++ · Browse source →

1. CDAL (Core Foundation)

v0.8.1 · Public Beta

Permanent numeric IDs for 4,986 targets across 1,629 BlackSpace namespaces in CrimsonDesert.exe plus a shared hook chain manager (cdal::hooks).

Browse 4,986 IDs Quickstart Enroll a Mod

2. BSX & BSX Lua (Script Extender)

v0.4.0 · Public Alpha

Event dispatcher, per-slot CoSave, tiered Lua runtime (Safe / Changes / Native), tweaks.json packs, and Experimental default-off F10 ImGui overlay (BSX.Lua.UI/5).

Lua API Reference Integrating with BSX First Lua Mod INI Gates & Tiers

3. CDAL Studio & Cookbook

Public Beta · Desktop + CLI

Integrated 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.

Open Cookbook Studio Guide Build Fingerprints

Documentation

Browse all 28 guides →

Explore by Subsystem

Selected entry points across Lua namespaces, declarative tweak packs, and native C/C++ interfaces

Data-Only Tweak Packs

tweaks.json

Edit stack sizes, item prices, craft tools, recipes, stores, and buff multipliers declaratively in JSON (no Lua required; reverted on unload).

game.tweaks API Balance Pack Example

ImGui Overlays, HUDs & Audio

BSX.Lua.UI/5

Themed ImGui panels (set_theme), live search lists, sliders, pinned HUD overlays, DX12 draw calls, WAV chimes (bsx.audio), easings (bsx.tween), and CoSave.

bsx.ui.panel API HUD Overlay Example

World, Weather, Camera & VFX

VFX Experimental Test

Free 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()).

game.vfx API Camera & Movement API VFX Cookbook Recipe

Items, Inventory, Stats & Hooks

56 Namespaces

Bilingual item catalog search (game.items.search), category trees, inventory grants, player stat deltas, and composable priority hooks (game.hooks).

game.items API Player Toolkit Example

Appearance, Quests, Pets & World Sim

Lua API 6-8

Inspect character definitions, outfits & dyes, skills, active quests, merchants, factions, fishing tables, pets, mounts, minigames, and interaction prompts.

Appearance & World APIs API 7 Showcase Combat Overhaul (API 8) God Mode & Sandbox

Native C++ ASIs & BSX C Plugins

C / C++23

Full native plugins linking cdal.lib with conflict-free FunctionHook/MidHook/Patch chains or subscribing to BSX's C ABI dispatcher (bsx.h).

CDAL ID Explorer Shared Hooks C++

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\.

CLIUpdate CDAL addresses after a Steam patch
Crimson Desert\bin64\CDAL\Update CDAL.cmd
INIOptional player settings for BSX Overlay & Server Commands
; 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.

JSONData-only balance preset in tweaks.json (schema_version 2)
{
  "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.

LuaSearchable themed UI + bilingual item search (Lua API 4+ / UI 5)
-- 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.

C++Feature guard + shared hook chain (cdal::hooks)
#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.

CLIValidate build coverage and enrolled mod readiness
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 / SettingWhereDefaultWhat it enables
Safescript.json (default)Enabled on loadRead-only game snapshots, HUDs/panels (bsx.ui), corner toasts, draw primitives, bus
ChangesBSX.Lua.dll.iniManual approve (SHA-256)Typed mutations (inventory/stats/weather/gameplay/tweaks) guarded by declared IDs & FRAME checks
NativeBSX.Lua.dll.iniOff (SHA-256)Full trust: cdal.rule mid-hooks, cdal.patch, raw memory & FFI (interpreted only)
[Lua] SnapshotProvider=1BSX.Lua.dll.ini0Thread-safe actor list, nearby actors, cutscene flags, WeatherController state
[Lua] ServerCommands=1BSX.Lua.dll.ini0Allows approved Changes scripts to modify stats, weather, inventory, equipment & gameplay rates
[Overlay] Enabled=1BSX.Overlay.dll.ini0Enables opt-in F10 ImGui workspace (DX12 or ReShade) & BSX.Lua.UI/5 panels
[BSX] UncheckedBuild=1bsx.ini0Runs BSX hooks on builds not yet marked bsx_checked
INISample BSX.Lua.dll.ini and bsx.ini configuration for mod authors & testing
; 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

Opt-In Enrolled Mods

See enrollment requirements →
Crimson FastLoad Requirements met on 1.0.0.3850
By Ratrider · 2 features · 32 CDAL IDs · Opt-in enrolled
KC - Start Menu Changer Requirements met on 1.0.0.3850
By Naesia · 4 features · 10 CDAL IDs · Opt-in enrolled