Home   Help Search Login Register  

Author Topic: Can't get writing to appear [SOLVED]  (Read 950 times)

0 Members and 1 Guest are viewing this topic.

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Can't get writing to appear [SOLVED]
« on: 04 Mar 2010, 21:06:56 »
Ello guys

For some reason I cant get my custom text to appear in the game. I need black writing to appear in my intro. Is this description.ext correct? cuz when i try it in my intro the writing doesnt appear.

Code: [Select]
#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

// -----------------------------
// Predefined control templates
// -----------------------------

// 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;
};
};


// -----------------------------
// Your own classes will be here (this is the section you can modify yourself)
// -----------------------------

class SubText
{
type = CT_STATIC;
idc = -1;
style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
lineSpacing = 1.0;
x = 0.05; y = 0.88; w = 0.9; h = 0.12;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {0.94, 0.58, 0.05, 1};
font = FontP;
size = 0.75;
};

class IntroText : SubText
{
// colorText[] = {0.13, 0.13, 0.87, 1};
colorText[] = {0.13, 0.13, 0.87, 1};

};

class RscTitles
{
class IntroAuthor
{
name = "";
duration = 9.4;
idd = -1;
movingEnable = false;

controls[]={name1};

class name1 : SubText
{
text = "Gruntage presents...";
x = 0.15; y = 0.40; w = 0.7; h = 0.4;
font = "H1";
size = 1.5;
};
};
class IntroTitle
{
name = "";
duration = 5.9;
idd = -1;
movingEnable = false;

controls[]={name2};

class name2 : SubText
{
text = "MyTitle";
x = 0.15; y = 0.40; w = 0.7; h = 0.4;
font = "H1";
size = 1.5;
};
};
};

Im using the titlersc command in my script like this:

Code: [Select]
titleRsc ["IntroAuthor","plain",1]

~7

titleRsc ["IntroTitle","plain",1]

Could this be the prob?

Just cant get my head round it  :confused:

Thx in advance

Gruntage
« Last Edit: 06 Mar 2010, 14:27:25 by Gruntage »
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Can't get writing to appear
« Reply #1 on: 06 Mar 2010, 12:11:04 »
You need to give them names, i.e.

Code: [Select]
class IntroAuthor
{
name = "IntroAuthor";
duration = 9.4;
idd = -1;
movingEnable = false;

controls[]={name1};

class name1 : SubText
{
text = "Gruntage presents...";
x = 0.15; y = 0.40; w = 0.7; h = 0.4;
font = "H1";
size = 1.5;
};
};

Also not too sure the font needs "" around it, don't quote me on that though ;)
« Last Edit: 06 Mar 2010, 12:12:38 by bedges »

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Can't get writing to appear [SOLVED]
« Reply #2 on: 06 Mar 2010, 14:26:56 »
lol thx for ur help bedges. got it working now

topic solved
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba