Fatal Twelve [Switch] [Prototype ltd] extracting .PAK archive

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Akiha
Posts: 2
Joined: Sun Oct 24, 2021 2:32 pm

Extracting unknown .PAK file dumped from Switch [Fatal Twelve]

Post by Akiha »

Hi all, first time poster here!

I'm trying to unpack a .PAK file that was dumped from a game, "Fatal Twelve", a visual novel released on switch. The first four bytes are this.

Code: Select all

00 c8 00 00


Here are the two files that was dumped with the splitter, along with the original .PAK file.

https://mega.nz/folder/akVz2QxT#Dp-nFCprCz3Hvb9WgM6gLQ

If anyone could spare the time to help in looking into this, I'd really appreciate it! Seeing as it's a visual novel, I was thinking that the image files would be easy enough to mod, but I have to get through the gate of figuring out how the heck to unpack and repack this file!! I'm also trying to figure out what engine it was made in for any pointers.

UPDATE: With a little more digging I figured that I'd probably need to write a quickBMS script on my own to extract the files for this, seeing as I can't seem to figure out what kind of engine (possibly custom) this novel is using. If anyone coming across this thread would be kind enough to lend a hand, it would be super appreciated!
Akiha
Posts: 2
Joined: Sun Oct 24, 2021 2:32 pm

Fatal Twelve [Switch] [Prototype ltd] extracting .PAK archive

Post by Akiha »

Hi all, I posted a similar thread recently but in the wrong section, haven't gotten a reply thus far so thought I might have better luck here.

I've dumped the romFS from a visual novel game published by Prototype on the switch, and got a bunch of .PAK files that I can't extract. Tried using RikuKH3's program, as well as the BMS script by aluigi in the same thread with no luck as there aren't any .tbl files in the romFS.

Here's a sample of the hex file

Image

Uploads of a .PAK and files from the splitter

https://mega.nz/folder/akVz2QxT#Dp-nFCprCz3Hvb9WgM6gLQ

Any help is greatly appreciated.

UPDATE: With a little more searching, I did find a PAK extractor by LucaSystem, that can extract some PAK files from Prototype console ports like Little Busters. According to the author, it may not work with all Prototype ports such as Kanon. Additionally, after searching some other threads that were seeking to edit other Prototype games, it appears that Prototype's PAK files are using RSA encryption. It may be the case for this game as well, considering I can't read the hex file for nuts.

https://github.com/marcussacana/LucaSystem

I'm a bit of a noob, so I'm not sure how to use this with my files, but it might help someone out elsewhere.

UPDATE 2: Did a little more working, and I think I did find an encryption key using Masagrator's method on GbaTemp intended for unreal .paks. I'm not sure if I'm allowed to share that here, so I'll PM anyone who wants to lend a hand with it and see if we can't figure something out.

UPDATE 3: Okay, basically ignore everything in this post, because there's a tool dedicated to extracting these PAK files by prototype here https://github.com/wetor/LucaSystemTools. The engine these visual novels ported to consoles by prototype are using Luca System Engine. I'm currently trying to figure out a way to extract and repack CZ3 files (Prototype format for images).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extracting unknown .PAK file dumped from Switch [Fatal Twelve]

Post by aluigi »

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

Re: Fatal Twelve [Switch] [Prototype ltd] extracting .PAK archive

Post by aluigi »

Merged the two topics in one