User Tools

Site Tools


projects:proprietary_file_formats

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
projects:proprietary_file_formats [2012/02/26 18:38] – created kratz00projects:proprietary_file_formats [2012/04/11 18:30] (current) kratz00
Line 1: Line 1:
-=== PKC ===+=== PCK ===
  
 +  * Type: compressed archive file
 +  * Compression: gzip
 +  * File name extension: pck
 +  * Byte order: little-endian
 +
 +Known Files:
 +
 +^ file name ^ sha256 ^ software ^
 +| tdat.pck | 89ab00ef92ffd398fcbd818f9bf40a36f44cc5fdc15753c342e2aa4014158f8b | Theocracy |
 +| tex.pck | eb015f02ef56d85946fc8e84b04af75cd6d9607be5d59c7a73194cfb2d39aa0c | Theocracy |
 +
 +File Header:
 +
 +^ offset ^ size in bytes ^ description ^ comment ^
 +| 0 | 4 | magic number | always 50 48 4c 53 (PHLS)|
 +| 4 | 4 | offset to the start of the binary data of the first file in this archive | |
 +
 +File Block:
 +
 +The first file block starts at offset 8, right after the file header.
 +
 +^ offset ^ size in bytes ^ description ^ comment ^
 +| 0 | 60 | file name | null terminated string, if it's just ".." it means to go up one directory level |
 +| 60 | 4 | file size | in bytes, if the size is 0x80000000 this file block is a directory entry |
  
 === PKG === === PKG ===
Line 29: Line 53:
 ^ offset ^ size in bytes ^ description ^ comment ^ ^ offset ^ size in bytes ^ description ^ comment ^
 | 0 | 4 | directory name length | including null byte | | 0 | 4 | directory name length | including null byte |
-| 4 |   | directory name | null terminated string |+| 4 |   | directory name | null terminated string with a trailing backslash, path separator: backslash |
 |   | 4 | file name length | including null byte | |   | 4 | file name length | including null byte |
 |     | file name | null terminated string | |     | file name | null terminated string |
projects/proprietary_file_formats.1330277924.txt.gz · Last modified: 2012/02/26 18:38 by kratz00