Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: auriond on Mon 08/03/2010 10:27:06

Title: Speech doesn't work in 2.72 (SOLVED)
Post by: auriond on Mon 08/03/2010 10:27:06
I keep thinking I must be missing something out here, but I just can't get speech files to work on AGS 2.72. Searching the forums got me this (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18440.0) and this (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29403.0) but neither had a conclusive solution.

To lay out my problem: I'm testing speech with one file, which I've named GIUS001.ogg (I always have file extensions on, so I know it's most definitely an .ogg). The dialog goes like this:

GIUSEPPE: &001 Hello, Martin.

I put the GIUS001.ogg file in the Speech folder in the game folder, and rebuild VOX files. A speech.vox file is generated in the Compiled folder. At 149KB it's a little over three times the size of the original 38KB .ogg. I figure everything looks right, so I run the test. Nothing. Acts just like it did without the speech file.

I tried it with a Say command too, and it didn't work either.

Any help or insight would be greatly appreciated! My actors have worked really hard and I really don't want to give up on this.
Title: Re: Speech doesn't work in 2.72
Post by: barefoot on Mon 08/03/2010 12:43:42
Check out this link as well as the Manual you have:

http://www.adventuregamestudio.co.uk/manual/Voice%20speech.htm (http://www.adventuregamestudio.co.uk/manual/Voice%20speech.htm)

Seriously recommend you upgrade to 3.1 at somepoint!

All speech files must start with the first 4 characters of the player's scriptname who is saying it.. then put a number.

IE    cSim1.ogg     cTom2.ogg    cBen1.ogg   etc

In Room put your script like this example:

cSimon.Say("&1 Hi! How are you?");    THIS WILL PLAY cSim1.ogg
cTom.Say("&2 I'm fine.");                      THIS WILL PLAY cTom2.ogg

make sure the ogg files go into your Game (Not complied) folder (2.6/2.72 versions), then rebuild VOX file.  Put in Speech Folder if using 3.1

Hope this helps.

Barefoot


Title: Re: Speech doesn't work in 2.72
Post by: monkey0506 on Mon 08/03/2010 15:28:13
I think the problem is that AGS doesn't (I believe) support leading zeroes in the name of your speech files. So just remove the leading zeroes (from the speech file and the speech line) and see if that makes a difference.
Title: Re: Speech doesn't work in 2.72 [SOLVED]
Post by: auriond on Mon 08/03/2010 22:06:52
That worked! Thanks Monkey. Odd because I could have sworn I did try removing the leading zeroes before (I even have a file named GIUS2.ogg in the speech folder). But hooray! It works now! :D