Home   Help Search Login Register  

Author Topic: weird description  (Read 844 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
weird description
« on: 22 Jul 2005, 19:27:53 »
ive found something wrong with some description.ext files im not sure why it happens
but if you define everything right some times its like the computer getting lazy and not bothering reading the whole file not sure why it does it but thats what seems to happen

ive got my description.ext (see attached) and when i open up my mission i get a load of errors like
cant find sound file "name of sound file"
forexample when its defined correctly
also in the intro ive got 3 sound files
the soldier says the first one then i get an error about not being able to find the second there defined in the same way so why doesnt it work ?

if you move some of the sections around like sound files at the bottom instead of top the titlersc's work but i cant get the sound files to get read for some reason is there something wrong with the file ?
« Last Edit: 22 Jul 2005, 22:12:44 by 456820 »

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:weird description
« Reply #1 on: 22 Jul 2005, 19:34:21 »
you need to save the mission again after saving the description then it will work, well i always find that it dose after i  do that.
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline 456820

  • Contributing Member
  • **
Re:weird description
« Reply #2 on: 22 Jul 2005, 19:35:17 »
i always save after changing the description.ext but it still doesnt work

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:weird description
« Reply #3 on: 22 Jul 2005, 19:40:32 »
Saving the description file is certainly necessary, but also you need to re-load the mission into the editor - even if it is already there.

Think of it this way.  description.ext only gets loaded when the mission is loaded, so any changes to it after that are ignored until you load the mission again.

Ding had it right I am sure, he just typed save the mission rather than re-load the mission.
« Last Edit: 22 Jul 2005, 20:57:51 by THobson »

Offline 456820

  • Contributing Member
  • **
Re:weird description
« Reply #4 on: 22 Jul 2005, 19:44:28 »
i never knew you had to reload the mission it ususally works fine when i save
anyway i tried reloading this time aswell but still no luck same problem
any ideas ?

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:weird description
« Reply #5 on: 22 Jul 2005, 20:59:17 »
I'm afraid not, and you didn't attach the file.

Offline 456820

  • Contributing Member
  • **
Re:weird description
« Reply #6 on: 22 Jul 2005, 22:14:13 »
oh sorry i thought i did but it appears the file wont attacth for some reason anyway ill copy and paste it here

Code: [Select]
onLoadintro = "Sainte Pierre";
onloadmission = "Aproaching the fuel base"
minScore = 3500
avgScore = 8000
maxScore = 11300

class CfgIdentities
{
   class BS
   {
      name = "Brian Sheplan";
      face = "Johan Way";
      glasses = "none";
      speaker = "Rob";
      pitch = 1;
   };
};

// custom text fonts for court martial
#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;
   };
};

class RscTitles
{
   class dead
   {
      name = "dead";
      duration = 9999;
      idd = -1;
      movingEnable = false;
      
      controls[]=
      {
         dead
      };
      
      class dead : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
         lineSpacing = 1.0;
         text = "You are dead.";
         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;
      };
   };
};

class CfgSounds
{
   sounds[] = {intro1,intro2,intro3,gren1,gren_r1};
   
      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 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 gren1
   {
      name = "gren1";
      sound[] = {"gren1.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_gren1
      };
   };
   class gren_r1
   {
      name = "gren_r1";
      sound[] = {"gren_r1.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_gren_r1
   };
};

class CfgRadio
{
   sounds[] = { };
   
   class artillery1
   {
      name = "artillery1";
      sound[] = {"artillery1.ogg", db-40, 1.0};
      title = $STRM_artillery1;
   };
   class artillery2
   {
      name = "artillery2";
      sound[] = {"artillery2.ogg", db-40, 1.0};
      title = $STRM_artillery22;
   };
   class first
   {
      name = "first";
      sound[] = {"first.ogg", db-40, 1.0};
      title = $STRM_first;
   };
   class counter
   {
      name = "counter";
      sound[] = {"counter.ogg", db-40, 1.0};
      title = $STRM_counter;
   };
   class complete
   {
      name = "complete";
      sound[] = {"complete.ogg", db-40, 1.0};
      title = $STRM_complete;
   };
   class counterdead
   {
      name = "counterdead";
      sound[] = {"counterdead.ogg", db-40, 1.0};
      title = $STRM_counterdead;
   };
   class fuelbase
   {
      name = "fuelbase";
      sound[] = {"fuelbase.ogg", db-40, 1.0};
      title = $STRM_fuelbase;
   };
   class town
   {
      name = "town";
      sound[] = {"town.ogg", db-40, 1.0};
      title = $STRM_town;
   };
   class zuludown
   {
      name = "zuludown";
      sound[] = {"zuludown.ogg", db-40, 1.0};
      title = $STRM_zuludown;
   };
};

Pravit

  • Guest
Re:weird description
« Reply #7 on: 22 Jul 2005, 22:56:04 »
class intro1
   {
      name = "intro1";
      sound[] = {"intro1.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_intro1
      };
      class intro2

If I'm not wrong, you need another }; before "class intro2" and in some other spots too.
« Last Edit: 22 Jul 2005, 22:57:27 by Pravit »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:weird description
« Reply #8 on: 23 Jul 2005, 07:41:19 »
Well spotted, I hate looking for mistakes in the description file.  

The same is also true for Intro2/Intro3 so I suggest 456 you have a look throught the whole file counting your { and }; to make sure they all match.

Offline 456820

  • Contributing Member
  • **
Re:weird description
« Reply #9 on: 23 Jul 2005, 08:47:35 »
thats weird i was pretty sure i did them right i just copied a different class then changed the names
oh well thanks for spotting it out ill redo it
also the radio sounds dont work either neither do half the sound files for some reason