XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sun Jan 22, 2017 11:07 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 465 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 31  Next
Author Message
 Post subject: Re: My quickBMS scripts
PostPosted: Fri Dec 31, 2010 3:58 am 
Offline
double-veteran
double-veteran

Joined: Sun Apr 20, 2008 2:58 am
Posts: 822
Has thanked: 5 times
Have thanks: 28 times

Hello alpha just a suggestion on your stereo XMA header script,is it possible to add an offset option so you can specify the offset of the xma stream for xma files with custom non riff headers?

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Fri Dec 31, 2010 2:14 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 984
Has thanked: 74 times
Have thanks: 580 times
add_header_XMA.bms
Adds an XMA RIFF header that is compatible with toWAV. Needed functions: func_str2num.bms

Code:
# header_adder_XMA.bms
# Add XMA1 RIFF header to headerless XMA1 stream (decodable with toWAV)
#
# If the headerless stream has the format NAME@FREQ[m/s] (e.g. track01@44100s),
# the script automatically takes the given values from the name.
# If the headerless stream has the format NAME@FREQ, func_header_XMA.bms
# will detect the channel count.
# Remember to try parsing the stream to XMA1 before adding a header.
#
# (c) 2012-03-26 by AlphaTwentyThree of XeNTaX

include "func_header_XMA.bms"
include "func_str2num.bms"

set FREQ_DEFAULT 44100
set CH_DEFAULT 2
set OFFSET 0x0
callfunction getfreqch 1
if FREQ == 0
   set FREQ FREQ_DEFAULT
   print "No frequency given.\nDefault frequency is %FREQ%Hz."
endif
if CH == 0
   set CH CH_DEFAULT
   print "Number of channels could not be determined.\nDefault is %CH% channels."
endif

get SIZE asize
math SIZE -= OFFSET
callfunction XMA 1
set NAME NAME_BASE # see function getfreq
string NAME += ".xma"
get SIZE asize MEMORY_FILE
log NAME 0 SIZE MEMORY_FILE


startfunction getfreqch # internal use only
   get NAME basename # search for freq and ch in file name via "@" identifier
   strlen NAMEL NAME
   set EXISTS 0
   for i = 0 < NAMEL # write name to memory
      getVarChr T NAME i
      if T == 0x40
         set EXISTS 1
      endif
      putVarChr MEMORY_FILE i T
   next i
   if EXISTS == 1 # freq info given
      getCT NAME_BASE string 0x40 MEMORY_FILE
      strlen NAMEBL NAME_BASE
      math NAMEBL += 1 # start of stream info in name
      set LENGTH NAMEL
      math LENGTH -= NAMEBL # length of string behind @
      set CH_OFF NAMEL
      math CH_OFF -= 1
      getVarChr CHANNELS NAME CH_OFF
      if CHANNELS < 0x40 # no channel count given -> determine channels
         callfunction getCH 1
      else # use channel count from file name
         math LENGTH -= 1
         if CHANNELS == 0x6d
            set CH 1
         elif CHANNELS == 0x73
            set CH 2
         endif
      endif
      goto NAMEBL MEMORY_FILE
      getDstring NUM LENGTH MEMORY_FILE # get freq as string
      callfunction str2num 1 # convert to integer
      set FREQ NUM
   else
      set FREQ 0
      callfunction getCH 1
      get NAME_BASE basename
   endif
endfunction


func_header_XMA.bms
Needed parameters are FREQ, OFFSET and SIZE. The channel variable CH is optional. If not given, the script will try to determine the nuber of channels automatically. However if no channel count can be determined, the default channel count is taken (important because you have to set it manually).
needs my variable test: viewtopic.php?f=13&p=69586#p69586

Code:
# revision 2012-04-03

include "func_checkVAR.bms"
startfunction XMA
   endian little
   if CH == ""
      callfunction getCH
   endif
   callfunction checkVAR 1
      set PRESIZE RIFFSIZE # pre-alloc
      math PRESIZE += 0x38
      log MEMORY_FILE PRESIZE 0
      log MEMORY_FILE 0 0
   set MEMORY_FILE binary "\x52\x49\x46\x46\xb8\x59\xa7\x00\x57\x41\x56\x45\x66\x6d\x74\x20\x20\x00\x00\x00\x65\x01\x10\x00\xd6\x10\x00\x00\x01\x00\x00\x03\xe3\x9a\x00\x00\x80\xbb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x02\x00\x64\x61\x74\x61\x00\x58\xa7\x00"
   set RIFFSIZE SIZE
   math RIFFSIZE += 0x34
   putVarChr MEMORY_FILE 0x04 RIFFSIZE long
   putVarChr MEMORY_FILE 0x24 FREQ long
   putVarChr MEMORY_FILE 0x31 CH byte
   putVarChr MEMORY_FILE 0x38 SIZE long
   append
   log MEMORY_FILE OFFSET SIZE
   append
endfunction

startfunction getCH
   set CHOFF OFFSET
   math CHOFF += 7
   goto CHOFF
   get IDENT byte
   if IDENT == 1
      set CH 2
   elif IDENT == 3
      set CH 1
   elif IDENT == 0 # from multichannel stream
      set CH 2
   else
      set CH ""
   endif
endfunction

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


Last edited by AlphaTwentyThree on Tue Apr 03, 2012 5:10 pm, edited 13 times in total.

Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Sun Jan 02, 2011 12:33 am 
Offline
double-veteran
double-veteran

Joined: Sun Apr 20, 2008 2:58 am
Posts: 822
Has thanked: 5 times
Have thanks: 28 times
Thanks! :)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Tue Jan 04, 2011 11:24 pm 
Offline
double-veteran
double-veteran

