Naruto Shippuden: Ultimate Ninja Storm 4 audio xfbins

Codecs, formats, encoding/decoding of game audio, video and music
MarioSonicU
Posts: 116
Joined: Tue Dec 08, 2015 8:36 pm

Naruto Shippuden: Ultimate Ninja Storm 4 audio xfbins

Post by MarioSonicU »

I used a hex editor, saw that it had a NUCC header, and saw a nus3bank inside. how do i extract it?
ssh
Posts: 33
Joined: Sun Aug 17, 2014 5:50 pm

Re: Naruto Shippuden: Ultimate Ninja Storm 4 audio xfbins

Post by ssh »

Try this ;)

Code: Select all

idstring "NUCC\x00\x00"
endian big

findloc CHECK string "NUS3"
if CHECK == ""
  cleanexit
else
  set SNUM = 0
   for
    findloc OFFSET string "BNSF"
     if OFFSET == ""
      cleanexit
     else
      goto OFFSET
      get DUMMY long
      get SIZE long
      get BNAME basename
      math SIZE + 8
      string NAME p "%s_%02d.bnsf" BNAME SNUM
      log NAME OFFSET SIZE
      math OFFSET += SIZE
      math SNUM + 1
    endif
   next
endif