Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

debug:*:archive:files

debug:dump:archive:files   <bsa-archive|data-directory> [--load-order se|ae|custom [--load-order-plugins <names|file>] [--load-order-archives <names|file>]] [--file-glob <glob>] [--hex] [--bytes <count>]
debug:export:archive:files <bsa-archive|data-directory> [--load-order se|ae|custom [--load-order-plugins <names|file>] [--load-order-archives <names|file>]] --output-directory <dir> [--clean] [--file-glob <glob>]

The lowest-level archive tools. They don’t know what the files are: they list entries by path, or pull their bytes out as is.

  • debug:dump:archive:files prints one line per matching entry: size, compression, archive path. It reads the archive’s listing only, no decompression, unless you ask for --hex.
  • debug:export:archive:files extracts every matching entry under <dir>, mirroring the archive’s folders.

--file-glob matches the archive-internal path; / in the glob matches the \ the BSA stores.

Output

The dump prints <size> <compressed|raw> <path>, with the archive name before the path under --load-order. size is the stored size (BsaFileRecord.ActualSize). compressed is the archive’s default (flag 0x4) inverted by the record’s bit 30, see BSA archive format. With --hex, each line is followed by a 16-bytes-per-line dump (Pipelines/Debug/HexDump.cs) of the first --bytes bytes.

      1456  raw         interface\fontconfig.txt
00000000  66 6F 6E 74 6C 69 62 20  22 49 6E 74 65 72 66 61  |fontlib "Interfa|
00000010  63 65 5C 66 6F 6E 74 73  5F 63 6F 6E 73 6F 6C 65  |ce\fonts_console|
... 1424 more byte(s)

Both commands log the archive summary first, see Shared behavior.