How do i add a music menu to my map?

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Pun1sheR
CJ Wannabe
CJ Wannabe
Posts: 39
Joined: August 27th, 2013, 7:29 pm

How do i add a music menu to my map?

Post by Pun1sheR » July 2nd, 2014, 1:26 am

Hey guys, I'm back and needing some help desperately! I have been working on a deathrun map for a long time, and I need help adding a music menu to my map. I have the menu from a friend who made it for me, but besides that i don't know what to do, i try adding it to a folder and executing it that way, but that doesn't seem to work.
Here is what it looks like : (blue text)

maps\mp\_load::main();
maps\mp\_compass::setupMiniMap("compass_map_mp_dr_biohazard");
//maps\mp\mp_dr_biohazard\_menu::main();

game["allies"] = "marines";
game["axis"] = "opfor";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["allies_soldiertype"] = "desert";
game["axis_soldiertype"] = "desert";

setdvar( "r_specularcolorscale", "1" );

setdvar("compassmaxrange","1600");

Every time I run the map with the script actually running, it says cannot find script maps/mp/mp_dr_biohazard/_menu,
couldn't load maps\mp\mp_dr_biohazard\_menu::main();

Any ideas to what the problem is?

privateparts
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: June 26th, 2014, 4:18 pm

Re: How do i add a music menu to my map?

Post by privateparts » July 13th, 2014, 2:21 pm

you need to add a custom ambient to your gsc here is my gsc line for the ambient sound

ambientPlay("candy");

you must put a mp3 sound file into your call of duty raw maps mp sound and in there a folder with the name of the directory of your chioce file so it would be raw/sound/candy/candy.mp3 and then open a csv file and rename it your map mp'_whatever.csv and enter these lines

