So I am trying, just a test to see if I can make a custom sound/music work in the game. Now I followed a guide which told me what to do, where to put the files and stuff. But when I'm done scripting I have no idea why it doesn't work.
If I try to play the OGG file in Windows Mediaplayer I can hear the sound play, but if I try to place the sound in the world in the editor I can't hear it when I try to preview it with the play button, or if I place it in the world and load the map I can't hear the sound play.
(This post was last modified: 01-07-2015, 10:10 AM by Shylia.)
(01-07-2015, 10:07 AM)Shylia Wrote: So I am trying, just a test to see if I can make a custom sound/music work in the game. Now I followed a guide which told me what to do, where to put the files and stuff. But when I'm done scripting I have no idea why it doesn't work.
If I try to play the OGG file in Windows Mediaplayer I can hear the sound play, but if I try to place the sound in the world in the editor I can't hear it when I try to preview it with the play button, or if I place it in the world and load the map I can't hear the sound play.
Try changing CustomTest.snt to CustomTest.ogg and see if that works. Like this:
I believe you can use both SNT and OGG in this script.
Now, make sure you've placed your files correctly. Are they in your custom story directory? If so, I suggest you open the resources.cfg file in the Amnesia root folder and add the "custom_stories" directory to that file if it isn't there already. This will allow the game to search this folder for assets, which might be the reason it's not working.
I believe you can use both SNT and OGG in this script.
Now, make sure you've placed your files correctly. Are they in your custom story directory? If so, I suggest you open the resources.cfg file in the Amnesia root folder and add the "custom_stories" directory to that file if it isn't there already. This will allow the game to search this folder for assets, which might be the reason it's not working.