Sign in to follow this  
Followers 0
Pixel

Ambient Music Error

21 posts in this topic

it cannot find the file in your cod4 directory as in this way Call of duty4/raw/sound/mp_deathrun_revolution - if you went there right now, you wouldn't find mp_deathrun_revolution there and it tells you, when it searches there it cannot find the file so it fails to load it and throw that error at you.

 

Solution, move the file to "Call of Duty 4 - Modern Warfare\raw\sound\place file here", if there no sound folder, create one.

0

Share this post


Link to post
Share on other sites

it cannot find the file in your cod4 directory as in this way Call of duty4/raw/sound/mp_deathrun_revolution - if you went there right now, you wouldn't find mp_deathrun_revolution there and it tells you, when it searches there it cannot find the file so it fails to load it and throw that error at you.

 

Solution, move the file to "Call of Duty 4 - Modern Warfare\raw\sound\place file here", if there no sound folder, create one.

but there is a folder there

0

Share this post


Link to post
Share on other sites

the song should be exactly where you said it as going to be in the csv, and the exact same name.   Other wise it will not recognise that there is the song inside that folder.  Therefor giving you that error and carries on compiling...  

Dont forget to add the music to your .iwd as well :o

0

Share this post


Link to post
Share on other sites

You mean here? http://gyazo.com/2825ee3ac815106c2987db78f70ec3b9 Screenshot contains path in program files and the entry in .csv

 

No i meant the the main map csv aka zone files:

5c64c990ce5f431aada7f1da3011d3bc.png

looks like you've added your .mp3 to the zone files, which is wrong. You're only supposed to add the soundalias to the csv, to make custom sounds works.

 

Like that: sound,soundaliasname,,all_mp.

 

Haven't done much mapping nor modding in the last couple of weeks, means I'm probably wrong. So if that doesn't work, then post your whole soundalias here, and the path of your sound file.

0

Share this post


Link to post
Share on other sites

Just get your mp3, put it in your raw > music folder, go into raw > soundaliases and make a csv called songname.csv  (song name being the music)  and put this code in it 

name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max​,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,seconda​ryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage,center percentage,platform,envelop_min,envelop_max,envelop percentage


songname,,music/songname.mp3,0.7,0.7,ambience,,,,,ambient,streamed,,looping,,all_mp,,,,,,

then do what beat did and add sound,songname,,all_mp.

 

and ofc your ambient play script 

 

then add the mp3 to your iwd > sound > music

 

(thats the way I do it) 

0

Share this post


Link to post
Share on other sites

Thanks guys. I will try when I'm up to it. I've been out all day so I'm rather tired, plus I had no sleep and have been playing football for like 4 hours 

0

Share this post


Link to post
Share on other sites

Okay I'm not having any luck. So I'm going to show you my stuff

 

Script:

 

main()
{

	maps\mp\_load::main();
 
	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";
	
	ambientPlay( "song1" );
	
	setdvar( "r_specularcolorscale", "1" );
	
	precacheItem("brick_Blaster_mp");
	precacheItem("ak47_mp");
	
	thread trap1(); 
	thread trap2(); 
	thread trap3(); 
	thread trap4(); 
	thread autobrush(); 
	thread trap6();
	thread trap7();
	thread trap8();
	thread nonsolidtext();
	thread trap9();
	thread sniper();
	thread bounce();
	thread knife();
	thread old();
	thread secrethole();
	thread secrettele1();
	thread secrettele2();
	thread secrettele3();
	thread secrettele4();
	thread secrettele5();
	thread secrettele6();
	thread endsecret();
	thread bounceroomweap();
	thread secrethole();
	thread credits();
	thread startsecret();
	thread jumper();
	thread bouncerespawn();
	
	addTriggerToList("trap1_trig");
	addTriggerToList("trap2_trig");
	addTriggerToList("trap3_trig");
	addTriggerToList("trap4_trig");
	addTriggerToList("trap6_trig");
	addTriggerToList("trap7_trig");
	addTriggerToList("trap8_trig");
	addTriggerToList("trap9_trig");
	addTriggerToList("endsecret");
}

 

gyazo.com/4907d97bba737a0fe4a5cca91ada6fd6 (raw > sound)

 

CSV (raw > soundaliases)

 

name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage,center percentage,platform,envelop_min,envelop_max,envelop percentage
,,,,,,,,,,,,,,,,,,,,,,,,,,,,
song1,,legendary.mp3,1,1,,,,1000000,announcer,,streamed,,,master,,,,,,,,,,,,,,,

 

