OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Krieg on 25 Jun 2009, 15:01:41

Title: sideRadio command
Post by: Krieg on 25 Jun 2009, 15:01:41
Since I am totally new to scripting/etc. I have two questions about http://www.ofpec.com/COMREF/index.php?action=details&id=344 (http://www.ofpec.com/COMREF/index.php?action=details&id=344) command (sideRadio).


1. Can it be used in single player missions for Battle Chatter and giving new objectives/orders?
2. I am totally unfamiliar to "description.ext" so I do not know nor how to make it nor how to use it in actual game.
Title: Re: sideRadio command
Post by: nominesine on 25 Jun 2009, 17:13:54
Welcome to Ofpec  :welcome: We're here to help. The answers are:

1) Yes. For example: Place a unit on the map. Name him general (or whatever). You can now make him send radio commands to all units on the same side (West, East, etc). To do this you use the following command:

general sideRadio "myRadioSound"

This will play the sound called "myRadioSound" that you must create yourself and define in a document called description.ext. But the radio command does not create a new objective. For that you must use "x" objStatus "Active" on a hidden objective that is already created in the briefing. Let's leave that part for now.

2) A descriptio.ext is a document that tells OFP what sound files you have added to your mission. It can be a little tricky to set one up properly. But there are good tutorials.

I like Blodmixers Sound Tutorial (http://www.ofpec.com/ed_depot/index.php?action=details&id=488&game=ArmA).

The Architects Sound Tutorial (http://www.ofpec.com/ed_depot/index.php?action=details&id=488&game=ArmA) is especially good for beginners.

Start with these two and see if that solves your problem. We're always here 24/7 to help you if they don't  ;)

Once again... Welcome to our forums
Title: Re: sideRadio command
Post by: Krieg on 25 Jun 2009, 17:42:11
Thank you for reply :good:!

1) Thank you.
2) I got Blodmixer's tutorial (because both links lead to same tutorial) and I like the thing it is pretty detailed. And I have just one problem: I do not seem to be able to download Sound Mission Example because link led to part of my own computer, and since I do not have the file, I could not download it. Can you please tell me where to download that example?
Title: Re: sideRadio command
Post by: nominesine on 25 Jun 2009, 17:49:07
Unfortunately not. I've been away from Ofpec for two years and only returned recently. The sample mission must have gona MIA somewhere during that time. Hopefully someone got it stored on their computers. I'll alert the Editors Depot that one of our Tutorials is missing part of it's content. Stay tuned...
Title: Re: sideRadio command
Post by: bedges on 25 Jun 2009, 18:30:18
You're in luck - see attached.

OFPEC Download (http://www.ofpec.com/ed_depot/index.php?action=details&id=488&game=ArmA)
Title: Re: sideRadio command
Post by: Krieg on 25 Jun 2009, 19:16:21
Thank you!
Title: sideRadio command another question
Post by: Krieg on 26 Jun 2009, 19:03:32
Sorry for making new topic, but I am not authorized to double-post (by forum rules, it seems).
I have following problem:
I created my Radio sounds, and created description.ext using "Chris' OFP Script Editor" or something like that (found in Editor's Depot). And then I named unit "Player" and typed in in it's initialization field: Player sideRadio "1st" (that is the name I gave to my radio commands. So I thought I got it in wrong spot, and did same at move waypoint. Nothing happened. And then I took a look at code. I have following code:
Code: [Select]
//////////////////////////////////////////////////////////////////////////
// Operation Flashpoint Description File
// Generated by Chris' OFP Script Editor
// Version 3.1.0000
//////////////////////////////////////////////////////////////////////////

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th};

// Class definition needed for each sound
class 1st
{
// Name to display in mission editor
name = "1st";
// Sound path, volume, pitch
sound[] = {\sound\1st.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
class 2nd
{
// Name to display in mission editor
name = "2nd";
// Sound path, volume, pitch
sound[] = {\sound\2nd.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
class 3rd
{
// Name to display in mission editor
name = "3rd";
// Sound path, volume, pitch
sound[] = {\sound\3rd.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
class 4th
{
// Name to display in mission editor
name = "4th";
// Sound path, volume, pitch
sound[] = {\sound\4th.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
class 5th
{
// Name to display in mission editor
name = "5th";
// Sound path, volume, pitch
sound[] = {\sound\5th.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
class 6th
{
// Name to display in mission editor
name = "6th";
// Sound path, volume, pitch
sound[] = {\sound\6th.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
class 7th
{
// Name to display in mission editor
name = "7th";
// Sound path, volume, pitch
sound[] = {\sound\7th.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
class 8th
{
// Name to display in mission editor
name = "8th";
// Sound path, volume, pitch
sound[] = {\sound\8th.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
};

class Weapons
{
// Add the weapons to the mission gear
class M16
{
Count = 1;
};
class M16GrenadeLauncher
{
Count = 1;
};
class M60
{
Count = 1;
};
};

class Magazines
{
// Add the magazines to the mission gear
class M16
{
Count = 15;
};
};

Then I tried to add sounds to sound folder I created by one part of sound tutorial. Nothing. And yes sounds are in .ogg format. I really do not know what to do (I have created radio sounds from 1st to 8th).
Title: Re: sideRadio command
Post by: h- on 26 Jun 2009, 19:26:15
Quote
Sorry for making new topic
Merged here..
Title: Re: sideRadio command
Post by: Walter_E_Kurtz on 27 Jun 2009, 00:53:44
Do NOT name a unit as "Player" - in single-player mode the game already understands who the player is.

Things to try:

Make sure the file you have created really is called description.ext and has not been mangled by Windows as description.ext.txt or something.

(Have a look at this thread (http://forums.bistudio.com/showthread.php?t=69048). If you've correctly defined the sound in description.ext, it should be accessible as a 'Voice' when you edit the 'Effects' of a trigger or waypoint.)

Since you are using the sideRadio function, maybe CfgSounds should be changed to CfgRadio.