Damn, should have looked inside the documentation better... it's only called "alignment" there, which is nothing else than a ceil. Will change it in the scripts.Dinoguy1000 wrote:AlphaTwentyThree wrote:I have a feeling that there's some better way to do this (since, according to my understanding, it's basically just a ceil() function with a custom "cutoff"), but my maths isn't strong enough to pick it out (I think bit-shifting would play a role, though... does QuickBMS actually support bit-wise manipulations?). =/
The Forum is up for sale: XeNTaX Forum looking for new owner
My quickBMS scripts
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Faster than Light dat extractor
All those easy formats provide excellent learning scripts.
All those easy formats provide excellent learning scripts.
Code: Select all
# FLT: Faster than Light (PC, 2012) *.dat extractor
# (c) 2012-10-09 by AlphaTwentyThree of XeNTaX
get FILES long
for i = 1 <= FILES
get OFFSET long
if OFFSET == 0
cleanexit
endif
savepos MYOFF
goto OFFSET
get SIZE long
get NAMEL long
getDstring NAME NAMEL
savepos OFFSET
log NAME OFFSET SIZE
goto MYOFF
next iIf you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
War of the Human Tanks (2012, PC) - ald extractor
Bears a striking resemblance to the above format...
Bears a striking resemblance to the above format...
Code: Select all
# *.ald extractor for War of the Human Tanks (2012, PC)
# (c) 2012-10-10 by AlphaTwentyThree of XeNTaX
get UNK threebyte
get FSIZE asize
for i = 1
get OFFSET threebyte
math OFFSET *= 0x100
set TEST FSIZE
math TEST -= OFFSET
if TEST <= 0x20
cleanexit
endif
savepos MYOFF
goto OFFSET
get HEADER long
get SIZE long
get HASH longlong
getDstring NAME 0x10
math OFFSET += HEADER
log NAME OFFSET SIZE
goto MYOFF
next iIf you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
- Dinoguy1000
- Site Admin
- Posts: 786
- Joined: Mon Sep 13, 2004 1:55 am
- Has thanked: 154 times
- Been thanked: 163 times
Re: My quickBMS scripts
Of course, I'm an idiot; "ceil() with a custom 'cutoff'" is just a rounding function. =DAlphaTwentyThree wrote:Damn, should have looked inside the documentation better... it's only called "alignment" there, which is nothing else than a ceil. Will change it in the scripts.Dinoguy1000 wrote:AlphaTwentyThree wrote:I have a feeling that there's some better way to do this (since, according to my understanding, it's basically just a ceil() function with a custom "cutoff"), but my maths isn't strong enough to pick it out (I think bit-shifting would play a role, though... does QuickBMS actually support bit-wise manipulations?). =/
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Ladies and gentlemen, listen to the admin!Dinoguy1000 wrote:Of course, I'm an idiot;
If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Added some more formats to the Unity3D extractor. Thanks nefarel. 
If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
- Dinoguy1000
- Site Admin
- Posts: 786
- Joined: Mon Sep 13, 2004 1:55 am
- Has thanked: 154 times
- Been thanked: 163 times
Re: My quickBMS scripts
Hardly the first time; I've been practicing digital self-deprecation since 2003.AlphaTwentyThree wrote:Ladies and gentlemen, listen to the admin!Dinoguy1000 wrote:Of course, I'm an idiot;
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Well... kudos then, lol. ^^Dinoguy1000 wrote:Hardly the first time; I've been practicing digital self-deprecation since 2003.AlphaTwentyThree wrote:Ladies and gentlemen, listen to the admin!Dinoguy1000 wrote:Of course, I'm an idiot;
If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Just updated the XNB to WAV script (viewtopic.php?f=13&t=4450&p=75157#p75157). Now supports other formats than uncompressed PCM. 
If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
And another update for the Unity3D extractor: viewtopic.php?f=13&t=4450&p=77959#p77959
Now detects xml and png files in type 49 files.
Now detects xml and png files in type 49 files.
If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Half Minute Hero rwv converter
Converts the MSADPCM streams from the game to *.lwav files, playable with vgmstream. You'll need the newest func_header_PCM.bms for this: viewtopic.php?f=13&t=4450&p=71565#p71565
Converts the MSADPCM streams from the game to *.lwav files, playable with vgmstream. You'll need the newest func_header_PCM.bms for this: viewtopic.php?f=13&t=4450&p=71565#p71565
Code: Select all
# convert rvw files found in Half Minute Hero (2012, PC) to lwav
# needed func_header_PCM version: 2012-10-16
# (c) 2012-10-16 by AlphaTwentyThree of XeNTaX
include "func_header_PCM.bms"
idstring "fmt "
findLoc OFFSET string "data" 0 ""
math OFFSET += 8
findLoc SAMPLE string "smpl" 0 ""
if SAMPLE != ""
get NAME basename
string NAME += ".smpl"
get SIZE asize
math SIZE -= 0xc
math SIZE -= SAMPLE
log NAME SAMPLE SIZE
set SIZE SAMPLE
else
get SIZE asize
math SIZE -= 0xc
endif
math SIZE -= OFFSET
goto 0x8
get CODEC short
get CH short
get FREQ long
get UNK long
get BLOCKALIGN short
get BITS short
set NAME ""
callfunction PCM 1If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
RAW: Reals of Ancient War - *.bf extractor
Code: Select all
# extracts the *.bf file from Realms of Ancient War (PC, 2012)
# (c) 2012-10-19 by AlphaTwentyThree of XeNTaX
get DATASTART long
get FILES long
for i = 1 <= FILES
get HASH longlong
get NAME string
get OFFSET long
get SIZE long
log NAME OFFSET SIZE
next iIf you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
StoneChess (2012) PC - data.scp extractor
Now they are really getting lazy with their GRAFs...
Now they are really getting lazy with their GRAFs...
Code: Select all
# extracts the data.scp from StoneChess (PC, 2012)
# (c) 2012-10-20 byAlphaTwentyThree of XeNTaX
get FILES long
get DATASTART long
get UNK long
for i = 1 <= FILES
get NAME string
get SIZE long
log NAME OFFSET SIZE
math OFFSET += SIZE
next iIf you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Top Secret Finders (2012) PC - TSF.vst extractor
Code: Select all
# extract the TSF.vst from "Top Secret Finders" (PC, 2012)
# (c) 2012-10-20 by AlphaTwentyThree of XeNTaX
get INFO asize
math INFO -= 4
goto INFO
get INFO long
goto INFO
get FILES long
for i = 1 <= FILES
get NAMEL long
getDstring NAME NAMEL
get OFFSET long
get ZSIZE long
savepos MYOFF
goto OFFSET
get TEST byte
goto MYOFF
if TEST == 0x78
set SIZE ZSIZE
math SIZE *= 0xffffff
clog NAME OFFSET ZSIZE SIZE
else
log NAME OFFSET ZSIZE
endif
next iIf you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 658 times
Re: My quickBMS scripts
Doom 3: BFG Edition (2012) PC - *.resources
Should work on all platforms.
Should work on all platforms.
Code: Select all
# extracts the *.resources from Doom 3: BFG Edition (2012)
# (c) 2012-10-20 by AlphaTwentyThree of XeNTaX
endian big
get DUMMY long
get INFOPOS long
goto INFOPOS
get FILES long
for i = 1 <= FILES
get NAMEL long
reverselong NAMEL
getDstring NAME NAMEL
get OFFSET long
get SIZE long
log NAME OFFSET SIZE
next iIf you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