Zone File:

 

ignore,code_post_gfx_mp
ignore,common_mp
ignore,localized_code_post_gfx_mp
ignore,localized_common_mp
col_map_mp,maps/mp/mp_deathrun_revolution.d3dbsp
rawfile,maps/mp/mp_deathrun_revolution.gsc
impactfx,mp_deathrun_revolution
sound,common,mp_deathrun_revolution,!all_mp
sound,generic,mp_deathrun_revolution,!all_mp
sound,voiceovers,mp_deathrun_revolution,!all_mp
sound,multiplayer,mp_deathrun_revolution,!all_mp
sound,legendary,,all_mp

 

Thanks if you sort it out guys

0

Share this post


Link to post
Share on other sites

Try doing

music() 
{
level waittill( round_started );

AmbientPlay( song1 );
} 
Excuse the formatting, wrote it in my phone
0

Share this post


Link to post
Share on other sites

Okay I'm not having any luck. So I'm going to show you my stuff

 

Script:

 

main()
{

	maps\mp\_load::main();
 
	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";
	
	ambientPlay( "song1" );
	
	setdvar( "r_specularcolorscale", "1" );
	
	precacheItem("brick_Blaster_mp");
	precacheItem("ak47_mp");
	
	thread trap1(); 
	thread trap2(); 
	thread trap3(); 
	thread trap4(); 
	thread autobrush(); 
	thread trap6();
	thread trap7();
	thread trap8();
	thread nonsolidtext();
	thread trap9();
	thread sniper();
	thread bounce();
	thread knife();
	thread old();
	thread secrethole();
	thread secrettele1();
	thread secrettele2();
	thread secrettele3();
	thread secrettele4();
	thread secrettele5();
	thread secrettele6();
	thread endsecret();
	thread bounceroomweap();
	thread secrethole();
	thread credits();
	thread startsecret();
	thread jumper();
	thread bouncerespawn();
	
	addTriggerToList("trap1_trig");
	addTriggerToList("trap2_trig");
	addTriggerToList("trap3_trig");
	addTriggerToList("trap4_trig");
	addTriggerToList("trap6_trig");
	addTriggerToList("trap7_trig");
	addTriggerToList("trap8_trig");
	addTriggerToList("trap9_trig");
	addTriggerToList("endsecret");
}

 

gyazo.com/4907d97bba737a0fe4a5cca91ada6fd6 (raw > sound)

 

CSV (raw > soundaliases)

 

name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage,center percentage,platform,envelop_min,envelop_max,envelop percentage
,,,,,,,,,,,,,,,,,,,,,,,,,,,,
song1,,legendary.mp3,1,1,,,,1000000,announcer,,streamed,,,master,,,,,,,,,,,,,,,

 

Zone File:

 

ignore,code_post_gfx_mp
ignore,common_mp
ignore,localized_code_post_gfx_mp
ignore,localized_common_mp
col_map_mp,maps/mp/mp_deathrun_revolution.d3dbsp
rawfile,maps/mp/mp_deathrun_revolution.gsc
impactfx,mp_deathrun_revolution
sound,common,mp_deathrun_revolution,!all_mp
sound,generic,mp_deathrun_revolution,!all_mp
sound,voiceovers,mp_deathrun_revolution,!all_mp
sound,multiplayer,mp_deathrun_revolution,!all_mp
sound,legendary,,all_mp

 

Thanks if you sort it out guys

your problem is that you need to rename song1.csv to legendary.csv and change the first column from song1 to legendary.

0

Share this post


Link to post
Share on other sites

Try doing

 

music() 
{
level waittill( round_started );

AmbientPlay( song1 );
} 
Excuse the formatting, wrote it in my phone

 

I did, didn't work

0

Share this post


Link to post
Share on other sites

your problem is that you need to rename song1.csv to legendary.csv and change the first column from song1 to legendary.

I don't have a filename called song1.csv?

0

Share this post


Link to post
Share on other sites

I don't have a filename called song1.csv?

the csv file you posted, the first line is for name. That is supposed to be what your file is named.

0

Share this post


Link to post
Share on other sites

also you're trying to play a .mp3 file called song1 but the .mp3 file is called legendary

0

Share this post


Link to post
Share on other sites

also you're trying to play a .mp3 file called song1 but the .mp3 file is called legendary

where abouts to i place the IWD? I put it in my map folder in usermaps and it didn't work ehhh

0

Share this post


Link to post
Share on other sites

Make an iwd and put it in the mod you use and just run it off the .map 

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0