Unpack Sengoku Basara 2 FPK files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
LowTierDev
Posts: 5
Joined: Mon Jun 08, 2020 12:23 am

Unpack Sengoku Basara 2 FPK files

Post by LowTierDev »

Hiya, I tried using all the available scripts previously for FPK files to no avail.

Using AFS Explorer for the PES game series, I am able to extract alot of the games' files. These include the audio files in .ahx format, the movies in .sfd files and the last linkdata / afs file contains a few file formats, this one in particular looks interesting (FPK)

Here are a few which I've uploaded all of the different variations of this file type within this game:
https://drive.google.com/drive/folders/ ... sp=sharing

If anyone could help unpack them / make a script it would be appreciated
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Unpack Sengoku Basara 2 FPK files

Post by BloodRaynare »

Here's a quickie script i wrote for this format:

Code: Select all

idstring "#fpk"
get FILES long
get UNK long # Values is always 0x10
get HEADSIZE long # File's header info length. Probably wasn't needed for extraction but still included for completeness.
for i = 0 < FILES
   get OFFSET long
   get SIZE long
   get FNAME basename
   math i + 1
   string NAME p= "%s\%s_%03i." FNAME FNAME i
   log NAME OFFSET SIZE
next


This script will create a new directory for the extracted archives
LowTierDev
Posts: 5
Joined: Mon Jun 08, 2020 12:23 am

Re: Unpack Sengoku Basara 2 FPK files

Post by LowTierDev »

BloodRaynare wrote:Here's a quickie script i wrote for this format:

Code: Select all

idstring "#fpk"
get FILES long
get UNK long # Values is always 0x10
get HEADSIZE long # File's header info length. Probably wasn't needed for extraction but still included for completeness.
for i = 0 < FILES
   get OFFSET long
   get SIZE long
   get FNAME basename
   math i + 1
   string NAME p= "%s\%s_%03i." FNAME FNAME i
   log NAME OFFSET SIZE
next


This script will create a new directory for the extracted archives


Wow, thanks so much!!!! Any ideas on the MSG files? They appear to be an image format
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Unpack Sengoku Basara 2 FPK files

Post by BloodRaynare »

LowTierDev wrote:Wow, thanks so much!!!! Any ideas on the MSG files? They appear to be an image format


N̶o̶ ̶i̶d̶e̶a̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶o̶s̶e̶.̶ ̶B̶u̶t̶,̶ ̶f̶r̶o̶m̶ ̶q̶u̶i̶c̶k̶ ̶g̶l̶a̶n̶c̶e̶ ̶i̶n̶ ̶h̶e̶x̶ ̶e̶d̶i̶t̶o̶r̶ ̶t̶h̶e̶ ̶s̶c̶t̶r̶u̶c̶t̶u̶r̶e̶'̶s̶ ̶f̶r̶o̶m̶ ̶t̶h̶o̶s̶e̶ ̶M̶S̶G̶'̶s̶ ̶k̶i̶n̶d̶a̶ ̶r̶e̶m̶i̶n̶d̶s̶ ̶m̶e̶ ̶o̶f̶ ̶R̶e̶n̶d̶e̶r̶W̶a̶r̶e̶'̶s̶ ̶T̶X̶D̶.̶ ̶M̶a̶y̶b̶e̶ ̶y̶o̶u̶ ̶c̶a̶n̶ ̶t̶r̶y̶ ̶p̶o̶s̶t̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶e̶m̶ ̶i̶n̶ ̶t̶o̶ ̶G̶r̶a̶p̶h̶i̶c̶ ̶f̶i̶l̶e̶ ̶f̶o̶r̶m̶a̶t̶s̶ ̶s̶e̶c̶t̶i̶o̶n̶.̶N̶o̶ ̶i̶d̶e̶a̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶o̶s̶e̶.̶ ̶B̶u̶t̶,̶ ̶f̶r̶o̶m̶ ̶q̶u̶i̶c̶k̶ ̶g̶l̶a̶n̶c̶e̶ ̶i̶n̶ ̶h̶e̶x̶ ̶e̶d̶i̶t̶o̶r̶ ̶t̶h̶e̶ ̶s̶c̶t̶r̶u̶c̶t̶u̶r̶e̶'̶s̶ ̶f̶r̶o̶m̶ ̶t̶h̶o̶s̶e̶ ̶M̶S̶G̶'̶s̶ ̶k̶i̶n̶d̶a̶ ̶r̶e̶m̶i̶n̶d̶s̶ ̶m̶e̶ ̶o̶f̶ ̶R̶e̶n̶d̶e̶r̶W̶a̶r̶e̶'̶s̶ ̶T̶X̶D̶.̶ ̶M̶a̶y̶b̶e̶ ̶y̶o̶u̶ ̶c̶a̶n̶ ̶t̶r̶y̶ ̶p̶o̶s̶t̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶e̶m̶ ̶i̶n̶ ̶t̶o̶ ̶G̶r̶a̶p̶h̶i̶c̶ ̶f̶i̶l̶e̶ ̶f̶o̶r̶m̶a̶t̶s̶ ̶s̶e̶c̶t̶i̶o̶n̶.̶

