Home   Help Search Login Register  

Author Topic: Description.ext  (Read 1303 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Description.ext
« on: 10 Aug 2005, 04:11:42 »
Hi,

I was trying to use a blackscreen in one part of my mission and a clear screan in another. I figured all I would have to do is define it like this:

////BACKGROUND////////////////
class Blackscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
     colorBackground[] = {0,0,0,1};
     text = ;
     x = 0; y = 0; w = 1; h = 1;
  };

class clearscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
     colorBackground[] = {0,0,0,.1};
     text = ;
     x = 0; y = 0; w = 1; h = 1;
  };

When I delete the clearscreen class   the description.ext works fine with the blackscreen. Is it possible to use both a blackscreen in one part of a mission and a clearscreen in another? Oh this has to do with scrolling text. Dont know if that matters.
When I try to call on the clearscreen it says "resource clearscreen not found"

Any help would be great  ;D
"Everyone dies so deal with it and move on"

                                                      ME

Offline Pilot

  • Contributing Member
  • **
Re:Description.ext
« Reply #1 on: 10 Aug 2005, 04:16:07 »
I think you are missing a "};" at the end of Blackscreen and Clearscreen, try this:

////BACKGROUND////////////////
class Blackscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
    colorBackground[] = {0,0,0,1};
    text = ;
    x = 0; y = 0; w = 1; h = 1;
  };
};
class clearscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
    colorBackground[] = {0,0,0,.1};
    text = ;
    x = 0; y = 0; w = 1; h = 1;
  };
};

-Student Pilot
« Last Edit: 10 Aug 2005, 04:17:42 by Student Pilot »

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Description.ext
« Reply #2 on: 10 Aug 2005, 05:50:44 »
I appreciate your help. Although it got rid of the error on the screen the problem now is I can hear it typing text but cannot see it on the screen yet if I delete either the Blackscreen or the Clearscreen class it works perfectly.

It is driving me mad!!!  :P
"Everyone dies so deal with it and move on"

                                                      ME

Offline Pilot

  • Contributing Member
  • **
Re:Description.ext
« Reply #3 on: 10 Aug 2005, 14:12:33 »
It could be that the layering of the rescources is messing everything up.  The screens may be covering the text up.  What kind of rescource is the text?

-Student Pilot

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Description.ext
« Reply #4 on: 10 Aug 2005, 15:23:15 »
It's the scroll text by Blanco that I am using. I am trying to edit the decription.ext so that I can call on a Blackscreen and a Clearscreen. If I eliminate one or the other it works great. Here is the text resourse I am using:

//// TEXTTYPES//////////////////////
class Maintitle : RscText
{
          font = "courierNewB64";
       sizeEx = 0.04
          colorText[] = {1,1,1,1};
};

class Subtitle : RscText
{
          font = "courierNewB64";
       sizeEx = 0.03
          colorText[] = {1,1,1,1};
};

class Maintext : RscText
{
          font = "courierNewB64";
       sizeEx = 0.02
          colorText[] = {1,1,1,1};
};

class colourtext : RscText
{
          font = "SteelfishB64";
       sizeEx = 0.06
          colorText[] = {0.976,0.023,0.023,1};
};

class colourtext2 : RscText
{
          font = "garamond64";
       sizeEx = 0.04
          colorText[] = {0.101,0.643,0.901,1};
};

class BIGTEXT : RscText
{
          font = "garamond64";
       sizeEx = 0.1
          colorText[] = {0.601,0.123,0.901,1};
};

////BACKGROUND////////////////
class Blackscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
    colorBackground[] = {0,0,0,1};
    text = ;
    x = 0; y = 0; w = 1; h = 1;
  };
};
class Clearscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
    colorBackground[] = {0,0,0,.1};
    text = ;
    x = 0; y = 0; w = 1; h = 1;
  };
};


I have seen several missions now where some use the blackscreen and some use the clearscreen but never both.
"Everyone dies so deal with it and move on"

                                                      ME

Offline Pilot

  • Contributing Member
  • **
Re:Description.ext
« Reply #5 on: 10 Aug 2005, 18:24:37 »
Wait a minute, these are dialogs! :o

I know nothing about dialogs.  I'll keep working on it, but don't expect much from me. ::)

-Student Pilot

Offline Pilot

  • Contributing Member
  • **
Re:Description.ext
« Reply #6 on: 10 Aug 2005, 18:40:54 »
Aha!  I think I have it! (believe it or not)

I adjusted Blanco's descrition.ext for the scrolltext, and this works for me:
////BLACK BACKGROUND////////////////

class Blackscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
     colorBackground[] = {0,0,0,1};
     text = ;
     x = 0; y = 0; w = 1; h = 1;
  };
