Need help on how to writing BMS script for External Directory kind of archive

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ignis_xia
Posts: 2
Joined: Fri Sep 24, 2021 11:40 am

Need help on how to writing BMS script for External Directory kind of archive

Post by ignis_xia »

This is my first re and using of quick bms.

I've somehow managed to get the pointer/offset, size, and filename of the archive. But have no idea as to how to write the script since it's an external directory kind of archive and there is no sample of this type of archive in here
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help on how to writing BMS script for External Directory kind of archive

Post by aluigi »

beginning:

Code: Select all

open FDDE "mkh"
open FDDE "mkp" 1

fix:

Code: Select all

log FILENAME FILE_ADDR FILE_SIZE 1


The first two instructions automatically open the two files based on their extension, no matter what file the user selects.
The first mkh file will be the current one (file number 0), while the latter is number 1.
The 1 at the end of the "log" instruction indeed tells to use the mkp file loaded as number 1.
ignis_xia
Posts: 2
Joined: Fri Sep 24, 2021 11:40 am

Re: Need help on how to writing BMS script for External Directory kind of archive

Post by ignis_xia »

Yeah that's do the work. Thanks for your guidance aluigi!!!