Trapt (PS2) Help extracting .arc Files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Biohazard4x
Posts: 9
Joined: Fri Jan 01, 2021 12:03 am

Trapt (PS2) Help extracting .arc Files

Post by Biohazard4x »

Hello,

Im trying to extract the .arc files inside the PS2 game, Trapt (Kagero II: Dark Illusion). These .arc file are stored inside the game.dat which I was able extract. This game seems to be not very popular and in my opinion underrated so I cant ANY INFORMATION regarding the game files. So most likely a tool does not exist.

I have found within these .arc files there are multiple files stored inside as expected, as backedup as it shows through hex. Though i am unable to find a tool or any information to help extract them.

So I am reaching out here to your guys expertise in hoping of helping form a BMS script or another method of extracting them.

Below I have attached several samples. Thanks
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Trapt (PS2) Help extracting .arc Files

Post by BloodRaynare »

Here's the BMS script for those files:

Code: Select all

IDString "RPS\x00"
get FILES long
get FSTART_OFF long
get ARC_SIZE long
get ARC_SIZE2 long
get ZERO long
for i = 0 < FILES
   get SIZE long # There's a double occurence of the size field
   get SIZE2 long
   get NAME_OFF long
   get OFFSET long
   get ZERO long # Last files of the archive doesn't have a 4byte zeroes after it
   math OFFSET + FSTART_OFF
   savepos CUR_POS
   goto NAME_OFF
   get NAME string
   goto CUR_POS
   log NAME OFFSET SIZE
next i
Biohazard4x
Posts: 9
Joined: Fri Jan 01, 2021 12:03 am

Re: Trapt (PS2) Help extracting .arc Files

Post by Biohazard4x »

You sir, are a prophet! Thank You!