UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Modding => Topic started by: Scobalula on April 26, 2016, 04:19:28 pm

Title: [TUTORIAL] Rip sounds from IW6
Post by: Scobalula on April 26, 2016, 04:19:28 pm
On and off I've spent the last month or so figuring out how to extract sounds from Ghosts. I can't find an exporter nor can I find any info on the FFs. So I just decided to figure it out myself.

NOTE: There is no guarantee you can get the sounds with this method, but you have a fairly good chance. I was able to extract sounds including fire, clip ins, etc. for Bulldog and Magnum.

This tutorial is a little full on so take it step by step, if you need assistance I'm usually on Chat of just ask here. Don't look at it and think 2 complex 4 me, it really isn't. If I the idiot could figure it out you can follow these instructions. If you think I've gone wrong anywhere here please let me know, pretty sure I didn't skip any parts as I pretty much typed as I ported the sound. :D

Some things you'll need before starting:


You don't need to understand hex, basic knowledge is all we need, if you're able to open and close a program, you're fine.

Decompiling the FF



To begin, we're going to need to decompile the FF. This involves determining which FF the gun sounds are in, I usually go by SP ones if the gun is in SP since I find it easy because fewer weapons are in one level, your preference, if it's in MP only (including DLC ones) make sure to use MP ff's.

I'm going to rip the sounds for the Bulldog, note that make sure to go on Wiki and find out the name of the gun in game files, the Bulldog for example is referred to as Maul, not Bulldog. The Bulldog is in a few levels, but I am going to extract it from No Man's Land aka nml.ff.

So open FF Viewer 3.0 and drop the FF onto it, it will take a bit to extract, so be patient and wait until it exports fully, if you get any errors let me know, but I haven't got any yet.

