Main Menu Music

Tutorial collection, comprehensive listings on main site.

Main Menu Music

Postby Tutorial on Sun Jun 11, 2006 3:30 pm

category
General Half-Life 2/Other

description
Many Source mods use music on their menu screen and thankfully so can you.

keywords
main, menu, music, mod.

Want to put music in your main menu?

Go to your valve.rc file in your cfg folder.
for mine it is:

F:\Program Files\Steam\SteamApps\SourceMods\BehindEnemyLines\cfg

You will see this

Code: Select all
// load the base configuration
//exec default.cfg

// Setup custom controller
exec joystick.cfg

// run a user script file if present
exec autoexec.cfg

//
// stuff command line statements
//
stuffcmds

// display the startup level
//startupmenu



Just add this line:

Code: Select all
// Game Menu Music Theme
play ../sounds/MUSICFILE.mp3 or .wav


- Sint Lucifer
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby TheMiede on Thu Jun 15, 2006 4:38 am

What exactly is this for? Im confused.
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Postby marnamai on Thu Jun 15, 2006 4:49 am

if you want music in tha main menu for a source game/mod.
User avatar
marnamai
Veteran
Veteran
 
Joined: Thu Nov 10, 2005 12:17 pm
Location: Belgium

Postby TorQueMoD on Sat Jun 17, 2006 11:17 pm

There's actually an easier way to do this since Valve released Day of Defeat Source (it works for all mods)

Just place an MP3 file named gamestartup1.mp3 in the sound/ui folder for your mod.

If you want more than one startup MP3, use the name gamestartup2.mp3 and so on.

If you have more than one Mp3 in the startup folder, it will pick one at random every time you load the game.

The Mp3 has to be 44100hz to work.
-TorQue[MoD]
Environment and Game designer
http://www.torquemod.com
User avatar
TorQueMoD
Been Here A While
Been Here A While
 
Joined: Wed Oct 19, 2005 7:15 am
Location: Vancouver, Canada

Postby Kodox on Tue Jul 25, 2006 6:53 pm

Ok BUT how do you add music to certain parts of your map. DO you use a trigger? Also how do you just listen to the whole HL 2 soundtrack without being in the game? I have wanted to hear the music in HL 2 for a LONG time.
User avatar
Kodox
May Contain Skills
May Contain Skills
 
Joined: Fri Jul 21, 2006 7:54 pm
Location: Ohio

Postby Mark Richard on Tue Apr 17, 2007 6:33 pm

