Xray DB 7z Plugin lets you work with S.T.A.L.K.E.R. game archives in 7-Zip like normal archives. You can browse files, edit content, and build new mod archives without extra tools.
- Open, extract, and create S.T.A.L.K.E.R. DB archives directly with 7-Zip
- Supports XDB, 2947WW, 2947RU, 2945, 2215, 1114 and 1154 archives
- Edit archives in place (add, replace, rename, delete files and folders)
- Keeps game-compatible archive behavior (compression, scrambling, userdata handling)
- Auto-detects archive format and uses sensible defaults for new archives
- Optional userdata from file, with automatic fallback userdata for new XDB archives
- Download the latest release
.dllfile from GitHub - Pick the DLL that matches your 7‑Zip install:
XDB_x64.dllfor 64‑bit 7‑Zip (most installs)XDB_x86.dllonly if you explicitly run 32‑bit 7‑Zip
- Copy the DLL into your 7‑Zip
Formatsdirectory (e.g.,C:\Program Files\7-Zip\Formats). Create theFormatsfolder if it isn’t there.
-
Fetch submodules
git submodule update --init --recursive
-
Configure & build
cmake -S . -B _build/x64 -G "Visual Studio 18 2026" -A x64 cmake --build _build/x64 --config Release
-
Win32 build: replace
-A x64with-A Win32and use_build/Win32. -
Tested supported generators:
Visual Studio 17 2022Visual Studio 18 2026
-
-
Result
_build/x64/bin/Release/XDB_x64.dll_build/Win32/bin/Release/XDB_x86.dll
Parameters:
compress=auto|true|false(defaultauto)- Existing archive:
autofollows the archive's current mix of compressed vs stored files - New archive:
autodefaults totrue
- Existing archive:
dbver=auto|xdb|2947ww|2947ru|2945|2215|11xx(defaultauto)- Existing archive:
autokeeps the detected format - New archive:
autodefaults toxdb
- Existing archive:
xdb_ud=PATH: embed userdata from a file (bytes copied verbatim; only written for XDB)- If the path contains spaces, quote it with either
"or'
- If the path contains spaces, quote it with either
gen_xdb_ud=true|false(defaulttrue): if noxdb_udis provided and the selected format resolves toxdb, a fallback userdata block is generated automatically- If
xdb_udis provided, it is always used instead of the generated fallback
- If
keepdups=true|false(defaultfalse): keep duplicate paths or keep only the last occurrence (used for incorrect archives)
Game format notes:
- Most S.T.A.L.K.E.R. games use
xdb - Shadow of Chernobyl uses
2947ww(World Wide) or2947ru(Russian release)
Examples:
- Add to
Parametersfield:compress=true xdb_ud="D:\Mods\my mod\userdata.ltx" - Add to
Parametersfield:compress=false dbver=2947ww xdb_ud='D:\Mods\my mod\userdata.ltx' 7z.exe:7z a mymod.db0 .\gamedata\* -txdb -mdbver=xdb7z.exe:7z a mymod.db0 .\gamedata\* -txdb -mdbver=xdb -mgen_xdb_ud=false
Archive properties shown in 7‑Zip:
- Userdata: full userdata text
- DB-Format: detected variant
CPP/7zip/Archive/Xdb- plugin sourcesthird_party/7zip- upstream 7‑Zip sourcesthird_party/xray_re-tools- legacy helper code
- Plugin-specific code: MIT (see
LICENSE) - Third-party code keeps its own licenses (see
NOTICE)