Prince of Persia the forgotten sands strange xma(need little help) by Nicejob at 12:18 PM EDT on September 10, 2013
Hello People. Who is able to help me i pray on God for him:) Take a look please on theese files. I used addxmariffheader alpha script bms to a Common_BAO_0x00006e06 file(without extension) then i convert with towav.exe Common_BAO_0x00006e06.xma. Result distorsioned wav. Please help help help help!!! Sample Common_BAO_0x00006e06.rar (65.2 MB) https://mega.co.nz/#!MB0XAIrB!GfpUEjNo-eVOxYQEtXaxTBmgxp8y8QEJEfmCN-uC6Zw
That's one of those nasty Ubisoft multilayer XMA files. I once worked on a script to process them but gave up some time soon... Taking another look right now. But no promises.
Ok, understood the format as such. This little QuickBMS script will just print some information about the layers. More to come later. ;)
endian big goto 0x61 get LAYERS long goto 0x69 get SIZE_HEADER long # header before each block get UNK long get SIZE_NBLOCK long for i = 0 < LAYERS get SIZE_LAYER long putArray i 0 SIZE_LAYER next i getDstring EMPTY 0x40 # next intro block get UNK long get SIZE_NBLOCK long # next block for i = 0 < LAYERS get DUMMY long # header size again? next i for i = 0 < LAYERS get CODEC short if CODEC == 0x166 set CODEC "XMA" endif get CH short get FREQ long get UNK long get BITALIGN short get BITS short getDstring DUMMY 0x24 getArray SIZE i 0 set LAYER i math LAYER += 1 print "layer %LAYER%: %SIZE% bytes, codec %CODEC%, %CH% channels, %FREQ%Hz\n" next i
Maybe I need to hold my horses a bit but I think I may have finally cracked the format. I tried the script on some variants I kept for research purposes and so far it worked fine. Of course there could be other variations.
Here's the script, try if it works: http://www.putlocker.com/file/C356185B775BDA5C
Thank for reply Timo.Respect that. Select the script then select the bao name file and i get this error http://img839.imageshack.us/img839/9232/fl1i.png Dont know where i need put xma test or how parse. Please give me a tip how. I have quick bms editor,Xma Parse 11,Xmash 8. Wait your answer and ty again for patience!
Omg.It works man! I need it to rename xma_test.exe with xma_parse.exe You are a genius. Thank you again and i wish you have all happiness in the world:)
All multilayers was extracted perfect but i have problem with this: https://mega.co.nz/#!0J1FTYpZ!JqUumzvnVGIwqCU4FbWC68wRnNd6qa7jqDuyzhMjB3Q Maybe is different xma. Look what bms script say: http://img189.imageshack.us/img189/2763/cbk7.png Mentioned,that file was extracted from the same forge file with first sample.
I will have patience/ Yes.Is the last variant.If is not i will not bother you.To much stress and i feel bad because you wasted time for me.For all that kind of file error is the same.I think there is cutscene,main theme and start loop. Good luck buddy.