Repository navigation
PBO Format
StidOfficial edited this page Aug 17, 2020
·
19 revisions
| Type | Description |
|---|---|
| std::string / char* |
ASCII characters terminate by \0
|
| unsigned long int | Unsigned integer of 4 bytes |
| Header entry | Header NULL entry | Data |
|---|---|---|
| More information | More information | More information |
Header entry use minimal size equal to 21 bytes.
| Data name | Type | Description |
|---|---|---|
| filepath | std::string / char* | Is the relative path of file |
| packingMethod | unsigned long int | Packing method identifier |
| originalSize | unsigned long int | Original size of packed file |
| reserved | unsigned long int | Undocumented |
| timestamp | unsigned long int | UNIX Timestamp of last write date of file |
| dataSize | unsigned long int | The size of data block after header entries |
After dataSize, if packingMethod is equal to 0x56657273. That is the data block of product entry.
| Data name | Type | Description |
|---|---|---|
| key | std::string / char* | By default is prefix
|
| value | std::string / char* | By default is addon path or pbo file name |
It's terminated by NULL terminated string (\0) on key.
| Key | Description |
|---|---|
| prefix | Ex : a3\data_f_argo |
| product | Ex : Arma 3 |
| version | Ex: Arma 3, version, 119456
|
| Method | Description |
|---|---|
| 0x00000000 | Uncompressed |
| 0x43707273 | Compressed (LZW) |
| 0x56657273 | Version (Properties) |
| 0x456e6372 | Encrypted |
| 0xffffffff | Null |
NULL entry means that is the end of header entries
| Data name | Value |
|---|---|
| filepath | 0x0 = \0
|
| packingMethod | 0x0 |
| originalSize | 0x0 |
| reserved | 0x0 |
| timestamp | 0x0 |
| dataSize | 0x0 |
It's contiguous data of entries
| Data entry | Description |
|---|---|
| Data 1 | Data of entry 1 |
| Data 2 | Data of entry 2 |
| ... | Data of entry ... |
The signature is a SHA-1 hashing of all content pbo file.
He use the standard header entry size (21 bytes). In this content entry, the first byte is reserved for \0 and the rest is used for the signature (20 bytes).
Source : https://community.bistudio.com/wiki/PBO_File_Format