Bullet Girls 2 PS VITA .Bin

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
GoodConduct
Posts: 104
Joined: Fri Jan 20, 2017 10:25 am

Bullet Girls 2 PS VITA .Bin

Post by GoodConduct »

Hello, I am trying to extract the sound files from this game however I keep running into a road block of not finding files in the .bins. But this is probably due to me using a script that was made for Bullet Girls 1.

Error: https://i.imgur.com/GSo3vzV.png

Files:
https://www.mediafire.com/file/bfoztodz ... e.bin/file
https://www.mediafire.com/file/9a5lxlm6 ... e.bin/file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bullet Girls 2 PS VITA .Bin

Post by aluigi »

Just gave a quick look at se.bin but the table at the beginning doesn't match the content (playstation adpcm) so I suppose these files don't have a table.
What exact script (name/link) were you trying to use?
GoodConduct
Posts: 104
Joined: Fri Jan 20, 2017 10:25 am

Re: Bullet Girls 2 PS VITA .Bin

Post by GoodConduct »

Hello and thank you for the response. I was trying to use this one http://aluigi.org/bms/grp_bin_a755aafc.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bullet Girls 2 PS VITA .Bin

Post by aluigi »

That script scans the input file for a specific pattern of bytes.
You get zero files because there is no pattern in them.
It's a scanner, not a real extractor since there is no file table in it or it's not easy to parse.
GoodConduct
Posts: 104
Joined: Fri Jan 20, 2017 10:25 am

Re: Bullet Girls 2 PS VITA .Bin

Post by GoodConduct »

aluigi wrote:That script scans the input file for a specific pattern of bytes.
You get zero files because there is no pattern in them.
It's a scanner, not a real extractor since there is no file table in it or it's not easy to parse.

Anything I can do to try and extract the file?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bullet Girls 2 PS VITA .Bin

Post by aluigi »

(se.bin) From offset 0x800 there is Playstation adpcm with probably some header, the table-looking at the beginning of the file doesn't match the content.
GoodConduct
Posts: 104
Joined: Fri Jan 20, 2017 10:25 am

Re: Bullet Girls 2 PS VITA .Bin

Post by GoodConduct »

aluigi wrote:(se.bin) From offset 0x800 there is Playstation adpcm with probably some header, the table-looking at the beginning of the file doesn't match the content.

I was able to successfully extract the se.bin using PSound but the vce.bin is giving issues. It won't let me extract anything from that using the same method.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bullet Girls 2 PS VITA .Bin

Post by aluigi »

The format of the two files is similar, sequence of senseless 32bit numbers (probably checksums) and then ps vag at offset 0x6000 with sequences of "PPHD" files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bullet Girls 2 PS VITA .Bin

Post by aluigi »

Ok, I have an idea. Hold on ;)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bullet Girls 2 PS VITA .Bin

Post by aluigi »

GoodConduct
Posts: 104
Joined: Fri Jan 20, 2017 10:25 am

Re: Bullet Girls 2 PS VITA .Bin

Post by GoodConduct »

aluigi wrote:http://aluigi.org/bms/bullet_girls_bin.bms

Extracted like a charm thank you very much. Only thing is getting it to play in foobar or a similar program. It left these .sdb files but I cannot play them in anything.
https://www.mediafire.com/file/f7tqr1w3 ... 0.sdb/file
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Bullet Girls 2 PS VITA .Bin

Post by BloodRaynare »

Here's the script I created (And modified recently for much cleaner method. Still hacky though) sometime ago to extract those PPHD soundbanks (in this case, .sdb files) to HE-VAG files which playable with the latest version of vgmstream.
You maybe need to create the batch files to process all of them.

Code: Select all

## PPHD to HE-VAG extractor
## For some PSVita games (High School DxD New Fight, Bullet Girls, maybe others as well)
## Script by BloodRaynare. For usage with quickbms: http://aluigi.altervista.org/quickbms.htm

callfunction getsounddata 1
get SOUNDDATA asize MEMORY_FILE
get VAGNAME basename
callfunction addVAGheader 1
get VAGSIZE asize MEMORY_FILE2
get NAME BASENAME
string NAME p= "%s.vag" NAME
log NAME 0 VAGSIZE MEMORY_FILE2

startfunction getsounddata
   goto 0x338
   get FREQ long
   get STREAMSIZE long
   math SOUND_OFF = 0x360
   log MEMORY_FILE SOUND_OFF STREAMSIZE
endfunction

startfunction addVAGheader
   log MEMORY_FILE2 0 0
   putDstring "VAGp" 4 MEMORY_FILE2
   endian big
   put 0x20001 long MEMORY_FILE2
   put 0 long MEMORY_FILE2
   put SOUNDDATA long MEMORY_FILE2
   put FREQ long MEMORY_FILE2
   putDstring "" 12 MEMORY_FILE2
   putDstring VAGNAME 16 MEMORY_FILE2
   endian little
   append
   log MEMORY_FILE2 0 SOUNDDATA MEMORY_FILE
   append
endfunction
GoodConduct
Posts: 104
Joined: Fri Jan 20, 2017 10:25 am

Re: Bullet Girls 2 PS VITA .Bin

Post by GoodConduct »

BloodRaynare wrote:Here's the script I created (And modified recently for much cleaner method. Still hacky though) sometime ago to extract those PPHD soundbanks (in this case, .sdb files) to HE-VAG files which playable with the latest version of vgmstream.
You maybe need to create the batch files to process all of them.

Code: Select all

## PPHD to HE-VAG extractor
## For some PSVita games (High School DxD New Fight, Bullet Girls, maybe others as well)
## Script by BloodRaynare. For usage with quickbms: http://aluigi.altervista.org/quickbms.htm

callfunction getsounddata 1
get SOUNDDATA asize MEMORY_FILE
get VAGNAME basename
callfunction addVAGheader 1
get VAGSIZE asize MEMORY_FILE2
get NAME BASENAME
string NAME p= "%s.vag" NAME
log NAME 0 VAGSIZE MEMORY_FILE2

startfunction getsounddata
   goto 0x338
   get FREQ long
   get STREAMSIZE long
   math SOUND_OFF = 0x360
   log MEMORY_FILE SOUND_OFF STREAMSIZE
endfunction

startfunction addVAGheader
   log MEMORY_FILE2 0 0
   putDstring "VAGp" 4 MEMORY_FILE2
   endian big
   put 0x20001 long MEMORY_FILE2
   put 0 long MEMORY_FILE2
   put SOUNDDATA long MEMORY_FILE2
   put FREQ long MEMORY_FILE2
   putDstring "" 12 MEMORY_FILE2
   putDstring VAGNAME 16 MEMORY_FILE2
   endian little
   append
   log MEMORY_FILE2 0 SOUNDDATA MEMORY_FILE
   append
endfunction


Works GREAT thank you very much :) Thank you BloodRayne and Aluigi!