Home   Help Search Login Register  

Author Topic: Description.ext Error  (Read 633 times)

0 Members and 1 Guest are viewing this topic.

LAPD

  • Guest
Description.ext Error
« on: 11 Mar 2003, 18:50:59 »
Hi :wave:

I have created this description.ext file:
Quote
minScore=500
avgScore=2500
maxScore=8000

onLoadIntro=""

onLoadMission="In Base, Behind the Forest"

// Indicates whether or not the debriefing window appears at end of the mission 0 = no, 1 = yes
debriefing = 0

showWatch = 1

showCompass = 1

showNotepad = 1

showGPS = 0

showMap = 1

onLoadIntroTime = true;

respawn=4;
respawndelay=10;

class RscText
{
  type=0;
  idc=-1;
  style=0;
  h=0.080000;
  colorBackground[]={0,0,0,0};
  colorText[]={0.000000,1.000000,1.000000,1.000000};
  font="tahomaB24";
  sizeEx=0.040000;
};

class RscTitles
{
  class Failed
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Failed";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="Mission Failed";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={1.0,0.0,0.0,1};
        font="tahomaB36";
        sizeEx=0.030000;
      };
  };
class Complete
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Complete";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="Mission Accomplished";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={0.6, 0.6, 1.0, 1};
        font="tahomaB36";
        sizeEx=0.030000;
      };
  };
class Team
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Complete";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="All Team Members Are Dead";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={0.6, 0.6, 1.0, 1};
        font="courierNewB64";
        sizeEx=0.030000;
      };
  };
  titles[]={"Failed","Complete","Team"};
};

class CfgRadio
{
sounds[] =
{
Counterattack, DoBest, FirstObj, Moveout, Papago
};

class Counterattack
{
name = "Counterattack";

sound[] = {"Counterattack.ogg", db+99, 1.0};

title = $STR_Counterattack;
};
};

class DoBest
{
name = "DoBest";

sound[] = {"DoBest.ogg", db+99, 1.0};

title = $STR_DoBest;
};
};

class FirstObj
{
name = "FirstObj";

sound[] = {"FirstObj.ogg", db+99, 1.0};

title = $STR_FirstObj;
};
};

class Moveout
{
name = "Moveout";

sound[] = {"Moveout.ogg", db+99, 1.0};

title = $STR_Moveout;
};
};

class Papago
{
name = "Papago";

sound[] = {"Papago.ogg", db+99, 1.0};

title = $STR_Papago;
};
};

class CfgSounds
{
sounds[] =
{
Gogogo
};

class Gogogo
{
name = "Gogogo";


sound[] = {"Gogogo.ogg", db+99, 1.0};

titles[] =
{
0, $STRM_Gogogo
};
};

When i try to load the mission, it crash to windows and and an error message come up: "some input after EndOfFile".

If someone can find what is wrong in here i'll be very greatful.  :)

Thanks  :)

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Description.ext Error
« Reply #1 on: 12 Mar 2003, 00:03:17 »
try this one, it looks like you had too many }; in you cfgradio  and a }; missing from your cfgsounds, it should work now ;)

minScore=500
avgScore=2500
maxScore=8000

onLoadIntro=""

onLoadMission="In Base, Behind the Forest"

debriefing = 0

showWatch = 1

showCompass = 1

showNotepad = 1

showGPS = 0

showMap = 1

onLoadIntroTime = true;

respawn=4;
respawndelay=10;

class RscText
{
  type=0;
  idc=-1;
  style=0;
  h=0.080000;
  colorBackground[]={0,0,0,0};
  colorText[]={0.000000,1.000000,1.000000,1.000000};
  font="tahomaB24";
  sizeEx=0.040000;
};

class RscTitles
{
  class Failed
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Failed";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="Mission Failed";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={1.0,0.0,0.0,1};
        font="tahomaB36";
        sizeEx=0.030000;
      };
  };
class Complete
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Complete";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="Mission Accomplished";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={0.6, 0.6, 1.0, 1};
        font="tahomaB36";
        sizeEx=0.030000;
      };
  };
class Team
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Complete";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="All Team Members Are Dead";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={0.6, 0.6, 1.0, 1};
        font="courierNewB64";
        sizeEx=0.030000;
      };
  };
  titles[]={"Failed","Complete","Team"};
};

class CfgRadio
{
sounds[] = {Counterattack, DoBest, FirstObj, Moveout, Papago};

class Counterattack
{
name = "Counterattack";
sound[] = {"Counterattack.ogg", db+99, 1.0};
title = $STR_Counterattack;
};

class DoBest
{
name = "DoBest";
sound[] = {"DoBest.ogg", db+99, 1.0};
title = $STR_DoBest;
};

class FirstObj
{
name = "FirstObj";
sound[] = {"FirstObj.ogg", db+99, 1.0};
title = $STR_FirstObj;
};

class Moveout
{
name = "Moveout";
sound[] = {"Moveout.ogg", db+99, 1.0};
title = $STR_Moveout;
};

class Papago
{
name = "Papago";
sound[] = {"Papago.ogg", db+99, 1.0};
title = $STR_Papago;
};
};

