Skip to content

Olympus: probe large RPF9 archives safely - #13

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
bmjask:codex/olympus-rpf-streaming
Nov 21, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
bmjask:codex/olympus-rpf-streaming

Conversation

@bmjask

@bmjask bmjask commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a bounded-memory streaming header probe for RPF9 archives
  • select probe mode automatically above 1 GiB, with explicit probe/full overrides
  • distinguish repeated nonzero TOC-prefix indicators from unknown or unclassified evidence
  • reject implicit detailed find/extract on large archives unless full scanning is explicitly requested
  • cap retained/displayed header summaries and handle truncated input safely

Validation

  • focused probe tests: 4 passed
  • xcl library tests: 204 passed, 13 ignored, 0 failed
  • verified bounded-memory operation on a multi-gigabyte local archive

This adds structural inspection only. It contains no keys, decryption, or protection bypass.

@ivall
ivall merged commit 299cd6f into xcl-dev:main Nov 21, 2026
@ivall

ivall commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Thanks – merged. Checked on the real 27 GB audio archive: 104 RPF9 headers in ~7 s with flat memory, nice.

ivall added a commit that referenced this pull request Nov 21, 2026
From runs of the user's XDefiant dump (each was a stop of the title after a
failed D3D12 call):
- D: is mounted on the game folder by default (d:\hunter\...); new default
  mounts are merged into existing configs;
- the title's unhandled-exception filter goes behind XCL's; crash records
  have all registers, the vtable module of the objects they point at and
  the callers on the stack;
- CheckFeatureSupport with the console's larger structures (D3D12_OPTIONS
  0x40 bytes) is retried with the PC size;
- device #25 GetResourceAllocationInfo called the C way (return buffer
  first) no longer writes over the device;
- the DMA list has its own vtable: Close #9, Reset #10, CopyBufferRegion
  #11, CopyTextureRegion #12, CopyResource #13, CopyTiles #14;
- the PC runtime writes its vtable into a copy list on Reset: XCL's is put
  back;
- device #27 CreateCommittedResource from console code: buffers and
  textures in unified memory (the title clears a texture through its GPU
  address).
It now stops where the title's inline D3D12.X code writes graphics records
into the command list object. Diagnostics: XCL_WATCH_DEVICE / XCL_WATCH_DMA
(hardware write watchpoints), XCL_D3D12_DEBUG (debug layer messages into
the log).

Console shader kernels: local arrays indexed per lane, switch in nested
loops, 16-bit floats and integers (11 kernels, all the same as the PC).
CalvyPZ pushed a commit to CalvyPZ/xcl that referenced this pull request Nov 24, 2026
Adds host-driver parity and contract tests (without console game files)
covering ID3D12Device::CheckFeatureSupport (xcl-dev#13), CreateReservedResource
(xcl-dev#30), CreateReservedResource1 (xcl-dev#55), and GetResourceTiling (xcl-dev#42).

Verifies D3D12 feature queries, oversized/undersized buffer fallbacks,
console-only formats (116..=120), reserved resource creation and unknown
IID fallback, note_reserved Map(E_INVALIDARG), vram::place tiling parity,
and vendor-independent 64 KiB tiling invariants.

Part of xcl-dev#480

Assisted-by: Antigravity (model name not provided to agent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants