Frictional Games Forum (read-only)

Full Version: Sound Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Trying to add in one of my sounds, tick.ogg. I made a .snt file for it as well, here's the code:

Code:
<SOUNDENTITY>
<SOUNDS>
   <Main>
      <Sound File="tick.ogg" />
       </Main>
   </SOUNDS>
   <PROPERTIES Volume="5" MinDistance="1" MaxDistance="10" Random="1"
   Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="true"
   Use3D="true" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

Yet every time I start the map, it crashes with an error.
I'm trying to add the sound in the actual map file, not the script.
(I've tried the script, but it crashes with same error)
Here's the stack trace:

Code:
0023:001B3588 libvorbisfile.dll, ov_read()+0456 byte(s)
0023:005EF91E Amnesia.exe
You don't need the .ogg in the name. I don't know if that's the error, but it's definitely not right.
(06-03-2013, 09:14 PM)Smoke Wrote: [ -> ]You don't need the .ogg in the name. I don't know if that's the error, but it's definitely not right.

No, the name isn't the error. I use other custom sounds with the same naming scheme and they still work.
Should <Sound> and <PROPERTIES> be closed with a '/>' (as opposed to maybe <Sound></Sound> with nothing in between the tags)? Alternatively, if this is case-sensitive perhaps <Sound> should be <SOUND>.
(06-03-2013, 09:33 PM)Bridge Wrote: [ -> ]Should <Sound> and <PROPERTIES> be closed with a '/>' (as opposed to maybe <Sound></Sound> with nothing in between the tags)? Alternatively, if this is case-sensitive perhaps <Sound> should be <SOUND>.

Nope. Same format as TDD. Plus my other sounds with the same format work fine.
Easiest way is just to copy any .snt file from the game, then just enter your own name. If there's still an error after that, it might not be your sound file.
(06-03-2013, 10:19 PM)Smoke Wrote: [ -> ]Easiest way is just to copy any .snt file from the game, then just enter your own name. If there's still an error after that, it might not be your sound file.

Works! I don't know why it didn't before...