Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design

Reply
 
Thread Tools Display Modes
Old 08-13-2012, 05:43 PM   #1
whitigofreerun
 
 
 
Join Date: Aug 2012
Reputation: 0
Posts: 5
Music

Hello
How do i add music tracks to a map i made in Hammer??
whitigofreerun is offline  
Reply With Quote
Old 08-13-2012, 10:20 PM   #2
Punishment
 
Join Date: Feb 2008
Reputation: 355
Posts: 4,551
ambient_generic?
Punishment is offline   Reply With Quote
Old 08-14-2012, 06:57 AM   #3
shadowmancer471
 
Join Date: Aug 2009
Reputation: 75
Posts: 1,263
If it is a preset music, use (as punishment said) an ambient_generic
To clarify, ambient_generic is a point entity you can place anywhere in the map.

Then in the options name the ambient generic (to something like "music1"), search for "music" in the sound browser and pick the track you want and then set the flags to 'play everywhere'
Then trigger the ambient_generic with a logic entity or a trigger_once to 'OnTrigger/music1/Playsound' (or 'OnStartTouch if using triggers)

It can be difficult to locate an exact song, as they are simply named "track15", "track16" etc, so you may want to make a test map with multiple ambient_generic's in so you can test which track is which and pick out from the list
shadowmancer471 is offline   Reply With Quote
Old 08-14-2012, 07:47 PM   #4
whitigofreerun
 
 
 
Join Date: Aug 2012
Reputation: 0
Posts: 5
Thanks

Awesome thanks heaps!!! but i want to put like MY music in... like some cool pendulum songs or... you know... how would i do that
whitigofreerun is offline   Reply With Quote
Old 08-15-2012, 05:08 AM   #5
shadowmancer471
 
Join Date: Aug 2009
Reputation: 75
Posts: 1,263
Right, it just requires a few more steps
Firstly you need to grab the mp3 and put it in
Steam/steamapps/username/'game'/sounds/music
(So for instance "C:\Program Files (x86)\Steam\steamapps\shadowmancer471\half-life 2 episode two\ep2\sound")
Then it should show up in the sound list.

You can also use .wav files (which I personally prefer using)


In order to ship the map with the music, the best way is to learn and use PackBSP, a third party program which can embed custom content like your music straight into the map file
shadowmancer471 is offline   Reply With Quote
Old 08-15-2012, 05:50 PM   #6
whitigofreerun
 
 
 
Join Date: Aug 2012
Reputation: 0
Posts: 5
ok

Thanks... but there is no music folder under sounds.... do i just create one?
whitigofreerun is offline   Reply With Quote
Old 08-15-2012, 06:02 PM   #7
P-GLaDDy
 
 
 
Join Date: Oct 2011
Reputation: 0
Posts: 103
I don't know if Source will still read those sounds if they're in a directory below 'sounds', I've just been keeping them in 'sounds'
P-GLaDDy is offline   Reply With Quote
Old 08-15-2012, 08:45 PM   #8
whitigofreerun
 
 
 
Join Date: Aug 2012
Reputation: 0
Posts: 5
Thanks... but it still dosnt work... i moved a song into my cstrike/sounds folder and it still dosnt work....
whitigofreerun is offline   Reply With Quote
Old 08-16-2012, 03:35 AM   #9
shadowmancer471
 
Join Date: Aug 2009
Reputation: 75
Posts: 1,263
What's wrong with it?
Does it not show up or not play or what?

I've had random issues where I've had to first convert the mp3 to .wav with audacity to get it to play ingame for instance
shadowmancer471 is offline   Reply With Quote
Old 08-16-2012, 09:17 AM   #10
P-GLaDDy
 
 
 
Join Date: Oct 2011
Reputation: 0
Posts: 103
If MP3, 128kpbs constant bit rate. If .WAV, 44100 hz ADPCM.
P-GLaDDy is offline   Reply With Quote
Old 08-18-2012, 04:30 PM   #11
whitigofreerun
 
 
 
Join Date: Aug 2012
Reputation: 0
Posts: 5
It just dosnt show up..... Oh well... Ill manage without it...
whitigofreerun is offline   Reply With Quote
Old 08-19-2012, 02:39 AM   #12
lncr-x
 
Join Date: Jun 2011
Reputation: 0
Posts: 15
Quote:
Originally Posted by whitigofreerun View Post
It just dosnt show up..... Oh well... Ill manage without it...
For your information: The folder you have to put the music file in is not called 'sounds' (like some people said), but it's called 'sound'.

Save your song in: cstrike/sound

MP3 and WAV will both work, although you should stick to WAV. One disadvantage of MP3 is that the preview in the Hammer editor doesn't work. WAV tends to have a better quality sound, too.
lncr-x is offline   Reply With Quote
Old 08-19-2012, 05:40 AM   #13
P-GLaDDy
 
 
 
Join Date: Oct 2011
Reputation: 0
Posts: 103
But if you plan on releasing the map, use MP3 as WAV has a massive filesize.
P-GLaDDy is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.