Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Metal Gear Solid: Portable Ops _ZAR contents and other files

Featured Replies

  • Author
  • Localization

E3245, posted Tue Jun 20, 2017 8:43 am (24215)


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.
  • Author
  • Localization

aluigi, posted Thu Jul 20, 2017 8:15 am (24826)


Script for dumping the files from the DAT files:
Code:
# 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
  • Author
  • Localization

E3245, posted Fri Aug 04, 2017 6:57 am (25208)


aluigi wrote:
Script for dumping the files from the DAT files:
Code:
# 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:
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
  • Author
  • Localization

aluigi, posted Fri Aug 04, 2017 3:32 pm (25214)


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).
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.