Page 1 of 1

New type of AFS archive (AFS2)

Posted: Sat Mar 09, 2013 7:34 am
by soneek
Seems Criware is packing stuff with this now. Does anyone know how to get a solid unpacking script for this?

AFS2 sample

Re: New type of AFS archive (AFS2)

Posted: Sat Mar 09, 2013 8:49 pm
by FinalBlast
I would also like this to be done. :keke:

Re: New type of AFS archive (AFS2)

Posted: Sat Mar 09, 2013 9:42 pm
by aluigi

Code: Select all

# AWB AFS2
# script for QuickBMS http://quickbms.aluigi.org

idstring "AFS2"
get DUMMY long
get FILES long
get DUMMY long
for i = 0 < FILES
    get DUMMY short
next i

    get OFFSET long
for i = 0 < FILES
    get NEXT_OFFSET long
    math OFFSET x= 0x10
    math SIZE = NEXT_OFFSET
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
next i

Re: New type of AFS archive (AFS2)

Posted: Sun Mar 17, 2013 11:49 pm
by soneek
aluigi wrote:

Code: Select all

# AWB AFS2
# script for QuickBMS http://quickbms.aluigi.org

idstring "AFS2"
get DUMMY long
get FILES long
get DUMMY long
for i = 0 < FILES
    get DUMMY short
next i

    get OFFSET long
for i = 0 < FILES
    get NEXT_OFFSET long
    math OFFSET x= 0x10
    math SIZE = NEXT_OFFSET
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
next i
Thank you so much! Works great!