Page 1 of 1

Def Jam Vendetta .BIN file

Posted: Sat Apr 23, 2011 2:24 am
by CodeMan89
The contents of this post was deleted because of possible forum rules violation.

Re: Def Jam Vendetta .BIN file

Posted: Sat Apr 23, 2011 11:47 am
by aluigi
try uploading SLES_514.79 but in my opinion there will be no results

Re: Def Jam Vendetta .BIN file

Posted: Sat Apr 23, 2011 3:00 pm
by CodeMan89
The contents of this post was deleted because of possible forum rules violation.

Re: Def Jam Vendetta .BIN file

Posted: Sat Apr 23, 2011 10:30 pm
by aluigi
the executable doesn't contain names and although I have found some references to some file sizes there is not a classical file information table.
that's what I meant with no results.

anyway I had some free time and so I made an experiment and the following is the result:

Code: Select all

# Def Jam Vendetta (lame dumper script)

get FULLSIZE asize
for OFFSET = 0 < FULLSIZE
    savepos OFFSET
    getdstring SIGN 4
    if SIGN == "TIM2"
        get DUMMY long
        get DUMMY long
        get DUMMY long
        get SIZE long
        math SIZE += 0x10
    elif SIGN == "PAK "
        get SIZE long
        math SIZE += 8
    elif SIGN == "WAZA"
        math SIZE = 0x2d000 # fixed
    elif SIGN == "WRS "
        getdstring DUMMY 0x54
        get SIZE long
        math SIZE += 0x58
    elif SIGN == "AUD "
        get SIZE long
        math SIZE += 8
    elif SIGN == "PRM "
        get SIZE long
        math SIZE += 8
    elif SIGN == ""
        math SIZE = 0
    else
        getvarchr SIGN SIGN 0
        if SIGN == 0x80
            get SIZE long
            math SIZE += 0x80
        else
            do
                findloc SIZE string "\0\0\0\0\0\0\0\0\0\0\0\x80\x00\x00\x00" ""
                if SIZE == ""
                    # end of the archive
                    cleanexit
                endif
                goto SIZE
                findloc SIZE string "\x80\x00\x00\x00"
                if SIZE % 0x800
                    goto SIZE
                    math SIZE = 0
                endif
            while SIZE == 0
            math SIZE -= OFFSET
        endif
    endif
    if SIZE == 0
        math SIZE = 1
    else
        log "" OFFSET SIZE
    endif
    math OFFSET += SIZE
    goto OFFSET
    get DUMMY long
    if DUMMY == 0
        math OFFSET x= 0x800
    endif
    goto OFFSET
next
better than nothing

Re: Def Jam Vendetta .BIN file

Posted: Sun Apr 24, 2011 12:50 am
by CodeMan89
The file extracted.

I have reasons to believe that the moves are either in the .pak files or some other formats.

edit: can anyone help me with those formats?

Re: Def Jam Vendetta .BIN file

Posted: Thu Apr 28, 2011 6:03 am
by CodeMan89
The contents of this post was deleted because of possible forum rules violation.

Re: Def Jam Vendetta .BIN file

Posted: Fri Apr 29, 2011 10:47 am
by aluigi
script for quickbms:

Code: Select all

idstring "PAK "
get SIZE long
get FILES long
get OFFSET long
for i = 1 <= FILES
    if i < FILES
        get NEXT long
        math SIZE = NEXT
        math SIZE -= OFFSET
    else
        get SIZE asize
    endif
    math OFFSET += 0xc
    math TMP = i
    math TMP -= 1
    math TMP *= 4
    math OFFSET += TMP
    if i >= FILES
        math SIZE -= OFFSET
    endif
    log "" OFFSET SIZE
    math OFFSET = NEXT
next i