Home   Help Search Login Register  

Author Topic: the dreaded description.ext  (Read 756 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
the dreaded description.ext
« on: 05 Jun 2005, 11:03:03 »
okay i know theres about 100 posts on description.ext files not working but ive got a problem with my description.ext file nothing in it seems to get read i get a message saying canot find message patrols wich is the first radio message in the game then after that i dont get any radio messages again
the onloadmission doesnt get read either nor does my custom fonts at the bottom i did add a sound file then it didnt work so i took out that class and it still doesnt work
heres the file

Code: [Select]
class CfgSounds
{
   sounds[] = { };
   
      class intro1
   {
      name = "intro1";
      sound[] = {"intro1.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro1
      };
   };
   class intro2
   {
      name = "intro2";
      sound[] = {"intro2.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro2
      };
   };
   class intro3
   {
      name = "intro3";
      sound[] = {"intro3.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro3
      };
   };
   class intro4
   {
      name = "intro4";
      sound[] = {"intro4.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro4
      };
   };
   class intro5
   {
      name = "intro5";
      sound[] = {"intro5.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro5
      };
   };
   class intro6
   {
      name = "intro6";
      sound[] = {"intro6.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro6
      };
   };
   class intro7
   {
      name = "intro7";
      sound[] = {"intro7.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro7
      };
   };
   class clipnotes
   {
      name = "clipnotes";
      sound[] = {"clipnotes.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_clipnotes
      };
   class cockgear
   {
      name = "cockgear";
      sound[] = {"cockgear.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_cockgear
      };
   };
   class emptymen
   {
      name = "emptymen";
      sound[] = {"emptymen.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_emptymen
      };
   };
   class reloadplan
   {
      name = "reloadplan";
      sound[] = {"reloadplan.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_reloadplan
      };
   };
};
class CfgRadio
{
   sounds[] = {};
   
   class patrols
   {
      name = "patrols";
      sound[] = {"patrols.ogg", db-40, 1.0};
      title = $STRM_patrols;
   };
   class firstobj2
   {
      name = "firstobj2";
      sound[] = {"firstobj2.ogg", db-40, 1.0};
      title = $STRM_firstobj2;
   };
   class firstobj
   {
      name = "firstobj";
      sound[] = {"firstobj.ogg", db-40, 1.0};
      title = $STRM_firstobj;
   };
   class counter1
   {
      name = "counter1";
      sound[] = {"counter1.ogg", db-40, 1.0};
      title = $STRM_counter1;
   };
   class obj22
   {
      name = "obj22";
      sound[] = {"obj22.ogg", db-40, 1.0};
      title = $STRM_obj22;
   };
   class obj21
   {
      name = "obj21";
      sound[] = {"obj21.ogg", db-40, 1.0};
      title = $STRM_obj21;
   };
   class obj1
   {
      name = "obj1";
      sound[] = {"obj1.ogg", db-40, 1.0};
      title = $STRM_obj1;
   };
   class counterdead
   {
      name = "counterdead";
      sound[] = {"counterdead.ogg", db-40, 1.0};
      title = $STRM_counterdead;
   };
   class support
   {
      name = "support";
      sound[] = {"support.ogg", db-40, 1.0};
      title = $STRM_support;
   };
};

onloadintro = "  ";
onLoadMission = "Operation Not Enough";
onloadoutro = "  ";
showGPS = 1;
showMap = 1;
minScore = 2000
avgScore = 6700
maxScore = 10000
class CfgIdentities
{
   class HarryPotter
   {
      name = "Brian Sheplan";
      face = "Johan Way";
      glasses = "none";
      speaker = "Rob";
      pitch = 1;
   };
};
// the different text fonts and sixes
// ----------------------------------------------
// These are the fonts that are available in OFP
// ----------------------------------------------
// let this be as it is

#define FontS "tahomaB24"
#define FontM "tahomaB36"
#define FontP "tahomaB48"
#define FontHTML "courierNewB64"
#define FontHTMLBold "courierNewB64"
#define FontMAP "courierNewB64"
#define FontMAIN "SteelfishB64"
#define FontMAINCZ "SteelfishB64CE"
#define FontTITLE "SteelfishB128"
#define FontTITLEHalf "SteelfishB64"
#define FontBOOK "garamond64"
#define FontNOTES "AudreysHandI48"

// Control types
#define CT_STATIC                  0
#define CT_HTML                     9

//   #define CT_OBJECT                  80
//   #define CT_OBJECT_CONTAINER               82

//   #define CT_3DSTATIC                  20
//   #define CT_3DHTML                  23

// Static styles
#define ST_LEFT         0
#define ST_RIGHT      1
#define ST_CENTER      2
#define ST_UP         3
#define ST_DOWN         4
#define ST_VCENTER      5

#define ST_SINGLE      0
#define ST_MULTI      16
#define ST_PICTURE      48
#define ST_FRAME      64

#define ST_HUD_BACKGROUND   128
#define ST_TILE_PICTURE      144
#define ST_WITH_RECT      160
#define ST_LINE         176

#define ST_SHADOW      256
#define ST_NO_RECT      512

// let this be as it is
// these are the default values of the parametres
class RscPicture
{
   type = CT_STATIC;
   idc = -1;
   style = ST_PICTURE;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {1, 1, 1, 1};
   font = FontS;
   size = 0;
};

class RscText
{
   type = CT_STATIC;
   idc = -1;
   style = ST_LEFT;
   h = 0.04;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {1, 1, 1, 1};
   font = FontS;
   size = 1;
};

class RscBackground
{
   type = CT_STATIC;
   idc = -1;
   style = ST_LEFT;
   colorBackground[] = {0, 1, 0, 1};
   colorText[] = {1, 1, 1, 1};
   font = FontS;
   size = 0;
   text = "";
};

class RscHTML
{
   type = CT_HTML;
   idc = -1;
   style = 0;
   colorBackground[] = {1, 1, 1, 1};
   colorText[] = {0, 0, 0, 1};
   colorBold[] = {0, 0, 0.2, 1};
   colorLink[] = {0.4, 0.4, 0.8, 1};
   colorLinkActive[] = {0.8, 0.35, 0.48, 1};
// styles
   class H1
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 1.0;
   };
   class H2
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 0.7;
   };
   class H3
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 0.5;
   };
   class H4
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 0.4;
   };
   class H5
   {
      font = FontBOOK;
      fontBold = FontBOOK;
      size = 0.6;
   };
   class H6
   {
      font = FontNOTES;
      fontBold = FontNOTES;
      size = 0.7;
   };
   class P
   {
      font = FontHTML;
      fontBold = FontHTML;
      size = 0.47;
   };
};
//My Own Classes below
class RscTitles
{   
   class Texte2
   {
      name = "Texte2";
      duration = 4;
      idd = -1;
      movingEnable = false;
      
