Description.ext

From BISim Wiki - Mirror I
Jump to: navigation, search

Contents

Introduction

The description.ext is a text file located in the root of the mission folder which allows you to define many things in your mission. Each entry must be given a new line in the description.ext. The description.ext in fact uses the same syntax as all config files, therefore each line should be terminated with ;.

When editing a mission in the mission editor description.ext is only read when the mission is loaded, not when you preview the mission.

 ! For edits to description.ext to take effect in Preview you must first save or re-load the mission into the editor.



OnLoad...

OnLoadMission

This displays a message whilst the mission is loading. Note that a mission that takes very little time to load will only display the message for a short time. Care should be taken to see whether your message is readable in that timeframe.

OnLoadMission = "YourMissionName";

The OnLoadMission option is used to present the mission name to the user. In MP this is the name you see when selecting a mission and also the name that is presented to the GameSpy browser.

If the option is missing from the description.ext then the filename is presented. *note needs verified

OnLoadIntro

OnLoadIntro = "YourMessage";// Title that appears on screen in briefing

OnLoadIntroTime

OnLoadMissionTime

This allows you to define whether you will see the time and date displayed whilst the mission/intro loads. Variables are True or False.

OnLoadIntroTime = False;
OnLoadMissionTime = False;



...Score

This feature allows you to set scores for your mission. Score is related to the star display in the debriefing screen. The score can be influenced during a missions progress by using the addRating command.

MinScore = 0;
AvgScore = 1800;
MaxScore = 7500;



Respawn...

respawn = RespawnType;

respawnDelay = DelayInSeconds;

respawnVehicleDelay = DelayInSeconds; (Note that vehicle has to be set as respawnable in MP games using the respawnVehicle command.)

respawnDialog = 0; // Show the scoreboard and respawn countdown timer for a player if he is killed with respawnType 3. Default is 1 (true).



RespawnType Description
0 or "NONE" No respawn
1 or "BIRD" Respawn as a seagull
2 or "INSTANT" Respawn just where you died.
3 or "BASE" Respawn in base. Requires a marker named:
  • respawn_west
  • respawn_east
  • respawn_guerrila
  • respawn_civilian

Add markers named with the prefix 'respawn_west' with any suffix (eg: respawn_westABC, respawn_west1, respawn_west_2, etc) for multiple random respawn points. Similarly for east, guerrila and civilian.


Vehicle respawn in base requires a marker named:

  • respawn_vehicle_west
  • respawn_vehicle_east
  • respawn_vehicle_guerrila
  • respawn_vehicle_civilian
4 or "GROUP" Respawn in your group (if there's no AI left, you'll become a seagull).
5 or "SIDE" Respawn into an AI unit on your side (if there's no AI left, you'll become a seagull) - with this respawn type, team switch is also available to any AI controlled playable units.

Sounds

There are three types of sound that can be specified:

  1. General sounds that can be used for dialog, voiceovers in the briefing etc. These sounds are actioned in a mission by using the commands: say, playSound
  2. Dialog where one unit talks over the radio, for example using the command sideRadio
  3. Music using the command playMusic


Examples:

CfgSounds

General Sounds

class CfgSounds
{
 sounds[] = {};   
  class wolf1
  {
   name = "";
   sound[] = {"\sound\wolf1.ogg", 1, 1};
   titles[] = {};
  };
  class wolf2
  {
   name = "Wolfsong";
   sound[] = {"\sound\wolf2.ogg", 1, 1};
   titles[] = {};
  };
};
playSound "wolfSong";  // must have a name
position say wolf1;     // location

Also see this tutorial
Demo mission: File:Identities and Sound.zip

CfgRadio

class CfgRadio
{
 sounds[] = {};
  class RadioMsg1
  {
   name = "";
    sound[] = {"\sound\filename1.ogg", db-100, 1.0};
    title = "Well all the civilians are now safe in the lodge.  I am ready for your orders.";
  };
  class RadioMsg2   {    name = "";    sound[] = {"\sound\filename2", db-100, 1.0}; // .wss implied    title = {$STR_RADIO_2};   }; };

Note that the location of the sound file is relative to the mission.

unit sideRadio RadioMsg2

CfgMusic

class CfgMusic
{
 tracks[]={};
 class MarsIntro  {   name = "";   sound[] = {"\music\filename.ogg", db+0, 1.0};  };  class Ludwig9  {   name = "";   sound[] = {"\music\filename.ogg", db+10, 1.0};  }; };
playMusic  "MarsIntro"

Notes

Name can be left blank as in the examples above. Only specify a name if you wish to access these sounds via the environment options of a trigger.

Title is the text string that will be displayed on the screen when the sound file is played. See also Stringtable.csv

 ! Setting volume (db) of music far from zero will disable fadeMusic command. Optimal values are from -10 to 10.



CfgIdentities

It is here that you can define the identities of individual units, you can specify the face, type of glasses worn, voice, tone of voice and name of an identity. You then give a specific unit this identity by using the command setIdentity in the mission.

Example:

class CfgIdentities
{
 class John_Doe
 {
  name="John Bartholemew Doe";
  face="Face20";
  glasses="None";
  speaker="Dan";
  pitch=1.1;
 };
};

See setIdentity for valid options for: face, glasses, speaker etc.


Name

Face

Face can take any of the following values:

Glasses

Speaker

Speaker determines which voice is used and can take any of the following values:

In V1.40 (and perhaps earlier) the same male voice is used, no matter what is selected.

Pitch

Pitch sets the tone of voice. 1.0 for normal; < 1.0 for deep; >1.0 for high pitched

Demo mission: File:Identities and Sound.zip


Keys

It is possible to define keys for every mission.

Keys are used in single player missions for

keys[] = {"key1","key2","key3"};  // List of keys (needed for keysLimit)
keysLimit = 2;                    // Number of keys from the list needed for unlock a mission.

doneKeys[] = {"key4"};            // Name of key(s) needed for mark a mission in SP missions list as completed.

Note that unlike other 'text' items $STR_ variables (in the stringtable.csv for the mission) cannot be used

To create a green mark tick two operations are needed

1) description.ext

doneKeys[] = {Mission04Key,TotallyFailedKey4};   

2) outro.sqs

