Main Menu Music

Tutorial collection, comprehensive listings on main site.

Re: Main Menu Music

Postby Chrustec on Thu Oct 29, 2009 1:34 am

Thanks guys, Actually for it to work using the gamestartup1.mp3 method it needs to go into the ../sounds/ui/ folder. I found the problem though. I had done it all correctly. This way of playing music in the menu will NOT work if you have a background map running. That seems to override the music mp3 player for the menu. If you just use background images and NOT maps it seems to work fine. I guess that is because the map file can play its own music which over rides it. Odd thing is I have not seen anywhere on any tutorials on this topic that if you use a background map then do not use this method. Place an AmbientGeneric in your background map and tell it to use the mp3 there. Perhaps this tutorial should be updated to state that this method only works if you do NOT use a background map.


As for this method "play music/intro2.mp3" in the valve.rc file it works... You do not need to specify the sounds directory here as the play command only looks in your mod folders sound folder so saying;

play music/intro2.mp3

this will attempt to play the file located here

\SourceMods\YOURMOD\sound\music\intro2.mp3

Thanks again Guys,
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
Previous

Return to Tutorials

Who is online

Users browsing this forum: No registered users