Skip to content

A kung-fu-powered archive and asset manager for classic games.

License

Notifications You must be signed in to change notification settings

themuffinator/PakFu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

103 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PakFu

Version Tech Stack Build Platforms Interface License Nightly Changelog

Download Dependencies Release Policy

PakFu logo

Step into the PakFu dojo: your Sensei demands tidy archives, sharp tools, and workflows you can repeat without hesitation. Respect the palettes, mount containers within containers, and keep your mod workbench disciplined. Train with the GUI for comfort, or the CLI for speed.

PakFu is a cross-platform archive manager and asset viewer for idTech-era and adjacent game formats. It is built with modern C++ and Qt6, and it keeps both GUI and CLI workflows first-class.

Table of Contents

Overview

  • Current version: 0.1.18.1 (see VERSION).
  • Cross-platform targets: Windows, macOS, Linux.
  • Build system: Meson + Ninja.
  • UI framework: Qt6 Widgets.
  • Primary focus: browse, inspect, preview, extract, and rebuild archive content with a documented CLI.
  • Project state: active development with frequent feature updates.

Download

Get PakFu from GitHub Releases:

  • Windows: installer.msi (recommended) or portable.zip
  • macOS: installer.pkg (recommended) or portable.zip
  • Linux: installer.AppImage (recommended) or portable.tar.gz

PakFu can also check for updates at runtime (GUI) and via CLI (--check-updates).

Highlights

  • Archive and folder support in both GUI and CLI.
  • Dedicated standalone viewer windows for image, video, audio, and model files.
  • Nested container mounting (open archives inside archives).
  • One-click Extract Selected and Extract All workflows for the active archive tab.
  • Batch conversion tool for selected assets with category tabs (images, video, archives, models, sound, maps, text, other).
  • 3D preview renderer selection with Vulkan/OpenGL behavior and fallback.
  • Fly camera controls for 3D preview (Right Mouse + WASD, Q/E, mouse wheel speed, Shift faster, Ctrl slower, F frame, R/Home reset).
  • Auto-detection and management of per-game installation profiles.
  • Built-in update checks via GitHub Releases.
  • Integrated crash reporting with session logs and Windows minidumps.
  • File-association management UI with per-format icon sets.

Supported Formats

Archive And Container Support

Type Extensions Open/List Extract Save/Rebuild
Folder input directory path Yes Yes N/A
PAK/SIN pak, sin Yes Yes Yes
ZIP family zip, pk3, pk4, pkz Yes Yes Yes
Quake Live Beta encrypted PK3 pk3 (XOR-obfuscated) Yes (auto-detect/decode) Yes Yes (encode/decode via Save As)
Doom 3 BFG resources resources Yes Yes No
WAD2 wad, wad2 Yes Yes Yes
WAD3 wad3 Yes Yes No
Doom IWAD/PWAD wad Yes Yes No

Preview And Inspector Support

  • Images:
    • Core: pcx, wal, png, tga, jpg
    • Also supported: jpeg, bmp, gif, tif, tiff, swl, mip, lmp, dds, ftx
  • Audio:
    • Core: wav, ogg
    • Also supported: mp3, idwav (Doom 3 BFG; converted to WAV for playback when payload codec is supported)
  • Video:
    • Core: cin, roq
    • Also supported: bik, ogv, mp4, mkv, avi, webm
  • Models:
    • mdl, md2, md3, mdc, md4, mdr, skb, skd, mdm, glm, iqm, md5mesh, tan, obj, lwo
  • idTech inspectors and metadata views:
    • spr, sp2/spr2, dm2, aas, qvm, progs.dat, tag, mdx, mds, skc, ska, ttf, otf
  • Text and script assets:
    • Core: cfg and similar plain-text config/script files
    • Includes many common idTech-family script formats (shader, menu, def, mtr, map, ent, qc, and others)

Notes:

  • Multimedia playback support depends on the installed Qt Multimedia backend and codecs.
  • cin and roq are also handled by built-in cinematic decoders.
  • Some indexed formats (wal, mip, selected lmp cases) use game palettes when required.
  • BSP inspector/preview supports Quake 3-derived families including FAKK variants used by Heavy Metal: F.A.K.K.2 and American McGee's Alice (FAKK v42 checksum-header BSPs).

Build and Run

Prerequisites

  • C++20 toolchain
  • Meson + Ninja
  • Qt6 (Core, Gui, Network, Widgets, OpenGL, OpenGLWidgets, Multimedia, MultimediaWidgets)
  • Windows: DbgHelp (system library, used for crash reporting)

See docs/DEPENDENCIES.md for full dependency details and packaging toolchain requirements.

Windows Helper Build

pwsh -NoProfile -File scripts/meson_build.ps1

Manual Build (All Platforms)

meson setup builddir --backend ninja
meson compile -C builddir

Run

./builddir/src/pakfu
./builddir/src/pakfu --cli --help

Windows:

.\builddir\src\pakfu.exe
.\builddir\src\pakfu.exe --cli --help

CLI Quick Reference

Usage:

pakfu[.exe] --cli [options] <archive-or-folder>

Core actions:

  • -l, --list : list entries.
  • -i, --info : show archive summary.
  • -x, --extract : extract entries (-o, --output <dir> optional).
  • --check-updates : query GitHub Releases.

