XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Dec 12, 2018 9:20 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 476 posts ]  Go to page Previous  1 ... 21, 22, 23, 24, 25, 26, 27 ... 32  Next
Author Message
 Post subject: Re: My quickBMS scripts
PostPosted: Tue Oct 09, 2012 10:12 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times

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?). =/
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. ;)

You can make the ads go away by registering


_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Tue Oct 09, 2012 10:17 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
Faster than Light dat extractor

All those easy formats provide excellent learning scripts. ;)

Code:
# 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 i

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Tue Oct 09, 2012 11:02 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
War of the Human Tanks (2012, PC) - ald extractor

Bears a striking resemblance to the above format...

Code:
# *.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 i

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Wed Oct 10, 2012 5:30 am 
Online
Site Admin
User avatar

Joined: Mon Sep 13, 2004 1:55 am
Posts: 706
Location: The wiki.
Has thanked: 107 times
Have thanks: 125 times
AlphaTwentyThree wrote:
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?). =/
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. ;)

Of course, I'm an idiot; "ceil() with a custom 'cutoff'" is just a rounding function. =D

_________________
Welcome to Xentax!

Rules | Requests | Wiki

If you run across a post that breaks the rules, please PM Craptain, Mr.Mouse, or myself - we will handle it from there.


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Wed Oct 10, 2012 4:27 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
Dinoguy1000 wrote:
Of course, I'm an idiot;
Ladies and gentlemen, listen to the admin! ;)

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Wed Oct 10, 2012 4:37 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Wed Oct 10, 2012 11:57 pm 
Online
Site Admin
User avatar

Joined: Mon Sep 13, 2004 1:55 am
Posts: 706
Location: The wiki.
Has thanked: 107 times
Have thanks: 125 times
AlphaTwentyThree wrote:
Dinoguy1000 wrote:
Of course, I'm an idiot;
Ladies and gentlemen, listen to the admin! ;)


Hardly the first time; I've been practicing digital self-deprecation since 2003. :D

_________________
Welcome to Xentax!

Rules | Requests | Wiki

If you run across a post that breaks the rules, please PM Craptain, Mr.Mouse, or myself - we will handle it from there.


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Thu Oct 11, 2012 11:04 am 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
Dinoguy1000 wrote:
AlphaTwentyThree wrote:
Dinoguy1000 wrote:
Of course, I'm an idiot;
Ladies and gentlemen, listen to the admin! ;)


Hardly the first time; I've been practicing digital self-deprecation since 2003. :D

Well... kudos then, lol. ^^

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Sun Oct 14, 2012 7:38 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Mon Oct 15, 2012 5:52 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
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. :)

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Tue Oct 16, 2012 11:06 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
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

Code:
# 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 1

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Fri Oct 19, 2012 1:20 am 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
RAW: Reals of Ancient War - *.bf extractor

Code:
# 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 i

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Sat Oct 20, 2012 3:45 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
StoneChess (2012) PC - data.scp extractor

Now they are really getting lazy with their GRAFs...

Code:
# 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 i

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Sat Oct 20, 2012 5:21 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
Top Secret Finders (2012) PC - TSF.vst extractor

Code:
# 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 i

_________________
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 ;)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Sat Oct 20, 2012 7:26 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 985
Has thanked: 76 times
Have thanks: 615 times
Doom 3: BFG Edition (2012) PC - *.resources

Should work on all platforms.

Code:
# 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 i



_________________
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 ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 476 posts ]  Go to page Previous  1 ... 21, 22, 23, 24, 25, 26, 27 ... 32  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group