The Forum is up for sale: XeNTaX Forum looking for new owner

Help with Broken Sword Directors Cut .dat file

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
stevenx
veteran
Posts: 130
Joined: Sat Nov 01, 2008 12:02 pm
Has thanked: 3 times
Been thanked: 1 time

Help with Broken Sword Directors Cut .dat file

Post by stevenx »

The contents of this post was deleted because of possible forum rules violation.
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

Post by chrrox »

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
stevenx
veteran
Posts: 130
Joined: Sat Nov 01, 2008 12:02 pm
Has thanked: 3 times
Been thanked: 1 time

Re: Help with Broken Sword Directors Cut .dat file

Post by stevenx »

The contents of this post was deleted because of possible forum rules violation.
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

Post by RENIKRILL »

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:

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
should work without probems, though lemme know if you do have any at all :-D
stevenx
veteran
Posts: 130
Joined: Sat Nov 01, 2008 12:02 pm
Has thanked: 3 times
Been thanked: 1 time

Re: Help with Broken Sword Directors Cut .dat file

Post by stevenx »

Very thanks. This is very useful for me!
sEri
ultra-n00b
Posts: 4
Joined: Wed Aug 26, 2009 1:02 pm

Re: Help with Broken Sword Directors Cut .dat file

Post by sEri »

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.
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

Post by bacter »

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.
elitetum
ultra-n00b
Posts: 2
Joined: Thu Nov 03, 2011 9:28 am
Been thanked: 1 time

Re: Help with Broken Sword Directors Cut .dat file

Post by elitetum »

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.
Sorry for digging out this old post, but I currently work on those 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!!
Post Reply