09-17-2015, 04:48 AM
(This post was last modified: 09-17-2015, 04:52 AM by Hallow.
Edit Reason: I'm a moron.
)
(09-17-2015, 04:38 AM)TGE Wrote:Does this work for the okami files?Code:#Extract (uncompressed) BRRES files from (uncompressed) files
#Made by TGE
#Script for QuickBMS
endian big
GoTo 0 0 ;
SavePos found 0 ;
Get QT ASIZE 0 ;
For T = 0 < QT ;
GoTo found 0 ;
findloc OFFSET string "\x62\x72\x65\x73" 0 0 ;
If OFFSET = 0 ;
Math t = QT ;
EndIF ;
If OFFSET != 0 ;
GoTo OFFSET 0 ;
Math FILE = OFFSET ;
GoTo FILE 0 ;
Get FileEndian Long 0 ;
If FileEndian == string "\xFF\xFE\x00\x00" ;
endian change
EndIF ;
Get null Long 0 ;
Get size Long 0 ;
If size > QT ;
cleanexit
EndIF ;
SavePos found 0 ;
Get name FILENAME 0 ;
string name += _ ;
string name += T ;
string name += .brres ;
Log name FILE size 0 ;
EndIF ;
Next T ;
Thanks, It does work, I've been doing this all by hand since I have no experience with BMS scripts or any other scripting language, I was too excited to look for one after figuring out where the models were.
I'm an idiot, I just realized I had this script in my bms folder already