Extract files from archive in seperate directories

Doubts, help and support about QuickBMS and other game research tools
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Extract files from archive in seperate directories

Post by Kratos9999 »

Hi aluigi, I have a doubt about the Quickbms, is possible extract files from a archive in seperate folders, according with extension? e.g. .dat files in DAT folder, if there 4 archives and a toc file for all this 4 archives, as the ZDIR.BIN for ZZDATA archives in Nfs games, there is a way to extract the files from archive ZZDATA0 in a ZZDATA folder and so on?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract files from archive in seperate directories

Post by aluigi »

The -d and -D command-line options of quickbms allows to extract the files in a folder containing the name of the original archive, but I think this is only half of what you asked.

If the filenames are contained in the archive then you can easily extract the files in folders having the name of the extension by using just 2 lines of code (I will not post them because I have already understood that this is not your case).

Instead if the filenames are guessed, like I'm sure it's your case because I know my nfsu_bun.bms script, then there is no way to do what you want. The extension is guessed internally by quickbms.
In that case you must manually create the folders and move the files accordingly from Windows.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Extract files from archive in seperate directories

Post by Kratos9999 »

Hi aluigi, I finally have found the texts of Need for Speed Carbon in ZZDATA files, the texts are in ZZDAT2.BIN, I have made little changes in script nfsubun.bms and this it seems reimport the files only for ZZDATA2.BIN, but in the end, the message "0 files reimported" is showed, my question is: What is wrong in reimport of files, it is possible enable the reimport mode in quickbms only for the ZZDATA2?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract files from archive in seperate directories

Post by aluigi »

The script is valid for reimporting so I don't see problems.
The rules for reimporting are very simple: do the same things you did for extraction.
If you get 0 files reimported it means you didn't do the same steps.