Skip to content

Releases

v0.8.1: Merge pull request #591 from cdal-dev/release/0.8.1

Choose a tag to compare

@Ratty123 Ratty123 released this 02 Dec 20:55

CDAL 0.8.1 updates CDAL Studio 0.8.1 (CDAL-Studio-v0.8.1-setup.exe), the SDK (CDAL-SDK-v0.8.1.zip), and the database and Python tooling: 23 new IDs (6147-6169), 5 renamed and documented Unclassified IDs, the CharacterAppearanceIndexInfo::CharacterScale (4036) offset fix (PF-092), port-scanner and handover fixes (PF-090), gradual MinHook migration docs, and external-contributor validation updates. Players already on CDAL 0.8.0 and BSX 0.4.0 do not need to update cdal.dll or BSX: cdal.dll, C API 8, hooks API 2, and BSX / BSX Lua / BSX Overlay 0.4.0 are unchanged.

  • Three new IDs for package resource read and async decode (db/symbols/system_depth.json, builds 1.0.0.3392 through 1.0.0.3850): pa::ResourceLoadWorker_Package::ReadSync (6167), pa::ResourceLoadWorker_Package::AsyncDecode (6168), and pa::ResourceLoadWorker_Package::OnReadComplete (6169). Derived statically from CrimsonDesert.exe and checked offline across builds 1.0.0.3392 through 1.0.0.3850; not hooked in game yet.
  • Nine new IDs for UI edition and player status modifier requests (db/symbols/{engine,items,minimap_camera,stats,system_depth,ui_callbacks}.json, db/builds/1.0.0.3850.json, cdal-dev/CDAL#1, cdal-dev/CDAL#3): TrocTrRideOffByServerAck::Receive (6158), TrocTrAttachLinkVehicleAck::Receive (6159), MiniMap::PushIconScratch (6160), UiControl::SetTextWithMode (6161, four-argument successor to retired 177 UiControl::SetText), UiStatusGauge::SyncStatValue (6162), ServerStatusActorComponent::UpdateBoundaryTransitionSkills (6163), Inventory::PlanAndInsertItems (6164), InventoryTransfer::PrepareInsertRecords (6165) and InventoryTransfer::DispatchStorageItemMove (6166). Verified offline on 1.0.0.3850 by two independent blind REA 6.9.0 runs and x64 disassembly; not yet hook-tested in game.
  • Renamed and documented five placeholder Unclassified:: IDs (db/symbols/mod_gaps.json, db/compat/): InventoryLocation::Decode (3131), CharacterScene::UpdateScene_CalleeCall (4875), SceneResolveQueues::CopyBlocksCall (4876), ShaderCache::LoadPasc (4877) and DeferredByteQueue::Push (5620), with offline register/argument contracts checked on 1.0.0.3840 and 1.0.0.3850.
  • Seven new IDs for actor garbage collection, fixed-step timing, and inventory location encoding (db/symbols/time_flow.json, db/symbols/damage_health.json, db/symbols/items.json, all 13 db/builds/*.json): FrameTimer::FixedStepOverrideDelta (6151), ActorGarbageCollection::Run (6152), ActorGarbageCollection::Run_ActorExclusionTest (6153), ServerStatusActorComponent::IsGarbageCollectionEligible (6154), ActorGarbageCollection::DeadBodyMinAgeMs (6155), ActorGarbageCollection::MaxDeadBodyCount (6156) and InventoryLocation::Encode (6157). Derived from the game's code and checked offline across 1.0.0.2976 through 1.0.0.3850 (two independent blind runs agreed on 1.0.0.3840 and 1.0.0.3850); not hooked in game yet.
  • Four new IDs for royal supply and trading (db/symbols/store_prices.json, db/builds/1.0.0.3840.json, db/builds/1.0.0.3850.json): RoyalSupply::RefreshOrders (6147), ServerContentsMiscActorComponent::HandleGameEvent (6148, the game-event callback that rebuilds the royal open list), RoyalSupply::Deliver (6149) and Inventory::ExchangeTradeItem (6150). Found from the game's code alone and checked offline on 1.0.0.3840 and 1.0.0.3850; not hooked in game yet. The map is docs/research/ROYAL_SUPPLY.md.
  • Fix CharacterAppearanceIndexInfo::CharacterScale (ID 4036) on 1.0.0.3840 and 1.0.0.3850 (db/symbols/appearance.json, db/builds/1.0.0.3840.json, db/builds/1.0.0.3850.json, PF-092):
    • Updated stored 1.0.0.3840 and 1.0.0.3850 values from 0x18 to 0x14, removed the stale byte-pattern fallback that collided with MaterialMatchInfo::ReadDefinition, wildcarded the displacement byte in the string signature's expect, and documented the 1.0.0.3840 / 1.0.0.3850 layout in CharacterAppearanceIndexInfo::ReadDefinition (4037).
    • Added test_no_new_pinned_reads and test_known_pinned_only_shrinks in python/tests/test_signature_guards.py and documented the rule in ID_FINDING.md and FORMAT.md.
  • CDAL Studio & Port Scanner (studio/, python/cdal_tools/port_scan.py, PF-090):
    • Added mfreadwrite and related Windows multimedia/graphics/runtime DLLs to SYSTEM_DLLS (plus TEXT()/_T() LoadLibrary parsing), ignored non-executable asset RCDATA lines (.mp4, images, fonts, shaders, text) and standard RT_* / distant / multi-line asset-only FindResource pairs, and rejected generic x64 prologue-only partial overlaps (such as StatEntry::GetValueAt false matches) identically in Rust and Python.
    • Stopped plan::best_id from auto-picking ambiguous multi-address partial overlaps, listed those candidate IDs instead of "not in CDAL yet" in plan::render, and updated the agent handover prompt so completed ports aren't marked Partly ported for routine post-port steps.
    • Separated cdal-port-handover.md ## I could not do lines into non-blocking Report::notes so clean ports show Fully ported and Ship/Enroll only displays Known limits in this version when features are actually off; also added script build detection (build*.{bat,cmd,ps1,sh}, Makefile) and libcdal*.a linking, reparse-point file/dir handling and surfaced skipped-copy notices in workcopy.rs / PortNext.svelte, folder name suffix stripping (-cdal, - Source, dotted versions), and {tab} localization across WhatsLeft.svelte, Ship.svelte, and App.svelte.
    • Updated PORTING.md, API.md, and STUDIO.md (and all 6 translated STUDIO.md guides) for empty-list cdal_require, immediate cdal_hook_function enabling, and cdal-studio enroll.
  • Database Validation (python/cdal_tools/sourcedb.py):
    • Relaxed game_code.tools validation from ID 5712 (TOOLS_REQUIRED_FROM) on so cdal_tools validate accepts any non-empty list of tools (such as IDA, Ghidra, x64dbg, or cdal disasm) instead of requiring "rea", unblocking external contributors while keeping "rea" for maintainer AI research batches.
  • Tooling & Contributor Docs (python/cdal_tools/, CONTRIBUTING.md, docs/agents/ID_FINDING.md):
    • Included bsx/lua/ids.lua in cdal_tools gen and cdal_tools validate --check-generated (headergen.lua_editor_ids) whenever bsx/lua/ is present alongside db/, so contributors do not have to run bsx/lua/generate_ids.py separately to satisfy test_lua_ids.py.
    • Documented external-contributor found_by: "cdal" / source conventions (avoiding PF-047 mod-name conflicts) and maintainer-side tools/id-check.ps1 in ID_FINDING.md, CONTRIBUTING.md, MAINTAINING.md, and MAINTAINER_NOTES.md.
    • Documented gradual MinHook migration (install_at, read_original, and multi-hook rollback) in MOD_AUTHORS.md and PORTING.md.

SHA-256

To check a file, run Get-FileHash <file> in PowerShell and compare it with its line here (also in SHA256SUMS.txt).

059896fa6abf39cb59800b0ce9875bdc34a3999da750faf78dfbe5d239aa1e7f  CDAL-BSX-v0.8.1.zip
079074f46255899189cfa6c71ba7dd012c4ec23034fe3066bc4a4be1a0ab53d7  CDAL-Report-Tool-v0.8.1.zip
e5187025669067ca21b937235cb2f270df916ab0f92c83c1f6a0a7b0c7925505  CDAL-SDK-v0.8.1.zip
0fe692fe836bfbb22fd2c5ac6a9d04077eaedb8da4aab71704646c6b72454f04  CDAL-v0.8.1.zip
e63c678778bc9f0118577c40d7d37a2cef238a0ac9706ecd347626e81fc31728  CDAL-Studio-v0.8.1-setup.exe
2e9e1c620e506cda39b8e4ab7b9d299ed597a3ae1b5e55c94a2fd76f5f83e6f7  cdal.dll
13d40ab4b4d64904fd32154505c298452d16a3888337f8d53b04cceba4054020  BSX.asi
90e4636d0544d1c00c80813c028ced75894ffc235ed187c683a6c0f3e3761823  BSX.Lua.dll
dd4cfed176aaecfe7c0ec707a7a2342fc447d6278d22bd787c9abf57497ed746  BSX.Overlay.dll

v0.8.0

Choose a tag to compare

@Ratty123 Ratty123 released this 01 Dec 14:24

First public release of CDAL 0.8.0 and CDAL Studio 0.8.0 (Public Beta), together with BSX 0.4.0 and BSX Lua 0.4.0 (Public Alpha), BSX Overlay 0.4.0 (Experimental, default off), and the 6-tab CDAL & BSX Hub.

CDAL Runtime, Hooks & Diagnostics

  • C API 8, Symbolicated Crash Notes & Crash Signatures (include/cdal/, src/, tools/cdal-diagnostics.ps1):
    • Added cdal_set_crash_context(const char* context) (CDAL_API_VERSION = 8u) and C++ helpers cdal::set_crash_context / cdal::ScopedCrashContext, plus zero-heap nearest-ID symbolication (active crash context:, nearest CDAL ID:, and Game addresses on the crashed stack (nearest CDAL IDs):) in src/cdal_hooks.cpp.
    • Added a copyable Signature: line (build=, cdal=<ver>/<sha12>, bsx=, exc=, at=, pe=) to crash-*.txt notes and Collect report.cmd summaries.
    • Added duplicate loaded-module detection via the PEB (warning: duplicate module ... in CDAL/hooks.log, game-relative entries in session.json, and Duplicate loaded modules in crash/hang/exit notes).
    • Hardened session.json lock-retry handling, logged early cdal_init failures once per session to CDAL/hooks.log, added SEH module PE guards in cdal_watchdog.cpp, and hardened cdal_hook_function / cdal_hook_mid (unsafe_to_move) and header-only mutex locking in include/cdal/cdal.hpp.
    • Updated examples/hello_cdal, examples/shared_hooks, PORTING.md, and QUICKSTART.md to resolve plugin .ini/.log paths relative to g_module.
  • Function-Relative Recipe Ops & Scanner Rules (include/cdal/cdal.hpp, python/cdal_tools/):
    • Added func_start (resolving the start of the .pdata function holding the cursor, including chained blocks) and find_in_func <pattern> (unique match inside that function). Both fail closed, read through CDAL's own hooks, and behave identically in C++ and Python (FORMAT.md).
    • Restricted code signature scanning to executable sections (IMAGE_SCN_MEM_EXECUTE, falling back to IMAGE_SCN_CNT_CODE only when none are executable), added cdal::Options::allow_hooked, Library::prefetch(), Library::resolve_signatures(id), and cdal-resolve (native C++17 resolver).

Database & Game Builds

  • Support for game builds 1.0.0.3840 (2.06.00) and 1.0.0.3850 (2.06.01) (db/symbols/, db/builds/):
    • Added db/builds/1.0.0.3840.json and db/builds/1.0.0.3850.json (with bsx_checked enabled on 1.0.0.3850 while CoSave and Gamepad stay opt-in).
    • Updated definition-table layout IDs (DefinitionEntry::InternalName 6137, DefinitionRow::Key 452, DefinitionTable::RowEntries 5689, DefinitionEntry::Row 5690) for the 2.06 0x30-byte entry stride (PF-074), added Lua API 8 IDs (6138-6146), and added ClientEquipSlotActorComponent::EquipAck (6139) for manual equip/unequip completion tracking (PF-071).
    • Carried unavailable (changed meaning / removed) and held entries forward across builds so cdal.dll fails closed instead of guessing, retired decompiler-scaled IDs 6048 and 6049 (PF-067), and split independent game_code proof totals from historical mod credits in docs/reference/credits.md.

BSX 0.4.0 & BSX Lua 0.4.0 (Public Alpha)

  • BSX Loader & Services (bsx/src/, bsx/include/bsx/):
    • Added /DELAYLOAD:cdal.dll preflight diagnostics (BSX/bsx.log reports missing or outdated cdal.dll and keeps BSX safely idle), bsx.old.log rotation, and robust BSX/loading-plugin.txt cleanup retries.
    • Exported bsx_get_service(const char* name) from BSX.asi for standalone .asi mods (BSX.Overlay.UI/1, BSX.Overlay.State/1, BSX.World/1, BSX.Lua.UI/5, BSX.Lua.Settings/1, BSX.Lua.Conflicts/1, BSX.Status/1), and added bsx/examples/world_hud plus bsx/include/bsx/ui.h and bsx/include/bsx/world.h.
    • Updated CoSave::finish() so two-partition native save files open cleanly (PF-070), fixed CoSave title-screen replay wipes (PF-068), clarified WEAPON_SWAP vs weapon_draw / weapon_watch, and expanded key/OEM/mouse/gamepad capture (bsx/src/key_observer.cpp).
  • BSX Lua API 4 to 8 (bsx/lua/, bsx/lua/README.md):
    • Added lua_api 4 through 8 with manifest "uses" capability bundles, topological "requires" loading, cancellable event/timer handles (handle:off()), bsx.every, bsx.bus, bsx.export / bsx.mods, bsx.json, sandboxed bsx.fs, bsx.audio, bsx.tween, bsx.memory, bsx.system, and lossless config.set / config.save.
    • Enabled read-only [Lua] SnapshotProvider=1 by default (0 remains an explicit opt-out), while keeping [Lua] ServerCommands=0, [Lua] DevMode=0, [BSX] CoSave=0, [BSX] Gamepad=0, and [Overlay] Enabled=0 safe by default, and added 1-step setup/INI toggles to Approve BSX scripts.cmd and BSX.Lua.Approval/2.
    • Added tweaks.json up to schema v5 with zero-code "data_only": true packs, 19 priority-ordered composable game.hooks.add(...) channels (BSX/lua_overrides.ini), and automatic reversion on script stop, reload, :pause, :pause-all, or Overlay All Off (PF-086).
    • Added game.stats, game.inventory, game.equipment, game.gameplay, game.combat, game.buffs, game.actors, game.camera (pose, FOV, roll, Free Cam, DOF, world_to_screen, unproject_ray), game.world (time, weather/cloud/WindPack overrides, ground height, teleport, 3D raycast_segment/raycast_dir), game.appearance (live MeshSet part visibility + presets), game.ui (state(), open_panel, close_panel), game.audio (Wwise catalog, observed events/objects, playback/RTPC/state/switch), 8 definition table readers, and reactive/passive events (weapon_draw, combat_damage, attack_hit, kill, just_action, groggy_changed, buff_applied, buff_removed, zone_changed, weather_changed, and API 7 passive hooks).
    • Added game.vfx v2 (lua_api: 7+, Experimental Test: .effect catalog, world/actor/socket/part:@MainWeapon attachment, color/emissive/glow/opacity overrides, playback methods, and socket_transform).
    • Added BSX.Lua.UI/5 (retained panels, Mini HUDs, bsx.ui.mcm, listbox, hotkey, theme, bsx.ui.toast), BSX.Lua.Draw/4 (2D/3D HUD primitives and 16 font slots), [Lua] DevMode=1 DevBridge pipe (\\.\pipe\BSX.Lua.DevBridge.v1), and bsx-lua-run --mock-world.
    • Added new Lua examples and cookbook showcase mods under bsx/lua/examples and bsx/lua/cookbook (with unified "BSX Example" authors, player_toolkit simplified to Items & Currency + Stats, godmode_sandbox, dps_meter, resume_anywhere, combat_overhaul_kit, world_controller, photo_studio, appearance_studio, and Experimental Test spellcraft_enchants), plus tools/package-showcase.ps1 for standalone per-mod archives.

BSX Overlay 0.4.0 (Experimental, Default Off)

  • Added BSX.Overlay.dll (shipped default-off with [Overlay] Enabled=0 in BSX/plugins/BSX.Overlay.dll.ini and notices in BSX/licenses/) featuring DX12 and ReShade rendering, HDR10 PQ / scRGB / 10-bit SDR compositing ([Overlay] HdrPaperWhiteNits), Mods / Status / Console / Log / All View tabs, Mini HUD position persistence (BSX.Overlay.hud.ini), toggle-key rebinding, 1-click script approvals, corner toasts, and frame-generation rate checks (bsx/overlay/README.md).

CDAL Studio 0.8.0 (Public Beta)

  • Upgraded CDAL Studio (studio/, STUDIO.md) with:
    • CodeMirror 6 Lua Scripter workstation with context-aware autocomplete, hover docs, inline diagnostics, BSX Lua Helper Kit (lib/kit.lua + 6 modular feature packs), 1-Click AI Assist, Tweak Pack (tweaks.json v5) editor, Visual Flow Builder 2.0 (triggers, conditions, actions, MCM controls, 16:9 2D HUD designer, live game pickers), Working examples gallery, offline Test Offline runner, Nexus/Vortex/MO2 .zip packager, and 1-click Deploy & Approve.
    • Live Game Inspector ([Lua] DevMode=1), Event Spy, 8-table browser, shared ho...
Read more

Game build 1.0.0.3850

Choose a tag to compare

@Ratty123 Ratty123 released this 01 Dec 13:57

Addresses for game executable 1.0.0.3850 (PE timestamp 0x6B0D18E9, SizeOfImage 0x142F3000, Steam build 27031466): 4799 values.

Unzip into the game's bin64 folder, next to CrimsonDesert.exe, and replace the files in CDAL\. It holds the databases for this game version and the two before it. cdal.dll stays as it is; get it from the latest v* release if you don't have it.

ids.json.gz is CDAL Studio's ID list for this data. Studio downloads it by itself (Settings, ID catalog, Update from GitHub); nothing to do by hand.

Updated 2026-12-02 from commit c0dbdba with the latest IDs and signatures.

Game build 1.0.0.3840

Choose a tag to compare

@Ratty123 Ratty123 released this 01 Dec 13:56

Addresses for game executable 1.0.0.3840 (PE timestamp 0x6B07E5E9, SizeOfImage 0x13D05000, Steam build 26949954): 4787 values.

Unzip into the game's bin64 folder, next to CrimsonDesert.exe, and replace the files in CDAL\. It holds the databases for this game version and the two before it. cdal.dll stays as it is; get it from the latest v* release if you don't have it.

ids.json.gz is CDAL Studio's ID list for this data. Studio downloads it by itself (Settings, ID catalog, Update from GitHub); nothing to do by hand.

Updated 2026-12-02 from commit c0dbdba with the latest IDs and signatures.

Game build 1.0.0.3732

Choose a tag to compare

@Ratty123 Ratty123 released this 01 Dec 13:55

Addresses for game executable 1.0.0.3732 (PE timestamp 0x6AFDC0CF, SizeOfImage 0x13C7E000, Steam build 26776744): 4906 values.

Unzip into the game's bin64 folder, next to CrimsonDesert.exe, and replace the files in CDAL\. It holds the databases for this game version and the two before it. cdal.dll stays as it is; get it from the latest v* release if you don't have it.

ids.json.gz is CDAL Studio's ID list for this data. Studio downloads it by itself (Settings, ID catalog, Update from GitHub); nothing to do by hand.

Updated 2026-12-02 from commit c0dbdba with the latest IDs and signatures.