Hi all! I've just started scripting, in which the tutorials here have been most useful.
My question would have to do with sounds and subtitles.
I have understood the basics so far. I was able to include my own music and my own speech into my mission. Those worked perfectly. However, I get an error when I'm trying to use radio. The ogg file itself plays as expected, but there's no text - all I get is this error message:
No entry 'Users\Sergei\missions\Twilight00Hitrun.FDF_maldevic\description.ext/CfgRadio/radio1.title
So, the sound is played in radio, but with no text.
I have no such problem with sounds or music.
Let me show you what I have:
The scriptpoliisi1 GlobalRadio "radio1"
Description.extclass CfgSounds
{
sounds[] = { voice1, voice2, voice3, voice4 };
class voice1
{
name = "voice1";
sound[] = {"M1-C1-A.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_Voice1
};
};
class voice2
{
name = "voice2";
sound[] = {"M1-C1-B.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_Voice2
};
};
class voice3
{
name = "voice3";
sound[] = {"M1-C1-C.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_Voice3
};
};
class voice4
{
name = "voice4";
sound[] = {"M1-C1-D.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_Voice4
};
};
};
class CfgRadio
{
sounds[] = { radio1 };
class radio1
{
name = "radio1";
sound[] = {"radio.ogg", db+30, 1.15};
titles[] = {0, $STRM_radio1};
};
};
class CfgMusic
{
tracks[]=
{ bensaa };
class bensaa
{
name = "Bensaa";
sound[] = {\music\bensaa.ogg, db+0, 1.0};
};
Stringtable.csvLANGUAGE,English,Comment
STRM_Voice1,"Blah blah blah",Comment
STRM_Voice2,"Blah blah blah",Comment
STRM_Voice3,"Blah blah blah",Comment
STRM_Voice4,"Blah blah blah",Comment
STRM_radio1,"Patrol A, there has been a hit and run case in a nearby village.\n\nPlease go and check. Thank you!",Comment
It would be great if any of you chums could offer any insight here!