Def Jam Vendetta .BIN file

Old posts about game archives and other formats.
Post Reply
CodeMan89
advanced
Posts: 70
Joined: Wed Jun 16, 2010 1:04 pm

Def Jam Vendetta .BIN file

Post by CodeMan89 » Sat Apr 23, 2011 2:24 am

The contents of this post was deleted because of possible forum rules violation.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 650 times
Contact:

Re: Def Jam Vendetta .BIN file

Post by aluigi » Sat Apr 23, 2011 11:47 am

try uploading SLES_514.79 but in my opinion there will be no results

CodeMan89
advanced
Posts: 70
Joined: Wed Jun 16, 2010 1:04 pm

Re: Def Jam Vendetta .BIN file

Post by CodeMan89 » Sat Apr 23, 2011 3:00 pm

The contents of this post was deleted because of possible forum rules violation.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 650 times
Contact:

Re: Def Jam Vendetta .BIN file

Post by aluigi » Sat Apr 23, 2011 10:30 pm

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

CodeMan89
advanced
Posts: 70
Joined: Wed Jun 16, 2010 1:04 pm

Re: Def Jam Vendetta .BIN file

Post by CodeMan89 » Sun Apr 24, 2011 12:50 am

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?

CodeMan89
advanced
Posts: 70
Joined: Wed Jun 16, 2010 1:04 pm

Re: Def Jam Vendetta .BIN file

Post by CodeMan89 » Thu Apr 28, 2011 6:03 am

The contents of this post was deleted because of possible forum rules violation.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 650 times
Contact:

Re: Def Jam Vendetta .BIN file

Post by aluigi » Fri Apr 29, 2011 10:47 am

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

Post Reply