SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by Warthog1336 »

Hi! Could somebody help me extracting the content of those *.ZAR archives which contain the sounds I'm looking for? Thanks in advance.

Samples: ZAR
hnnewgames
Posts: 148
Joined: Sat Dec 16, 2017 8:58 pm

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by hnnewgames »

I'm in love with this game, especially your songs. :mrgreen:
-
Image
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by Warthog1336 »

Sorry but it doesn't seem to work. I found this script by alpha23 :

Code: Select all

get UNK long
get FILES long
math FILES -= 1 # first one seems to be no actual file
get INFO long
get UNK long
get BLOCKSIZE long # determines filler blocks
math INFO += 0x74
goto INFO
set OFFCORR FILES
math OFFCORR *= 0x10
math OFFCORR += INFO
math OFFCORR /= BLOCKSIZE
math OFFCORR += 1
math OFFCORR *= BLOCKSIZE
set NAMEPOS 0x64
for i = 1 <= FILES
   get UNK long
   get OFFSET long
   math OFFSET += OFFCORR
   get SIZE long
   get ZERO long
   savepos MYOFF
   goto NAMEPOS
   get NAME string
   savepos NAMEPOS
   log NAME OFFSET SIZE
   goto MYOFF
next i


It extracts all the files correctly with original names but I found the proper names of the tracks inside another file "readerc.zar". Is it possible to edit this script in order to take the names inside readerc and extract what is inside vagstore with these names? Thanks in advance!

READERC.ZAR
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by aluigi »

http://aluigi.org/bms/socom_zar.bms

The vags*.zar files are NOT archives, they start with the codec (I see ps adpcm in one of them) directly from offset 0
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by Warthog1336 »

They are not archives? Sorry oO
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by aluigi »

Don't worry, it wasn't possible to know it without analysis :)
It's rare but sometimes the developers use the same file extension for both archives and normal files.

P.S.: after a double check I guess that vags* are containers and not just a big raw audio file, the reason is that vags_eng* contains strange data at the beginning and adpcm at the end. Still no information for extracting the data, that's why they are only containers.
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by cyberspeed »

I think, in my humble opinion, the score music from SOCOM U.S.NAVY SEALs FIRETEAM BRAVO 2 for PSP is better, nicely composed and very powerful, keeps you on the edge of your seat the whole time you play the game on the PSP, or emulated on PC.
And although both scripts extract the sounds of the PSP version, the one posted above keeps the headers intact and they play fine, while Luigi's script screws things up big time and they will no longer play.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by aluigi »

cyberspeed wrote:while Luigi's script screws things up big time and they will no longer play.

me sad :(

Anyway the results on readerc.zar are identical with both the scripts.
If you can upload one of the archives that gives wrong results with my script I will fix it immediately (I bet it's the ALIGN field or something similar).
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by cyberspeed »

aluigi wrote:If you can upload one of the archives that gives wrong results with my script I will fix it immediately (I bet it's the ALIGN field or something similar).

VAGSTORE.zip
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by aluigi »

Ok fixed, thanks
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: SOCOM: U.S. Navy SEALs (PS2) - *.ZAR

Post by cyberspeed »

Thank you, I can confirm now they play fine for both PSP games with same files.

SOCOM U.S.NAVY SEALs FIRETEAM BRAVO
SOCOM U.S.NAVY SEALs FIRETEAM BRAVO 2