Home   Help Search Login Register  

Author Topic: problem with class CfgRadio  (Read 595 times)

0 Members and 2 Guests are viewing this topic.

sheltem

  • Guest
problem with class CfgRadio
« on: 19 May 2004, 22:08:47 »
I need some help with custom radio voices... I know there is a tut and i went through it but still I can't get my voices to show up in the effekt menu... >:(

This is my description.ext:

// include spt pack dialog definitions in SNYSptPack.pbo
#include <SNYSptPack\dialogs.h>

respawn=3;
respawn_delay=3;

//-------------------------music----------------
class CfgMusic
{
  tracks[]=
  {
      SHLBadRel        
  };
 
  class SHLBadRel
  {
      name = "SHLBadRel";
      sound[] = {"\music\BadReligion.ogg", db+0, 1.0};
  };
};


//--------------------------radio--------------

class CfgRadio
{
  sounds[]=
  {
    SHLasgard,SHLengage,SHLinhands,SHLmovingout,SHLonhisway,SHLunderfire2
  };   

class SHLasgard
  {
      name = "SHLasgard";
      sound[] = {"\voice\asgard.ogg", db+0, 1.0};
      title = $SHL_asgard;
  };

class SHLengage
  {
      name = "SHLengage";
      sound[] = {"\voice\engage.ogg", db+0, 1.0};
      title = $SHL_engage;   
  };
class SHLinhands
  {
      name = "SHLinhands";
      sound[] = {"\voice\inhands.ogg", db+0, 1.0};
      title = $SHL_inhands;
  };

class SHLmovingout
  {
      name = "SHLmovingout";
      sound[] = {"\voice\movingout.ogg", db+0, 1.0};
      title = $SHL_movingout;
  };

class SHLonhisway
  {
      name = "SHLonhisway";
      sound[] = {"\voice\onhisway.ogg", db+0, 1.0};
      title = $SHL_onhisway;
  };
class SHLunderfire2
  {
      name = "SHLunderfire2";
      sound[] = {"\voice\underfire2.ogg", db+0, 1.0};
      title = $SHL_underfire2;
  };
};

Funny enough I do get the music to work....

All voice files are mono and I do have the .lip files in the same directory "\voice\..."then the voice files..

This is the stringtsable.csv:

Language   English
   
Comment   stuff
SHL_asgard   Walhalla this is Thor. Reached position Asgard.
SHL_engage   Loki to Thor: Engage! Thor engage!"
SHL_inhands   Thor to Walhalla: Asgard is in our hands!!"
SHL_movingout   Walhalla to Thor. Loki is moving out!
SHL_onhisway   Lightning here! Thor is on his way!
SHL_underfire2   This is Lightning! We are under fire!!! I do repeat: we are under fire!!


Anybody got an idea why the heck those radio voices don't show up???? :-[

Sheltem


Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:problem with class CfgRadio
« Reply #1 on: 20 May 2004, 04:02:05 »
Do you mean you can't find the voices in the "effects" menu of triggers? I don't think radio voices even show up in trigger menus, because you need to specify which unit is "saying" the radio voice.

In general, don't worry about launching radio/sounds/music from the effects menu at all. There is no need to do so, because you can do it via scripting commands, which is more flexable than being forced to work with triggers. To do a radio voice, the command is:

unit1 sideradio "SHLasgard"

Obviously, replace "SHLasgard" with whichever radio you want to use, and replace "unit1" with the name of the unit who is going to make the radio call. Or, you could say:

leader group1 sideradio "SHLasgard"

This would make the leader of the specified group (group1 in this case) make the call, so this way you don't have to worry about, for example "unit1" being dead when you want him to make the call. (Unless everyone in group1 is dead, in which case its leader would also be dead).

Instead of "sideradio", which is visible to everyone on the same side as the calling unit, you could use "globalradio" (everyone hears it, regardless of side); "vehicleradio" (only heard by ppl is same vehicle); or "groupradio" (only heard by those in the same group).

I hope that was clear! If not, I'll clarify :)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:problem with class CfgRadio
« Reply #2 on: 20 May 2004, 18:31:32 »
hey

General B has said everything that should help you, but regarding the radio msgs in the effects boxes, I don't think you can do that.    

sim
The Unsung Campaign Team Leader

sheltem

  • Guest
Re:problem with class CfgRadio
« Reply #3 on: 23 May 2004, 16:33:14 »
Great!!! I will give it  go !! ;D ;D ;D

« Last Edit: 23 May 2004, 16:33:38 by sheltem »

sheltem

  • Guest
Re:problem with class CfgRadio
« Reply #4 on: 23 May 2004, 19:56:57 »
 ;D it works!!! ;D Thanks a lot!

The only problem left now is: it won't display the text I wrote for every radio in the stringtable.csv
All I get is                unit name:"$SHL_xxxx"

Is this a problem in the stringatble.csv? Where is this file supposed to be? in the main directory or in the same folder than the radio files?

 ???
« Last Edit: 23 May 2004, 19:57:18 by sheltem »

PsyWarrior

  • Guest
Re:problem with class CfgRadio
« Reply #5 on: 25 May 2004, 10:11:45 »
Greetings,

Well, I did type a huge long reply to this, but the OFPEC decided that I didn't want it at all. So here I am, typing it again...

I don't know why I told you that at all... ::)
Quote
Is this a problem in the stringatble.csv

Only if spelt 'Stringatble' or 'stringtsable'. ;D :P
Sorry. Feeling sarcastic at the moment.

OK: What did you create the StringTable.csv in? If you open it in notepad, are all the cells seperated by commas, like:

Comment, stuff
SHL_asgard, Walhalla this is Thor. Reached position Asgard.

Also:
1. I believe it needs to be 'Comment, English' instead of 'Comment, stuff'.
2. All the stringTables I have seen use the prefix STRM_ as opposed to SHL_.
3. I think the accepted spelling is 'Valhalla'. But then again, my Norse was never particularly good... ::)

-Supreme Commander PsyWarrior
-Psychic Productions Studios

P.S. - Sorry for the spelling corrections... ;D ::). I get like that after YABB deletes my post for no adequately explained reason...
But better for it to come up here, than in BETA testing...
« Last Edit: 25 May 2004, 10:12:34 by PsyWarrior »