connect .bms to func_getTYPE

Doubts, help and support about QuickBMS and other game research tools
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

connect .bms to func_getTYPE

Post by Shokoniraya »

how can i connect func_getTYPE.bms to a script like this? is this possible?

Code: Select all

idstring "TAFS"
get SECTOIN long
get FILE_VERSION long
get FILES long
get DIRACTORY_NAME long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
for i = 0 < FILES
    get CRC long
    get DUMMY long
    get SIZE long
    get OFFSET long
    math OFFSET -= 1040
    string NAME p "%08x" CRC
    log NAME OFFSET SIZE
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: connect .bms to func_getTYPE

Post by aluigi »

If you add a dot after %08x quickbms will automatically give a guessed extension during extraction.

If you want to use that function anyway, even if many extensions are not supported, then replace the current "string NAME p ..." with:

Code: Select all

include "func_getTYPE.bms"
log MEMORY_FILE 0 SIZE
callfunction getTYPE 1
string NAME p "%08x%s" CRC EXT