activateKey "Mission04Key"

'outro.sqs' is poetic licence for whatever-it-is you decide to end a mission in a way that will set this key or keys

it is up to you to decide what is successful, and indeed, how you end, your mission

Note that a series of keys can be specified and that as such, which one(s) you set cause other mission(s) to unlock

A totally failed outcome, could set a totally failed key, and this unlock (say) a retraining mission.


See also: activateKey, isKeyActive


Miscellaneous

disabledAI

Removes all playable units which do not have a human player. (MP)

Note: Disabling all the AI units will prevent JIP into playable units

disabledAI = false/true

aiKills

Enables scorelist for AI players

aiKills = 1/0;

briefing

Skip briefing screen for SP missions. If no briefing.html is present, it is skipped anyway.

In VBS2 version +1.30, if set, mission will start soon as all clients are done loading data and will skip the briefing. Note: Briefing will still be displayed untill all clients are connected and done loading.

briefing = 0;

debriefing

Defines if the debriefing is shown or not at the end of the mission.

debriefing = 0;

Show...

ShowGPS

Enables/Disables the GPS

ShowGPS = 0;

This option disables the mini map attached to the GPS.

showCompass

Defines if the compass is visible.

showCompass = 0;

showMap

Defines if the map is shown after the mission starts.

showMap = 0;

showNotePad

Defines if the NotePad is shown after the mission starts.

showNotePad = 0;

showPad

Defines if the NotePad is shown after the mission starts. (no validated)

showPad = 0;

showWatch

Defines if the watch is visible.

showWatch = 0;

Dialogs

Dialogs are also configured in the description.ext into classes.


See Dialogs for more information.

RscTitles

RscTitles class defines image, text and object resources for use with commands such as: cutRsc, cutText, cutObj, titleRsc, titleText, titleObj.

Example:

class RscTitles
{
  titles[] = {introImage}; // optional

  class introImage
  {	
    idd = -1;	
    movingEnable = false;
    duration = 120;
    fadein = 0;
    name = "IntroImage"; 
    controls[] = {"image1"};

    class image1: RscPicture
    {	
      x = 0;
      y = 0;
      w = 1;
      h = 1;
      text = "IntroImage.paa";
    };	
  };
cutRsc["introImage", "PLAIN", 1];

Example 2:

class RscTitles
{
	titles[]={MiDisplay};

	class MiDisplay {
	idd=1111;
	movingEnable=0;
 	duration=10000;
 	fadein=1;
 	name="MiDisplay";

 	onLoad = "Sa_MiDisplay = _this";

 	class controls  {
	       class fn0 : RscText {
		idc = 1120;
 	  	colorBackground[] = {0,0,0,1 };
		x=0.3;
		y=0.2;
		w=0.4;
		h=0.04;
		text="";
   		};
 	};
};


Sa_MiDisplay = [];
/*
..........
*/
1110 cutRsc ["MiDisplay", "Plain"];
/*
..........
*/
disableSerialization;
((Sa_MiDisplay select 0) displayCtrl 1120) ctrlSetText "Text";
/*
..........
*/
1110 cuttext ["","plain"];


Multiplayer

TitleParam1 and TitleParam2 are multiplayer options. These options are seen in the lobby of a multiplayer game. These options can be useful for setting time limits and score limits in such games as Capture the Flag and Death Matches. Other popular uses include accelerate time, setting the mission difficulty or switching the intro on/off.

In the mission param1 and param2 have the values of the chosen options. Many people will assign a variable in the init.sqf file to param1 for simplicity, an example of this would be to assign variable timelimit = param1.

Example:

titleParam1 = "Time limit:";
valuesParam1[] = {0, 300, 600, 900};
defValueParam1 = 900;
textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min"};
titleParam2 = "Score to win:";
valuesParam2[] = {10000, 5, 7, 10, 15, 20, 25, 30};
defValueParam2 = 5;
textsParam2[] = {"Unlimited", 5, 7, 10, 15, 20, 25, 30};

Header Class

The purpose of this class definition is to signal the engine the gameType which is displayed in the MP game browser. This can assist other players for finding particular missions using the filters.

Example

Here is a basic class example:

class Header
{
 gameType = COOP;            //DM, Team, Coop, ...
 minPlayers = 1;             //min # of players the mission supports
 maxPlayers = 10;            //Max # of players the mission supports
 playerCountMultipleOf = 1;
};

gameType

These are basic types to help with filtering in the MP game browser.

DM         = Death Match
CTF        = Capture the Flag
FF         = Flag Fight
Coop       = Cooperative Mission
Team       = Team Mission
Scont      = Sector Control
Hold       = Hold Location
Unknown    = Unknown - is used when no class header is defined.

playerCountMultipleOf

The game server would set the maximum amount of players based on bandwidth and eventually this parameter. The default is 2, so it means the mission will try to balance the game to multiples of 2 (2 vs 2, 4 vs 4, etc.) and you did not end up with a team mission with 5 maximum players(2 vs 3 is unfair?). Coop type missions use 1, Team type missions use 2(default).

Notes

If this class is missing the mission will still load with an error in the RPT file and the mission type will be considered Unknown.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox