SOLVED: Voice Speech not working, same code works fine in other templates

Started by Olleh19, Sat 10/10/2020 23:52:34

Previous topic - Next topic

Olleh19

Problem: I cannot produce Voice Speech sound, aExplosion.Play(); = works fine, musicchannels = works fine. Somewhere down the road something has happened, and i don't know what!


SOLUTION: I got a PM from a player of the game, that had the solution for the issue. Heltonjon said i should try to Compile game and go inte run gamesetup, activate voicepack. Why this has to be done, when it does not have to be done with the the other templates, i do not know. I've tried to Compile the other games, and the voice still works in them, There is no problem there at all with voice being played! I've never pushed a activate voicepack button there!

So it's not "really" solved in my book. But at least my biggest horror days are over for this time. Thank God! 8-0

If you run into the same problem, and the above solution do not work, try these, perhaps the enable/disabled voicepack compiling solved it along with enabling it in the setup. Who know's.

Clarification: "Use Voicepack If Available" inside the editors Default Settings DO NOT WORK the same as Compiling the game and run gamesetup and inside there chose the same option. "Use Voice If Avaiable". So if this happen to you. Try that!

Edit Again: WinSetup:
- Fixed "Use voice pak" option was reset if no speech.vox found. That might have been what caused it..


Original POST:

Edit: Tried Disabling Use Voicepack in Default Setup, compiling, re-enabling, compiling, no success..Looked around in the scripts, since i am no programmer i am clueless as what to look for, but everything looks "normal" to me, when comparing to the working basic template = Thumbleweed 9verb

Character named cElita.

Wavefile, or oggfile, named Elit1

Called in script
Code: ags
cElita.Say("&1 Testing1234");



Attempt two, not working either:

Code: ags
Game.PlayVoiceClip(cElita, 1);

It works in other new started templates, no problem. Clarification the Sound FILE works in other project, if it's named the same and i add a character with the same cElita name. Sorry, long nights of gamecreation takes it's toll on the brain, i guess.


Anybody know if there is a code in the scripts that plays a HUGE role for the voice speech to work? So i can search for it, see if it's been accidently deleted.

Olleh19

Updated original post, less talkabout what i've tried and just "the problem".

Olleh19


SMF spam blocked by CleanTalk