[SOLVED] Question about a quickbms script

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

[SOLVED] Question about a quickbms script

Post by moonpaladin »

Hello everyonE! I have around 65k + .dat files, many of them are .dds but them have an extra information in the header, so I should check it, remove the extra info and save the file as .dds, and it works. so I was searching and reading a bit and maked a quickbms script to do this task, it works, but the main problem is that it not override the .dat file, it makes a new one as .dds. I wanna know if there is a way to override the existing file that the quickbms script uses, because I have tried with a powershell script for delete duplicate files that are not .dds but it takes so long checking every file and deleting it. Thanks for read!

Code: Select all

get NAME basename
get SIZE asize
string NAME + ".dds"
findloc OFFSET binary "\x44\x44\x53\x20"
math SIZE - OFFSET
log NAME OFFSET SIZE


sample: https://www.mediafire.com/file/tzecoq9u ... f.dat/file
Last edited by moonpaladin on Thu Feb 17, 2022 6:00 am, edited 1 time in total.
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Question about a quickbms script

Post by moonpaladin »

NVM is solved xD