Skip to content

About

Phantom Blade Zero PC save file format (PBZS v3) specification, Steam save location reference, and structural verifier

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Phantom Blade Zero Save Format (PBZS v3) & Steam Save Location

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 Days mode) starter saves — use the client-side WebCrypto + WebAssembly utility at phantombladezerosaves.com:


1. Where Phantom Blade Zero Stores Saves on PC (Steam)

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.


2. PBZS v3 Binary Container Specification

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.

2.1 Cleartext Header (12 Bytes)

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

2.2 Sealed Block Framing (AES-256-GCM)

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.

2.3 Directory Table & Slot Compression

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).


3. Verify a Save Locally

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.sav

License

MIT. Container documentation adapted from clean-room inspection and the MIT-licensed PBZ-Editor / oozextract ecosystems. Unaffiliated with S-GAME.

About

Phantom Blade Zero PC save file format (PBZS v3) specification, Steam save location reference, and structural verifier

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages