[PC] Independence Day (*.baf)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

[PC] Independence Day (*.baf)

Post by Acewell »

I have written my first bms script to extract the bmp textures from baf files for this 1997 game :D

Code: Select all

idstring "BAFF"
get DUMMY long
get tableoffset long
get FILES long
goto tableoffset
for i = 0 < FILES
    getdstring NAME 0x10
    get Offset long
    get SIZE long
    savepos tmp
    math tmp + 40
    goto tmp
    log NAME OFFSET SIZE
next i




i do have a question though, how i can skip 40 unneeded bytes with one line in the script? :oops:
Last edited by Acewell on Fri Jul 08, 2016 6:05 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Independence Day (*.baf)

Post by aluigi »

getdstring DUMMY 40