Skip to content

Releases

v1.0.3

Choose a tag to compare

@erik-blasko erik-blasko released this 28 Nov 15:05

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

v1.0.2

Choose a tag to compare

@erik-blasko erik-blasko released this 28 Nov 11:38

Note

The .exe of this release was removed. Please download the latest version, v1.0.3, which includes the Windows .exe. The .py script below is still available; the .exe checksum is kept for reference only.

Usability release for the Windows .exe.

Changed

  • Double-click opens an interactive prompt. Type a command and press Enter to run it. The window stays open for more commands until you close it or type exit. (In v1.0.1, Enter closed the program.)
cbf D:\Games\Vietcong> vietcong_en_01.cbf .unpacked\VC
cbf D:\Games\Vietcong> addons\reddawn\reddawn.cbf --filter .bes
cbf D:\Games\Vietcong> vietcong_101.cbf --list
  • Prompt commands: cd, help, help options, cls, exit. Quoted paths with spaces work, and you can drag a .cbf into the window to paste its path.
  • Without an output folder, files go to .unpacked next to the archive.
  • Drag & drop onto the .exe still extracts right away, then opens the prompt.

Command-line usage from PowerShell or cmd is unchanged.

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 the README.

SHA-256

1898f9bed6aed2cccb9363e8afe6304576ad3ca0143deadd28365bc9b2477186  cbf_unpacker.exe
c0c3a32833c85beecaa3e1e4a5293cb119cf7edad916c1a7e850163b61737060  cbf_unpacker.py

v1.0.1

Choose a tag to compare

@erik-blasko erik-blasko released this 28 Nov 11:28

Note

The .exe of this release was removed. Please download the latest version, v1.0.3, which includes the Windows .exe. The .py script below is still available; the .exe checksum is kept for reference only.

Bug-fix release for the Windows .exe.

Fixed

  • The .exe no longer closes immediately when started from Explorer. Double-clicking it used to exit with an error right away, which looked like a crash. It now shows a short help and waits for Enter.

New

  • Drag & drop: drag one or more .cbf files onto cbf_unpacker.exe. Each archive is extracted into a .unpacked folder next to it.
  • The .exe now carries Windows version information (name, version, description in Properties → Details).
  • The README explains how to handle Windows SmartScreen and antivirus warnings.

Command-line usage is unchanged.

Downloads

File Description
cbf_unpacker.exe Standalone Windows executable, no Python needed. Drag & drop .cbf files onto it, or use it from PowerShell or cmd.
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 the README for details.

SHA-256

51279a484dded38b0d41fb7bf1a3eab549fd08930e7af56328244dba2da63566  cbf_unpacker.exe
0486374c961d3e3165de3e62f4f22c3a40adbf28cd7e73ead91d67bc0a177c22  cbf_unpacker.py

v1.0.0

Choose a tag to compare

@erik-blasko erik-blasko released this 28 Nov 11:22

Note

The .exe of this release was removed. Please download the latest version, v1.0.3, which includes the Windows .exe. The .py script below is still available; the .exe checksum is kept for reference only.

First public release of the Vietcong CBF Unpacker, a tool that extracts .CBF archives from Vietcong (2003, Pterodon/Illusion Softworks).

Highlights

  • Full multi-chunk LZW decompression. Other tools (cbfext, Dragon UnPACKer) decompress only the first chunk and produce truncated DDS, BES and BMP files. This unpacker reads every chunk.
  • Decrypts encrypted file tables (ZBL1 retail archives) and uncompressed file data
  • --list shows archive contents, --filter .ext extracts only matching files
  • Default output directory is .unpacked
  • Tested on all retail archives, patches 1.01–1.60, Fist Alpha and Red Dawn: 60,940 files, 4.0 GB, 0 errors

Downloads

File Description
cbf_unpacker.exe Standalone Windows executable, no Python needed (command-line tool, run it from PowerShell or cmd)
cbf_unpacker.py Python 3.6+ script for any platform, standard library only
.\cbf_unpacker.exe vietcong_en_01.cbf .unpacked/VC
.\cbf_unpacker.exe addons/reddawn/reddawn.cbf --list

See the README for full usage.

Some antivirus programs flag PyInstaller-built executables as a false positive. If that happens, use the .py script instead.

SHA-256

ca785f2226d74c769922b738f64a1116e203e8a4f31c383c7944a2134bb94e21  cbf_unpacker.exe
a31f0a8a926aac31374bad399a34d6167abc2223df6a69c1427e8e771858d2ea  cbf_unpacker.py