Difference between revisions of "Vietcong CBF"

From XentaxWiki
Jump to: navigation, search
 
m (Ikskoks moved page Vietcong to Vietcong CBF)
 
(5 intermediate revisions by 2 users not shown)
Line 35: Line 35:
 
=== Notes and Comments ===
 
=== Notes and Comments ===
  
* This format might use a technique similar o the indexing in the Unreal engine?
+
* filenames are encrypted with a simple key-based algorithm
* The most probable explaination of the archive format is that the directory entries are encrypted, and that each directory entry stores the filename of the file. This would explain the different sized directory entries.
+
* files in the package are encoded using 3 different methods:
* There is a repeating pattern of bytes that appear in the directory, in the arrangement 33,243,6,50,30. It is possible that this is a repeating key - if so then it probably repeats over and over, but pauses when reading the entry size field.
+
** those starting with the [..] pattern are compressed with the LZW algorithm (but files are not clean at 100%, don't know why), after the pattern is specified also the 32 bits compressed and uncompressed size of the file
* Also, by looking at some of the files, it is probable that some files are encrypted using byte 90 (Z)
+
** all the others are encrypted with a simple algorithm
 +
** some of the above files (seems only those in the INI\DAT folder) have a second encryption, simple as above
 
<br><br>
 
<br><br>
 +
 
=== Compatible Programs ===  
 
=== Compatible Programs ===  
  
 
* None - Incomplete Format Specifications
 
* None - Incomplete Format Specifications
 +
CBF files extractor<br>
 +
http://aluigi.altervista.org/papers.htm#cbfext
 +
 +
 +
[[Category:File Format]]

Latest revision as of 19:09, 25 January 2021

Choose archive extension:

CBF


Format Specifications

char {8}     - Header (BIGF + (byte)1 + ZBL)
uint64 {8}   - Archive Size
uint32 {4}   - Number Of Files
uint64 {8}   - Directory Offset
uint64 {8}   - Directory Size
uint64 {8}   - First File Offset (header size) (64)
uint32 {4}   - Unknown
uint64 {8}   - Unknown
uint64 {8}   - null

// go to dirOffset

// for each file
uint16 {2}   - Entry Size (not including these 2 bytes)
byte {X}     - Entry


MultiEx BMS Script

Not written yet

Notes and Comments

  • filenames are encrypted with a simple key-based algorithm
  • files in the package are encoded using 3 different methods:
    • those starting with the [..] pattern are compressed with the LZW algorithm (but files are not clean at 100%, don't know why), after the pattern is specified also the 32 bits compressed and uncompressed size of the file
    • all the others are encrypted with a simple algorithm
    • some of the above files (seems only those in the INI\DAT folder) have a second encryption, simple as above



Compatible Programs

  • None - Incomplete Format Specifications

CBF files extractor
http://aluigi.altervista.org/papers.htm#cbfext