Jump to content
Sign in to follow this  
W0lle

Problem with stringtable / say / sideRadio

Recommended Posts

:confused:

I got a problem here and no solution found for it yet:

In my stringtable.xml I have this:

<Key ID="str_voice_01">
<English>Whatever bla bla bla</English>
</Key>

In the description.ext the counterpart is:

class CfgSounds
{
 sounds[]={voice_01};
 class voice_01
 {
   name="voice_01";
   sound[]={"voice_01.ogg", db-10, 1.0};
   titles[]={0, "$str_voice_01"};
 };

And finally in a script I call the sound with:

off_1 say "voice_01";

In theory the subtitle should be: Whatever bla bla bla

But it actually is: $str_voice_01

:help:

Share this post


Link to post
Share on other sites

You could try doing:

titles [] = {0, "localize 'str_voice_01'"}

or maybe try removing the " " marks?

Share this post


Link to post
Share on other sites

Tried both plus a couple of other localize variations - nada. :confused:

Share this post


Link to post
Share on other sites

Huh? Did you try this?

titles[]={0, $str_voice_01};

Share this post


Link to post
Share on other sites

Yep. I found the reason though (I think). After I replaced str_ with STR_ the text was displayed. But still have the problem with radio messages.

After I switched back to the good old stringtable.csv everything was working as before though. So meh, screw the xml file. :)

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
Sign in to follow this  

×