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

Members Online

»
0 Active | 12 Guests
Online:

LATEST FORUM THREADS

»
Kharkov xmodels
CoD+UO General
Node is floating???
CoD4 SP Mapping
new scripter cod4
CoD4 Scripting
[Release]SP East Prussian ...
CoD2 Map + Mod Releases

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, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: Sound problem!
{GITS}TheCleaner
General Member
Since: Apr 8, 2012
Posts: 52
Last: Jun 9, 2013
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Friday, Jul. 13, 2012 07:21 am
I sent you a pm darkpheonixz4x [wink]
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 MP Mapping
Posted: Friday, Jul. 13, 2012 07:50 am
{GITS}TheCleaner writes...
Quote:
I sent you a pm darkpheonixz4x [wink]


On this board, users POST their solutions to problems - NOT use the personal messaging system to do it. That way, the answer is there for everyone to see. Other people with similar or identical problems can then learn from the publicly posted solution.
Share |
{GITS}TheCleaner
General Member
Since: Apr 8, 2012
Posts: 52
Last: Jun 9, 2013
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Friday, Jul. 13, 2012 08:00 am
I don't know the answer, or I would have posted it, I just sent him a pm giving him the address of another site that might help him, I didnt want to post the address on this site, would be wrong.

I like to help people, I dont rant and rave at them, like some people [wink]
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 MP Mapping
Posted: Friday, Jul. 13, 2012 08:07 am
darkpheonixz4x writes...
Quote:
I did both of that. It did not work with the .iwd and when I remove streamed from type, i get my original error: "alias amb_dub sound mp_mymapname/myfile.wav played as an ambient/music track is not streamed; type must be streamed"

:/


In that case, you are forced to create an IWD file for your map:

1. Create a new IWD file. If you are unsure how to do this, the easiest way to get one is to download any custom map and rename the IWD file that comes with it. Simply right click on the IWD file, and left click on "rename".

2. If you are using the method described in 1 where you rename someone else's IWD file, open the IWD file with a compressed file handler like WinRar (free to download and use). Delete everything inside the IWD file except the "sound" folder if it has one.

3. Make sure the IWD file is named EXACTLY the same as your map name.

4. Your ambient sound file must go into a folder inside the IWD file named "sound". If your IWD file doesn't already have one (see 2 above), create a new folder on your Windows desktop and name it "sound". Then, open your IWD file, and drag and drop the "sound" folder into it. Now, open the "sound" folder and drag and drop your ambient sound file into it.

5. Now, if your COD4 install doesn't already have one, create a new folder named "usermaps". This should be in the root install, next to the "mods" folder and the "main" folder.

6. Open the "usermaps" folder and create another new folder and name it EXACTLY the same as your map's name.

7. Drag and drop your new IWD file (complete with sound file in it) into this new folder named after your map.

8. Drag and drop your map's .FF file into this new folder named after your map.

9. Your folder inside the "usermaps" folder should now have 2 files in it:

Quote:
1. mp_yourmapname.ff
2. mp_yourmapname.iwd


10. Now, fire up COD4 from the multiplayer executable. On the main menu there is a button for "mods". Click it and choose a mod. By default there should be at least two if you don't have any others installed. The default ones are: 1) modwarfare; 2) userMaps. Choose any one of these and click "ok". The game will now switch to the mod's "main menu".

11. Once on the mod's "main menu", drop down console and type:

Quote:
/map mp_yourmapname


NB: don't forget the forward slash. It wont boot into your map unless you have the forward slash there.

12. The game should boot into your map successfully. If it doesn't, post back with any error messages and we can help you from there.



Share |
darkpheonixz4x
General Member
Since: Jul 7, 2012
Posts: 17
Last: Nov 7, 2012
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Friday, Jul. 13, 2012 11:33 pm
Thank you for the detailed step-by-step process. I have done all of this and i found the error in the console log.

It stated: Couldn't play stream "sound/mymapname\myfile.wav" from alias "amb_dub" - Unable to open file.

Any solutions to this error?

Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 MP Mapping
Posted: Saturday, Jul. 14, 2012 02:32 am
darkpheonixz4x writes...
Quote:
Thank you for the detailed step-by-step process. I have done all of this and i found the error in the console log.

It stated: Couldn't play stream "sound/mymapname\myfile.wav" from alias "amb_dub" - Unable to open file.

Any solutions to this error?



