Please or Register to create posts and topics.

Custom Sound Question

How do I add custom sounds to my map? There was probably already another topic similar to this but I can't find it. I can't find any browse button or an import sound button anywhere in Hammer.

Crazy is as crazy does.
My Work
[spoiler]Maps:
Revenge of the Angry Turrets
Capture the Cube [Co-op]
Capture the Cube 2 [Co-op]
TPWEGTH Sample Map
Aperture Aquatic Testing Center
Aperture Aquatic Testing Center 2
Aperture Time Testing Center
ML's Halloween Trick - 1000 downloads!
ML's Halloween Treat
ML's Combination - 1000 downloads!
ML's Jailbreak Labyrinth
ML's Tricky Teamwork [Co-op]
WIP:
"Capture the Cube 3"
Workshop Maps Link: http://steamcommunity.com/profiles/76561198008890579/myworkshopfiles/[/spoiler]

Well first you need to put your sound file to portal 2/portal2/sound folder. Then the entity you want to use is probably ambient_generic.

It is problematic using .mp3s because they just give error message to console. Even .wavs gave me problems because I had to pack them into the .bsp just to get them working.

You need to pack custom sounds into a VPK file and put them into the portal 2portal2addons folder.

Couldn't I just put the custom sounds and material in a folder and stick it in the portal 2/portal2 folder? I tested a WAV from there inside Hammer and it works.

Crazy is as crazy does.
My Work
[spoiler]Maps:
Revenge of the Angry Turrets
Capture the Cube [Co-op]
Capture the Cube 2 [Co-op]
TPWEGTH Sample Map
Aperture Aquatic Testing Center
Aperture Aquatic Testing Center 2
Aperture Time Testing Center
ML's Halloween Trick - 1000 downloads!
ML's Halloween Treat
ML's Combination - 1000 downloads!
ML's Jailbreak Labyrinth
ML's Tricky Teamwork [Co-op]
WIP:
"Capture the Cube 3"
Workshop Maps Link: http://steamcommunity.com/profiles/76561198008890579/myworkshopfiles/[/spoiler]
MasterLagger wrote:
Couldn't I just put the custom sounds and material in a folder and stick it in the portal 2/portal2 folder? I tested a WAV from there inside Hammer and it works.

I was experimenting with this earlier today. While the file works fine in Hammer, Portal 2 will refuse to find it - it just places an error in the console. Packing the sound into the BSP fixes it.

There is no "N" in "Turret."

Exactly. Packing them in the BSP or for testing you can pack them in a VPK file. The other solution (I don't recommend this one!) is to rebuild the whole soundcache.

Since I can't use PakRat, I'll use the VPK method. Maybe I'll stick a WIP map so people can test this to see if it will work.

Crazy is as crazy does.
My Work
[spoiler]Maps:
Revenge of the Angry Turrets
Capture the Cube [Co-op]
Capture the Cube 2 [Co-op]
TPWEGTH Sample Map
Aperture Aquatic Testing Center
Aperture Aquatic Testing Center 2
Aperture Time Testing Center
ML's Halloween Trick - 1000 downloads!
ML's Halloween Treat
ML's Combination - 1000 downloads!
ML's Jailbreak Labyrinth
ML's Tricky Teamwork [Co-op]
WIP:
"Capture the Cube 3"
Workshop Maps Link: http://steamcommunity.com/profiles/76561198008890579/myworkshopfiles/[/spoiler]

I have successfully added wav files to a bsp, and they are functional in testing (thank you to MrJohnLanz on youtube for his tutorial).

However, wav files can be huge, and adding 2 wavs to a small map has increased its size to 8 megs, and at this rate, the bsp file will be well over 100 megs by the time i'm done adding all i want to.

can anyone explain how to add mp3s (i tried 128 bit mp3s, didnt play in hammer, doesnt play in testing) to a map? much less how to get an mp3 file to play in hammer?

are there other compressed audio formats that will work? does the file have to be mono? thank you for any help on this. when i'm done with my map, hopefully it will be a reward to those who have helped! Eric

erictfitzgerald wrote:
can anyone explain how to add mp3s (i tried 128 bit mp3s, didnt play in hammer, doesnt play in testing) to a map? much less how to get an mp3 file to play in hammer?

Mp3's should be the main way to post large sounds into your map as they are more compressed. I found a good tutorial here: http://www.youtube.com/watch?v=c6akpZrqxqk Please note you have to convert to the right bit rate in order for it to play in game.

Mp3's usually cannot be previewed in the hammer editor.

?????????????????????????????TWP Releases | My Workshop