Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Wicked on Tue 09/09/2014 00:01:46

Title: AGS 3.30 Error (line 35): Undefined token 'SetVoiceMode' ?? (Solved)
Post by: Wicked on Tue 09/09/2014 00:01:46
Hello

Hopefully someone can help me,this past year I updated to window 7 and have not worked in AGS for a while my game was in 3.0 version and I recently downloaded 3.30, When I clicked play  I received that message, I tried to fix it myself but I couldn't find a answer.

If anyone needs the code  here it is .sorry im green to coding, but learning

Code (ags) Select
  if (IsSpeechVoxAvailable()==1) {
     SetVoiceMode(eSpeechVoiceAndText);
     btnVoice.Text = "Voice and Text";
     sldVoice.Value = 255;
     SetSpeechVolume(255);
Title: Re: AGS 3.30 Error (line 35): Undefined token 'SetVoiceMode' ??
Post by: Crimson Wizard on Tue 09/09/2014 00:14:21
SetVoiceMode has been deprecated in 3.3.0. Substitute it with
Code (ags) Select
Speech.VoiceMode = eSpeechVoiceAndText;

For more information refer to "Upgrading to AGS 3.3" topic in the manual.
Since you are upgrading from 3.0, "Upgrading to AGS 3.1" and "3.2" topics may come handy too.
Title: Re: AGS 3.30 Error (line 35): Undefined token 'SetVoiceMode' ??
Post by: Wicked on Tue 09/09/2014 00:21:23
Woah it works thanks , there was a bunch of lines I had to reset, but it did the trick, thank you :)