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.
Pick the path that matches what you want to do first:
| Goal | Start here |
|---|---|
| Install or update PakFu | Download the latest Windows, macOS, or Linux package from GitHub Releases. Prefer the installer for your platform unless you specifically want a portable copy. |
| Open archives in the GUI | Launch PakFu, add or auto-detect your game installation, then open a .pak, .pk3, .pk4, .zip, .wad, supported resource archive, or folder. |
| Use PakFu from scripts | Run pakfu --cli --help, then see the CLI quick reference for listing, extracting, validating, converting, and update checks. |
| Build from source | Install the dependencies, then follow Build and Run. |
Release packages follow a consistent shape:
- Windows:
installer.msi(recommended) orportable.zip - macOS:
installer.pkg(recommended) orportable.zip - Linux:
installer.AppImage(recommended) orportable.tar.gz
The Linux portable archive is a deployed runtime tree with Qt and non-Qt
runtime libraries bundled. After extracting it, run ./pakfu from the extracted
directory.
PakFu can also check for updates at runtime (GUI) and via CLI (--check-updates).
Every installer and portable package includes an offline HTML user guide in a
Documentation folder (or the platform's app documentation location). The guide
is generated from the user-facing sections of this README, so packaged help stays
aligned without carrying build instructions or repository maintenance notes.
Table of Contents
- Current version:
0.1.18.1(seeVERSION). - 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.
- Archive and folder support in both GUI and CLI.
- Dedicated standalone viewer windows for image, video, audio, and model files.
- Persistent Workspace tab for installations, open archives, recent files, global search, changed assets, dependency hints, validation, and runtime capability status.
- Sidebar-driven Workspace lenses and a top-level Quick Open/Search box (
Ctrl+K) for faster archive, file, and workspace lookup. - Nested container mounting (open archives inside archives).
- One-click
Extract SelectedandExtract Allworkflows for the active archive tab. - Batch conversion tool for selected assets with category tabs (images, video, archives, models, sound, maps, text, other).
- Manifest-driven extension commands with capability negotiation and GUI import/write-back outputs.
- An installable
pakfu_corestatic library with public headers and pkg-config metadata for non-UI archive, format, search, game-profile, and extension code. - Image batch conversion supports input from all supported image preview formats, including Heretic II
m8andm32textures, and output to all supported image-writer formats (png,jpg,jpeg,bmp,gif,tga,tif,tiff,pcx,wal,swl,mip,lmp,ftx,dds) with format-aware settings (quality, compression, palette source, dithering, alpha threshold, embedded palette where applicable). - Preview overviews surface asset context such as palette provenance, model companion files, shader texture dependency resolution, active 3D renderer state, and preview fallback notes.
- Bitmap
.fontdatpreviews resolve sibling atlas images and render the full 256-character set as an atlas-backed specimen. - Archive previews can be detached into a separate window and docked back into the archive tab.
- Heavy previews report timing profiles, reuse cached temp exports for repeated media/model previews, and cap BSP texture resolution work for very large maps.
- Headless automation covers validation, package comparison/diffing, asset graph export, reproducibility manifests, extension diagnostics, and platform integration reports.
- Modern platform-native open/save/folder dialogs with standard breadcrumbs/bookmarks and robust cross-platform behavior.
- 3D preview renderer selection with Vulkan/OpenGL behavior and fallback.
- Fly camera controls for 3D preview (
Right Mouse + WASD,Q/E, mouse wheel speed,Shiftfaster,Ctrlslower,Fframe,R/Homereset). - Auto-detection and management of per-game installation profiles, including Heretic II
base/htic2-*.pakgamepacks. - Built-in update checks via GitHub Releases.
- Integrated crash reporting with session logs and Windows minidumps.
- Cross-platform shell integration: Windows Open With registration, Linux desktop/MIME metadata, macOS document types, and per-format icon sets.
For the fixture-backed support contract and current verification status, see
docs/SUPPORT_MATRIX.md. The tables below are the
quick reference.
| 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 |
- Images:
- Core:
pcx,wal,png,tga,jpg - Also supported:
jpeg,bmp,gif,tif,tiff,swl,m8,m32,mip,lmp,dds,ftx
- Core:
- Audio:
- Core:
wav,ogg - Also supported:
mp3,idwav(Doom 3 BFG; converted to WAV for playback when payload codec is supported)
- Core:
- Video:
- Core:
cin,roq - Also supported:
bik,ogv,mp4,mkv,avi,webm
- Core:
- Models:
mdl,md2,fm,md3,mdc,md4,mdr,skb,skd,mdm,glm,iqm,md5mesh,tan,obj,lwo
- idTech inspectors and metadata views:
spr,sp2/spr2,bk,os,dm2,aas,qvm,progs.dat,tag,mdx,mds,skc,ska,ttf,otf,fontdat
- idTech4 maps:
.proccompiled render descriptions load as 3D geometry previews with.mtrmaterial-to-texture resolution where companion material/image files are present..mapsource files open as text/metadata inspections.
- Text and script assets:
- Core:
cfgand similar plain-text config/script files - Includes many common idTech-family script formats (
shader,menu,def,mtr,map,proc,ent,qc, and others)
- Core:
Notes:
- Multimedia playback support depends on the installed Qt Multimedia backend and codecs.
cinandroqare also handled by built-in cinematic decoders.- Some indexed formats (
wal,mip, selectedlmpcases) use game palettes when required; Heretic IIm8textures carry an embedded palette, while Heretic IIm32textures store RGBA pixels. - Heretic II
bkbook sprites composite referenced.m8tiles, whileosdynamic scripts are binary bytecode and open as metadata/opcode previews. .fontdatbitmap fonts parse 256 glyph metrics and resolve sibling atlas images such as.pngor.tgafor full character-set previews and CLI preview export.- BSP inspector/preview supports Heretic II
IBSP/convertedQBSPmaps with.m32/.m8texture resolution, plus Quake 3-derived families including FAKK variants used by Heavy Metal: F.A.K.K.2 and American McGee's Alice (FAKKv42 checksum-header BSPs). - idTech4
.proccompiled render descriptions render geometry in the 3D preview and scan.mtrdeclarations for texture resolution;.mapsource files remain text/metadata inspections, and collision-map rendering is not claimed.
- C++20 toolchain
- Meson + Ninja
- Qt6 (Core, Gui, Network, Widgets, OpenGL, OpenGLWidgets, Multimedia, MultimediaWidgets)
- Windows:
DbgHelp(system library, used for crash reporting)
The Vulkan 3D preview renderer is optional at build time. If Qt private RHI
headers are unavailable, Meson builds the OpenGL preview path instead; use
-Dvulkan_preview=enabled to require Vulkan or -Dvulkan_preview=disabled to
force the portable OpenGL-only build.
See docs/DEPENDENCIES.md for full dependency details and packaging toolchain requirements.
pwsh -NoProfile -File scripts/meson_build.ps1meson setup builddir --backend ninja
meson compile -C builddirmeson compile -C builddir pakfu_core
meson test -C builddir core-api-smokeInstalled builds publish pakfu_core, the public header set under
include/pakfu, and pakfu_core.pc metadata for helper tools that want to reuse
PakFu's non-UI archive and asset-format surface.
For parser hardening smoke tests with libFuzzer + sanitizers:
CC=clang CXX=clang++ meson setup builddir-fuzz --backend ninja --buildtype=debugoptimized -Dvulkan_preview=disabled -Dfuzzing=enabled -Db_sanitize=address,undefined
meson test -C builddir-fuzz --print-errorlogs./builddir/src/pakfu
./builddir/src/pakfu --cli --helpWindows:
.\builddir\src\pakfu.exe
.\builddir\src\pakfu.exe --cli --helpUsage:
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).--save-as <archive>: rebuild selected entries into a new archive.--validate: validate archive paths, duplicate names, readability, dependency hints, and known idTech4 material/PROC relationships.--compare <archive-or-folder>: compare selected content against another package; returns1when content differs and2on errors.--asset-graph <text|json|dot>: export a dependency graph with archive hints,.mtrmaterial declarations, and.procmaterial/texture relationships.--package-manifest <text|json>: export a reproducibility manifest with sorted entry paths, sizes, mtimes, and SHA-256 hashes.--convert <format>: convert selected images to a supported image-writer output (png,jpg,bmp,gif,tga,tiff,pcx,wal,swl,mip,lmp,ftx,dds) or IDWAV audio towav.--preview-export <entry>: export the CLI preview rendition of one entry; images and.fontdatcharacter charts write image files, text and binary entries write bytes.--list-plugins: list discovered extension commands.--plugin-report: print extension search roots, trust scope, manifest warnings, and per-command capability notes.--run-plugin <plugin[:command]>: run one extension command against the loaded archive.--platform-report: print platform paths, Qt/runtime metadata, extension state, installation profiles, and shell-integration expectations.--check-updates: query GitHub Releases.--qa-practical: run practical archive-ops smoke QA (selection/marquee/modifier checks).
Archive selection and mounting:
--entry <path>: limit archive actions to an exact archive entry. Repeat for multiple entries.--prefix <dir>: limit archive actions to entries under a directory prefix. Repeat for multiple prefixes.--mount <entry>: mount a nested archive entry first, then run the requested action against the mounted archive.--plugin-dir <dir>: add an extension search directory (repeat for more than one).
Save-as options:
--format <pak|sin|zip|pk3|pk4|pkz|wad|wad2>: choose the output archive format. If omitted, PakFu infers it from--save-as.--quakelive-encrypt-pk3: write ZIP-family--save-asoutput with Quake Live Beta PK3 encryption.
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 --extract --prefix maps -o maps_out path/to/archive.pk3
./builddir/src/pakfu --cli --validate path/to/archive.pk4
./builddir/src/pakfu --cli --compare rebuilt.pk3 path/to/source.pk3
./builddir/src/pakfu --cli --asset-graph json -o graph.json path/to/archive.pk4
./builddir/src/pakfu --cli --package-manifest json -o manifest.json path/to/archive.pk3
./builddir/src/pakfu --cli --save-as mod_subset.pk3 --format pk3 --prefix textures path/to/archive.pk3
./builddir/src/pakfu --cli --convert png --prefix textures -o converted_textures path/to/archive.pk3
./builddir/src/pakfu --cli --preview-export gfx/conback.lmp -o previews path/to/pak0.pak
./builddir/src/pakfu --cli --mount nested/maps.pk3 --list path/to/archive.pk3
./builddir/src/pakfu --cli --list-plugins
./builddir/src/pakfu --cli --plugin-report --plugin-dir examples/extensions/metadata-dump
./builddir/src/pakfu --cli --run-plugin example:inspect-cfg --entry scripts/autoexec.cfg path/to/archive.pk3
./builddir/src/pakfu --cli --platform-report
./builddir/src/pakfu --cli --check-updates
./builddir/src/pakfu --cli --qa-practical
./builddir/src/pakfu --cli --list-game-installs
./builddir/src/pakfu --cli --auto-detect-game-installs
./builddir/src/pakfu --cli --select-game-install quake2- 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 defaults to Quick Inspect in place. Preferences can re-enable the archive-open prompt or choose install-copy/move behavior.
- 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.
- Preferences:
- The Preferences page shows everyday appearance, workspace/archive, and update settings first, with an Advanced toggle for preview/rendering controls.
- Preview preferences include renderer, FOV, grid/background, wireframe/textured defaults, BSP lightmaps, model smoothing, animation playback, image transparency/background, image layout, and text wrapping.
- Preview changes apply to open archive tabs and standalone viewer windows without restarting PakFu.
- Archive operations:
- Non-blocking archive-operation hints and successful extract/convert completion messages appear in the status bar so browsing context stays intact.
- Archive details, list, icon, and gallery views are backed by a shared Qt model/view listing with sorting, selection restore, drag/drop, previews, and async thumbnails.
- Drag-and-drop import/export across directories and tabs, plus file/folder drops from external applications.
- Drag modifier keys: hold
Shiftto request move; holdCtrl/Cmd(orOptionon macOS) to force copy. Cross-application drops are copy. - Move semantics work across open tabs via drag or cut/paste when the source tab is editable; otherwise operations safely fall back to copy.
- Locked/read-only archive states (Pure PAK protector, mounted container views, folder views) disallow import drops and disable cut/paste-style modification actions.
- Name collisions during add/import/rename prompt for
Overwrite,Keep Both,Skip, orCancel(with apply-to-remaining support). - Multi-selection follows platform conventions:
Shiftrange selection,Ctrl/Cmdtoggle selection, marquee/rubber-band selection in icon/list views, andCtrl/Cmd+Afor Select All. - Shell-open paths from Explorer/Finder/file managers route through the same open flow as drag/drop, including directories, archive tabs, and standalone viewers.
- Double-click nested container files to mount and browse in-place.
- Multiple nested layers are supported.
Filemenu and context menu actions supportExtract Selected,Extract All(archive views), andConvert Selected Assets....- The
Extensionsmenu discovers manifest-backed external tools, validates the current archive selection before launch, and can import extension-generated files as pending archive changes.
- Safety:
- Pure PAK Protector is enabled by default for official archives (read-only protection with Save As workflow).
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, Heretic II, 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-installaccepts UID, game key, or display name.- Use
--list-game-installsto enumerate current profiles and keys.
PakFu can check GitHub Releases at runtime and from CLI. GUI auto-checks run after the main window is shown, so network latency does not block startup.
GUI updater install handoff:
- Downloaded update assets are verified against the release manifest (
sizeandsha256) before PakFu opens the download folder or launches an installer. - Windows:
Install and Restartwaits for installer completion, then relaunches PakFu (preferring the installer-managed%LOCALAPPDATA%\PakFu\pakfu.exeafter MSI updates). - macOS/Linux: PakFu exits and starts the downloaded installer artifact (
.pkg/.AppImage) after shutdown.
Build-time updater config:
-Dgithub_repo=themuffinator/PakFu(default; seemeson_options.txt)-Dupdate_channel=stable|beta|dev(default:stable; full releases only; seemeson_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.msipakfu-<version>-windows-<arch>-portable.zippakfu-<version>-macos-<arch>-installer.pkgpakfu-<version>-macos-<arch>-portable.zippakfu-<version>-linux-<arch>-installer.AppImagepakfu-<version>-linux-<arch>-portable.tar.gz
For full policy details, see docs/RELEASES.md.
| 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_FORCE_QT_FILE_DIALOG |
Force Qt's non-native file dialog implementation (useful for troubleshooting platform dialog issues). |
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. |
- Core library:
pakfu_corepublic headers, API metadata, install contract, and sample consumer code. - Dependencies: dependency baseline and optional libraries.
- Extensions: manifest schema, JSON payload contract, and CLI/GUI extension workflow.
- Extension examples: source-first extension examples for local development and plugin-report smoke checks.
- Archive file operations QA: practical QA checklist for selection, drag/drop, cut/copy/paste, and modifiers.
- UX validation: keyboard, pointer, contrast, layout, i18n, telemetry, and A/B acceptance artifacts for the UX roadmap.
- UX performance baseline: generated-corpus timing evidence for the UX roadmap performance gate.
- Roadmap completion: release-hardening checklist and evidence ledger for roadmap claims.
- Release policy: versioning, release rules, and asset contract.
- UI button icons: UI action icon inventory.
- File association icons: file association icon mapping and implementation notes.
- Credits and acknowledgements: project attributions, compatibility acknowledgements, and third-party credits.
- Changelog: release-by-release change history.
- User guide builder: generates the packaged HTML user guide from the user-facing README sections.
PakFu is created by themuffinator (DarkMatter Productions), with project attributions, compatibility acknowledgements, and third-party credits maintained in the credits document.
- 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
- GPLv3 (
LICENSE) - No warranty