(https://i.gyazo.com/b2e251406bf71b877b8446e5d1e37252.gif)

If it says success, great, leave it open until we're done.

You should now have this file in the same folder as the FF:

(https://i.gyazo.com/bf787a23db7651ea206e0348fdd71349.png)

Now we can move onto getting the sounds.


Ripping the Sounds



This is where it gets bit confusing maybe, and requires some thinking. Open the .dat file in HxD and it should look similar to this (not 100% exact obviously):

(https://i.gyazo.com/3e8af861a9bb2e76bbaf1ff24bea810e.png)

Try not the get confused, k? So let's search for the sound, remember I told you to take note of the weapons in-files name? Press CTRL+F to search and search for it.

You'll probably run into this stuff:

(https://i.gyazo.com/33b9a510e1f73e360d4a07fc7a289c07.png)

Ignore them and press F3 to skip to another entry, they are joint names probably, possibly for anims/models. Also skip ones with mtl_, nrm, col, spc etc. in the name, materials ant texture names. Also stuff like _lod. I usually find the audio section of the .dat to be located about below mid-way with the slider at the side.

Go until you find something named simialr to this, with npc, plr, etc. at the end, as this is probably a soundalias name, we are getting close.

(https://i.gyazo.com/bbfeedb0c75c975e752f461d24aa526a.png)

Now keep skipping these, as we don't need them, but they give us an idea of where we are, wait until we get down to something like this:

(https://i.gyazo.com/4e143df2869f1dceecda01045237112a.png)

This is probably a sound, put the cursor after the dot at the end and take note of the offset.

Now since the alias and sounds are usually jumbled together in this, do another search for your weapon to bring you to the next entry, which as we see is probably an alias, take note of the part before the alias name like we done with the dot after our sound name.

(https://i.gyazo.com/e9306b1c9315a7ca5290c4fc738aa489.png)

Now with the 2 offsets you've taken note off, press CTRL+E or Edit>Select Block, this will allow us to select the entire section that is possibly the audio.

We shall enter the first offset we took into the Start, and the last on, into the End and press Ok, this will select the entire block like so:

(https://i.gyazo.com/6b8ee8ed92b9d5d83cd457732aae8fbe.gif)

Now copy this, if you copy too much don't worry, we can always chop it off in Audacity. :)

Now make a new file in HxD and paste it in, if it gives a warning about File Size being bigger, press Ok. Now you can save this to where ever, file extension doesn't matter either.

(https://i.gyazo.com/e35925fc886006f9224222fb52fc20f8.png)

Now you can keep repeating this step for different sounds, like this is clip in, we can do another search for clip_out, fire etc. :)

Just another demonstration with a bit less detail:

From where we are, search again for what might look like a sound, again, keep going until you find it (usually reload sounds will be foley/soundname and it is probably only a few lines under our first block for the clip in):

(https://i.gyazo.com/a26d7d7be8e1783858fa5bfab019bf33.png)

Take note of the first offset, the dot after the name:

(https://i.gyazo.com/a06081e44b9388c15dee978a4973b099.png)

Then search again, and take note of the offset of the dot before this alias name:

(https://i.gyazo.com/b846f56cd284f27c79eccf28a5e4b4b5.png)

Then select the block like we done before:

(https://i.gyazo.com/dd8696e7ac7b0bd486de68dd3178237f.png)

And paste into a new file and save.

Do that for whatever sounds you want.

Now once you're done, we can move onto importing these files into Audacity


Importing the Sounds



This is by far the easiest part. Just open Audacity, go to Import>Raw Data and select the file to import:

(https://i.gyazo.com/6b98be55c82687764d6316f3457eb0a7.gif)

Once that's done assuming you done it right, it should work. :) After that it's just exporting it to WaW, which you can learn about in another tutorial (Zeroy's Wiki has some good tuts for sounds for both IW3 and T4).

(https://i.gyazo.com/ec602bd7f6e91f9dbcd982eb45e2d024.png)

Do not ask for sounds on this thread, happy modding, enjoy your sounds if you are successful with it, make sure to trim off any bad sound if there is some. :)

Credits:

R00feR: Assistance and Tips
Developers of FF Viewer: FF Viewer
IW: Dirty bastards making our modding lives harder.  :troll:
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Koan on April 26, 2016, 06:19:11 pm
(http://i2.kym-cdn.com/photos/images/original/000/971/686/891.jpg)

Nice work man, always good to see some thorough and useful tutorials here. :)
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: DidUknowiPwn on April 26, 2016, 06:29:46 pm
Don't always use mono for sounds. The fire sound (player) is stereo for example (if we're only talking about weapon sounds yes only the firesound_plr is stereo, basically anything _plr is stereo anything _npc is mono).
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Tim Smith on April 26, 2016, 07:36:02 pm
Omg! This's great. Thx scoba. +1.
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: FinalKill9175 on April 26, 2016, 08:16:57 pm
This is great!

But i have a question about the anims when i convert them from .tanims from ghosts;
 Can I do the ads anims in the same way with BO2 weapons?
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: DidUknowiPwn on April 26, 2016, 08:25:59 pm
This is great!

But i have a question about the anims when i convert them from .tanims from ghosts;
 Can I do the ads anims in the same way with BO2 weapons?
You do it the same as IW weapons.
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Scobalula on April 27, 2016, 09:47:48 am
Don't always use mono for sounds. The fire sound (player) is stereo for example (if we're only talking about weapon sounds yes only the firesound_plr is stereo, basically anything _plr is stereo anything _npc is mono).

Oh yeah, I should have added that, some are stereo so make sure for them to import as Stereo, not Mono.

Also found a better way to locate the "end" of the file in question, I'm guessing they are seperated like before with this:

(http://i.imgur.com/8mQ1PGO.jpg)


*cough* Maybe some nublet could make a program to dump them? I would if I knew how. ::)
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Tim Smith on April 27, 2016, 10:19:43 am
^ Nick can do that. Just ask him.
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: DeletedUser on April 27, 2016, 10:33:54 am
I was thinking of doing that actually.
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Scobalula on April 27, 2016, 10:37:30 am
I was thinking of doing that actually.

Would be nice, probably wouldn't even require a GUI, cmd program would work wonders. :D
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: DidUknowiPwn on April 27, 2016, 04:06:30 pm
Parsing the data is the annoying part. I can't think of a way to parse it properly other than reading the whole thing and sifting individually but that's hella slow. The separation is similar to what I used in my strings extractor but I'll see.
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: toxic72 on April 27, 2016, 05:55:39 pm
As i've fixed the crash with codcp and ghost ff's basically I can parse any data out of it.
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Rorke on June 08, 2016, 09:57:05 am
far too confusing carnt follow a thing what offset at what dot loads of dots ill just use pre0recorded sounds this will take far too long

Double Post Merge: June 08, 2016, 10:26:44 am
EDIT: got a sound i was wanting after trying this 4 times over not sure its the complete sound or not guess ill know when i have the rest
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Scobalula on June 08, 2016, 10:38:50 am
far too confusing carnt follow a thing what offset at what dot loads of dots ill just use pre0recorded sounds this will take far too long

Double Post Merge: June 08, 2016, 10:26:44 am
EDIT: got a sound i was wanting after trying this 4 times over not sure its the complete sound or not guess ill know when i have the rest

Once you get it right it won't take long, takes me max 5-10 minutes to rip and implement into WAW a full set of gun sounds, which isn't too far off doing other weapons.
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Rorke on June 08, 2016, 01:21:57 pm
Once you get it right it won't take long, takes me max 5-10 minutes to rip and implement into WAW a full set of gun sounds, which isn't too far off doing other weapons.
yeah after doing 2 sounds for the ak12 its actually really really easy i just saw that and thought wow jesus really?
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: TorveloxX on May 03, 2017, 02:01:01 pm
can you actually use hex editing for ripping animations as well?
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: johndoe on May 03, 2017, 09:03:27 pm
No
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: KhelMho on June 12, 2017, 05:01:29 pm
Thank you!  :)
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Scobalula on July 11, 2017, 09:51:55 am
*cough* Maybe some nublet could make a program to dump them? I would if I knew how. ::)

Fast forward a year and a bit and....

(http://i.imgur.com/rA8dXOo.png)

Might release it soon if testing goes well. :P
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Speedy on April 09, 2020, 07:58:20 pm
On and off I've spent the last month or so figuring out how to extract sounds from Ghosts. I can't find an exporter nor can I find any info on the FFs. So I just decided to figure it out myself.

NOTE: There is no guarantee you can get the sounds with this method, but you have a fairly good chance. I was able to extract sounds including fire, clip ins, etc. for Bulldog and Magnum.

This tutorial is a little full on so take it step by step, if you need assistance I'm usually on Chat of just ask here. Don't look at it and think 2 complex 4 me, it really isn't. If I the idiot could figure it out you can follow these instructions. If you think I've gone wrong anywhere here please let me know, pretty sure I didn't skip any parts as I pretty much typed as I ported the sound. :D

Some things you'll need before starting:

You don't need to understand hex, basic knowledge is all we need, if you're able to open and close a program, you're fine.


Decompiling the FF


To begin, we're going to need to decompile the FF. This involves determining which FF the gun sounds are in, I usually go by SP ones if the gun is in SP since I find it easy because fewer weapons are in one level, your preference, if it's in MP only (including DLC ones) make sure to use MP ff's.

I'm going to rip the sounds for the Bulldog, note that make sure to go on Wiki and find out the name of the gun in game files, the Bulldog for example is referred to as Maul, not Bulldog. The Bulldog is in a few levels, but I am going to extract it from No Man's Land aka nml.ff.

So open FF Viewer 3.0 and drop the FF onto it, it will take a bit to extract, so be patient and wait until it exports fully, if you get any errors let me know, but I haven't got any yet.

(https://i.gyazo.com/b2e251406bf71b877b8446e5d1e37252.gif)

If it says success, great, leave it open until we're done.

You should now have this file in the same folder as the FF:

(https://i.gyazo.com/bf787a23db7651ea206e0348fdd71349.png)

Now we can move onto getting the sounds.



Ripping the Sounds


This is where it gets bit confusing maybe, and requires some thinking. Open the .dat file in HxD and it should look similar to this (not 100% exact obviously):

(https://i.gyazo.com/3e8af861a9bb2e76bbaf1ff24bea810e.png)

Try not the get confused, k? So let's search for the sound, remember I told you to take note of the weapons in-files name? Press CTRL+F to search and search for it.

You'll probably run into this stuff:

(https://i.gyazo.com/33b9a510e1f73e360d4a07fc7a289c07.png)

Ignore them and press F3 to skip to another entry, they are joint names probably, possibly for anims/models. Also skip ones with mtl_, nrm, col, spc etc. in the name, materials ant texture names. Also stuff like _lod. I usually find the audio section of the .dat to be located about below mid-way with the slider at the side.

Go until you find something named simialr to this, with npc, plr, etc. at the end, as this is probably a soundalias name, we are getting close.

(https://i.gyazo.com/bbfeedb0c75c975e752f461d24aa526a.png)

Now keep skipping these, as we don't need them, but they give us an idea of where we are, wait until we get down to something like this:

(https://i.gyazo.com/4e143df2869f1dceecda01045237112a.png)

This is probably a sound, put the cursor after the dot at the end and take note of the offset.

Now since the alias and sounds are usually jumbled together in this, do another search for your weapon to bring you to the next entry, which as we see is probably an alias, take note of the part before the alias name like we done with the dot after our sound name.

(https://i.gyazo.com/e9306b1c9315a7ca5290c4fc738aa489.png)

Now with the 2 offsets you've taken note off, press CTRL+E or Edit>Select Block, this will allow us to select the entire section that is possibly the audio.

We shall enter the first offset we took into the Start, and the last on, into the End and press Ok, this will select the entire block like so:

(https://i.gyazo.com/6b8ee8ed92b9d5d83cd457732aae8fbe.gif)

Now copy this, if you copy too much don't worry, we can always chop it off in Audacity. :)

Now make a new file in HxD and paste it in, if it gives a warning about File Size being bigger, press Ok. Now you can save this to where ever, file extension doesn't matter either.

(https://i.gyazo.com/e35925fc886006f9224222fb52fc20f8.png)

Now you can keep repeating this step for different sounds, like this is clip in, we can do another search for clip_out, fire etc. :)

Just another demonstration with a bit less detail:

From where we are, search again for what might look like a sound, again, keep going until you find it (usually reload sounds will be foley/soundname and it is probably only a few lines under our first block for the clip in):

(https://i.gyazo.com/a26d7d7be8e1783858fa5bfab019bf33.png)

Take note of the first offset, the dot after the name:

(https://i.gyazo.com/a06081e44b9388c15dee978a4973b099.png)

Then search again, and take note of the offset of the dot before this alias name:

(https://i.gyazo.com/b846f56cd284f27c79eccf28a5e4b4b5.png)

Then select the block like we done before:

(https://i.gyazo.com/dd8696e7ac7b0bd486de68dd3178237f.png)

And paste into a new file and save.

Do that for whatever sounds you want.

Now once you're done, we can move onto importing these files into Audacity



Importing the Sounds


This is by far the easiest part. Just open Audacity, go to Import>Raw Data and select the file to import:

(https://i.gyazo.com/6b98be55c82687764d6316f3457eb0a7.gif)

Once that's done assuming you done it right, it should work. :) After that it's just exporting it to WaW, which you can learn about in another tutorial (Zeroy's Wiki has some good tuts for sounds for both IW3 and T4).

(https://i.gyazo.com/ec602bd7f6e91f9dbcd982eb45e2d024.png)

Do not ask for sounds on this thread, happy modding, enjoy your sounds if you are successful with it, make sure to trim off any bad sound if there is some. :)

Credits:

R00feR: Assistance and Tips
Developers of FF Viewer: FF Viewer
IW: Dirty bastards making our modding lives harder.  :troll:
thanks really good work well done
Title: Re: [TUTORIAL] Rip sounds from IW6
Post by: Scobalula on April 09, 2020, 08:09:54 pm
thanks really good work well done
no bother lad we do be here to help everyone