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

edited 12:26 PM EDT September 10, 2013

edited 12:38 PM EDT September 10, 2013
by Alpha23 at 1:22 PM EDT on September 10, 2013
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.
by Alpha23 at 1:46 PM EDT on September 10, 2013
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
by Alpha23 at 5:07 PM EDT on September 10, 2013
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

Regards, Timo
by Nicejob at 9:00 AM EDT on September 11, 2013
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!
by Alpha23 at 10:16 AM EDT on September 11, 2013
Put xma_parse.exe into the same directory as the script and it should work.
by Nicejob at 10:48 AM EDT on September 11, 2013
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:)
by Nicejob at 12:10 PM EDT on September 11, 2013
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.
by Alpha23 at 5:27 PM EDT on September 11, 2013
Aha, that's a file with only one layer - possibly one of the last variants to regard. Will take a look at that later.

edited 5:28 PM EDT September 11, 2013
by Nicejob at 1:48 AM EDT on September 12, 2013
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.

edited 11:24 AM EDT September 12, 2013
by Alpha23 at 10:51 AM EDT on September 14, 2013
New version: https://mega.co.nz/#!WZ522D5L!K4UIqBCw6UKdEuZiCe6XHyvfqJhTZspNtnmnnDP4Ig0
by Nicejob at 1:52 PM EDT on September 25, 2013
Ty a tone :)


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source