class CfgSounds
{
sounds[] = {Gogogo};

class Gogogo
{
name = "Gogogo";
sound[] = {"Gogogo.ogg", db+99, 1.0};
titles[] = {0, $STRM_Gogogo};
};
};
« Last Edit: 12 Mar 2003, 00:05:24 by Black_Feather »

LAPD

  • Guest
Re:Description.ext Error
« Reply #2 on: 12 Mar 2003, 14:57:17 »
Thanks, working great.  :)

One little question: can I have more the one cutRsc on screen at once?

I tried this:
cutRsc ["Failed","PLAIN"]
cutRsc ["Team","PLAIN DOWN"]

But only one of them is shown on screen.
Is there anyway to make them both appear?

LAPD

  • Guest
Re:Description.ext Error
« Reply #3 on: 13 Mar 2003, 19:06:13 »
:help:

Modify: I managed to get them both on screen using this:

Quote
cutRsc ["Failed","PLAIN"]
TitleRsc ["Team","PLAIN DOWN"]

The problem now is that "Team" appears at the center of the screen, right on top of "Failed" (which makes them both unreadble), instead in the bottom (PLAIN DOWN).

Can anyone assist?
« Last Edit: 13 Mar 2003, 19:56:56 by LAPD »

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Description.ext Error
« Reply #4 on: 13 Mar 2003, 20:33:12 »
you need to adjust the x and y postitions of the resource

       x=0.050000;
        y=0.30000;

a the minute they are in the same position

LAPD

  • Guest
Re:Description.ext Error
« Reply #5 on: 13 Mar 2003, 20:45:19 »
Where do I put it?

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Description.ext Error
« Reply #6 on: 13 Mar 2003, 20:48:39 »
try this one, it looks like you had too many }; in you cfgradio  and a }; missing from your cfgsounds, it should work now ;)

minScore=500
avgScore=2500
maxScore=8000

onLoadIntro=""

onLoadMission="In Base, Behind the Forest"

debriefing = 0

showWatch = 1

showCompass = 1

showNotepad = 1

showGPS = 0

showMap = 1

onLoadIntroTime = true;

respawn=4;
respawndelay=10;

class RscText
{
  type=0;
  idc=-1;
  style=0;
  h=0.080000;
  colorBackground[]={0,0,0,0};
  colorText[]={0.000000,1.000000,1.000000,1.000000};
  font="tahomaB24";
  sizeEx=0.040000;
};

class RscTitles
{
  class Failed
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Failed";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="Mission Failed";
        x=0.050000;
        y=0.30000;

        w=0.900000;
        h=0.500000;
        colorText[]={1.0,0.0,0.0,1};
        font="tahomaB36";
        sizeEx=0.030000;
      };
  };
class Complete
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Complete";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="Mission Accomplished";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={0.6, 0.6, 1.0, 1};
        font="tahomaB36";
        sizeEx=0.030000;
      };
  };
class Team
  {
      idd=-1;
      movingEnable=0;
      duration=10;
      name="Complete";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="All Team Members Are Dead";
        x=0.050000;
        y=0.30000;

        w=0.900000;
        h=0.500000;
        colorText[]={0.6, 0.6, 1.0, 1};
        font="courierNewB64";
        sizeEx=0.030000;
      };
  };
  titles[]={"Failed","Complete","Team"};
};

class CfgRadio
{
sounds[] = {Counterattack, DoBest, FirstObj, Moveout, Papago};

class Counterattack
{
name = "Counterattack";
sound[] = {"Counterattack.ogg", db+99, 1.0};
title = $STR_Counterattack;
};

class DoBest
{
name = "DoBest";
sound[] = {"DoBest.ogg", db+99, 1.0};
title = $STR_DoBest;
};

class FirstObj
{
name = "FirstObj";
sound[] = {"FirstObj.ogg", db+99, 1.0};
title = $STR_FirstObj;
};

class Moveout
{
name = "Moveout";
sound[] = {"Moveout.ogg", db+99, 1.0};
title = $STR_Moveout;
};

class Papago
{
name = "Papago";
sound[] = {"Papago.ogg", db+99, 1.0};
title = $STR_Papago;
};
};

class CfgSounds
{
sounds[] = {Gogogo};

class Gogogo
{
name = "Gogogo";
sound[] = {"Gogogo.ogg", db+99, 1.0};
titles[] = {0, $STRM_Gogogo};
};
};


Just change the red bits, you'll have to figure out the numbers because it depends on where you want it on the screen, the number is between 0 and 1

LAPD

  • Guest
Re:Description.ext Error
« Reply #7 on: 13 Mar 2003, 21:13:14 »
Works great  :).

Thanks  :thumbsup:

Topic Solved!  :)