Skip to content

primetime43/PS2-MET-File-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The tool can open, view, modify, import, and export files within the .MET files of Backyard Baseball 2004 for the PlayStation 2.

v0.2 (hex view) image

Features

  • Open .MET Files: Easily open .MET files to explore their contents.
  • View Files: Browse and view files within the .MET archive.
  • Modify Files: Edit the contents of files within the .MET archive.
  • Import/Export Files (right click): Import new files into the .MET archive or export existing files to your computer.
  • Save Changes: Save modifications to the .MET file, ensuring your changes are applied.

To access the .MET files, you need to extract the game files from the ISO using WinRAR or 7-Zip.

Workflow: Extracting, Modifying, and Rebuilding the ISO

Step 1: Extract the ISO

  1. Use WinRAR or 7-Zip to extract your PS2 game ISO
  2. Extract all files to a folder
  3. You should see files like SYSTEM.CNF, DATA.MET, and the game executable

Step 2: Modify the MET File

  1. Open DATA.MET in the MET File Editor
  2. Make your changes
  3. Save changes
  4. The editor automatically handles file resizing and creates backups

Step 3: Rebuild the ISO with ImgBurn

IMPORTANT: You must use the correct file system settings or the ISO will not work!

ImgBurn Settings:

  1. Open ImgBurn and switch to "Create image file from files/folders" mode
  2. Click the folder icon and select your extracted game folder
  3. Critical Settings:
    • File System: ISO9660 + UDF (1.02)
    • Volume Label: Keep the original
    • UDF Revision: 1.02
  4. Choose where to save the new ISO
  5. Click the Build button

.MET File Structure

The .MET file in Backyard Baseball 2004 (PS2) contains various data and resources used by the game, such as textures, models, and other game assets. Understanding the structure of the .MET file is crucial for reading and writing its contents. Here's an overview of the .MET file structure:

Header

The .MET file starts with a header that contains metadata about the file. This typically includes information such as the number of file entries, offsets, and sizes.

File Entries

Following the header, the .MET file contains a list of file entries. Each file entry represents an individual file within the archive and contains the following information:

  • Offset: The starting position of the file data within the .MET file.
  • Size of Data: The size of the file data.
  • Size of String: The length of the string representing the file path.
  • File Path: The relative path of the file within the archive.

Example Breakdown

For each file entry, the structure is as follows:

  • Offset (4 bytes): The address where the data starts (e.g., 00 C0 37 2C).
  • Size of Data (4 bytes): The size of the data (e.g., offset data start address + 27 0D 00 00).
  • Size of String (4 bytes): The length of the string name (e.g., 16 00 00 00).
  • Path String: The file path string (e.g., 64 61 74 61 2F 6D 65 6E 75 73 2F 63 72 65 64 69 74 73 2E 74 78 74).

For example with these bytes

00 C0 37 2C 27 0D 00 00 16 00 00 00 64 61 74 61 2F 6D 65 6E 75 73 2F 63 72 65 64 69 74 73 2E 74 78 74
Header starts at address: 1171683 (0x11E0E3)
Header ends at address: 1171717 (0x11E105)
Length of the header: 34 (0x22)
Length of the string: 22 (0x16)
Path: data/menus/credits.txt
Offset: 741851136 (0x2C37C000)
OriginalSize: 3367 (0xD27)
Data spans from 0x2C37C000 to 0x2C37CD27

image

image

image

image

image

image

image

image

About

Backyard Baseball 2004 (PS2) .MET File Editor

Topics

Resources

License

Stars

Watchers

Forks

Languages