Pool of Radiance

From XentaxWiki
Jump to: navigation, search

CNB, CNK

  • Format Type : Archive
  • Endian Order : Little Endian
  • Date Posted : Jan. 16, 2006


Format Specifications

uint32 {4}   - Number Of Files
uint32 {4}   - Archive Length

// for each file

byte {52}    - Filename (null terminated, filled with bytes of 205)
uint32 {4}   - File Offset


byte {X}     - File Data

MultiEx BMS Script

ImpType SFileOff ;
Get FILENUM Long 0 ;
Get ARCSIZE Long 0 ;
For F = 1 To FILENUM ;
GetDString FNAME 52 0 ;
SavePos FOFFSETX 0 ;
Get FOFFSET Long 0 ;
SavePos TEMP 0 ;
If F = FILENUM ;
Set FSIZE Long ARCSIZE ;
Math FSIZE -= FOFFSET ;
Else ;
GetDString FOOBAR 52 0 ;
Get FSIZE Long 0 ;
Math FSIZE -= FOFFSET ;
EndIf ;
Log FNAME FOFFSET FSIZE FOFFSETX 0 ;
GoTo TEMP 0 ;
Next F ;

Compatible Programs