Frictional Games Forum (read-only)

Full Version: Sound not playing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
OnStart:
Code:
PlaySoundAtEntity("", "Custom/big_clock_chime.snt", "clock_grandfather_1", 0.0f, false);

big_clock_chime.snt:
Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="Custom/big_clock_chime" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="0.5" MinDistance="20" MaxDistance="30" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="True" Loop="True" Use3D="True" Blockable="True" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>

I want the sound to play at the clock entity as soon as the game starts, but it doesn't. The sound file is in redist/sounds/Custom.

remove Custom/ part and put your .snt file into cutom as well. It should work this way perfectly Smile
(01-11-2012, 11:04 PM)eagledude4 Wrote: [ -> ]OnStart:
Code:
PlaySoundAtEntity("", "Custom/big_clock_chime.snt", "clock_grandfather_1", 0.0f, false);

big_clock_chime.snt:

I want the sound to play at the clock entity as soon as the game starts, but it doesn't. The sound file is in redist/sounds/Custom.


Also put the sounds in your custom story directory, so it plays for other people as well.
(01-11-2012, 11:08 PM)Elven Wrote: [ -> ]remove Custom/ part and put your .snt file into cutom as well. It should work this way perfectly Smile
Remove the Custom/ from which file? the .hps, the .snt, or both? the .ogg and .snt are already in my sounds/Custom folder.

(01-12-2012, 02:01 AM)flamez3 Wrote: [ -> ]Also put the sounds in your custom story directory, so it plays for other people as well.
I will put it in my custom story when I'm ready to share it. As of now, the map file I test with isn't in my custom story directory, so no sounds will play if I put them there during testing.

Remove the Custom/ from the .hps and the .snt
(01-12-2012, 02:11 AM)flamez3 Wrote: [ -> ]Remove the Custom/ from the .hps and the .snt
Okay, done. I don't need the .ogg extension in the .snt file right?

Code:
<Sound File="big_clock_chime" />
Is that right?

(01-12-2012, 02:12 AM)eagledude4 Wrote: [ -> ]
(01-12-2012, 02:11 AM)flamez3 Wrote: [ -> ]Remove the Custom/ from the .hps and the .snt
Okay, done. I don't need the .ogg extension in the .snt file right?

Is that right?


No you should put the .ogg in there, and yes that looks good apart from the missing .ogg
Okay, latest files:

OnStart:
Code:
PlaySoundAtEntity("", "big_clock_chime.snt", "clock_grandfather_1", 0.0f, false);


big_clock_chime.snt:
Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="big_clock_chime.ogg" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="0.5" MinDistance="20" MaxDistance="30" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="True" Loop="True" Use3D="True" Blockable="True" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>
Yep, should work.
(01-12-2012, 02:26 AM)flamez3 Wrote: [ -> ]Yep, should work.

For my other snt files, I didn't include the .ogg in the file name, and those sounds work. (Although I don't call them through the script)


Pages: 1 2 3 4