Warning: This site is under construction, most links will be broken.

Open formats: ZGP game pack file format specification

Last modified on Mon, 26th Feb 2007 at 22:34 GMT by zipplet

ZGP game pack file format specification, v0.1a
----------------------------------------------

Pointer
-------

Last 4 bytes of file: 32-bit integer, offset to start of the identification string (offsets are 0 based).

Identification string
---------------------

A 256 byte delphi shortstring, containing:
"Zipplet's Game Packer version 1.00 [compression=none,sums=none,style=flat]"
The latter part describes the format of the compressed data and any allocation table expansions.
The allocation table immediately follows.

Allowed flags:
compression: zlib/none/bmpflatpack
sums: none/md5/sha-1
style: flat/spanned

Allocation table (style=flat, compression=none, sums=none)
----------------

The first 4 bytes of the allocation table (a 32-bit int) indicates
the number of entries in the allocation table. Entries are located
immediately following these 4 bytes, and are as follows:

Offset   Internal name   Length     Description
0        packname        256        Delphi shortstring: file/resource name
256      packsize        4          32-bit integer: file size
260      packoffset      4          32-bit integer: file offset (location in the packd file)