Hidden And Dangerous CNT

From XentaxWiki
Jump to: navigation, search

DTA + CNT


Format Specifications

char {8}     - Header (COMPCNT4)
uint32 {4}   - Archive Length
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Number Of Files

// for each file

uint32 {4}   - File Offset
uint32 {4}   - File Length
char {16}    - Filename (null)


MultiEx BMS Script

IDString 0 COMPCNT4 ;
Get DUMMYL Long 0 ;
Get DUMMYL Long 0 ;
Get DUMMYL Long 0 ;
Get FILECNTL Long 0 ;
CleanExit ;
SavePos DUMMYL 0 ;
Do ;
GoTo DUMMYL 0 ;
Get FILEOFF Long 0 ;
Get FILESIZE Long 0 ;
Get DUMMYL Int 0 ;
GetDString FILENAME DUMMYL 0 ;
SavePos DUMMYL 0 ;
Log FILENAME FILEOFF FILESIZE 0 0 ;
Math EXTRCNT += 1 ;
While EXTRCNT <> FILECNTL ;

Notes and Comments

  • The *.cnt file contains the directory, the *.dta file contains the file data
  • This MultiEx script was converted from old 16-bit script and is not 100%



Compatible Programs