[SOLVED] Star Wars: Bounty Hunter PS2 - *.ZAP

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[SOLVED] Star Wars: Bounty Hunter PS2 - *.ZAP

Post by AlphaTwentyThree »

Hi!

I'm always confused by compressed files inside archives. Maybe somebody could write a script for these ZAP archives so I can understand them a bit better.
Here are three samples: https://1fichier.com/?2cld6wjedzv56tfw8p68

Still trying to figure out the music system of this game...
Last edited by AlphaTwentyThree on Sat Jan 29, 2022 4:33 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Star Wars: Bounty Hunter PS2 - *.ZAP

Post by aluigi »

http://aluigi.org/bms/swzap.bms

The swzap comptype was already available in quickbms so I guess this format has already been parsed in the past, but I didn't have a script.
The format was a bit complicated on how the chunks were handled but everything worked (like the entry size 0xdcdcdcdc and so on).
There are duplicated filenames but their content seem to be ever the same, probably different versions of the same file.

I used a MEMORY_FILE for building the frames because it works better with duplicated filenames, after all reimporting would not be possible anyway
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Star Wars: Bounty Hunter PS2 - *.ZAP

Post by AlphaTwentyThree »

Phew, actually more complicated than I thought.
Thanks for the script, will have something to work with. :)