How to get Portal 2 music in your map
Posted Jun 24, 2011
How do you get the Portal 2 music in your map. I have tried an ambient_generic, but the music will not work in game. I can hear it when i browse to find the piece of music i want, but as i said i cannot hear it in game. I know it is not my trigger, as when i use another sound, such as ambient sound or a sound like an alarm it works, please help.
Registered users don’t see ads!
Register now!
Posted Jun 24, 2011
Replied
4 hours
later
Make a ambient_generic and search the music that you want to play. Go to flags and uncheck not loop and check plays everywhere.
Now make a logic_auto (for start music at mapspawn) and trigger it, also you can trigger it with other triggers.
Sometimes music at hammer dont work but at ingame yep.
Posted Jun 24, 2011
Replied
18 minutes
later
Also, when browsing for music, make sure to use the music in the RAW folder of the sound browser.
Posted Jun 25, 2011
Replied
5 hours
later
This is my .vmf, it is just a box room with the trigger in it to make the sound play, could someone have a look to see where i have gone wrong, as i have followed the steps above but it still does not work, cheers.
Posted Jun 25, 2011
Replied
2 hours
later
Vordwann wrote:
Also, when browsing for music, make sure to use the music in the RAW folder of the sound browser.
Its not necessary to use raw O.o, but for listen inedit you can use raw.
Posted Jun 25, 2011
Replied
14 hours
later
I think the problem was the "@" symbol in front of the ambient_generic's name. I have fixed it in the attachment.
Posted Jun 26, 2011
Replied
7 hours
later
Thanks for having a look at my .vmf dhavalmistry, but i ran your modified .vmf and it still did not work.
Posted Jun 26, 2011
Replied
1 hour
later
Reinstall the game and the authoring tools?
Posted Jun 28, 2011
Replied
1 day
later
I have reinstalled both the game and authoring tools, but i still do not hear the music, but once again if i just change the music to a sound it works, any other thoughts.
Posted Jun 28, 2011
Replied
11 hours
later
If it is .wav: You need to pack the sound file to your .bsp with Packrat for example. It should work after it, I don't know why.
If it is .mp3: Right now I don't know a way how you could get it working. You get "Can't create mixer." error to console and AFAIK there is no way to fix it.
Posted Jun 28, 2011
Replied
1 hour
later
But its not a custom piece of music, it is the music shipped with the game.
Posted Jun 28, 2011
Replied
6 minutes
later
Now I have the same problem, but, I can compile your map and I can hear, but in my own map i cant, and I copy it... the logic auto and the ambient generic... its extrange.
Edit: Sounds dont work too ._.
Posted Jun 28, 2011
Replied
19 minutes
later
Try add slight delay to output.
Registered users don’t see ads!
Register now!
Posted Jun 28, 2011
Replied
2 hours
later
? added a 1 second delay but still no music plays. There has got to be a way to get this to work.