I have an archive file in .CBF format. I am trying to extract files from this archive, but it is not supported in any extractors that I have found. I think it would be a good addition to the MultiEX Commander.
This archive came with the new Vietcong demo, in one archive there are 5326 files. If opened in a hex editor, there is a list of all the files in the archive and they are listed in the same order that they are in the archive.
ex:
DEV\VERSION\GOD.JPG.[.......!....#KC....lk..................
DEV\VERSION\GOD.TGA._7......!...".TC.....P..................
DEV\VERSION\GOD_B.TGA.S<......!...0.[C.....|......."..........
DEV\VERSION\ILLUSION.TGA.C_......!.....`C.....]..................
DEV\VERSION\ILLUSION_B.TGA..c......!.....lC........................
DEV\VERSION\IS.JPG..T......!...ZIqC....LF.......-..........
DEV\VERSION\NVIDIA.TGA.........!.....zC.....4..................
DEV\VERSION\NVIDIA_B.TGA.........!...v..C....d.......&...........
DEV\VERSION\ORDERNOW.TGA.........!....G.C....8d..................
The codes after the file extension of each file are all the same length. The actual files in the archive are divided by this "[..]"
example of a .JPG file:
[..]....,@......H. ...A .......#J.H.....3j...... C..I....(S.\[email protected].*]
.....P.J.J....X.j......`...K....h..].....p...K..
..x............L......+^......#K.L.....3k.......
C..M.....S.^......c..M.....s.....o...R.R...$S.<q
....$L...........JFIF.....H.H.....vPhotoshop3.0.
8BIM.........H.......H......8BIM...........x8BIM
................8BIM..........8BIM'.............
//
//
................................................
................................................
................................................
................................................
................................................
................................................
.....[..]
On each file there is what, I guess to be a type of header, that varies in length for each file. As in the example above, even though it starts out with "....,@......H. ...A" the actual jpeg file starts at "....JFIF".
I wondered if maybe anybody recognized this fomat or the layout of the archive. I also wondered if the directory code pointed to the file in the archive. If you have any ideas let me know.
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
New archive format .CBF maybe you know something I don't?
Huh, I wonder why it put me down as Guest, I am the one who posted this. Anyway, that would be great, I've been able to rip out some of the files with a hex editor, but others are just a pain.
I have found 28 different file fomats in the archive: .FNT, .PK, .ANM, .WAV, .SHM, .IFL, .LDT, .TX3, .XST, .XDT,
.STD, .JPG, .BMP, .DAT, .STG, .STO, .BES, .DDS, .TGA, .EQP, .MANM, .SCR, .INI, .TXT, .CTR, .OCT, .SCO, .OGG.
I recognize a few, but others are new to me.
I have found 28 different file fomats in the archive: .FNT, .PK, .ANM, .WAV, .SHM, .IFL, .LDT, .TX3, .XST, .XDT,
.STD, .JPG, .BMP, .DAT, .STG, .STO, .BES, .DDS, .TGA, .EQP, .MANM, .SCR, .INI, .TXT, .CTR, .OCT, .SCO, .OGG.
I recognize a few, but others are new to me.
-
- Site Admin
- Posts: 4073
- Joined: Wed Jan 15, 2003 6:45 pm
- Location: Dungeons of Doom
- Has thanked: 450 times
- Been thanked: 682 times
- Contact:
OK you can try this Mex3Script (open Mex3Scriptor from the tools menu, paste it into the main window, save it as cbf.bms, and choose the "Use Custom BMS On..." option from the tools menu) and open a CBF file.
This will let you extract some, but a lot of resources in there are packed, zipped so to speak, and cannot be extracted (yet). I will have to know what zip method is used, and judging from the format I will also have to adapt MultiEx3 to be able to process it correctly.
Here's the Mex3Script :
ImpType StandardTail ;
IDString 0 BIGF ;
Set D Long 16 ;
GoTo D 0 ;
Get FC Long 0 ;
SavePos TailOffOff 0 ;
Get TP Long 0 ;
Get D Long 0 ;
Get TS Long 0 ;
GoTo TP 0 ;
For T = 1 to FC ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos J 0 ;
Math J += 16 ;
GoTo J 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
SavePos J 0 ;
Math J += 16 ;
GoTo J 0 ;
Get FN String 0 ;
Log FN FO FS FOO FSO ;
Next T ;
This will let you extract some, but a lot of resources in there are packed, zipped so to speak, and cannot be extracted (yet). I will have to know what zip method is used, and judging from the format I will also have to adapt MultiEx3 to be able to process it correctly.
Here's the Mex3Script :
ImpType StandardTail ;
IDString 0 BIGF ;
Set D Long 16 ;
GoTo D 0 ;
Get FC Long 0 ;
SavePos TailOffOff 0 ;
Get TP Long 0 ;
Get D Long 0 ;
Get TS Long 0 ;
GoTo TP 0 ;
For T = 1 to FC ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos J 0 ;
Math J += 16 ;
GoTo J 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
SavePos J 0 ;
Math J += 16 ;
GoTo J 0 ;
Get FN String 0 ;
Log FN FO FS FOO FSO ;
Next T ;
-
- Site Admin
- Posts: 4073
- Joined: Wed Jan 15, 2003 6:45 pm
- Location: Dungeons of Doom
- Has thanked: 450 times
- Been thanked: 682 times
- Contact:
Ok, take this BMS file and try again
http://www.xs4all.nl/~michael/temp/cbf.bms
1. Choose the BMS File
2. Choose the game archive
Note : it may be that this only works on the demo version and NOT on the retail version. If all goes well you should be able to extract some WAV files with this BMS.
http://www.xs4all.nl/~michael/temp/cbf.bms
1. Choose the BMS File
2. Choose the game archive
Note : it may be that this only works on the demo version and NOT on the retail version. If all goes well you should be able to extract some WAV files with this BMS.