creating a .txt or .ini info of a file

Doubts, help and support about QuickBMS and other game research tools
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

creating a .txt or .ini info of a file

Post by happydance »

I was wondering if quickbms can output/create a file with just certain info extracted or modify a existing .txt/.ini to reflect the info.

like

00 00 00 80 00 00 00 80 00 00 00 01 00 00 00 0A
00 00 00 50 00 00 00 20 00 00 00 00 00 00 00 00

and on the .txt or .ini just contain

width=80
height=80
format=01
type=0A
ow=50
oh=20
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: creating a .txt or .ini info of a file

Post by aluigi »

The Slog command is so powerful that you can perform both reading (creation of info.ini) and writing (reads from info.ini and writes in the file when quickbms is in reimport mode) just by using this script:

Code: Select all

endian big
set OUTPUT string "info.ini"
for i = 0 < 6
    slog OUTPUT -1 -1 long
next i
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: creating a .txt or .ini info of a file

Post by happydance »

cool!

thanks for the tip, will try to explore the slog function!