Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED]CS voice placement
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
[SOLVED]CS voice placement

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?

Trying is the first step to success.
(This post was last modified: 10-27-2012, 02:12 PM by FlawlessHappiness.)
10-27-2012, 01:28 PM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#2
RE: CS voice placement

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!

[Image: 25F7U37.png]
10-27-2012, 01:42 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: CS voice placement

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

Trying is the first step to success.
(This post was last modified: 10-27-2012, 02:05 PM by FlawlessHappiness.)
10-27-2012, 01:46 PM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#4
RE: CS voice placement

(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/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!!!
I 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?

[Image: 25F7U37.png]
10-27-2012, 02:03 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
RE: CS voice placement

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

Trying is the first step to success.
(This post was last modified: 10-27-2012, 02:13 PM by FlawlessHappiness.)
10-27-2012, 02:06 PM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#6
RE: CS voice placement

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.

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
Great! Glad it works

[Image: 25F7U37.png]
(This post was last modified: 10-27-2012, 02:19 PM by Melvin.)
10-27-2012, 02:18 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#7
RE: CS voice placement

(10-27-2012, 02:18 PM)SmokeMelvin Wrote: 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.

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
Great! Glad it works
No, 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

Trying is the first step to success.
10-27-2012, 08:38 PM
Find




Users browsing this thread: 2 Guest(s)