Metal Gear Solid: Portable Ops+ _ZAR contents and other files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
E3245
Posts: 10
Joined: Sat Aug 22, 2015 9:37 pm

Metal Gear Solid: Portable Ops+ _ZAR contents and other files

Post by E3245 »

Hello, I have some files from Metal Gear Solid: Portable Ops+ that I'd like to extract from (mostly music).

First off, I used offzip to extract the contents of some of the _ZAR files from the game. The result is a readable file, but no tools or scripts that I know of that can open it.

Second, there's a 80+ MB file called slot.dat that I wonder what's inside of it.

Example files attached below. I used the filecutter BMS script to cut slot.dat.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Metal Gear Solid: Portable Ops+ _ZAR contents and other files

Post by aluigi »

Script for dumping the files from the DAT files:

Code: Select all

# Metal Gear Solid: Portable Ops+ _ZAR
get DAT_SIZE asize
math DAT_SIZE - 1
goto 0x20
get TMP string
savepos OFFSET
for OFFSET = OFFSET != DAT_SIZE
    do
        get TMP byte
    while TMP == 0
    goto -1 0 SEEK_CUR
    get NAME string
    padding 4
    get SIZE long
    padding 0x10
    savepos OFFSET
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next
E3245
Posts: 10
Joined: Sat Aug 22, 2015 9:37 pm

Re: Metal Gear Solid: Portable Ops+ _ZAR contents and other files

Post by E3245 »

aluigi wrote:Script for dumping the files from the DAT files:

Code: Select all

# Metal Gear Solid: Portable Ops+ _ZAR
get DAT_SIZE asize
math DAT_SIZE - 1
goto 0x20
get TMP string
savepos OFFSET
for OFFSET = OFFSET != DAT_SIZE
    do
        get TMP byte
    while TMP == 0
    goto -1 0 SEEK_CUR
    get NAME string
    padding 4
    get SIZE long
    padding 0x10
    savepos OFFSET
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next


Thanks for the script, but it refuses to extract anything from slot.dat.

It keeps telling me that the names are invalid and need to be changed and giving them a new name gives out this error:

Code: Select all

ERROR: impossible to write 0xa603dcb6 bytes (total 0xa603dcb6)
Check your disk space

Last script line before the error or that produced the error:
17     log NAME OFFSET SIZE


I didn't want to upload the entire slot.dat for copyright reasons, but here it is anyway: http://www.mediafire.com/file/7q8kb8a2qnqgtya/slot.dat
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Metal Gear Solid: Portable Ops+ _ZAR contents and other files

Post by aluigi »

slot.dat doesn't have an index or a format, additionally there are no known file types in it so no way to extract something usable.

Regarding copyright it's enough to delete the files when the analysis is done (few days).