Jump to content
sizraide

Audio not working in conversations script

Recommended Posts

Hello, I'm making a singleplayer scenario. And I'm using the conversations system in A3 for AI and the player to interact with each other.

 

This is my intro.bikb file

Spoiler

class Sentences
{
	class Sentence1
	{
		text = "Test1";
		speech[] = { "\Sounds\thunder.ogg" };
		class Arguments {};
		actor = "nic";
	};
	class Sentence2
	{
		text = "Test2";
		speech[] = { "\Sounds\thunder.ogg" };
		class Arguments {};
		actor = "william";
	};
	class Sentence3
	{
		text = "Test3";
		speech[] = { "\Sounds\thunder.ogg" };
		class Arguments {};
		actor = "nic";
	};
};

class Arguments {};
class Special {};
startWithVocal[] = { hour };
startWithConsonant[] = { europe, university };

 

 

And here is my description.ext file

Spoiler

class CfgSentences
{
	class Beginning
	{
		class Introduction
		{
			file = "conv\intro.bikb";
			#include "conv\intro.bikb"
		};
	};
};

 

 

However, when I type this function below, there is no audio for the conversation, but the lips syncing works and subtitles appear and they go in order and start one after the another when the audio finishes, except, there's no audio or noise, it's just silent.

I suppose it recognizes the audio and is playing it, but there's no noise. 

["Introduction", "Beginning"] call BIS_fnc_kbTell;

Any help?

EDIT: William is the player and the audio works when I use playSound or any other function to play the .ogg file.
 

Share this post


Link to post
Share on other sites

I'd like to make a comment that also if I wanted to incorporate rendering BIS_fnc_showSubtitle with BIS_fnc_kbTell function, the subtitles doesn't appear.

 

Here is the intro.bikb

class Sentences
{
	class Sentence1
	{
		text = "";
		textPlain = "Test1";
		speech[] = { "\Sounds\thunder.ogg" };
		class Arguments {};
		actor = "nic";
	};
	class Sentence2
	{
		text = "";
		textPlain = "Test2";
		speech[] = { "\Sounds\thunder.ogg" };
		class Arguments {};
		actor = "william";
	};
	class Sentence3
	{
		text = "";
		textPlain = "Test3";
		speech[] = { "\Sounds\thunder.ogg" };
		class Arguments {};
		actor = "nic";
	};
};

class Arguments {};
class Special {};
startWithVocal[] = { hour };
startWithConsonant[] = { europe, university };

 

Share this post


Link to post
Share on other sites

Not sure if it's still present but there used to be a bug where you did not hear the audio if the speaker did not have a radio.

So try giving the speaker a radio and see if you can hear the audio then.

Share this post


Link to post
Share on other sites
23 hours ago, Larrow said:

Not sure if it's still present but there used to be a bug where you did not hear the audio if the speaker did not have a radio.

So try giving the speaker a radio and see if you can hear the audio then.

 

Both of them have radios, still no noise from audio.

Share this post


Link to post
Share on other sites
10 minutes ago, sizraide said:

 

Both of them have radios, still no noise from audio.

 

I fixed it, I managed to fix the audio. Stupid me had this in my init.sqf file

showChat false;
enableRadio false;
0 fadeRadio 0;

Now, the only issue I have is BIS_fnc_showSubtitle not rendering in.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×