"#""If the first column for a row is blank"," then the row is ignored""",,,,,,,,,,,,,,,,,,,,,,,,,,,
# The first non-comment line of a sound alias file specifies the key name for all values appearing in this column.,,,,,,,,,,,,,,,,,,,,,,,,,,,,
# This means it is safe to swap entire columns around, though you should never swap partial columns.,,,,,,,,,,,,,,,,,,,,,,,,,,,
# You can invent new keys, but the game will ignore them if it doesn't know about them.,,,,,,,,,,,,,,,,,,,,,,,,,,,
# You can leave out keys," but the ""name"" and ""file"" keys must always be present.",,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,name,name of the alias that is used to play this sound (required),,,,,,,,,,,,,,,,,,,,,,,,,,
,sequence,"used to uniquely identify alias entries when more than one sound goes to an alias, used only to catch unwanted duplicates (default = 0)",,,,,,,,,,,,,,,,,,,,,,,,,,
,file,the name of the file that contains the sound data (required),,,,,,,,,,,,,,,,,,,,,,,,,,
,vol_min,"0 is silent, 1 is full volume (default = 1)",,,,,,,,,,,,,,,,,,,,,,,,,,
,vol_max,"0 is silent, 1 is full volume (default = same as vol_min)",,,,,,,,,,,,,,,,,,,,,,,,,,
,vol_mod,"blank causes no effect on vol_min and vol_max, otherwise the string must match a string in the volumemodgroups.def file and the value in that file corresponding to that string will be used to adjust vol_min and vol_max, clamped to the valid range",,,,,,,,,,,,,,,,,,,,,,,,,,
,pitch_min,"1 is normal playback, 2 is twice as fast, 0.5 is half as fast (default = 1)",,,,,,,,,,,,,,,,,,,,,,,,,,
,pitch_max,"1 is normal playback, 2 is twice as fast, 0.5 is half as fast (default = same as pitch_min)",,,,,,,,,,,,,,,,,,,,,,,,,,
,dist_min,"within this distance in inches, the sound is always full volume (default = 120)",,,,,,,,,,,,,,,,,,,,,,,,,,
,dist_max,"outside this distance in inches, the sound is not started. If left blank or set to 0, the sound will play from any distance. This does not affect sound volume falloff.",,,,,,,,,,,,,,,,,,,,,,,,,,
,channel,"auto, menu, weapon, voice, item, body, local, music, announcer (default = auto)",,,,,,,,,,,,,,,,,,,,,,,,,,
,type,primed (a streamed sound which gets primed on some platforms) / streamed / loaded (default = loaded),,,,,,,,,,,,,,,,,,,,,,,,,,
,probability,weight to use for the weighted probability of playing this sound instead of another sound (default = 1),,,,,,,,,,,,,,,,,,,,,,,,,,
,loop,"whether this sound is ""looping"" or ""nonlooping"" (default = ""nonlooping""",,,,,,,,,,,,,,,,,,,,,,,,,,
,masterslave,"if ""master"", this is a master sound. If a number, then this sound's volume will be multiplied by that number (a percentage between 0 and 1) any master sound is playing. If blank, then neither master nor slave.",,,,,,,,,,,,,,,,,,,,,,,,,,
,loadspec,"space-separated list of which maps should use this alias
,compression,a string corresponding to an entry in """"XMAUpdate.tbl"""" which is used to determine compression by XMAUpdate.exe""",,,,,,,,,,,,,,,,,,,,,,,,,,
,secondaryaliasname,"defined the name of an additional sound alias to play in addition to the current alias being played. Note that it is an error for the secondaryalias to also define a secondaryaliasname (eg, if B is a secondaryalias of A, B is not allowed to have its own secondaryalias).",,,,,,,,,,,,,,,,,,,,,,,,,,
,volumefalloffcurve,if blank uses the linear curve which can not be changed. A string 'XXXX' corresponds to the curve defined by the file 'soundaliases/XXXX.vfcurve',,,,,,,,,,,,,,,,,,,,,,,,,,
,startdelay,defaults to no delay. The value is the number of milliseconds to delay starting the sound by,,,,,,,,,,,,,,,,,,,,,,,,,,
,speakermap,if blank uses the default speakermappings which cannot be changed. A string 'XXXX' corresponds to the speakermap defined by the file 'soundaliases/XXXX.spkrmap'.,,,,,,,,,,,,,,,,,,,,,,,,,,
,reverb,"blank means the alias is affected normally by wet and dry levels, ""fulldrylevel"" forces the alias to use a full drylevel (ignoring the global drylevel), ""nowetlevel"" forces the alias to use no wetlevel (ignoring the global wetlevel)",,,,,,,,,,,,,,,,,,,,,,,,,,
,lfe percentage,this determines what percentage of the highest calculated spatialized speaker volume should be passed to the LFE. blank means no LFE for the sound,,,,,,,,,,,,,,,,,,,,,,,,,,
,center percentage,this determines what percentage of the volume should be redirected to the center channel (equal percentage taken from all speakers).,,,,,,,,,,,,,,,,,,,,,,,,,,
,platform,"used by XMAUpdate to determine whether the alias should be processed for a particular platform. If blank, process for all platforms. Platforms are PC, XB, PS, WI. Multiple values should be separated by spaces. !PC will exclude alias from PC but include in all other platforms. PC will only include alias for PC. !PC XB is invalid.",,,,,,,,,,,,,,,,,,,,,,,,,,
,envelop_min,any sounds within this distance of the listener will use the full envelop percentage,,,,,,,,,,,,,,,,,,,,,,,,,,
,envelop_max,sounds between enevlop_min and envelop_max use a fraction of the envelop percentage,,,,,,,,,,,,,,,,,,,,,,,,,,
,envelop percentage,amount of omnidirectionality to apply,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,
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
,,,,,,,,,,,,,,,,,,,,,,,,,,,,

#ambient sound for mp_whatever,,,,,,,,,,,,,,,,,,,,,,,,,,,,
ambient_whatever,,misc/candy.mp3,0.1,,ambience,,,,,ambient,streamed,,looping,,mp_whatever,,,,,20,,0.2,,,,,1,
then go to your csv and enter this when you update your zonefile

rawfile,soundaliases/mp_whatever.csv
sound,mp_whatever,mp_whatever,!all_mp
rawfile,soundaliases/multiplayer.csv
sound,mp_whatever,,all_mp
sound,common,mp_whatever,!all_mp
sound,generic,mp_whatever,!all_mp
sound,voiceovers,mp_whatever,!all_mp
sound,multiplayer,mp_whatever,!all_mp

once this is done you then have to copy and paste

sound/candy/candy.mp3 and palce it in your iwd file with your images file not in it but with it.

good luck any help needed further contact me at my e-mail with a reminder of who you are so i can recognize the email cheers.

Pun1sheR
CJ Wannabe
CJ Wannabe
Posts: 39
Joined: August 27th, 2013, 7:29 pm

Re: How do i add a music menu to my map?

Post by Pun1sheR » July 15th, 2014, 11:06 pm

Problem solved, forgot to add rawfile,maps,mp,mp_dr_biohazard,musicmenu.gsc to zonefile

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests