Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

quickbms batch conversion

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2820
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 702 times
Been thanked: 1452 times

quickbms batch conversion

Post by shakotay2 » Sun Oct 06, 2019 2:44 pm

(Posted due to a user's request and because I couldn't find an appropriate batch - though I have a deja vue there's already a solution somewhere on xentax)

Usually quickbms is used for extracting a bunch of (compressed) files from archives (*.pak or such).

But there's bms scripts which handle one single (non-archive) file only for example for decompressing texture files.

In case you have a hundreds of such files this batch should come in handy:

@echo off
for %%f in (*.data) do (
quickbms unity_36.bms %%f D:\test
)
REM no blanks in filenames, please

Copy above 5 lines into a *.txt file and rename it to whatever.cmd.
Replace the parameter "unity_36.bms" by a bms script of your choice and replace *.data by the suiting extension.
(D:\test is the output directory, as an example.)

Execute the cmd file where the *.data AND the bms script files reside.

I did a test in the quickbms directory.
In case you use another directory for .cmd/.bms/*.data you need to expand "quickbms" in the cmd file by the full path, "D:\QBMS\quickbms" for example.

(To make it work with filenames containing blanks you might try "%%f" in the script - didn't test it though.)

---------------------------------------
In case you just want to drag'n drop the file to be decompressed/converted use this batch:

@echo off
quickbms unity_36.bms %1 D:\test
REM no blanks in filenames, please
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

Post Reply