pit people .pak

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

pit people .pak

Post by PlanK69 »

Hi there

The game "pit people" by the developer "the behemoth" uses a .pak format (I've already tried 3 other .pak bms scripts from other games, which didn't work)

Here are the 3 files that are most important (videos.pak, music.pak, sounds.pak): https://www.dropbox.com/sh/iylv0jst0ce8 ... Sia5a?dl=0 (476mb total size)

If someone could make a script for these files, that'd be great. Cheers
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

The table containing the information is probably obfuscated with a fixed string, but I don't think it's xor.
Anyway the archived files are standard formats like BIK (videos) and FSB (music and sound, but it's ogg format).
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

Can you try this XOR key? Found it on another forum who is also trying to get at the files from this game

XOR: 73 65 63 75 72 69 74 79 74 68 72 6F 75 67 68 6F
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

awesome, tyvm aluigi. I then used FMOD FSB extractor to get the .ogg to .wav

+10 internets for you once again
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

Script 0.2 supporting the compressed files.
Unfortunately I don't know what's the obfuscation used on the filenames so files will continue to have no name.
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

So, the game has fully released now, and I managed to extract everything I need, except for this one file (which should contain audio files): https://www.dropbox.com/s/iphjenwk48b4u ... s.pak?dl=0

Can you take a look? I used your 'pit people' script, without success. I also tried the "FMOD FSB Extractor" which worked on the other files in Pit People, but that didn't work either. Thanks in advance.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

Use fsbext in scanning mode with the option -o -1, example:
fsbext -d output_folder -o -1 00000000.fev
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

Right o, thanks very much. I'm not too sure what you meant by the 'scanning mode' but I did the fsbext the way that I usually do it (with command prompt), but with the parameters you mentioned and I got a bunch of .ogg files out (with proper file names), so it seems to have worked, but I then tried to play it and even tried all my audio converting programs and the files aren't recognized, though their format is .ogg. If you have time, can you have a look and see why they aren't recognized?: https://www.dropbox.com/sh/rh5d6yc6u01e ... uFzVa?dl=0 (I uploaded 3 of them for you).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

ah ogg are a problem, it's a long long story.
Basically you should first dump the FSB from these fev files using this script:
http://aluigi.org/bms/dump_fsbs.bms
and then using this tool:
viewtopic.php?f=17&t=1901
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

I tried using quickbms with the dump_fsbs.bms script but it yielded 0 files on all of the files. Man, these files are becoming a pain in the dick!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

Wow that script was extremely old without support for FSB5.
Just updated it to version 0.2 with full support of the fields taken directly from fsbext.
Hope the pain is gone :)
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

Thanks very much for that, but the script now causes my quickbms to crash. I've tried it several times with several different files and it crashes each time :( The pain is intensifying!!~ Ouchie!~
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

Crash?
Here it works perfectly and the script doesn't contain any weird instruction.
Are you using a recent version of quickbms?
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

Oh yes, I'm using the latest one from your website 0.8.4.

I've attached a screenshot of the error. I've tried to use the script to open the "highlevelsounds.pak" as well as the files that were extracted from "highlevelsounds.pak" using the 'pit people' bms script, and both times I get the error.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

I understand.
That's an experimental feature of quickbms that allows to use C structs in the scripts, apparently there is something not correctly handled in the code... who knows, for sure it's not going to be fixed now.
You have to keep your pain! :D
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: pit people .pak

Post by PlanK69 »

Woe always me! I understand, ur a busy boy! Thanks for your help though
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: pit people .pak

Post by aluigi »

Maybe try running quickbms with the option -9, probably it changes nothing but let's try because it's not a bug that can be replicated 100% of times (here didn't happen) so it's enough to get the moment in which it may not happen.