cut_paste.bms script

Doubts, help and support about QuickBMS and other game research tools
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

cut_paste.bms script

Post by makc_ar »

Someone to write a script for this files https://www59.zippyshare.com/v/izSC1Cux/file.html? How to cut 28 bytes of footer in .xsew file and create a new file .wav?

footer in .xsew file
Image
create a new file .wav
Image

Right?

Code: Select all

get SIZE asize
get NAME basename
math SIZE - 28
string NAME + .wav
log NAME 0x0 SIZE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: cut_paste.bms script

Post by aluigi »

These xsew files are playable as-is too, anyway yes the script is correct but if you want something 100% compliant with the RIFF format try this:

Code: Select all

idstring "RIFF"
get SIZE long
math SIZE + 8
get NAME basename
string NAME + .wav
log NAME 0 SIZE
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: cut_paste.bms script

Post by makc_ar »

Thanks a lot aluigi! .sngw files https://www111.zippyshare.com/v/LPaTpZNc/file.html hard format?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: cut_paste.bms script

Post by aluigi »

Doesn't seem a real format but there is something strange, the repeated sequence of 0xa3f32000.
So if you try the xor.exe tool you can find a better "sense" in the file but still an unknown format:

Code: Select all

xor.exe m40_301c.sngw output.dat 0xa3f32000