City Of Heroes

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

PIGG


Format Specifications

uint32 {4}   - Unknown
uint16 {2}   - Unknown
uint16 {2}   - Unknown
uint16 {2}   - Unknown
uint16 {2}   - Unknown
uint32 {4}   - Number Of Files

// for each file

uint32 {4}   - Unknown
uint32 {4}   - null
uint32 {4}   - Decompressed File Size
uint32 {4}   - Unknown
uint32 {4}   - Offset
uint32 {4}   - null
byte {4}     - Unknown (all (byte)255's)
byte {16}    - Hash?
uint32 {4}   - Compressed File Size (if =0, it is uncompressed, so compressedSize=decompressedSize)


uint32 {4}   - Unknown
uint32 {4}   - Number Of Filenames
uint32 {4}   - Filename Directory Length

// for each file

uint32 {4}   - Filename Length
char {X}     - Filename (null)


byte {X}     - File Data

MultiEx BMS Script

ImpType Standard ;
ComType ZLib1 ;
Set D Long 12 ;
GoTo D 0 ;
Get C Long 0 ;
Get D Long 0 ;
Get D Long 0 ;
Set J Long 24 ;
SavePos D 0 ;
Set JF Long 48 ;
Math JF *= C ;
Math JF += 28 ;
For T = 1 To C ;
SavePos UCSO 0 ;
Get UCS Long 0 ;
Get D Long 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos D 0 ;
Math D += J ;
GoTo D 0 ;
SavePos CSO 0 ;
Get CS Long 0 ;
Get D Long 0 ;
Get D Long 0 ;
SavePos D 0 ;
GoTo JF 0 ;
Get FNS Long 0 ;
GetDString FN FNS 0 ;
SavePos JF 0 ;
GoTo D 0 ;
CLog FN FO CS FOO CSO UCS UCSO ;
Next T ;


Notes and Comments

Uses ZLib compression for the files

Compatible Programs