SOLVED: Problem with voice / text options, failing to implement.

Started by Slasher, Fri 15/02/2013 07:34:24

Previous topic - Next topic

Slasher

Hi

something appears to have happened and I'm not sure why. I have voice / text choices and have speech.vox yet speech audio fails to play. This has worked before. Maybe I have done something to change it I don't know, I'm sure I have not. The Dialogs choice button in the Control Panel has now gone as well.

This is Control panel:
Code: AGS
function btnVoice_OnClick(GUIControl *control, MouseButton button)
{
  // Note that we don't check for the existence of speech.vox - we did that in game_start,
  // so if it's not there the button won't even be available.
  if (btnVoice.Text == "Voice and Text") { 
    SetVoiceMode(eSpeechVoiceOnly); 
    btnVoice.Text = "Voice only";
  }
  else if (btnVoice.Text == "Voice only") {
    SetVoiceMode(eSpeechTextOnly);
    btnVoice.Text = "Text only";
  }
  else if (btnVoice.Text == "Text only") {
    SetVoiceMode(eSpeechVoiceAndText);
    btnVoice.Text = "Voice and Text";
  }
}


This is my custom version:

Code: AGS
function btnVoice2_OnClick(GUIControl *control, MouseButton button)
{  

// Note that we don't check for the existence of speech.vox - we did that in game_start,
  // so if it's not there the button won't even be available.
  
  // On custon Dialog choices
  
  if (btnVoice2.Text == "Voice and Text") { 
    SetVoiceMode(eSpeechVoiceOnly); 
    btnVoice2.Text = "Voice only";
  }
  else if (btnVoice2.Text == "Voice only") {
    SetVoiceMode(eSpeechTextOnly);
    btnVoice2.Text = "Text only";
  }
  else if (btnVoice2.Text == "Text only") {
    SetVoiceMode(eSpeechVoiceAndText);
    btnVoice2.Text = "Voice and Text";
  }
}


EDIT: I loaded an older game and it works fine, I just needed to re import some sprites and re import animations.

And whilst I'm at it: When I loaded the game up at a later time (the game perfect when closed) I found 2 rooms missing from the Tree although they were in the games folder and I had to re import them. I also had to re import some graphics and re add some animations! Weird or what?

Hope you can help out

thank you

I will continue to look.





SMF spam blocked by CleanTalk