Skip to content
The Chat Archive
hunyuan-turbos-20250416 LMArena Human Preference 140K

NEXT, I want to create a script to extract.PAC Files from a PS2 game, Rumble Roses for…

  1. User

    NEXT, I want to create a script to extract.PAC Files from a PS2 game, Rumble Roses for Windows

  2. Assistant

    Great! Now that you’ve extracted the ISO from Rumble Roses and collected .PAC files, the next step is to unpack the .PAC files. These files typically contain compressed game assets (textures, models, sounds, etc.) using a custom format used by the PS2.


    ✅ Goal:

    Create a Windows batch script to:

    • Automatically detect .PAC files
    • Extract their contents using a tool like PS2NDP (PS2 Pac Decompressor)

    🛠️ Step 1: Download Required Tools

    🔧 1. PS2NDP (PAC Decompressor)

    Download from:
    🔗 https://forums.romhacking.net/showthread.php?t=27300
    (Scroll down to the last post to find the latest version.)

    📦 2. 7-Zip (already installed from previous step)


    📁 Step 2: Folder Structure Setup

    Create a working folder structure like this:

    RumbleRoses_Extraction\
    │
    ├── PAC_Files\           <-- Your .PAC files go here
    ├── PAC_Extracted\       <-- Extracted contents will go here
    ├── extract_pac.bat      <-- The script we’ll create
    └── PS2NDP\              <-- Place the PS2NDP folder here
    

    Copy your .PAC files into PAC_Files\, and the PS2NDP folder (with ps2ndp.exe) into the root.


    🖥️ Step 3: Create the Batch Script

    Save the following as extract_pac.bat in the root folder (RumbleRoses_Extraction\):

    @echo off
    setlocal enabledelayedexpansion
    
    :: === CONFIGURATION ===
    set "pac_input_dir=PAC_Files"
    set "pac_output_dir=PAC_Extracted"
    set "ps2ndp_dir=PS2NDP"
    
    :: === CHECK IF DIRECTORIES EXIST ===
    if not exist "%pac_input_dir%" (
        echo PAC_Files folder not found!
        pause
        exit /b
    )
    
    if not exist "%ps2ndp_dir%\ps2ndp.exe" (
        echo ps2ndp.exe not found in %ps2ndp_dir% folder!
        pause
        exit /b
    )
    
    :: === CREATE OUTPUT DIRECTORY ===
    if exist "%pac_output_dir%" (
        rmdir /s /q "%pac_output_dir%"
    )
    mkdir "%pac_output_dir%"
    
    :: === FIND AND EXTRACT PAC FILES ===
    echo Extracting PAC files...
    
    for /r "%pac_input_dir%" %%f in (*.PAC) do (
        set "file=%%~nf"
        echo.
        echo Processing: %%~nxf
        "%ps2ndp_dir%\ps2ndp.exe" x "%%f" -o "%pac_output_dir%\!file!"
    )
    
    echo.
    echo ✅ All PAC files extracted to: %pac_output_dir%
    pause
    

    🔄 Step 4: Run the Script

    1. Open the folder in File Explorer
    2. Double-click extract_pac.bat
    3. It will:
      • Scan PAC_Files\
      • Use ps2ndp.exe to extract each .PAC file
      • Save the contents into PAC_Extracted\

    🧪 Optional: Recursive Extraction (If PACs Contain More PACs)

    If the .PAC files contain other .PAC files, you can run the script again on the PAC_Extracted\ folder.

    To automate this, add a loop:

    :loop
    for /r "%pac_input_dir%" %%f in (*.PAC) do (
        echo Found nested PAC: %%f
        "%ps2ndp_dir%\ps2ndp.exe" x "%%f" -o "%pac_output_dir%\%%~nf"
    )
    
    :: Check if more PACs were added
    timeout /t 2 >nul
    goto loop
    

    ⚠️ Warning: Don’t use this unless you’re sure the PAC files contain other PACs. It can cause infinite loops.


    🧰 Bonus: One-Click Extractor

    Want a single .bat that does everything? Just combine the ISO extraction, PAC collection, and PAC unpacking scripts — let me know and I’ll give you a full automation script!


    ✅ Summary

    ToolPurpose
    7-ZipExtract ISO files
    PS2NDPExtract .PAC files
    BatchAutomate the extraction

    Would you like a script to also unpack the contents of the PAC files (like textures or sounds)? Some PAC files contain .ZST or .TGA files that need further processing. Let me know!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.