Please upgrade the psarc script

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
raykingnihong
Posts: 71
Joined: Fri Oct 24, 2014 3:13 pm

Please upgrade the psarc script

Post by raykingnihong »

PlayStation AllStars Battle Royale Please upgrade the psarc script ,Have tested the current script and total Commander, but I had no luck, unable to decompress the file, ask the gods for help, here are sample files,https://onedrive.live.com/redir?resid=6A28B826BE5F1236%21141
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please upgrade the psarc script

Post by aluigi »

I have written (rewritten because there was already a work-in-progress script there) a script for the PSARC format based on the information of the public tools 1 and 2.
http://aluigi.org/papers/bms/others/brink.bms

The problem with the file you provided is related to the compression because I don't know what compression algorithm it uses.
Every compressed chunk starts with the byte 0x00 but it's not lzma_0, my scanner didn't give good results.
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Re: Please upgrade the psarc script

Post by Miles2345 »

I actually remember hearing somewhere on xentax that these archives are actually encrypted. I'm interested in this game as well.

I think the only option as of right now is to run a memory dump on the console itself.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please upgrade the psarc script

Post by aluigi »

Found the thread.
They talk about a certain DecryptPsarcs function but the discussion and progress didn't continue.
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Re: Please upgrade the psarc script

Post by Miles2345 »

That's a little disappointing. I'd like to see this game cracked open someday.
Seems like something that would have happened within the first month of the game's launch considering it's a fighting game, but apparently not.
raykingnihong
Posts: 71
Joined: Fri Oct 24, 2014 3:13 pm

Re: Please upgrade the psarc script

Post by raykingnihong »

aluigi wrote:Found the thread.
They talk about a certain DecryptPsarcs function but the discussion and progress didn't continue.

Hello my friend, thank you for your continued help.
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Re: Please upgrade the psarc script

Post by bxaimc »

Sorry to revive an old thread like this but I do have a psarc that half-works with the current script. It extracts the files, yes, but there are no names. I do see the table though. Any fixes for this? Please and thanks!

The first 477MB from the PSARC:

https://drive.google.com/open?id=1AmTrcCD22mIQBT_JeTJ6oznjkDXc3jFI

fwiw the PSARC is 20 GB
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please upgrade the psarc script

Post by aluigi »

Script 0.3.4 :)
http://aluigi.org/bms/brink.bms

Basically here (archive version 1.4 with flag 0xf) the filenames are NULL terminated rather than being on lines, problem solved very easily.
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Re: Please upgrade the psarc script

Post by bxaimc »

Great it works! Awesome as always, thanks aluigi!


EDIT: Ok, so names extract correctly but the offsets are all wrong...hmm

for example: music058.orb.mab is supposed to be @ 0x00CD0000 but it extracted data from either 0x3DB630000 or 0x445BA0DD0 (dunno which one, probably dupes of each other)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please upgrade the psarc script

Post by aluigi »

I see, apparently this format is slightly different... and boring.
The structure of each entry is ok but then it's followed by data of different format, probably a way to "optimize" space.
Honestly I don't know if I want to support it at the moment.

I bet the original tools from which has been created the script don't support it too, right?
http://svn.gib.me/public/brink
https://github.com/komiga/brinktools
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Re: Please upgrade the psarc script

Post by bxaimc »

I’ll try to give the tools a try. PSARC is a Sony pack format made from their psarc.exe in the PS3 SDK. Only problem is not only does it break the official tool, but all the subsequent tools that are based on that program as well so far.

http://www.psdevwiki.com/ps3/PlayStation_archive_(PSARC)