import music

import music

Re: import music Posted by v1be on Fri Jun 22nd 2007 at 9:37pm
v1be
9 posts
Posted 2007-06-22 9:37pm
v1be
member
9 posts 11 snarkmarks Registered: Mar 15th 2007 Occupation: pro gamer =) Location: Canada
Hello all,<br style="color: white;"><br style="color: white;">I was just wondering on how to import my own music into my map.
The music of which I am trying to upload is in .MP3 format and i want to import it into "ambient_generic"

Thanks.
Re: import music Posted by Riven on Sat Jun 23rd 2007 at 3:09am
Riven
1640 posts
Posted 2007-06-23 3:09am
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
This is actually pretty easy to do.

There are just a few things you need to remember:
  • It must be placed within the C:\Program Files\Steam\steamapps\<your username>\half-life 2\hl2\sound folder or within a sub-folder of that folder.
    (NOTE: it can be in any Source game sound folder; that's just Half-Life 2's directory)
  • When browsing for it under the "Sound Name" keyvalue under an ambient_generic, you must type out the file path leading to the file starting from the sound folder within the sound name text box under the sound resource browser. For example: If I have a sound named thunder_loop.wav and it is directly under the sound folder under the hl2 folder, I would have to type in the sound name text box: "thunder_loop.wav" without the quotes of course. Hammer already knows that it should be in the sound folder, but you just tell it what sound to look for. You must add the tag at the end; otherwise it will refuse to play, so if it's an .mp3 you should type: music.mp3 as part of the sound name.
    (NOTE: If you try to search for it through the sound resource browser's filter, it normally will not show up unless you have restarted Steam, Hammer, or the SDK after placing the sound file within the sound folder. Even then, the sound may not show up or even play when you click on it, but it should play however when tested in-game.)
  • Check out Orpheus's tutorial which basically says that you can have: MP3 @22050 and mono. Wave @11025 and 8 bits. Wave @22050 and 8 bits. Wave @44100 and 16 bit. as well as .mp3's. But be aware, that .mp3's will NOT loop automatically, you would have to manually make a [color=limegreen]logic_timer set to tell the sound to play (again) after the allotted time of seconds the sound actually lasts, once the sound is finished, the logic_timer will fire its output and the sound should play again as if it were looped. [/color]




-And that's all you really need to keep track of! Also, you can use these sounds with any entity that has a "sound name" keyvalue or a "start sound" keyvalue or anything with the word "sound" in it!
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202
Re: import music Posted by v1be on Sat Jun 23rd 2007 at 5:51am
v1be
9 posts
Posted 2007-06-23 5:51am
v1be
member
9 posts 11 snarkmarks Registered: Mar 15th 2007 Occupation: pro gamer =) Location: Canada
<span style="color: white;">Thanks, also how do I make teleports work properly?

because so far i have done this:

Made my "trigger_teleport" and named it "Portal1", then I made my "info_target" and named it as "portal1dest". I then went back to my "trigger_teleport" and went to "Remote Destination: portal1dest"

Is this correct?

or instead of using "Remote Destination" should i use "Local Destination Landmark" instead?

Thanks.
</span>
Re: import music Posted by Riven on Sat Jun 23rd 2007 at 6:58am
Riven
1640 posts
Posted 2007-06-23 6:58am
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
You should probably ask that in a separate thread so that people searching for a similar problem may find it through their search keywords. And also, mark this thread as correct, if that's the info you needed; besides I'm always hungry for me lucky snarkmarks!
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202