Counter-Strike: Source

Counter-Strike: Source

62 ratings
Adding Custom Main Menu Music
By shu'ulathoi
In this guide I will show you what you need to know in order to add a main menu startup theme in Counter-Strike Source.
2
   
Award
Favorite
Favorited
Unfavorite
Audio file requirements
First of all, you have to make sure the audio file you want to use meets the following requirements:

- The audio file has to be .mp3 format.

- The audio file's sample rate has to be 44100 Hz (44.1 kHz): this is the sample rate that CSS supports. Otherwise you'll get an error in the console that looks like this:

Invalid sample rate ('xxxx') for sound 'xxxx'

- The audio file should NOT have any cover art.

- The audio file bitrate can be about 320kbps. Nonetheless, 128kbps is what has worked for me. If you will be using the converter provided select for a static bitrate, NOT a range.

If it's necessary to perform one (or more) of these changes in the audio file, this[www.online-convert.com] online converter does the job.


Deleteing sound.cache
Before adding the audio file into the game folder, you might need to delete the files named sound.cache from these two directories:

Counter-Strike: Source/cstrike/custom/my_mods/sound/
Counter-Strike: Source/cstrike/sound

Deleting these files will not affect the game at all, these are just temp files that the game generates. Once you launch CSS, these will be created automatically.
Adding the audio file in the game directory
In order to add the audio file in the game, you need to go to your CSS folder. In my case that directory would be:

C:/Program Files (x86)/Steam/steamapps/common/Counter-Strike: Source

When you get there, go to /cstrike and then to /custom.

Inside custom, you need to have a folder like /my_mods that has the following path inside: my_mods/sound/ui

If that path is not currently there, create it.

Once done that go to my_mods/sound/ui and put the audio file inside this folder. The audio file must be renamed to gamestartup1.

the result of the audio file path should look like this:

C:/.../Counter-Strike: Source/cstrike/custom/my_mods/sound/ui/gamestartup1.mp3

Bonus: you can add two more songs by naming them in the same way (gamstartup2, gamestartup3).
Questions? Suggestions?
If you have any questions or suggestions be sure to write them in the comments section.

Thank you!
24 Comments
d3adllyk1dd Sep 27, 2024 @ 6:25am 
bro, it's working, thanks man
joe cummings Aug 25, 2024 @ 7:58pm 
It worked! Thanks!
DarkSide360 Jun 16, 2024 @ 1:31pm 
This method also works for hl2 deathmatch :P
uVerin Jan 27, 2024 @ 8:11am 
You need music with 44100 hz, convert your music to this hz and this will work
Topchikuss Jul 2, 2023 @ 10:12am 
Thank!
SamXID Jan 10, 2023 @ 9:44pm 
I seem to have a problem. I have tried everything:
-changing the name to gamestartup01.mp3, then gamestartup1.mp3
-i changed the bitrate to 128k and got rid of all metadata tags
-i have tried all folders and none seems to work
-running it in the console just says: ] play ui/gamestartup01.mp3
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
*** Invalid sample rate (0) for sound 'ui\gamestartup01.mp3'.
Help?
Crazzy_ChickenZ Dec 31, 2022 @ 4:04pm 
Thanks, it works.. also Happy New Year <3
λmolinae Nov 27, 2021 @ 9:32am 
papi
shu'ulathoi  [author] Nov 12, 2021 @ 12:38pm 
En efecto mi rey
dumpst3rm4n Nov 11, 2021 @ 6:25pm 
So I COULD put a rick roll music..