The Forum is up for sale: XeNTaX Forum looking for new owner
Help with Broken Sword Directors Cut .dat file
-
chrrox
- Moderator
- Posts: 2602
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1411 times
Re: Help with Broken Sword Directors Cut .dat file
quickbms script
Code: Select all
idstring "AUFS"
get files long
for i = 0 < files
get name1 long
get offset long
get size long
string name1 + .ogg
log name1 offset size
next i
-
RENIKRILL
- advanced
- Posts: 58
- Joined: Wed Feb 11, 2009 12:54 pm
- Location: land of the golden sun
- Has thanked: 13 times
- Been thanked: 19 times
Re: Help with Broken Sword Directors Cut .dat file
I had a look @ all of these dat files a while back and wrote a qbms script which works for all files from the revolution software games on apple handheld hardware:
should work without probems, though lemme know if you do have any at all 
Code: Select all
# for use with the dat files in BASS (iphone), bs: director's cut (ipad + iphone)
getdstring DATT 4
get FILES long
for i = 0 < FILES
get CRCFN long
get OFFSET long
get SIZE long
if DATT == HSFS
get ZSIZE long
set DATA 1
elif DATT == AUFS
set DATA 2
elif DATT == SPCH
set DATA 2
endif
set FTYPE ""
set NAME string CRCFN
if DATA == 2
log MEMORY_FILE OFFSET SIZE
getdstring FTYPE 4 MEMORY_FILE
endif
if FTYPE == OggS
string NAME += .ogg
endif
if DATA == 1
clog NAME OFFSET ZSIZE SIZE
elif DATA == 2
log NAME OFFSET SIZE
endif
next i
Re: Help with Broken Sword Directors Cut .dat file
RENIKRILL, thank you very much for your script
But I still got some problems
For example, the bs1dc.dat which is zlib compressed, has thousands of files.
But we can't know the name or extension of each file.
That means, what we got are only some unknown binary files.
Some start with "BM" but is not .bmp file, some start with "SPRA" that I don't familiar with.
There're almost 3000 files, it's hard for me to analysis them one by one.
I think there may be another file which contains some important info like the name or type of each file.
Would you please take a look? Very thanks
Regards.
But I still got some problems
For example, the bs1dc.dat which is zlib compressed, has thousands of files.
But we can't know the name or extension of each file.
That means, what we got are only some unknown binary files.
Some start with "BM" but is not .bmp file, some start with "SPRA" that I don't familiar with.
There're almost 3000 files, it's hard for me to analysis them one by one.
I think there may be another file which contains some important info like the name or type of each file.
Would you please take a look? Very thanks
Regards.
-
bacter
- veteran
- Posts: 142
- Joined: Mon Feb 22, 2010 8:42 pm
- Has thanked: 2 times
- Been thanked: 83 times
Re: Help with Broken Sword Directors Cut .dat file
Here' my DAT extractor/replacer tool.
(Mainly for the "bs1dc.dat" file, but works with the other .dat files too)
During extraction it groups the files to subdirs:
DE=german language files
ES=spanish language files
FR=french
IT=italian (it's possible that I mixed some files with the spanish files)
UK=UK english
US=US english
EN=UK or US
XX=other, useless files
The language files are automatically converted to editable text files.
(Mainly for the "bs1dc.dat" file, but works with the other .dat files too)
During extraction it groups the files to subdirs:
DE=german language files
ES=spanish language files
FR=french
IT=italian (it's possible that I mixed some files with the spanish files)
UK=UK english
US=US english
EN=UK or US
XX=other, useless files
The language files are automatically converted to editable text files.
Re: Help with Broken Sword Directors Cut .dat file
Sorry for digging out this old post, but I currently work on those files.bacter wrote:Here' my DAT extractor/replacer tool.
(Mainly for the "bs1dc.dat" file, but works with the other .dat files too)
During extraction it groups the files to subdirs:
DE=german language files
ES=spanish language files
FR=french
IT=italian (it's possible that I mixed some files with the spanish files)
UK=UK english
US=US english
EN=UK or US
XX=other, useless files
The language files are automatically converted to editable text files.
@bacter: Can't see any link in your post!?? You still have that extractor tool?
I am having the same problem as sEri. Getting hunderds of binary files and don't know exactly how to use them. Many of them also start with FACE8. My maingoal was to extract sprites/gfx of the game. Any ideas how to proceed? Any help is appreciated a lot!!