I tried that thing with the valve.rc file... but it didn't work. I didn't hear any music play at the main menu. :(

This is what I wrote in the valve.rc file:


// Game Menu Music Theme
play ../sound/music/HL1_song17.mp3


Since I want a HL2 song to play, I guess it's better to it this way, instead of extracting the mp3 and name it gamestartup1.mp3 and place it in the sound/ui folder.
User avatar
Mark Richard
Pheropod
Pheropod
 
Joined: Sat Apr 29, 2006 8:46 pm
Location: The Kingdom of Sweden

Postby Fiddler1972 on Thu Jul 12, 2007 8:06 am

Kodox wrote:Ok BUT how do you add music to certain parts of your map. DO you use a trigger? Also how do you just listen to the whole HL 2 soundtrack without being in the game? I have wanted to hear the music in HL 2 for a LONG time.


Download and install GCFScape...
Turn off Steam...
Open up GCFScape...
Open up your HL2 GCF...
Extract all the HL2 Music files to your hard drive somewhere...

Open them with your favorite media player.
Fiddler1972
Dumpling
Dumpling
 
Joined: Sun Jun 17, 2007 10:07 am

Postby Shr3d on Thu Jul 12, 2007 8:34 am

Fiddler1972 wrote:
Kodox wrote:Ok BUT how do you add music to certain parts of your map. DO you use a trigger? Also how do you just listen to the whole HL 2 soundtrack without being in the game? I have wanted to hear the music in HL 2 for a LONG time.


Download and install GCFScape...
Turn off Steam...
Open up GCFScape...
Open up your HL2 GCF...
Extract all the HL2 Music files to your hard drive somewhere...

Open them with your favorite media player.


lol he posted that question last year... Check dates.
Shr3d
 

Postby Bema on Thu Jul 12, 2007 11:39 am

Shr3d wrote:
Fiddler1972 wrote:
Kodox wrote:Ok BUT how do you add music to certain parts of your map. DO you use a trigger? Also how do you just listen to the whole HL 2 soundtrack without being in the game? I have wanted to hear the music in HL 2 for a LONG time.


Download and install GCFScape...
Turn off Steam...
Open up GCFScape...
Open up your HL2 GCF...
Extract all the HL2 Music files to your hard drive somewhere...

Open them with your favorite media player.


lol he posted that question last year... Check dates.


Question never got answered though...!
Bema
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Sun Feb 04, 2007 11:50 pm
Location: London

Postby Shr3d on Thu Jul 12, 2007 12:04 pm

Bema wrote:
Shr3d wrote:
Fiddler1972 wrote:
Kodox wrote:Ok BUT how do you add music to certain parts of your map. DO you use a trigger? Also how do you just listen to the whole HL 2 soundtrack without being in the game? I have wanted to hear the music in HL 2 for a LONG time.


Download and install GCFScape...
Turn off Steam...
Open up GCFScape...
Open up your HL2 GCF...
Extract all the HL2 Music files to your hard drive somewhere...

Open them with your favorite media player.


lol he posted that question last year... Check dates.


Question never got answered though...!


I'm pretty sure he would have found the solution by himself after that long.
Shr3d
 

Postby Mango on Thu Jul 12, 2007 12:18 pm

I think he's been anxiously refreshing this thread for the past twelve months.
Mango
 

Postby Dead-Inside on Thu Jul 12, 2007 8:00 pm

I do too.

And anyone else looking at the post and wanting to know the answer won't have to search or post about it.
Image
User avatar
Dead-Inside
Veteran
Veteran
 
Joined: Wed Jan 05, 2005 4:15 pm
Location: Sweden (It's just as cold as you think it is)

Re: Menu Background Music

Postby Chrustec on Fri Oct 23, 2009 2:52 pm

TorQueMoD wrote:There's actually an easier way to do this since Valve released Day of Defeat Source (it works for all mods)

Just place an MP3 file named gamestartup1.mp3 in the sound/ui folder for your mod.

If you want more than one startup MP3, use the name gamestartup2.mp3 and so on.

If you have more than one Mp3 in the startup folder, it will pick one at random every time you load the game.

The Mp3 has to be 44100hz to work.



Hey guys I tried this method and it didn't work - I tried using a 44100Hz mp3 and wav file named 'gamestartup1.mp3/gamestartup1.wav' I also tried the method using the valve.rc file

play music/intro.mp3

This did not work either. However, if once my mod starts up I open the console up and type this command into the console the music will start playing. Here is my valve.rc file for review if anyone spots anything that might be the cause please let me know - its kicking my ass atm and its 2am so I'm gonna take a break for the night and start fresh tomorrow. Any help would be greatly appreciated thanks guys.

Code: Select all
// load the base configuration
//exec default.cfg
// Setup custom controller
exec joystick.cfg

// run a user script file if present
exec autoexec.cfg

//
// stuff command line statements
//
stuffcmds

hostname "My Mod"

mp_forcerespawn 0

// Display the startup level
startupmenu
// Play some music for the menu
// play music/intro.mp3
play music/intro2.mp3
Kind Regards,

Christopher [Chrustec] Glerum
http://www.chrustec.net
Past Project - viewtopic.php?f=3&t=30060
viewtopic.php?p=296414#296414
User avatar
Chrustec
Regular
Regular
 
Joined: Fri Jun 15, 2007 5:51 am
Location: Melbourne, Australia

Re: Menu Background Music

Postby Chrustec on Sat Oct 24, 2009 12:25 pm

Chrustec wrote:
TorQueMoD wrote:There's actually an easier way to do this since Valve released Day of Defeat Source (it works for all mods)

Just place an MP3 file named gamestartup1.mp3 in the sound/ui folder for your mod.

If you want more than one startup MP3, use the name gamestartup2.mp3 and so on.

If you have more than one Mp3 in the startup folder, it will pick one at random every time you load the game.

The Mp3 has to be 44100hz to work.



Hey guys I tried this method and it didn't work - I tried using a 44100Hz mp3 and wav file named 'gamestartup1.mp3/gamestartup1.wav' I also tried the method using the valve.rc file

play music/intro.mp3

This did not work either. However, if once my mod starts up I open the console up and type this command into the console the music will start playing. Here is my valve.rc file for review if anyone spots anything that might be the cause please let me know - its kicking my ass atm and its 2am so I'm gonna take a break for the night and start fresh tomorrow. Any help would be greatly appreciated thanks guys.

Code: Select all
// load the base configuration
//exec default.cfg
// Setup custom controller
exec joystick.cfg

// run a user script file if present
exec autoexec.cfg

//
// stuff command line statements
//
stuffcmds

hostname "My Mod"

mp_forcerespawn 0

// Display the startup level
startupmenu
// Play some music for the menu
// play music/intro.mp3
play music/intro2.mp3



Just bumping this question as its still plaguing me :)
Kind Regards,

Christopher [Chrustec] Glerum
http://www.chrustec.net
Past Project - viewtopic.php?f=3&t=30060
viewtopic.php?p=296414#296414
User avatar
Chrustec
Regular
Regular
 
Joined: Fri Jun 15, 2007 5:51 am
Location: Melbourne, Australia

Re: Main Menu Music

Postby Saiyajin on Wed Oct 28, 2009 4:25 pm

Make sure you actually put the .mp3 file in the 'sounds' folder else it wont work, like this:

\steamapps\SourceMods\MyMod\sounds\file.mp3

;)
Saiyajin
Dumpling
Dumpling
 
Joined: Wed Oct 28, 2009 2:38 pm
Next

Return to Tutorials

Who is online

Users browsing this forum: No registered users

cron