Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 13 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: music?
Gen.pitbull
General Member
Since: Jan 25, 2009
Posts: 86
Last: Mar 23, 2011
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Thursday, Feb. 3, 2011 11:00 pm
I'd like to know how to add custom music to my map and a hole bunch of ty's before you post to
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Friday, Feb. 4, 2011 06:59 am
You'll have to explain more on what type of music.

How is it played?

Is it in MP3 file type?
Share |
Gen.pitbull
General Member
Since: Jan 25, 2009
Posts: 86
Last: Mar 23, 2011
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Saturday, Feb. 5, 2011 03:35 am
We'll it would just play in the back ground as you play the map and of course it would have to be some hard rock playin, you know the music that gets you in the mood to find the enemy and knife them, lmao
or like come from an object in the map i'm making like a stereo
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Saturday, Feb. 5, 2011 05:30 am
If you are going to play a music file, I would suggest using an MP3.

Some types of MP3 files will not play, you will have to experiment. But for the most part, any should work as long as it is in MP3 format.

First thing you need is the song.

Second thing you need is a soundalias.

Third, you need an IWD file
.

Quote:
Wave files can be packed into the maps FF file, but MP3 files can only be played from and IWD file.


I will include a default soundalias, and a default IWD file. All you need to do is edit a few things on your end to get it working.

Start by downloading and unzipping the zip file I've included. Copy the IWD I've included to a mod folder. Use CustomMaps mod for now. Rename the IWD to your mapname. Just replace "mapname" with your mapname.

Next open up the IWD file with winzip, or pakscape or whatever you have to open that. To make it easy in the begining, rename your audio file to "music_file.mp3". Put your audio file in there, and replace the default song I have in the sound/amb_elements folder with yours. Save and close.

Also copy your song to the following Dir. "Call of Duty 4 - Modern Warfare\raw\sound\amb_elements\music_file.mp3". If the "amb_elements" folder doesn't exist, create it.

Now we need to tell the game to fetch the song we want to play, in the directory we've created in that IWD using the soundalias. In the zip file I've attached, pull the soundalias file out "mp_mapname.csv" and paste it into the following Dir. "Call of Duty 4 - Modern Warfare\raw\soundaliases" Rename the file so that mapname is the name of your map.

Next, open the .csv with MS Excel. If you don't have Excel, it will open with a text editor, but the formatting is not correct. Saving using a simple text editor might not work properly. I highly recommend MS Excel.

Once open, you will see that I've named the alias for the music file "my_song" for simplicity reasons. You won't need to edit anything in here but you can see and learn how the alias works by reading the descriptions in the above Cells. You can close it.

Now we have your files ready, we need to tell the game to run your soundalias. Since this song is going to play as the background ambient track, we need to state that in your maps main .gsc file. The same file where you define your teams. Open up your "mp_mapname.gsc" file and add or edit the following line to read:
Code:
	ambientPlay ("my_song");

Here is where we state the alias we want to play. We named the alias "my_song". So, now it knows to play the alias "my_song" as the ambient background track. The alias references our music file. Save and close.

Next, open up the compile tools and click "Update Zone file". Add the following line to your zone file, or rather, the right side.
sound,mp_mapname,,all_mp

Remember to edit "mapname" with the name of your map. This line tells your map to use your defined soundalias to play your sounds. Save the zone file and close.

Build FF.

I suggest Checking "Enable Developer" "Enable Developer Script" and "Use Custom Command Line Options".

Under Custom command line options, we need to make sure you run the mod where your IWD is located. I suggested putting the IWD in the CustomMaps Mod folder, so if that is true, then make sure this is in the custom command line options.
+set fs_game mods/customMaps

Run Selected map and test.

There are a few errors that can happen. If your sound does not play it could be because the file type is not supported. If this is the case, you will need to render the proper format. It may also say in the console "could not play streamed file, blah blah" This is because we stated in the soundalias "streamed". If you get this error, simply edit the soundalias, and remove the cell that says "streamed, for your sound, and make that cell empty.

Other errors. The sound doesn't play at all, and no errors occur. The game doesn't like your sounds format altogether, try a different sound or version of the sound.

Report back with any other errors. I know there are a few more but off the top of my head, I can't think of them. remember to check the full console by pressing "tilde" key [~], then pressing SHIFT + Tilde key to see the full console while ingame to check for errors.

It's easier than it looks.

Goodluck [thumbs_up]
Share |
{PADZ}grimreaper
General Member
Since: Apr 23, 2005
Posts: 334
Last: Aug 11, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Saturday, Feb. 5, 2011 10:07 am
Can anyone download that attachment?
Cause i can't seem to be able to.
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Saturday, Feb. 5, 2011 04:24 pm
attachment: file(801.7Kb)
{PADZ}grimreaper writes...
Quote:
Can anyone download that attachment?
Cause i can't seem to be able to.


Let me try it again. You were right, I couldn't even download it. I thought I could delete it and re-attach it on edit, but I couldn't. Had to repost.

EDIT

Looks like the same problem. Attachments don't show up as a link anymore. If it is possible to re-attach this attachment to post #4?
Share |
{PADZ}grimreaper
General Member
Since: Apr 23, 2005
Posts: 334
Last: Aug 11, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Monday, Feb. 7, 2011 04:16 pm
Any of the mod got an idea?
Share |
foyleman
Preferred PLUS Member
Since: Nov 7, 2001
Posts: 95762
Last: Apr 13, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: CoD4 MP Mapping
Posted: Wednesday, Feb. 9, 2011 11:44 am
DeekCiti brought this issue to my attention. The file can now be downloaded.[thumbs_up]
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Gen.pitbull
General Member
Since: Jan 25, 2009
Posts: 86
Last: Mar 23, 2011
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Wednesday, Feb. 9, 2011 10:05 pm
thank you foyleman
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»