Frictional Games Forum (read-only)
Sound Help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Sound Help (/thread-21718.html)



Sound Help - phatdoggi - 06-03-2013

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



RE: Sound Help - OriginalUsername - 06-03-2013

You don't need the .ogg in the name. I don't know if that's the error, but it's definitely not right.


RE: Sound Help - phatdoggi - 06-03-2013

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


RE: Sound Help - Bridge - 06-03-2013

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


RE: Sound Help - phatdoggi - 06-03-2013

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


RE: Sound Help - OriginalUsername - 06-03-2013

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.


RE: Sound Help - phatdoggi - 06-04-2013

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