1
0
Fork 0
mirror of https://github.com/eXpl0it3r/bnkextr.git synced 2026-11-14 04:21:08 +00:00
Wwise *.BNK File Extractor
  • C++ 83.5%
  • Pascal 13.6%
  • CMake 2.9%
Find a file
2026-10-01 17:11:03 +02:00
.github/workflows Update the CI runners and harden the workflow 2026-10-01 14:07:46 +02:00
.gitignore Slightly modernize code base using C++17 2020-06-06 00:55:51 +02:00
bnk.bt Add support for HIRC EventAction dumping 2021-07-09 21:54:49 +02:00
bnkextr.cpp Add support for extracting AKPK / PCK file packages 2026-10-01 17:11:03 +02:00
bnkextr.dpr Initial implementation with original Delphi source code. 2015-03-17 19:39:46 +01:00
CMakeLists.txt Support Unicode paths on Windows by using wmain 2026-10-01 16:05:17 +02:00
LICENSE.md Update broken links 2025-02-18 08:14:14 +01:00
pck.bt Add support for extracting AKPK / PCK file packages 2026-10-01 17:11:03 +02:00
README.md Add support for extracting AKPK / PCK file packages 2026-10-01 17:11:03 +02:00

Wwise *.BNK File Extractor

This is a C++ rewrite and extension of bnkextr originally written by CTPAX-X in Delphi. It extracts WEM files from the ever more popular Wwise BNK format and from Wwise PCK file packages (AKPK).

Use ww2ogg to convert WEM files to the OGG format.

Usage

Usage: bnkextr filename.bnk|filename.pck [/swap] [/nodir] [/obj]
        /swap - swap byte order (use it for unpacking 'Army of Two')
        /nodir - create no additional directory for the extracted files
        /obj - generate an objects.txt (BNK) or files.txt (PCK) file with the extracted data

The format is detected by the file signature, not by the file extension.

BNK Format

PCK Format

  • See the pck.bt file for 010 Editor specification
  • Streamed and external files are extracted as <id>.wem
  • Embedded sound banks are extracted as <id>.bnk and then unpacked into a directory of the same name
  • If a package holds more than one language, every language gets its own directory
  • Encrypted packages are not supported

Supported HIRC Events

  • Generic event type logging
  • Event
  • EventAction

Build

CMake

cmake -S . -B build/
cmake --build build/ --target install

GCC

g++ bnkextr.cpp -std=c++17 -static -O2 -s -o bnkextr.exe

License

  • bnkextr.dpr falls under the original copryright holders rights and is solely kept for archival purpose
  • bnkextr.cpp is available under 2 licenses: Public Domain or MIT -- choose whichever you prefer