Skip to content

v1.0.3

Latest

Choose a tag to compare

@erik-blasko erik-blasko released this 28 Nov 15:05
· 1 commit to main since this release

Interactive menu, file selection and protection against accidental overwrites.

Interactive mode (double-click the .exe)

Paste the path of a .cbf file (or type open to pick files in a dialog) and press Enter. Nothing is extracted right away. The program first shows the archive details, the destination folder and a menu:

  Extract to:  F:\Vietcong\.unpacked
  Files:       all (434 files, 15.1 MB)

  [1] Extract
  [2] Change destination folder
  [3] Select files (by type, name or folder)
  [4] List files
  [0] Cancel
  • Select files: use patterns such as *.dds, *ak47*, g/weapons/* or an exact file name. Up to 50 matches can be picked by number (1,3,5-8).
  • Overwrite warning: if files already exist in the destination, they are listed and option 1 becomes Extract and overwrite N files.
  • Going back: Enter or 0 goes back in every question. Ctrl+C goes back one step, stops a running extraction and never closes the window.
  • open picks .cbf files in a standard Windows dialog. Use it when drag & drop into the window is blocked (for example when the terminal runs as administrator).
  • The prompt starts in the folder of the .exe.

Command line

  • New --select / -s PATTERN extracts only matching files (repeatable, commas separate patterns).
  • Before overwriting existing files, the unpacker asks. --overwrite / -y skips the question. Without a console (scripts, redirected input) it refuses and exits with code 1.
  • Ctrl+C prints a short message instead of a Python traceback.

See the README for details.

Downloads

File Description
cbf_unpacker.exe Standalone Windows executable, no Python needed
cbf_unpacker.py Python 3.6+ script for any platform, standard library only

The .exe is not code-signed. If SmartScreen shows "Windows protected your PC", click More info → Run anyway. See Windows security warnings.

SHA-256

8a87f12c2335a76ef95aa6f17bf0b0f9d52e5bb01fbbd910f70c8fbf2215fe44  cbf_unpacker.exe
f71d9ab6650bea64b873c1d5f05277546c51d5025b4317fb79985697dd74f1e6  cbf_unpacker.py