Naming extracted files in decimal notation as default.

Doubts, help and support about QuickBMS and other game research tools
saintjejemon
Posts: 5
Joined: Thu May 07, 2015 5:57 pm

Naming extracted files in decimal notation as default.

Post by saintjejemon »

How to force QuickBMS to name extracted files in decimal notation as opposed to the default hex, both in GUI and CLI?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Naming extracted files in decimal notation as default.

Post by aluigi »

Eh unfortunately that's not possible because the hexadecimal method used for the filenames is hardcoded.
Anyway the good news is that you can easily modify a script to create a decimal filename, for example:

Code: Select all

string NAME p "%d." i
log NAME OFFSET SIZE
where 'i' is the usual variable used for enumerating the files.
Do you need the decimal notation for a specific reason?
saintjejemon
Posts: 5
Joined: Thu May 07, 2015 5:57 pm

Re: Naming extracted files in decimal notation as default.

Post by saintjejemon »

aluigi wrote:Do you need the decimal notation for a specific reason?


It's for file organization reasons, like grouping files based on purpose, or order in which they are placed in an archived file. Windows and other software aren't friendly with file sorting with hexadecimal numbers as filenames, so that's why I ask here.

And also, thanks for that.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Naming extracted files in decimal notation as default.

Post by aluigi »

In the next version of quickbms I will add an option for using the decimal instead of the hexadecimal notation.
The reason why hex was chosen in place of decimal is that, as far as I remember, the sorting mechanism of Windows gave problems with the decimal notation, probably in old versions or when its numeric-sorting guess fails.