      controls[]=
      {
         name1
      };
      
      class name1 : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
         lineSpacing = 1.0;
         text = "Operation Not Enough";
         x = 0.15; y = 0.75; w = 0.65; h = 0.4;
         colorText[] = {0.4, 0.4, 0.8, 1};
         font = FontMAP;
         sizeEx = 1.5 * 0.1;
         size = 1.5;
      };
   };
   class Texte3
   {
      name = "Texte3";
      duration = 4;
      idd = -1;
      movingEnable = false;
      
      controls[]=
      {
         name1
      };
      
      class name1 : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
         lineSpacing = 1.0;
         text = "A small air base in Everon";
         x = 0.17; y = 0.75; w = 0.65; h = 0.4;
         colorText[] = {1.0, 1.0, 1.0, 1};
         font = FontMAINCZ;
         sizeEx = 1.5 * 0.1;
         size = 1.1;
      };
   };
   class Texte4
   {
      name = "Texte4";
      duration = 4;
      idd = -1;
      movingEnable = false;
      
      controls[]=
      {
         name1
      };
      
      class name1 : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
         lineSpacing = 1.0;
         text = "Entre Deux";
         x = 0.17; y = 0.75; w = 0.65; h = 0.4;
         colorText[] = {1.0, 1.0, 1.0, 1};
         font = FontMAINCZ;
         sizeEx = 1.5 * 0.1;
         size = 1.1;
      };
   };
   class murder
   {
      name = "murder";
      duration = 9999;
      idd = -1;
      movingEnable = false;
      
      controls[]=
      {
         murder
      };
      
      class murder : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
         lineSpacing = 1.0;
         text = "You have been Court Martialled";
         x = 0.17; y = 0.12; w = 0.65; h = 0.4;
         colorText[] = {1.0, 1.0, 1.0, 1};
         font = couriernewb64;
         sizeEx = 1.5 * 0.1;
         size = 1.0;
      };
   };
};

it should be all right but it isnt i dont get any messages wich send me to the desktop or anything like that

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:the dreaded description.ext
« Reply #1 on: 05 Jun 2005, 12:41:28 »
Are you sure your description.ext file has the correct file extension? If not, then check this:

http://www.granneman.com/techinfo/windows/showextensions/

Make sure the file extension really is .ext and not .txt or anything else.

And also take in notice that everytime you change something in the description.ext file, you have to reload the mission in the editor to see the changes.

Offline 456820

  • Contributing Member
  • **
Re:the dreaded description.ext
« Reply #2 on: 05 Jun 2005, 18:53:11 »
yep im 100% sure the file name is right also you dont need to reload the mission saving works too

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:the dreaded description.ext
« Reply #3 on: 06 Jun 2005, 11:25:32 »
A few general comments:

Baddo is right.  if you change description.ext then you need to reload the mission in the editor for the changes to take effect

Code: [Select]
     name = "intro1";
      sound[] = {"intro1.ogg", db, 1.0};
1)  I would put name = ""
2) Should you not have a number after db?


Are you using:
sideRadio "patrols"
 or other Radio command?  If you are using loon say "patrols" or playsound "patrols" then you will get a not found message.

Are you sure the description.ext is in the correct folder?

I think we need more information.


Offline 456820

  • Contributing Member
  • **
Re:the dreaded description.ext
« Reply #4 on: 06 Jun 2005, 16:30:48 »
i managed to get it working now i just put everything back to front so the bottoms at the top and the tops at the bottom it worked anyway thanks for trying though