Home   Help Search Login Register  

Author Topic: Whats wrong with my description.ext?  (Read 864 times)

0 Members and 1 Guest are viewing this topic.

nim2oo4

  • Guest
Whats wrong with my description.ext?
« on: 16 Nov 2004, 07:55:23 »
Hey Guys,
I was wondering wot ive done to my description.ext to make it crash?  :P
Here is my file...
Quote
respawn=3
respawndelay=25

onLoadMission=ST PIERRE ST0NED -VKI-

titleParam1 = $STRD_08;
valuesParam1[] = {10000, 300, 600, 900, 1200, 1500, 1800, 2700, 3600, 7200};
defValueParam1 = 1800;
textsParam1[] = {$STRD_12, $STRD_T005, $STRD_T010, $STRD_T015, $STRD_T020, $STRD_T025, $STRD_T030, $STRD_T045, $STRD_T060, $STRD_T120};

titleParam2 = $STRD_09;
valuesParam2[] = {10000, 3, 5, 7, 10, 15, 20, 25, 30};
defValueParam2 = 5;
textsParam2[] = {$STRD_12, 3, 5, 7, 10, 15, 20, 25, 30};

class CfgSounds
{
   sounds[] =
      {
         UScore, UCapture, Diddy
      };
   
        class Diddy
   
   {
      name = "Diddy";
      sound[] = {"Diddy.ogg", 1, 1.0};
      titles[] = {   };
   };
        class UScore
   
   {
      name = "UScore";
      sound[] = {"UScore.ogg", 12, 1.0};
      titles[] = {   };
   };
   class UCapture
   
   {
      name = "UCapture";
      sound[] = {"UCapture.ogg", 12, 1.0};
      titles[] = {   };
   };

};

class RscPicture
{
   type=0;
   idc=-1;
   style=48;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,1};
   font="tahomaB24";
   size=1;
};

class RscTitles
{

         
    class VKI
   {
      
      idd=-1;
      movingEnable=0;
      duration=999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
      fadein=3;
      name="VKI";

      controls[]={"splash"};

      class splash: RscPicture
      {
         style=48;
         text="VKI.paa";
         colorBackground[]={2,2,2,2};
         // across screen
             x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                        };

      };
   
 
titles[]={"VKI"};
};
   
    class Nim
   {
      
      idd=-1;
      movingEnable=0;
      duration=6;
      fadein=3;
      name="Nim";

      controls[]={"splash"};

      class splash: RscPicture
      {
         style=48;
         text="Nimap.paa";
         colorBackground[]={2,2,2,2};
         // across screen
             x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                        };

      };
   
 
titles[]={"Nim"};
};
         
    class St P
   {
      
      idd=-1;
      movingEnable=0;
                duration=6;      
                fadein=3;
      name="St P";

      controls[]={"splash"};

      class splash: RscPicture
      {
         style=48;
         text="St P.paa";
         colorBackground[]={2,2,2,2};
         // across screen
             x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                        };

      };
   
 
titles[]={"St P"};
};
   
    class VKIprod
   {
      
      idd=-1;
      movingEnable=0;
      duration=6;
      fadein=3;
      name="VKIprod";

      controls[]={"splash"};

      class splash: RscPicture
      {
         style=48;
         text="VKIprod.paa";
         colorBackground[]={2,2,2,2};
         // across screen
             x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                        };

      };
   
 
titles[]={"VKIprod"};
};
And here is the error i get when openning inside mission editor...
http://server3.uploadit.org/files/nim2oo4-error.JPG

Cheers,
            Nim

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Whats wrong with my description.ext?
« Reply #1 on: 16 Nov 2004, 09:01:08 »
I'd imagine exactly what your error message says:

SOME INPUT AFTER END OF FILE

Quote
   class VKIprod
  {
     
      idd=-1;
      movingEnable=0;
      duration=6;
      fadein=3;
      name="VKIprod";

      controls[]={"splash"};

      class splash: RscPicture
        {
              style=48;
              text="VKIprod.paa";
              colorBackground[]={2,2,2,2};
              // across screen
                  x=0.925;
              // up screen
              y=0;
              // pic width
              w=0.075;
              // pic height
              h=0.075;
         };

 };
   

titles[]={"VKIprod"};  //INPUT AFTER
};                                //END OF FILE

I moved some of the braces around a bit so you can see it better.  :-*
« Last Edit: 16 Nov 2004, 09:03:04 by General Barron »
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!

nim2oo4

  • Guest
Re:Whats wrong with my description.ext?
« Reply #2 on: 16 Nov 2004, 09:13:47 »
Ok im gonna seem like a noob here...but...I dont get it... ;D wot was the difference between my quote and ur quote the only difference i saw was the..
Quote
titles[]={"VKIprod"};  //INPUT AFTER
};                                //END OF FILE

Sorry  ???