Joined: Sun Apr 20, 2008 2:58 am
Posts: 822
Has thanked: 5 times
Have thanks: 28 times
The contents of this post was deleted because of possible forum rules violation.


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Wed Jan 05, 2011 9:56 pm 
Offline
advanced

Joined: Mon Dec 14, 2009 5:41 pm
Posts: 47
Has thanked: 0 time
Have thanks: 0 time
Can you mod your EA XMA script for this please?

http://flameupload.com/files/0LJDWAQW/A ... _Track.xxx

Thx in advance!


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Thu Jan 06, 2011 12:48 pm 
Offline
beginner

Joined: Thu Jan 06, 2011 12:36 pm
Posts: 20
Has thanked: 0 time
Have thanks: 2 times
I've heard someone asked for something that would make Call Of Duty:Black Ops(PC) .wav's valid, so I made something (apologies if it has already been made). The tool can extract and automatically fix wavs coming from COD:BO .iwd files, just drag them in the .exe and you will get in about 4-5 minutes valid .wavs (readme is included with the download).
Download link: http://gljivolog.com/data/releases/bo_rip_beta.rar


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Tue Jan 18, 2011 10:28 pm 
Offline
double-veteran
double-veteran

Joined: Sun Apr 20, 2008 2:58 am
Posts: 822
Has thanked: 5 times
Have thanks: 28 times
Hey alpha does the search string for your general script have to be strictly 8 bytes? because when i try to do lower like 6 or 4 it just outputs the same archive from the first search string offset.


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Wed Jan 26, 2011 4:52 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 984
Has thanked: 74 times
Have thanks: 580 times
OrangeC wrote:
Hey alpha does the search string for your general script have to be strictly 8 bytes? because when i try to do lower like 6 or 4 it just outputs the same archive from the first search string offset.

You need to adjust the += value down there to the length of your search string.

_________________
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 Jan 26, 2011 8:07 pm 
Offline
double-veteran
double-veteran

Joined: Sun Apr 20, 2008 2:58 am
Posts: 822
Has thanked: 5 times
Have thanks: 28 times
okay thanks! :)


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Thu Jan 27, 2011 7:32 pm 
Offline
ultra-n00b

Joined: Thu Jan 27, 2011 7:22 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
The contents of this post was deleted because of possible forum rules violation.


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Sun Jan 30, 2011 5:41 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 15, 2003 6:45 pm
Posts: 4001
Location: Dungeons of Doom
Has thanked: 401 times
Have thanks: 535 times
You can use QuickBMS scripts also in MultiEx Commander now that acts as a GUI.

http://www.youtube.com/watch?v=9afcbJxNvcE

_________________
Please like our Facebook page!


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Mon Jan 31, 2011 2:47 pm 
Offline
ultra-n00b

Joined: Thu Jan 27, 2011 7:22 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Mr.Mouse wrote:
You can use QuickBMS scripts also in MultiEx Commander now that acts as a GUI.

http://www.youtube.com/watch?v=9afcbJxNvcE


What has this got to do with my Smackdown Vs Raw 2011 PS3 music.pck? It's paid software too. I want a tool that can snoop my file for free.


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Mon Jan 31, 2011 3:49 pm 
Offline
n00b

Joined: Sun Mar 21, 2010 5:41 pm
Posts: 15
Has thanked: 5 times
Have thanks: 0 time
Why not run this free script

AlphaTwentyThree wrote:
Code:
get BNAME basename
string BNAME += "_"
set OFFSET 0
set SEARCH OFFSET
math SEARCH += 4
set QUIT 0
for i = 1
   goto SEARCH
   FindLoc SIZE string "RIFX" 0 ""
   if SIZE == ""
      get SIZE asize
      set QUIT 1
   endif
   math SIZE -= OFFSET
   set NAME BNAME
   string NAME += i
   log NAME OFFSET SIZE
   if QUIT != 1
      math OFFSET += SIZE
      set SEARCH OFFSET
      math SEARCH += 4
   else
      cleanexit
   endif
next i


with a help of a free program named QuickBMS and convert resulting *.rifx files using a free program named WW2OGG and this batch file?
for %%a in (*.RIFX) do ww2ogg.exe "%%a"


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Mon Jan 31, 2011 5:38 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 15, 2003 6:45 pm
Posts: 4001
Location: Dungeons of Doom
Has thanked: 401 times
Have thanks: 535 times
TEOL wrote:
Mr.Mouse wrote:
You can use QuickBMS scripts also in MultiEx Commander now that acts as a GUI.

http://www.youtube.com/watch?v=9afcbJxNvcE


What has this got to do with my Smackdown Vs Raw 2011 PS3 music.pck? It's paid software too. I want a tool that can snoop my file for free.


For your information, MultiEx Commander used to be freely downloadable since 1997, so about 14 years. The only reason users are asked for a small donation is to ensure the continuation of the free information at XeNTaX.

Second, "I want" is a disrespectful attitude towards those people that work in their freetime to support new formats, such as the one you aim for. And they do this for free. And guys like you probably have no sense of the cost of things. You probably expect everything to be free, heck perhaps even demand stuff to be free.

Like I said in my post above, you can now *also* use QuickBMS scripts in MultiEx Commander, if you feel like having a GUI to preview files you extract, and extract only those files you wish to extract. The free - original command line- option is described by AlphaTwentyThree.

_________________
Please like our Facebook page!


Top
 Profile  
 
 Post subject: Re: My quickBMS scripts
PostPosted: Mon Jan 31, 2011 10:58 pm 
Offline
beginner
User avatar

Joined: Mon Dec 07, 2009 10:18 pm
Posts: 39
Has thanked: 0 time
Have thanks: 15 times
Thanks for the scrips they are good,but is there any chance of a .aa3 to .at3(+)

cheers cozy



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 465 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 31  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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