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.

Help with Spider Man 2 .PAK Extraction

Featured Replies

  • Author
  • Localization

Andre Romhacker, posted Sun Aug 13, 2017 6:11 pm (25480)


aluigi wrote:
http://aluigi.org/bms/spiderman2.bms
Remember to answer 'r' when quickbms will prompt you about overwriting the files.


Thanks for reply, aluigi! You are the best! :D
  • Author
  • Localization

Roddex5, posted Wed Mar 01, 2023 3:34 pm (75614)


Hi!

I have tried to do the same with the same bms file you linked here but it doesn't work for me.
Is it possible for you to update the bms file again?

I got two different error results.



My Spiderman 2 amalga_gc.pak file was opened from Gamecube iso rom version with the help of GCRebuilder program.
I am not sure if the pak file is different from the PS2 version?

Here is mine:
https://drive.google.com/file/d/1wzI12s ... share_link

Thanks in advance!
  • Author
  • Localization

BloodRaynare, posted Wed Mar 01, 2023 10:00 pm (75618)


Roddex5 wrote:
Hi!

I have tried to do the same with the same bms file you linked here but it doesn't work for me.
Is it possible for you to update the bms file again?

I got two different error results.
QuickBMS Log.PNG
QuickBMS Log2.PNG

My Spiderman 2 amalga_gc.pak file was opened from Gamecube iso rom version with the help of GCRebuilder program.
I am not sure if the pak file is different from the PS2 version?

Here is mine:
https://drive.google.com/file/d/1wzI12s ... share_link

Thanks in advance!


Gamecube files are usually big endian so the script had to be modified.

Code:
# Spider Man 2 PAK
#   remember to press 'r' when quickbms will ask you to overwrite the files
# script for QuickBMS http://quickbms.aluigi.org

get TEST long
endian guess TEST
goto 0

math PARSE_SUB_FILES = 1

callfunction GET_HEADER 1
get BASE_OFF long
get INFO_OFF long
get INFO_SIZE long
get DUMMY_OFF long
get DUMMY_SIZE long
get FOLDERS_OFF long
get FOLDERS_SIZE long
get DUMMY11 long
xmath FILES "INFO_SIZE / 0x38"
xmath FOLDERS "FOLDERS_SIZE / 0x20"
goto FOLDERS_OFF
for ID = 0 < FOLDERS
    getdstring PATH[ID] 0x20
next ID
goto INFO_OFF
for i = 0 < FILES
    getdstring NAME 0x20
    get OFFSET long
    get SIZE long
    get ZERO long
    get ZERO long
    get ID long
    get DUMMY long
    string NAME p "%s/%s" PATH[ID] NAME
    math OFFSET BASE_OFF

    if PARSE_SUB_FILES == 0

        log NAME OFFSET SIZE

    else

        savepos TMP_OFF
        goto OFFSET
        callfunction GET_HEADER 1
        get ZERO long
        get DUMMY_OFF long
        get FILE_OFF long
        math FILE_OFF OFFSET
        getdstring DUMMY 0x30
        get SUB_FILES short
        math INFO_OFF = OFFSET
        math INFO_OFF 0x258
        goto INFO_OFF
        for
            get DUMMY long
            if DUMMY == 0 || DUMMY u>= 0x80000000
            else
                break
            endif
        next
        goto -4 0 SEEK_CUR
        for x = 0 < SUB_FILES
            getdstring SUB_NAME 0x20
            get OFFSET long
            get SIZE long
            string SUB_NAME p "%s/%s." NAME SUB_NAME
            math OFFSET FILE_OFF
            log SUB_NAME OFFSET SIZE
        next x
        goto TMP_OFF

    endif
next i

startfunction GET_HEADER
    get DUMMY1 long # 0xb
    get DUMMY2 long # 0x3d6
    get DUMMY3 long # 0x333
    get DUMMY4 long # 0x197
endfunction
  • Author
  • Localization

Roddex5, posted Thu Mar 02, 2023 12:42 am (75619)


Good to know and it worked!

Thank you BloodRaynare
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.