Skip to content

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

Latest

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