Can't get Radio to play Music
Quote from Shane on August 9, 2012, 8:42 pmMap was exported from the PETI editor. Tried setting disable_pti_audio to 1 and made no difference. Settings for the radio and ambient_generic are as follows:
Map was exported from the PETI editor. Tried setting disable_pti_audio to 1 and made no difference. Settings for the radio and ambient_generic are as follows:

Quote from RectorRocks on August 10, 2012, 12:55 amDid you trigger the ambient_generic to PlaySound? (It seems that you're trying to get the radio to play Exile Vilify, lol okay.)
Steps:
-Give your ambient_generic a name (eg: "rad1_sound")
-In your logic_auto or trigger, go to the Outputs tab
-Add a new output and fill in the following:
OnMapSpawn -> rad1_sound -> PlaySound
OR if its a trigger:
OnTrigger - > rad1_sound -> PlaySound
Replace "rad1_sound" with your ambient_generic name. ^^v
I don't know if you need to check the "Play everywhere", "Start Silent", and "IS not looped" box in the ambient_generic, it depends on you.
Did you trigger the ambient_generic to PlaySound? (It seems that you're trying to get the radio to play Exile Vilify, lol okay.)
Steps:
-Give your ambient_generic a name (eg: "rad1_sound")
-In your logic_auto or trigger, go to the Outputs tab
-Add a new output and fill in the following:
OnMapSpawn -> rad1_sound -> PlaySound
OR if its a trigger:
OnTrigger - > rad1_sound -> PlaySound
Replace "rad1_sound" with your ambient_generic name. ^^v
I don't know if you need to check the "Play everywhere", "Start Silent", and "IS not looped" box in the ambient_generic, it depends on you.
Quote from Habzs on August 11, 2012, 4:26 amShane wrote:Set the Sound Name to "music/sp_a2_dual_lasers_r1.wav". Not "music.sp_a2_dual_lasers_r1".
Set the Sound Name to "music/sp_a2_dual_lasers_r1.wav". Not "music.sp_a2_dual_lasers_r1".

Quote from RectorRocks on August 11, 2012, 9:51 amOkay, I created a radio and put in my map. It plays the tune I want. I'll tell you step-by-step how I did.
-Create a prop_physics_override
-Give it a name: (eg. "radio")
(In the Flags tab, all should be unchecked except for Generate output on +USE, it looks like yours in unchecked, go check it.)
-Create a ambient_generic
-Give it a name: (eg. "radio_sound")
-Changed the "Start Volume" field to 10.
-Changed the "Source Entity Name" to radio
-Changed the "Sound Name" to music.sp_a2_dual_lasers_r1
-Go to the Flags tab and unchecked everything except "Start Silent"
-Triggered it.Tell me if this helped.
Okay, I created a radio and put in my map. It plays the tune I want. I'll tell you step-by-step how I did.
-Create a prop_physics_override
-Give it a name: (eg. "radio")
(In the Flags tab, all should be unchecked except for Generate output on +USE, it looks like yours in unchecked, go check it.)
-Create a ambient_generic
-Give it a name: (eg. "radio_sound")
-Changed the "Start Volume" field to 10.
-Changed the "Source Entity Name" to radio
-Changed the "Sound Name" to music.sp_a2_dual_lasers_r1
-Go to the Flags tab and unchecked everything except "Start Silent"
-Triggered it.
Tell me if this helped.
Quote from Habzs on August 11, 2012, 10:15 amRectorRocks wrote:-Changed the "Sound Name" to music.sp_a2_dual_lasers_r1I'm sure that it isn't music.sp_a2_dual_lasers_r1.
Shane wrote:Tried both those suggestions, still seemed to refuse to playDoes the music play when you play it in Hammer?
I'm sure that it isn't music.sp_a2_dual_lasers_r1.
Does the music play when you play it in Hammer?

Quote from RectorRocks on August 11, 2012, 10:24 amHabzs wrote:RectorRocks wrote:-Changed the "Sound Name" to music.sp_a2_dual_lasers_r1I'm sure that it isn't music.sp_a2_dual_lasers_r1.
It is. I tried it and it worked. I selected and previewed the file name in the sound library and it gives me Exile Vilify. I didn't even modify the field, I selected it off the sound library.
I'm sure that it isn't music.sp_a2_dual_lasers_r1.
It is. I tried it and it worked. I selected and previewed the file name in the sound library and it gives me Exile Vilify. I didn't even modify the field, I selected it off the sound library.
Quote from Shane on August 11, 2012, 10:44 amYeah, Hammer played the sound file when I made that input as well. I've tried making a completely blank map from scrath, just 4 walls the player and the radio, even then it still refused to play. Although the tutorial I used was from Portal 1 it doesn't seem as if the procedure has changed too much, yet I simply can't wrap my head around this one :/
Habzs wrote:RectorRocks wrote:-Changed the "Sound Name" to music.sp_a2_dual_lasers_r1I'm sure that it isn't music.sp_a2_dual_lasers_r1.
Shane wrote:Tried both those suggestions, still seemed to refuse to playDoes the music play when you play it in Hammer?
Yeah, it plays both the original way I did it and in the way you suggested.
Yeah, Hammer played the sound file when I made that input as well. I've tried making a completely blank map from scrath, just 4 walls the player and the radio, even then it still refused to play. Although the tutorial I used was from Portal 1 it doesn't seem as if the procedure has changed too much, yet I simply can't wrap my head around this one :/
I'm sure that it isn't music.sp_a2_dual_lasers_r1.
Does the music play when you play it in Hammer?
Yeah, it plays both the original way I did it and in the way you suggested.