Sumo Digital .sd3 archive

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
oddMLan
Posts: 13
Joined: Mon Jan 19, 2015 12:29 am

Sumo Digital .sd3 archive

Post by oddMLan »

Seems pretty similar to http://aluigi.altervista.org/bms/3ds_arcv.bms

Inside there is a bunch of concatenated CTPK 3DS files
oddMLan
Posts: 13
Joined: Mon Jan 19, 2015 12:29 am

Re: Sumo Digital .sd3 archive

Post by oddMLan »

This file as well, I don't know what it contains. But it also has the sd3 extension
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Sumo Digital .sd3 archive

Post by aluigi »

Basically they are just a raw sequence of CTPK files.
The CTPK files are just a sort of header for containing one raw image.

Code: Select all

get ARCHIVE_SIZE asize
for i = 0
    savepos OFFSET
    if OFFSET == ARCHIVE_SIZE
        break
    endif
    idstring "CTPK"
    findloc NEXT_OFF binary "CTPK" 0 ""
    if NEXT_OFF == ""
        math NEXT_OFF = ARCHIVE_SIZE
    endif
    xmath SIZE "NEXT_OFF - OFFSET"

    getdstring DUMMY 0x10
    get XOFF long
    getdstring DUMMY 0x2c
    get NAME string
    math OFFSET + XOFF
    math SIZE   - XOFF
    # they are uncompressed images, not ready readable images
    string NAME p "%d_%s" i NAME
    log NAME OFFSET SIZE

    goto NEXT_OFF
next i