I will need to see details of your soundalias file. Please post it in full. Do not edit it by removing the actual names of files and alias.

Also, what is the exact name of the .WAV file you are using? Post it's full name please.
Share |
darkpheonixz4x
General Member
Since: Jul 7, 2012
Posts: 17
Last: Nov 7, 2012
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Saturday, Jul. 14, 2012 04:07 am
attachment: application(23.1Kb)
What i realise about the .wav was it's bitrate was way too high (1411kbps) so i deleted that. I used my original mp3 and using bitrate conversion software, i have an mp3 with a bitrate of 128kbps.

The file name is amb_dub_ext.mp3

I have attached a winrar archive that consists of: my csv, my.map, mp.iwd and my script.

But i did not attach my music file with the .iwd as the upload limit
is 2mb

Hopefully you could derive the solution with all of this.
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 MP Mapping
Posted: Saturday, Jul. 14, 2012 09:20 am
I downloaded your assets and I can only say that without the actual sound file itself, there is no way I can see what or where the problem lies. Having checked your attached soundalias file, I don't see any major problems with it, other than you didn't set anything in the loadspecs channel. For multiplayer purposes, all you need in there is the all_mp value. But this is minor; not having it there would not have produced the error you have been reporting.

One thing I can say about your code is that you are using the ambient music channel, which forces you to stream your music from an IWD file, when in fact it isn't really necessary. Ambient music is for a map's sound effects, like weather effects, or waves crashing. It isn't really required to play a sound from a trigger like you are doing. You can use several sound functions to do that. Here is one such:

Code:
sound()
{
	trig = getent( "sound_activate", "targetname" );

	while( true )
	{
		trig waittill( "trigger", player );  
			
		if( isPlayer( player ) )
			player playLocalSound( "amb_dub" );
	}
}


If you do it this way, you will be able to compile the sound file into your fastfile as I explained earlier. You wont then have the recurring error of not being able to open the file. The only problem you will have with this method is if your .WAV file (you cannot compile MP3 files - the compiler doesn't accept that format) is incompatible with the game engine.

Whenever I am first testing a piece of code that need to play a sound, I always use an existing soundalias. If the sound doesn't play, then I know that it is my code and not the sound file. The one I always use is "mp_level_up". This is in multiplayer.csv.

Once I get the sound to play as I want it to do (i.e. when a trigger is triggered for example), then I move on to adding a soundalias. I always use the auto2d channel, and I rarely stream my sound files.
Share |
DeekCiti
General Member
Since: Mar 12, 2008
Posts: 1245
Last: Jun 13, 2013
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Sunday, Jul. 15, 2012 09:11 am
Why run it from usermaps and not the mod folder of the mod that is currently running? Servers/Clients use the Usermap folder while mappers use the mod folders. Not sure why anyone is telling him to use the usermaps folder at all.

Possible Solutions:

- The IWD could be corrupt.
- The audio file may not have the proper specs. *Most likely*
- Run the IWD from one of the mod folders.
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 MP Mapping
Posted: Sunday, Jul. 15, 2012 12:44 pm
DeekCiti writes...
Quote:
Why run it from usermaps and not the mod folder of the mod that is currently running? Servers/Clients use the Usermap folder while mappers use the mod folders. Not sure why anyone is telling him to use the usermaps folder at all.

Possible Solutions:

- The IWD could be corrupt.
- The audio file may not have the proper specs. *Most likely*
- Run the IWD from one of the mod folders.


Please take time to read a thread before you come marching in shouting the odds. The guy wasn't using an IWD file AT ALL. So, the issue isn't that I am telling him to use the usermaps folder, the issue is that the guy was getting an error because he was streaming a sound file and there was no IWD file to stream it from.

BTW - when testing a map, using the mod folder or the usermaps folder work equally as well. Check that word: "equally". In other words, I could have told him to use either, and it would solve the problem of having an IWD file. So, please leave your crusade against people telling others to use the usermaps folder, because interesting enough, it works just as well as using the mod folder, if not better.

Just because you personally don't use it, or advise people to use it, makes no difference: it works as the developers intended it to work.
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility is for sale!
Seems like a plan to save Codutility ..Quote:Well guys I heard what you said...
Codutility is for sale!
Well as modding dies, so does the sites that support it.. Its a sad sad day,...
Codutility is for sale!
Quote:Codutility is for sale! Yes, you read well. Codutility ( sites/do...
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.

Partners & Friends

»