007: Everything or Nothing (Xbox, .spt)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
phantaton
Posts: 20
Joined: Wed Dec 19, 2018 8:17 pm

007: Everything or Nothing (Xbox, .spt)

Post by phantaton »

I was going through the files of 007: Everything or Nothing and I noticed that the driving assets are packed in this format with the extension .spt. Each archive begins with the header "DATA" and it uses some sort of compression (take a look at ed1.txt).
https://mega.nz/folder/34cSxBJC#VTHZLisv5dXlJ5cse_a0CA
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 007: Everything or Nothing (Xbox, .spt)

Post by aluigi »

There is definitely an index file somewhere because the SPT are just a sequence of files, some compressed and others not.

In the meantime I made a script for dumping the data even without the index file:

Code: Select all

# 007: Everything or Nothing SPT

comtype dk2
get SPT_SIZE asize
do
    idstring "DATA"
    get SIZE long
    math SIZE - 8
    savepos OFFSET

    get SIGN short
    if SIGN == 0xfb10
        clog MEMORY_FILE OFFSET SIZE SIZE
    else
        log MEMORY_FILE OFFSET SIZE
    endif
    math OFFSET + SIZE
    goto OFFSET

    get NAMESZ byte MEMORY_FILE
    getdstring TEST 4 MEMORY_FILE
    if TEST == "data"
        goto -4 MEMORY_FILE SEEK_CUR
        getdstring NAME NAMESZ MEMORY_FILE
        get DUMMY long MEMORY_FILE
        get DUMMY long MEMORY_FILE
        get DUMMY long MEMORY_FILE
        get DUMMY long MEMORY_FILE
        get SIZE long MEMORY_FILE
    else
        get SIZE asize MEMORY_FILE
        set NAME string ""
    endif
    log NAME 0 SIZE MEMORY_FILE

while OFFSET != SPT_SIZE

Let me know if you find any file that may contain the information.