/////SCROLLTEXT/////////////////////////////////////////////
 
  objects[] = {};
  controls[] = {TXT1,TXT2,TXT3,TXT4,TXT5,TXT6,TXT7,TXT8,TXT9,TXT10,TXT11,TXT12,TXT13,TXT14,TXT15 };
 


 class TXT1: Maintitle
  {
    idc = 101;
    x = 0.25; y = 0.0; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT2: Subtitle
  {
    idc = 102;
    x = 0.25; y = 0.04; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT3: Maintext
  {
    idc = 103;
    x = 0.01; y = 0.07; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT4: Maintext
  {
    idc = 104;
    x = 0.01; y = 0.09; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT5: Maintext
  {
    idc = 105;
    x = 0.01; y = 0.11; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT6: Maintext
  {
    idc = 106;
    x = 0.01; y = 0.13; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT7: Maintext
  {
    idc = 107;
    x = 0.01; y = 0.15; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT8: Maintext
  {
    idc = 108;
    x = 0.01; y = 0.17; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT9: colourtext
  {
    idc = 109;
    x = 0.01; y = 0.23; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT10: colourtext2
  {
    idc = 110;
    x = 0.42; y = 0.28; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT11: Subtitle
  {
    idc = 111;
    x = 0.01; y = 0.32; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT12: Subtitle
  {
    idc = 112;
    x = 0.01; y = 0.36; w = 1.0; h = 0.08;
    text = ;
  };


 class TXT13: Maintext
  {
    idc = 113;
    x = 0.01; y = 0.38; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT14: BIGTEXT
  {
    idc = 114;
    x = 0.25; y = 0.50; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT15: Maintext
  {
    idc = 115;
    x = 0.25; y = 0.55; w = 1.0; h = 0.08;
    text = ;
  };
};

////CLEAR BACKGROUND////////////////
class Clearscreen
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { BGS};
  class BGS : RscText
  {
     colorBackground[] = {0,0,0,.1};
     text = ;
     x = 0; y = 0; w = 1; h = 1;
  };
/////SCROLLTEXT/////////////////////////////////////////////
 
  objects[] = {};
  controls[] = {TXT1,TXT2,TXT3,TXT4,TXT5,TXT6,TXT7,TXT8,TXT9,TXT10,TXT11,TXT12,TXT13,TXT14,TXT15 };
 


 class TXT1: Maintitle
  {
    idc = 101;
    x = 0.25; y = 0.0; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT2: Subtitle
  {
    idc = 102;
    x = 0.25; y = 0.04; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT3: Maintext
  {
    idc = 103;
    x = 0.01; y = 0.07; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT4: Maintext
  {
    idc = 104;
    x = 0.01; y = 0.09; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT5: Maintext
  {
    idc = 105;
    x = 0.01; y = 0.11; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT6: Maintext
  {
    idc = 106;
    x = 0.01; y = 0.13; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT7: Maintext
  {
    idc = 107;
    x = 0.01; y = 0.15; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT8: Maintext
  {
    idc = 108;
    x = 0.01; y = 0.17; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT9: colourtext
  {
    idc = 109;
    x = 0.01; y = 0.23; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT10: colourtext2
  {
    idc = 110;
    x = 0.42; y = 0.28; w = 1.0; h = 0.08;
    text = ;
  };
 class TXT11: Subtitle
  {
    idc = 111;
    x = 0.01; y = 0.32; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT12: Subtitle
  {
    idc = 112;
    x = 0.01; y = 0.36; w = 1.0; h = 0.08;
    text = ;
  };


 class TXT13: Maintext
  {
    idc = 113;
    x = 0.01; y = 0.38; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT14: BIGTEXT
  {
    idc = 114;
    x = 0.25; y = 0.50; w = 1.0; h = 0.08;
    text = ;
  };

 class TXT15: Maintext
  {
    idc = 115;
    x = 0.25; y = 0.55; w = 1.0; h = 0.08;
    text = ;
  };
};

Notice that each class TXTn: Maintext has to be defined in both the clearscreen and the blackscreen.  If you have any questions because this isn't clear, tell me and I will try to clear it up.

-Student Pilot

EDIT:
I do notice one bug with this, when the screen switches over, any previous text is lost.  However, you should be able to work around this by creating the background, adding the previous text, and then continuing with the rest of the scrolltext.

EDIT EDIT:
Of course, if the scrolltexts for the blackscreen aren't the same as the ones for the clearscreen, there may be no point in repeating them.  I haven't tested this.
« Last Edit: 10 Aug 2005, 18:56:57 by Student Pilot »

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Description.ext
« Reply #7 on: 10 Aug 2005, 20:21:39 »
I will give this a shot when I get home. I think I understand now. I was not aware that you had to seperate everything. and end up with one for each the blankscreen and the clearscreen.  Very cool I cant wait to try it.  Thanks for your time Student pilot. Sorry for not making it clear that these were dialogs.

Killzone out!!
"Everyone dies so deal with it and move on"

                                                      ME

Offline Pilot

  • Contributing Member
  • **
Re:Description.ext
« Reply #8 on: 10 Aug 2005, 20:29:22 »
Quote
Sorry for not making it clear that these were dialogs.
The fault is mine.  I should have recognized the different format of dialogs compared to rescorces ::) :P

Good luck, I hope you get everything working.

-Student Pilot

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Description.ext
« Reply #9 on: 11 Aug 2005, 00:04:18 »
YES!!!!!  

After many many attempts on my own all resulting in failure all I can say is:

You DA man Student pilot, You DA man.  it works perfectly.  ;D  ;D

Thanks for the help. and I actually learned something. Is that allowed? :o

"Everyone dies so deal with it and move on"

                                                      ME