Please or Register to create posts and topics.

WHAT am I doing wrong re: triggering music?

Page 1 of 3Next

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.

Image

This is the class info for the trigger_once:

Image

And its output:

Image

The info for the ambient_generic:

Image

And its flags:

Image

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.

The trigger starts disabled. Set 'starts disabled' to no and it should work.

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb
Arachnaphob 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 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.

Use developer 2 to see if the input is being triggered.

Falsi sumus crusto!
FelixGriffin 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.

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.

Netherskate 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.

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.

Page 1 of 3Next