TMNT Mutant Melee archive.arc

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
lemurboy12
Posts: 265
Joined: Fri Oct 17, 2014 2:57 am

TMNT Mutant Melee archive.arc

Post by lemurboy12 »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: TMNT Mutant Melee archive.arc

Post by aluigi »

I can't see the offset and size fields.

I leave here my work-in-progress script (DO NOT USE IT) in case someone has more ideas:

Code: Select all

# TMNT Mutant Melee archive.arc
# script for QuickBMS http://quickbms.aluigi.org

open FDDE "arc"
open FDDE "dat" 1

getdstring NAME 100 # "archive"
get ARC_SIZE long
get FOLDERS long
get FILES long
get EMPTY long
get NAMES_OFF long
get INFO_OFF long
for i = 0 < FOLDERS
    callfunction GET_NAME 1
    get PREV_ID signed_long
    get NEXT_ID long
    get ID long
    get FILE_ID long

    putarray 0 i NAME
    putarray 1 i PREV_ID
next i

goto INFO_OFF
for i = 0 < FILES
    callfunction GET_NAME 1
    get ID long
    get DUMMY long  # 0x08a6????
    get SIZE long   # ???
    get DUMMY short # FOLDER_ID? gives duplicates
    get FOLDER_ID short

    for TMP = FOLDER_ID > 0
        getarray PATH 0 TMP
        getarray TMP  1 TMP
        string NAME p "%s/%s" PATH NAME
    next

    log NAME 0 0 1  # this is just a test for the names
next i

startfunction GET_NAME
    get NAME_OFF long
    savepos TMP
    math NAME_OFF + NAMES_OFF
    goto NAME_OFF
    get NAME string
    goto TMP
endfunction