Neocron PAK

From XentaxWiki
Revision as of 13:14, 30 August 2005 by 129.125.155.53 (talk) (new format)
Jump to navigation Jump to search

Back to index

Choose archive extension:

PAK


Format Specifications

uint32 {4}   - Unknown (1027968222)
uint32 {4}   - Number of files


// FOR EACH FILE

uint32 {4}   - Length of this "fileblock"
uint32 {4}   - Absolute File Offset
uint32 {4}   - Compressed File Length
uint32 {4}   - Decompressed File Length
uint32 {4}   - Filename Length
byte   {x}   - Filename (null-terminated)

byte   {x}   - File Data
// MexCom - Recreation of pak.bms
// THIS IS AN AUTOMATED SPECIFICATION
// READ WITH CARE
// ----------------------------
// LEGEND
// ----------------------------
// ==> (Jump to offset)
// #DECLARE (Set variable to value)
// $$ CALCULATE (Calculate a new value)
// ** (Section that repeats itself on condition)
// // (Comment)
// uint32{4} (Unsigned 32-bit value, 4 bytes)
// uint16{2} (Unsigned 16-bit value, 2 bytes)
// ubyte{1} (Unsigned 8-bit value, 1 byte)
// char{n} (String value, n bytes in length
// ----------------------------


// Format Specification



// COMPRESSION: ZLIB

uint32{4}		DATE
uint32{4}		FileNum


** Start Repeated entry (T) {FileNum}
uint32{4}		BlSize
#DECLARE FOO = CURRENT OFFSET
uint32{4}		Offset of resource (FO)
#DECLARE FSO = CURRENT OFFSET
uint32{4}		FS
#DECLARE UCSO = CURRENT OFFSET
uint32{4}		UCS
uint32{4}		FNS
char{FNS}  		Filename of resource (FN)


// Resources have a name (FN), are located at FO have a compressed size of FS, and an uncompressed size of UCS
** End Repeated entry (T)
// ----------------------------
// MexCom - Recreation complete 


MultiEx BMS

ImpType Standard ;
ComType ZLib1 ;
Get DATE Long 0 ;
Get FileNum Long 0 ;
For T = 1 To FileNum ;
Get BlSize Long 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
SavePos UCSO 0 ;
Get UCS Long 0 ;
Get FNS Long 0 ;
GetDString FN FNS 0 ;
CLog FN FO FS FOO FSO UCS UCSO ;
Next T ;


Notes and Comments

Files are ZLib compressed. If CompressedSize = UncompressedSize then no compression on that resource.


Supported by Programs