Frictional Games Forum (read-only)
Can You add custom sounds into Amnesia? - 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: Can You add custom sounds into Amnesia? (/thread-7395.html)

Pages: 1 2


Can You add custom sounds into Amnesia? - Fictionult - 04-15-2011

I am working on a story and I already got a friend who read a script I wrote. Only problem is I am having trouble putting it into HPL editor. Please someone help!! Heart


RE: Can You add custom sounds into Amnesia? - Anxt - 04-15-2011

Convert it to .ogg format and put it in the sounds folder. It should work.


RE: Can You add custom sounds into Amnesia? - TFEF - 04-15-2011

Make sure the sound is in .ogg format, and you should probably put in a subfolder of your custom story folder named 'sounds'.

EDIT: Damn! Ninja'd again!


RE: Can You add custom sounds into Amnesia? - Fictionult - 04-15-2011

(04-15-2011, 08:56 PM)TFEF Wrote: Make sure the sound is in .ogg format, and you should probably put in a subfolder of your custom story folder named 'sounds'.

EDIT: Damn! Ninja'd again!

It doesn't have to be in snt format? cause thats what the sounds it makes me select in the HPL editor.


RE: Can You add custom sounds into Amnesia? - TFEF - 04-15-2011

An .snt file is just a file that gives info about the sound. For example:

Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="player_bodyfall1" />
        <Sound File="player_bodyfall2" />
        <Sound File="player_bodyfall3" />
        <Sound File="player_bodyfall4" />
        <Sound File="player_bodyfall5" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

I think there's a specific script function that lets you play a sound without a .snt file, but I can't think of it right now. You do need a .snt file for your sound otherwise.


RE: Can You add custom sounds into Amnesia? - Fictionult - 04-15-2011

(04-15-2011, 09:03 PM)TFEF Wrote: An .snt file is just a file that gives info about the sound. For example:

Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="player_bodyfall1" />
        <Sound File="player_bodyfall2" />
        <Sound File="player_bodyfall3" />
        <Sound File="player_bodyfall4" />
        <Sound File="player_bodyfall5" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

I think there's a specific script function that lets you play a sound without a .snt file, but I can't think of it right now. You do need a .snt file for your sound otherwise.

Okay so I converted the WAV into ogg. I made a "sounds" folder in my custom story folder and put the ogg in there. I open the HPL editor. nothing ._.! What do I do man?


RE: Can You add custom sounds into Amnesia? - MrBigzy - 04-15-2011

PlayGuiSound is just playing the ogg sound if I remember correctly.

Fict, you have to create a .snt file for your sounds. It's basically a script file that gives the properties for the sounds; you can open them with notepad. So you have to make a new text file, put in all the info, and save as .snt, similar to .hps for regular script. The Level Editor will only insert .snt files for sounds into the level.


RE: Can You add custom sounds into Amnesia? - Fictionult - 04-16-2011

(04-15-2011, 10:55 PM)MrBigzy Wrote: PlayGuiSound is just playing the ogg sound if I remember correctly.

Fict, you have to create a .snt file for your sounds. It's basically a script file that gives the properties for the sounds; you can open them with notepad. So you have to make a new text file, put in all the info, and save as .snt, similar to .hps for regular script. The Level Editor will only insert .snt files for sounds into the level.

May I have the stuff I'm suppose to put in the notepad? Huh


RE: Can You add custom sounds into Amnesia? - MrBigzy - 04-16-2011

Look at other .snt files. Or use the one TFEF put as a template. And then put in whatever options you want for it.


RE: Can You add custom sounds into Amnesia? - Fictionult - 04-16-2011

(04-15-2011, 10:55 PM)MrBigzy Wrote: PlayGuiSound is just playing the ogg sound if I remember correctly.

Fict, you have to create a .snt file for your sounds. It's basically a script file that gives the properties for the sounds; you can open them with notepad. So you have to make a new text file, put in all the info, and save as .snt, similar to .hps for regular script. The Level Editor will only insert .snt files for sounds into the level.

Okay here is what I did.
I opened a random snt file in notepad copied the information in that and pasted it in my new text file except replaced the text in quotes with the file name I was trying to use.

Here is what it said when I tried selecting the SNT. in HPL.

[Image: messagewd.png]