Naruto: The Broken Bond .sra file help

Get help on any and all audio formats, or chip in and help others!
Post Reply
MarioSonicU
advanced
Posts: 74
Joined: Thu Jun 25, 2015 11:26 pm
Has thanked: 9 times
Been thanked: 1 time

Naruto: The Broken Bond .sra file help

Post by MarioSonicU » Fri Jun 26, 2015 12:02 am

I was wondering if there are any ways to extract or figure out the naruto_stream and naruto_sound sra files

brendan19
ultra-veteran
ultra-veteran
Posts: 384
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 88 times

Re: Naruto: The Broken Bond .sra file help

Post by brendan19 » Fri Jun 26, 2015 11:37 am

Post some examples so people can take a look at them :)

MarioSonicU
advanced
Posts: 74
Joined: Thu Jun 25, 2015 11:26 pm
Has thanked: 9 times
Been thanked: 1 time

Re: Naruto: The Broken Bond .sra file help

Post by MarioSonicU » Tue Dec 06, 2016 4:38 pm

sorry it took this long, here is an exmple

https://mega.nz/#!XxZDRDxT!LJifU9xW1rFq ... NGgICwq22o

herbert3000
veteran
Posts: 134
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 18 times
Been thanked: 143 times
Contact:

Re: Naruto: The Broken Bond .sra file help

Post by herbert3000 » Wed Dec 07, 2016 7:24 am

Code: Select all

# Naruto.SRA

# header
46 52 53 41 	"FRSA"
02 00 00 00 	unknown
F3 6C DA 09 	offset1
95 08 00 00 	number of files
3F 5D DB 09 	offset2
E6 08 00 00 	unknown
00 00 00 00

@offset1:
for (number of files) {
00 00 00 00 	always 0
05 02 
00 10 
8B 67 01 0F 	maybe checksum?
F8 96 5E 03 	index to zlib compressed file (they start with "xœ")
97 53 05 00 	size of zlib compressed file
20 00 06 00 	size of uncompressed file
40 00 00 00	always 0x40
}

@offset2:
0x9370 bytes of unknown data
QuickBMS script:

Code: Select all

comtype zlib

idstring "FRSA"
get DUMMY long
get FILE_TABLE_OFFSET long
get FILE_COUNT long

goto FILE_TABLE_OFFSET

for i = 0 < FILE_COUNT
	get DUMMY long
	get DUMMY long
	get DUMMY long
	get OFFSET long
	get ZSIZE long
	get SIZE long
	get DUMMY long
	
	set NAME "FRSA_Output\sprite_"
	string NAME + i
	string NAME + ".kk2d"
	
	clog NAME OFFSET ZSIZE SIZE
next i

Post Reply