Installation profile actions:

  • --list-game-installs
  • --auto-detect-game-installs
  • --select-game-install <selector>

Legacy aliases still accepted:

  • --list-game-sets
  • --auto-detect-game-sets
  • --select-game-set <selector>

Update source overrides:

  • --update-repo <owner/name>
  • --update-channel <stable|beta|dev> (full releases only; prereleases are ignored)

Examples:

./builddir/src/pakfu --cli --info path/to/archive.pk3
./builddir/src/pakfu --cli --list path/to/archive.wad
./builddir/src/pakfu --cli --extract -o out_dir path/to/archive.resources
./builddir/src/pakfu --cli --check-updates
./builddir/src/pakfu --cli --list-game-installs
./builddir/src/pakfu --cli --auto-detect-game-installs
./builddir/src/pakfu --cli --select-game-install quake2

GUI Workflow

  • Main modes:
    • Archive View
    • Image Viewer
    • Video Viewer
    • Audio Viewer
    • Model Viewer
  • Opening behavior:
    • Opening a supported media/model file can launch its dedicated viewer window.
    • Opening an archive prompts: open directly, install a copy then open, or move to installation then open.
  • Navigation:
    • In standalone viewers, mouse wheel and arrow keys cycle sibling files in the same folder.
    • Fullscreen toggles with F11, middle mouse, or platform fullscreen shortcut.
  • Archive operations:
    • Drag-and-drop import/export across directories and tabs, plus file/folder drops from external applications.
    • Double-click nested container files to mount and browse in-place.
    • Multiple nested layers are supported.
    • File menu and context menu actions support Extract Selected, Extract All (archive views), and Convert Selected Assets....
  • Safety:
    • Pure PAK Protector is enabled by default for official archives (read-only protection with Save As workflow).

Installations (Game Profiles)

PakFu stores per-game installation profiles with:

  • default directories,
  • palette preferences,
  • launch settings (executable/arguments/working directory).

Behavior:

  • If profiles exist, PakFu opens directly into Archive View.
  • If none exist, the Installations dialog opens on startup.
  • Auto-detection order: Steam -> GOG.com -> EOS.
  • Auto-detection coverage includes Quake-family, Doom-family, Half-Life, SiN, RtCW/ET, Jedi Outcast/Academy, Elite Force titles, Heavy Metal: F.A.K.K.2, American McGee's Alice, Quake 4, Doom 3, Doom 3 BFG Edition, Prey, and Enemy Territory: Quake Wars.

Selector support:

  • --select-game-install accepts UID, game key, or display name.
  • Use --list-game-installs to enumerate current profiles and keys.

Updates and Releases

PakFu can check GitHub Releases at runtime and from CLI.

Build-time updater config:

  • -Dgithub_repo=themuffinator/PakFu (default; see meson_options.txt)
  • -Dupdate_channel=stable|beta|dev (default: stable; full releases only; see meson_options.txt)

Release automation:

  • Nightly pipeline: .github/workflows/nightly.yml
  • Channel auto-version pipeline: .github/workflows/auto_version.yml
  • Manual rebuild pipeline: .github/workflows/release.yml

Release artifact naming contract:

  • pakfu-<version>-windows-<arch>-installer.msi
  • pakfu-<version>-windows-<arch>-portable.zip
  • pakfu-<version>-macos-<arch>-installer.pkg
  • pakfu-<version>-macos-<arch>-portable.zip
  • pakfu-<version>-linux-<arch>-installer.AppImage
  • pakfu-<version>-linux-<arch>-portable.tar.gz

For full policy details, see docs/RELEASES.md.

Environment Variables

Variable Purpose
PAKFU_CRASH_DIR Override crash output directory (session logs and crash artifacts).
PAKFU_DISABLE_QT_MESSAGE_HOOK Disable Qt log interception for troubleshooting.
PAKFU_DEBUG_MEDIA Enable extra media diagnostics in logs.
PAKFU_AUTO_PLAY_ON_OPEN Auto-start playback when opening videos.
PAKFU_ALLOW_MULTI_INSTANCE Disable single-instance behavior and allow multiple app instances.
PAKFU_SMOKE_TABS Run tab smoke test automation on startup (debug/CI helper).
QT_MEDIA_BACKEND Override Qt multimedia backend selection.

Documentation

  • docs/DEPENDENCIES.md : dependency baseline and optional libraries.
  • docs/RELEASES.md : versioning, release rules, and asset contract.
  • docs/UI_BUTTON_ICONS.md : UI action icon inventory.
  • docs/FILE_ASSOCIATION_ICONS.md : file association icon mapping and implementation notes.
  • docs/CREDITS.md : project attributions, compatibility acknowledgements, and third-party credits.
  • CHANGELOG.md : release-by-release change history.

Credits

  • Creator: themuffinator (DarkMatter Productions)
  • Full attribution list: docs/CREDITS.md

Tech Stack

  • Language: C++20
  • UI: Qt6 Widgets
  • Build: Meson + Ninja
  • Rendering preview path: Vulkan and OpenGL paths with fallback behavior
  • Packaging and release automation: platform scripts + GitHub Actions

License

  • GPLv3 (LICENSE)
  • No warranty

About

A kung-fu-powered archive and asset manager for classic games.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •