![]() |
[SCRIPT] Sound not playing - 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: [SCRIPT] Sound not playing (/thread-12545.html) |
Sound not playing - eagledude4 - 01-11-2012 OnStart: Code: PlaySoundAtEntity("", "Custom/big_clock_chime.snt", "clock_grandfather_1", 0.0f, false); big_clock_chime.snt: Code: <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. RE: Sound not playing - Elven - 01-11-2012 remove Custom/ part and put your .snt file into cutom as well. It should work this way perfectly ![]() RE: Sound not playing - flamez3 - 01-12-2012 (01-11-2012, 11:04 PM)eagledude4 Wrote: OnStart: Also put the sounds in your custom story directory, so it plays for other people as well. RE: Sound not playing - eagledude4 - 01-12-2012 (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 perfectlyRemove 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. RE: Sound not playing - flamez3 - 01-12-2012 Remove the Custom/ from the .hps and the .snt RE: Sound not playing - eagledude4 - 01-12-2012 (01-12-2012, 02:11 AM)flamez3 Wrote: Remove the Custom/ from the .hps and the .sntOkay, done. I don't need the .ogg extension in the .snt file right? Code: <Sound File="big_clock_chime" /> RE: Sound not playing - flamez3 - 01-12-2012 (01-12-2012, 02:12 AM)eagledude4 Wrote:(01-12-2012, 02:11 AM)flamez3 Wrote: Remove the Custom/ from the .hps and the .sntOkay, done. I don't need the .ogg extension in the .snt file right? No you should put the .ogg in there, and yes that looks good apart from the missing .ogg RE: Sound not playing - eagledude4 - 01-12-2012 Okay, latest files: OnStart: Code: PlaySoundAtEntity("", "big_clock_chime.snt", "clock_grandfather_1", 0.0f, false); big_clock_chime.snt: Code: <SOUNDENTITY> RE: Sound not playing - flamez3 - 01-12-2012 Yep, should work. RE: Sound not playing - eagledude4 - 01-12-2012 (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) |