WHAT am I doing wrong re: triggering music?
Quote from Lunch on September 15, 2014, 10:24 amI'm stumped. Does anyone see something mislabeled or flagged?
The situation is so basic. You walk through a door into a trigger, and it should make an ambient_generic play. It doesn't.
This is the class info for the trigger_once:
And its output:
The info for the ambient_generic:
And its flags:
I'm stumped. Does anyone see something mislabeled or flagged?
The situation is so basic. You walk through a door into a trigger, and it should make an ambient_generic play. It doesn't.
This is the class info for the trigger_once:
And its output:
The info for the ambient_generic:
And its flags:
Quote from Lunch on September 15, 2014, 10:29 amThe .WAV is from RAW and not gamesounds, btw. I keep reading that that matters.
There's already an env_soundscape playing when this gets triggered, in case that's a factor.
The .WAV is from RAW and not gamesounds, btw. I keep reading that that matters.
There's already an env_soundscape playing when this gets triggered, in case that's a factor.
Quote from Arachnaphob on September 15, 2014, 10:35 amThe trigger starts disabled. Set 'starts disabled' to no and it should work.
The trigger starts disabled. Set 'starts disabled' to no and it should work.
Musical website Moddb
Quote from Lunch on September 15, 2014, 11:29 amArachnaphob wrote:The trigger starts disabled. Set 'starts disabled' to no and it should work.I was super excited that you'd solved the problem. Sadly, making that change didn't have any effect. The damned music still won't play.
I was super excited that you'd solved the problem. Sadly, making that change didn't have any effect. The damned music still won't play.
Quote from Lunch on September 15, 2014, 2:38 pmI got rid of the trigger and set the sound to play as an OnPressed output of a button.
Still no luck. I could basically publish this map if I could just sort out this music problem.
I got rid of the trigger and set the sound to play as an OnPressed output of a button.
Still no luck. I could basically publish this map if I could just sort out this music problem.
Quote from FelixGriffin on September 15, 2014, 4:04 pmUse developer 2 to see if the input is being triggered.
Use developer 2 to see if the input is being triggered.
Quote from Lunch on September 15, 2014, 4:27 pmFelixGriffin wrote:Use developer 2 to see if the input is being triggered.What command in the console should I use to check? Nothing comes up automatically when the button's pressed and I go to the console.
What command in the console should I use to check? Nothing comes up automatically when the button's pressed and I go to the console.
Quote from Netherskate on September 15, 2014, 4:33 pmNot sure if it helps at all, but did you type in the .wav file into the sound name manually? I tried to do so, and then tried to preview it straight from there (using the play button), but the music did not play. I typed it into the filter, and previewed it there, where it did play, and I selected it without copying the name with copy and paste... if that makes sense.
Though there is a chance I could have typed it incorrectly?
I had set up a horribly basic map to try it out. It is literally just a simple box with trigger, spawn, and the music thing.
Here are a few screenshots, that I took even if you do not need them.
Links as my screenshots are super big.http://i.imgur.com/Nux1KRw.png - Music Trigger.
http://i.imgur.com/fZxUmNF.png - Music Trigger outputs
http://i.imgur.com/hGCR6Q2.png - Not sure if this is useful, but here are the Music Trigger flags.http://i.imgur.com/rIeKVrP.png - Ambient Generic, named Music.
http://i.imgur.com/ivKuroi.png - Ambient Generic Input coming from the Trigger. There are no outputs, obviously.
http://i.imgur.com/zZGzVl4.png - Ambient Generic Flags.I did take notice that you used OnStartTouch instead of OnTrigger. In my experience, both do work, though I suggest trying the OnTrigger just in case?
As a note, I also tried replacing the trigger with a button, and it worked fine.
Edit: Added an Env_Soundscape attached to the button, left everything else above alone. They both seemed to work together for me.
Not sure if it helps at all, but did you type in the .wav file into the sound name manually? I tried to do so, and then tried to preview it straight from there (using the play button), but the music did not play. I typed it into the filter, and previewed it there, where it did play, and I selected it without copying the name with copy and paste... if that makes sense.
Though there is a chance I could have typed it incorrectly?
I had set up a horribly basic map to try it out. It is literally just a simple box with trigger, spawn, and the music thing.
Here are a few screenshots, that I took even if you do not need them.
Links as my screenshots are super big.
http://i.imgur.com/Nux1KRw.png - Music Trigger.
http://i.imgur.com/fZxUmNF.png - Music Trigger outputs
http://i.imgur.com/hGCR6Q2.png - Not sure if this is useful, but here are the Music Trigger flags.
http://i.imgur.com/rIeKVrP.png - Ambient Generic, named Music.
http://i.imgur.com/ivKuroi.png - Ambient Generic Input coming from the Trigger. There are no outputs, obviously.
http://i.imgur.com/zZGzVl4.png - Ambient Generic Flags.
I did take notice that you used OnStartTouch instead of OnTrigger. In my experience, both do work, though I suggest trying the OnTrigger just in case?
As a note, I also tried replacing the trigger with a button, and it worked fine.
Edit: Added an Env_Soundscape attached to the button, left everything else above alone. They both seemed to work together for me.
Quote from Lunch on September 15, 2014, 4:48 pmNetherskate wrote:This post is probably useless, but I tried to help anyway?And I definitely appreciate it.
The only reason I'm using OnStartTouch is because people have told me that I need to use that instead of OnTrigger. Does anyone else here believe otherwise?
I didn't type the WAV name in. I browsed the gamesounds folder and chose it from there. Again, thanks for the suggestion.
And I definitely appreciate it.
The only reason I'm using OnStartTouch is because people have told me that I need to use that instead of OnTrigger. Does anyone else here believe otherwise?
I didn't type the WAV name in. I browsed the gamesounds folder and chose it from there. Again, thanks for the suggestion.
Quote from Lunch on September 15, 2014, 5:43 pmI just did an experiment sort of like Netherskate, where I started a new map, built a small room and put a button and an ambient_generic in it. Interesting result: When the amb_gen was set to a sound effect, it would work. When I'd set it to music, it wouldn't.
I just did an experiment sort of like Netherskate, where I started a new map, built a small room and put a button and an ambient_generic in it. Interesting result: When the amb_gen was set to a sound effect, it would work. When I'd set it to music, it wouldn't.