[3DS] Seven Deadly Sins: Unjust Sin (.pck)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Glor
Posts: 7
Joined: Thu Aug 30, 2018 10:18 pm

[3DS] Seven Deadly Sins: Unjust Sin (.pck)

Post by Glor »

I've been messing with the files to Unjust Sin, and I've been trying to rip the character portraits from the game. Unfortunately, I haven't had a lot of luck after trying a few things (I also think I posted in the wrong subsection, which is my bad!). If anybody could manage to give me a hand, I'd really appreciate that.

Example .pck file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [3DS] Seven Deadly Sins: Unjust Sin (.pck)

Post by aluigi »

It's one of those few boring formats used by Nintendo that mix compressed and non-compressed files without giving any information to know if the file is or isn't compressed, additionally it's also a recursive format which means that you should use the script on the extracted files too.

I'm sure I already have a script on my collection but I don't remember what is may be, the following is the "basic" script:

Code: Select all

comtype lz77wii
get FILES long
get NAMESZ long
get ZERO long
get ZERO long
for i = 0 < FILES
    get OFFSET long
    get SIZE long
    getdstring NAME NAMESZ
    log NAME OFFSET SIZE
next i

Regarding your sample, the first file extracted from the extracted 000_Meliodas_00 is compressed ("CTPK") while the second isn't. ("IANM").