Cheers,
            Nim

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Whats wrong with my description.ext?
« Reply #3 on: 16 Nov 2004, 09:22:06 »
Sorry, I assumed you knew something that you might not...

For every open brace { you need to have a corresponding closing brace }. Everything in one of the "classes" (everything below the line "class CfgSounds") must be between these braces. Basically the braces work in pairs, just like parenthesis in a math equation. At the end of your file, you have a closing brace }, but you have no opening brace before it. That would be like writing the equation:

7x(4+2)+3)

It just doesn't make sense, because the last parenthesis doesn't have any corresponding opening parenthesis.

So in your file, you need to move the line:
        titles[]={"VKIprod"};
Somewhere inside of braces, and get rid of that last closing brace.
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!

nim2oo4

  • Guest
Re:Whats wrong with my description.ext?
« Reply #4 on: 16 Nov 2004, 09:45:51 »
Ok i changed my file to this....
Quote
respawn=3
respawndelay=25

onLoadMission= ST PIERRE ST0NED -VKI-

titleParam1 = $STRD_08;
valuesParam1[] = {10000, 300, 600, 900, 1200, 1500, 1800, 2700, 3600, 7200};
defValueParam1 = 1800;
textsParam1[] = {$STRD_12, $STRD_T005, $STRD_T010, $STRD_T015, $STRD_T020, $STRD_T025, $STRD_T030, $STRD_T045, $STRD_T060, $STRD_T120};

titleParam2 = $STRD_09;
valuesParam2[] = {10000, 3, 5, 7, 10, 15, 20, 25, 30};
defValueParam2 = 5;
textsParam2[] = {$STRD_12, 3, 5, 7, 10, 15, 20, 25, 30};

class CfgSounds
{
   sounds[] =
      {
         UScore, UCapture, Diddy
      };
   
                 class Diddy
   
   {
      name = "Diddy";
      sound[] = {"Diddy.ogg", 1, 1.0};
      titles[] = {   };
   };
        class UScore
   
   {
      name = "UScore";
      sound[] = {"UScore.ogg", 12, 1.0};
      titles[] = {   };
   };
   class UCapture
   
   {
      name = "UCapture";
      sound[] = {"UCapture.ogg", 12, 1.0};
      titles[] = {   };
   };

};

class RscPicture
{
   type=0;
   idc=-1;
   style=48;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,1};
   font="tahomaB24";
   size=1;
};

class RscTitles
{

         
    class VKI
   {
      
      idd=-1;
      movingEnable=0;
                   duration=9;
      fadein=3;
      name="VKI";

      controls[]={"splash"};

      class splash: RscPicture
      {
         style=48;
         text="VKI.paa";
         colorBackground[]={2,2,2,2};
         // across screen
     Â Â Â   Â Â Â x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                                                titles[]={"VKI"};
                                                };

      };

   
    class Nim
   {
      
      idd=-1;
      movingEnable=0;
      duration=6;
      fadein=3;
      name="Nim";

      controls[]={"splash"};

      class splash: RscPicture
      {
         style=48;
         text="Nimap.paa";
         colorBackground[]={2,2,2,2};
         // across screen
     Â Â Â   Â Â Â x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                                                titles[]={"Nim"};
                                                };

      };

         
    class St P
   {
      
      idd=-1;
      movingEnable=0;
                                duration=6;      
                                fadein=3;
      name="St P";

      controls[]={"splash"};

      class splash: RscPicture
      {
         style=48;
         text="St P.paa";
         colorBackground[]={2,2,2,2};
         // across screen
     Â Â Â   Â Â Â x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                                                titles[]={"St P"};
                                                };

      };

   
    class VKIprod
   {
     
      idd=-1;
      movingEnable=0;
      duration=6;
      fadein=3;
      name="VKIprod";

      controls[]={"splash"};
      class splash: RscPicture
      {
         style=48;
         text="VKIprod.paa";
         colorBackground[]={2,2,2,2};
         // across screen
         x=0.925;
         // up screen
         y=0;
         // pic width
         w=0.075;
         // pic height
         h=0.075;
                                                titles[]={"VKIprod"};
                                                };

      };
But now i get this msg...http://server2.uploadit.org/files/nim2oo4-error2.JPG
sorry to be such a pain about this....ive never encountered problems with description.ext before until adding these logo's ;)

Cheers,
            Nim
*EDIT* ^^^ The file is abit messed up but everything is actually in correct alinement
« Last Edit: 16 Nov 2004, 09:47:09 by Nim2004 »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Whats wrong with my description.ext?
« Reply #5 on: 16 Nov 2004, 20:34:00 »
I think you are still missing one final '};' at the end to close off the class RscTitles.


But I think the main problem at the moment is the:

class St P

You cannot have a space in the classname

class StP or class St_P should both work

If you change it make sure to change any other lines that have 'St P' as well.



Planck
« Last Edit: 16 Nov 2004, 20:35:04 by Planck »
I know a little about a lot, and a lot about a little.