Jak 3 [PS2] .INT

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Jak 3 [PS2] .INT

Post by Warthog1336 »

Hi! I need a script to unpack the streams held in VAGWAD.INT. Thanks in advance.

Mega link samples: https://mega.nz/#!n90lDAqZ!mBAsoE-tOBzO ... vgEyi9T6lk
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Jak 3 [PS2] .INT

Post by aluigi »

The AYB index file seems useless since it doesn't contain information about offset and size of the files.
Luckily the INT container has only VAGp files that can be easily extracted with a dumper like the following:

Code: Select all

findloc OFFSET binary "pGAV"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET binary "pGAV" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: Jak 3 [PS2] .INT

Post by Warthog1336 »

Thank you. It correctly extracts mono and stereo VAGs.