EDIT: Whoops, scratch that. I think I confused it with the files from 000.pack. I think the MSG was the game's text or something related to it.
LowTierDev
Posts: 5
Joined: Mon Jun 08, 2020 12:23 am

Re: Unpack Sengoku Basara 2 FPK files

Post by LowTierDev »

BloodRaynare wrote:
LowTierDev wrote:Wow, thanks so much!!!! Any ideas on the MSG files? They appear to be an image format


N̶o̶ ̶i̶d̶e̶a̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶o̶s̶e̶.̶ ̶B̶u̶t̶,̶ ̶f̶r̶o̶m̶ ̶q̶u̶i̶c̶k̶ ̶g̶l̶a̶n̶c̶e̶ ̶i̶n̶ ̶h̶e̶x̶ ̶e̶d̶i̶t̶o̶r̶ ̶t̶h̶e̶ ̶s̶c̶t̶r̶u̶c̶t̶u̶r̶e̶'̶s̶ ̶f̶r̶o̶m̶ ̶t̶h̶o̶s̶e̶ ̶M̶S̶G̶'̶s̶ ̶k̶i̶n̶d̶a̶ ̶r̶e̶m̶i̶n̶d̶s̶ ̶m̶e̶ ̶o̶f̶ ̶R̶e̶n̶d̶e̶r̶W̶a̶r̶e̶'̶s̶ ̶T̶X̶D̶.̶ ̶M̶a̶y̶b̶e̶ ̶y̶o̶u̶ ̶c̶a̶n̶ ̶t̶r̶y̶ ̶p̶o̶s̶t̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶e̶m̶ ̶i̶n̶ ̶t̶o̶ ̶G̶r̶a̶p̶h̶i̶c̶ ̶f̶i̶l̶e̶ ̶f̶o̶r̶m̶a̶t̶s̶ ̶s̶e̶c̶t̶i̶o̶n̶.̶N̶o̶ ̶i̶d̶e̶a̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶o̶s̶e̶.̶ ̶B̶u̶t̶,̶ ̶f̶r̶o̶m̶ ̶q̶u̶i̶c̶k̶ ̶g̶l̶a̶n̶c̶e̶ ̶i̶n̶ ̶h̶e̶x̶ ̶e̶d̶i̶t̶o̶r̶ ̶t̶h̶e̶ ̶s̶c̶t̶r̶u̶c̶t̶u̶r̶e̶'̶s̶ ̶f̶r̶o̶m̶ ̶t̶h̶o̶s̶e̶ ̶M̶S̶G̶'̶s̶ ̶k̶i̶n̶d̶a̶ ̶r̶e̶m̶i̶n̶d̶s̶ ̶m̶e̶ ̶o̶f̶ ̶R̶e̶n̶d̶e̶r̶W̶a̶r̶e̶'̶s̶ ̶T̶X̶D̶.̶ ̶M̶a̶y̶b̶e̶ ̶y̶o̶u̶ ̶c̶a̶n̶ ̶t̶r̶y̶ ̶p̶o̶s̶t̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶e̶m̶ ̶i̶n̶ ̶t̶o̶ ̶G̶r̶a̶p̶h̶i̶c̶ ̶f̶i̶l̶e̶ ̶f̶o̶r̶m̶a̶t̶s̶ ̶s̶e̶c̶t̶i̶o̶n̶.̶

EDIT: Whoops, scratch that. I think I confused it with the files from 000.pack. I think the MSG was the game's text or something related to it.


Looking around on this forum I've seen a few posts about it, what do you suggest? Should I still go ahead and post it in the graphic file format?