Technical documentation and zero-dependency structural verifier for PBZSaveGame.sav, the encrypted PBZS v3 save container used by the Steam PC release of Phantom Blade Zero (appid 4115450).
Browser Save Editor & Verified Starter Saves If you want to edit weapon grades, Dust, materials or outfits in your own save without running scripts — or download decrypted Cycle 1 / Cycle 10 (
66 Daysmode) starter saves — use the client-side WebCrypto + WebAssembly utility at phantombladezerosaves.com:
Unlike most Unreal Engine 5 games, Phantom Blade Zero does not put SaveGames inside %LOCALAPPDATA%. Only GameUserSettings.ini and shader caches live in AppData.
Your active save sits inside the Steam library folder next to the game installation:
<SteamLibrary>\steamapps\common\PBZ\ProjectPBZ\Saved\SaveGames\Steam\<17-digit-SteamID64>\PBZSaveGame.sav
Inside your 17-digit SteamID64 folder you will find:
PBZSaveGame.sav— the active PBZS v3 archive holding every manual slot, autosave, and account wardrobe record.1RealTime\,2Hourly\,3Daily\— rolling automatic backups written by the game. Always copy the entire 17-digit folder before testing edits.
Are saves locked to a Steam account? No. The 17-digit SteamID64 only names the directory on disk; neither the encrypted PBZS directory nor the inner slot JSON stores your SteamID64. See the full Steam Cloud & Account Transfer Guide and Save Not Loading Troubleshooting if Steam Cloud overwrites a file you copied in.
A single PBZSaveGame.sav packs multiple slots (__Advanced__, __Achievements__, AutoSave0, ManualSave1, NightmareRun0, etc.) into one file. Full byte-level details are also maintained on the PBZS v3 Format Specification page.
| Offset | Size | Type | Description |
|---|---|---|---|
0x00 |
4 B |
ASCII | Magic bytes PBZS (50 42 5A 53) |
0x04 |
1 B |
uint8 |
Container version (3 in Steam build 26266538) |
0x05 |
1 B |
uint8 |
Flags (1) |
0x06 |
2 B |
uint16 LE |
Total number of slot records |
0x08 |
4 B |
uint32 LE |
Byte length of the sealed directory block starting at 0x0C |
Both the directory block (at offset 12) and every individual slot block share the same 36-byte preamble:
PBZS 01 01 00 00 (8 B) | nonce (12 B) | GCM tag (16 B) | ciphertext (N B)
Note the tag order: PBZS v3 places the 16-byte GCM authentication tag before the ciphertext. Libraries like WebCrypto (crypto.subtle.decrypt) expect ciphertext || tag, so parsers must move those 16 bytes to the end of the buffer before authenticating.
Decrypting the directory block yields a header echo followed by slotCount packed records:
uint16 nameLen | name (UTF-8) | uint8 algorithm | uint8 flag | uint32 rawSize | uint32 offset | uint32 blockSize
algorithm |
Compression Codec |
|---|---|
0 |
Raw uncompressed UTF-8 JSON |
1 |
zlib deflate stream |
2 |
Oodle Kraken (used natively by the game; decoded via ooz.wasm in the browser editor) |
Each decompressed slot is a UTF-8 JSON document containing Inventory (InventoryInfos, MainWeaponInfos, ShaChiWeaponInfo, AccessoryInfos, MedicineInfos), Player (Dust, RemainingDays), and world state. Weapon upgrade grades use a +1 internal offset (+7 in the UI is stored as 8 in JSON).
Run verify-pbzs.mjs (Node 18+, zero dependencies) to check that a downloaded or backed-up PBZSaveGame.sav has a valid PBZS v3 header, intact block preambles, and matching SHA-256:
node verify-pbzs.mjs path/to/PBZSaveGame.savMIT. Container documentation adapted from clean-room inspection and the MIT-licensed PBZ-Editor / oozextract ecosystems. Unaffiliated with S-GAME.