[SOLVED]CS voice placement - 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: [SOLVED]CS voice placement (/thread-18954.html) |
[SOLVED]CS voice placement - FlawlessHappiness - 10-27-2012 Ok so i've been searching for this, but didn't get the answer i needed. I have a LOT of voicefiles, and they all work properly for me if: -I have place the files in Amnesia the Dark Descent/redist/lang/eng/voices/ I have the exact same path in my custom story (lang/eng/voices/), but when i then try to call the voice files without having them in the redist/lang/eng/voices/ i get a blackbox error. I am calling AddEffectVoice("voice_mark_hall_9.ogg", "", "Voice", "voice_mark_hall_9", false, "", 0, 0); So why won't it search for my voicefile in my custom story folder? RE: CS voice placement - Melvin - 10-27-2012 Well, if I use an .ogg file that isn't there. It will just simply not play. If the filename is MyVoice.ogg and do this: AddEffectVoice("MyVoise.ogg", "", "Voice", "voice_mark_hall_9", false, "", 0, 0); It will not recognize it, and so it will not play. I don't get a fatal error or blackbox error. (I don't think the problem lies in the location of the file...) PS Don't forget to place the voice file in the folder redist/custom_stories/your_custom_story/lang/eng/voices/diaries/ if it's a note or a diary! RE: CS voice placement - FlawlessHappiness - 10-27-2012 This is a simple voice file. It is located in redist/custom_stories/Digressiophobia - Chapter 2/lang/eng/voices/VOICEFILES But when i call AddEffectVoice("voice_mark_hall_9.ogg", "", "Voice", "voice_mark_hall_9", false, "", 0, 0); it simply won't play the voicefile. All names are correct!!! EDIT: in other custom stories i didn't have to move any files to be able to hear the voice acting. I just don't understand why i can't hear my own ex. Followed by death, does not have lang/eng/ in the custom story. It is just custom_stories/Followed by death/voices/FILES RE: CS voice placement - Melvin - 10-27-2012 (10-27-2012, 01:46 PM)beecake Wrote: This is a simple voice file. It is located in redist/custom_stories/Digressiophobia - Chapter 2/lang/eng/voices/VOICEFILESI think it won't work because the original Amnesia files do not contain /Voicefiles. Only /voices/diaries /voices/flashbacks /voices/level /voices/monolog What is it that you're trying to do? Are you trying to voice a diary? Are you trying to voice a flashback? RE: CS voice placement - FlawlessHappiness - 10-27-2012 It's a normal voice. You know, the character is speaking. EDIT: Ok i think i got it. I just once experienced that this didn't work. I guess the blackbox error was just some kind of mistake. Anyway, it works now. There was one minor problem in the .lang file, but that is fixed RE: CS voice placement - Melvin - 10-27-2012 You can set up an area. And then just use the { AddEntityCollideCallback("Player", "YourArea", "YourFunction", true, 1); } void YourFunction (string &in asParent , string &in asChild , int alState) { PlaySoundAtEntity("", "voice_mark_hall_9.snt", "Player", 0, false); } And place it in redist/custom_stories/yourcustomstory/sounds/ Be sure to convert voice_mark_hall_9 to .snt. And place the .ogg and the .snt files both in redist/custom_stories/yourcustomstory/sounds/ ! (10-27-2012, 02:06 PM)beecake Wrote: It's a normal voice. You know, the character is speaking.Great! Glad it works RE: CS voice placement - FlawlessHappiness - 10-27-2012 (10-27-2012, 02:18 PM)SmokeMelvin Wrote: You can set up an area. And then just use theNo, PlaySoundAtEntity is not a solution! There won't be subtitles either, and it's pretty good to have subtitles so the player doesn't get lost |