Teraz jest Cz 16 kwi, 2026 19:42


Problem z description.ext

Archiwum działów sekcji Operation Flashpoint
  • Autor
  • Wiadomość
Offline

Oscypek

Major

Major

  • Posty: 858
  • Dołączył(a): Pn 01 lis, 2004 12:12
  • Lokalizacja: Maków Podhalański

Problem z description.ext

PostSo 02 kwi, 2005 14:48

Mam problem z description.ext

Kod: Zaznacz cały
onloadmission = "";
debriefing = 0;
briefing = 0;

#define FontS "tahomaB24"
#define FontM "tahomaB36"
#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 RscObject
{
type = CT_OBJECT;
scale = 1.0;
direction[] = {0, 0, 1};
up[] = {0, 1, 0};
};

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

class RscTitles
{

   titles[]={oman1,oman2,Text1t};
   
   class oman1
   {
        idd=-1;
        movingEnable=0;
        duration=6; 
        fadein=2;   
      fadeout=2;
        name="oman1";
        controls[]={"oman1"};
        
        class oman1 : RscStdText
        {
             style=48;
             text="o1.jpg";
             x=0.35;
             y=0.35;
             w=0.25;
             h=0.30;
        };
   };
   class oman2
   {
        idd=-1;
        movingEnable=0;
        duration=6; 
        fadein=2;   
      fadeout=2;
        name="oman2";
        controls[]={"oman2",};
        
        class oman2 : RscStdText
        {
             style=48;
             text="o2.jpg";
             x=0.35;
             y=0.35;
             w=0.25;
             h=0.30;
};
};
class Text1
{
name = "Text1";
duration =10;
idd = -1;
movingEnable = false;

controls[]=
{
name1
};
class name1 : RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
lineSpacing = 1.0;
text = "DFiO \n Delta Force in Oman";
x = 0.0; y = 0.76; w = 1.0; h = 0.1;
colorText[] = {1.0, 0.0, 0.0, 1};
font = FontBOOK;
sizeEx = 0.5 * 0.05;
size = 0.6;
};
};


description na podstawie postu Wikinga
Ciągle mnie wywala na pulpit - gdzieś coś brakuje czy jak ?
Offline
Avatar użytkownika

Czapa

Chorąży

Chorąży

  • Posty: 183
  • Dołączył(a): N 30 sty, 2005 20:32
  • Lokalizacja: Zabrze

PostN 03 kwi, 2005 10:57

Pod koniec skryptu gdzie pisze namel to pod nim jest tylko jeden "{". Może to o to chodzi :???:
Obrazek
Offline

Oscypek

Major

Major

  • Posty: 858
  • Dołączył(a): Pn 01 lis, 2004 12:12
  • Lokalizacja: Maków Podhalański

PostWt 05 kwi, 2005 14:51

Wiking podesłał mi działające description.ext (To podane w innym topicku ponoć jest wadliwe)
Problem został zażegnany dzięki podesłanemu przez Wikinga działającego pliku.
Więc pozwole sobie je wkleić :

onloadmission = "Kilka minut później..."
debriefing = 1
showWatch = 1
showCompass = 1
showNotepad = 1
showGPS = 0
showMap = 1


class CfgIdentities
{
class Fuller
{
name = "John Fuller";
face = "Face4";
glasses = "none";
speaker = "Marc";
pitch = 1;
};
};

class weapons
{
class garand {count = 1;};
class springfield {count = 1;};
class thompson {count = 1;};
class bar {count = 1;};
class m9 {count = 1;};
class kar {count = 1;};
class mp40 {count = 2;};
class stgw44 {count = 3;};
};
class Magazines
{
class garandmag {count = 10;};
class springfieldmag {count = 10;};
class thompsonmag {count = 10;};
class barMag {count = 10;};
class m9rock {count = 5;};
class karmag {count = 50;};
class stgw44mag {count = 50;};
class mp40mag {count = 12;};
};

class CfgMusic
{
tracks[]={};

class Marlene
{
name = "Marlene";
sound[] = {\music\marlene.ogg, db+0, 1.0};
};
class Panzergrenadiere
{
name = "Panzergrenadiere";
sound[] = {\music\panzergrenadiere.ogg, db+0, 1.0};
};
};

#define FontS "tahomaB24"
#define FontM "tahomaB36"
#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 RscObject
{
type = CT_OBJECT;
scale = 1.0;
direction[] = {0, 0, 1};
up[] = {0, 1, 0};
};

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

class RscTitles
{


class Text1
{
name = "Text1";
duration =12;
idd = -1;
movingEnable = false;

controls[]=
{
name1
};
class name1 : RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
lineSpacing = 1.0;
text = "Everon\nPod okupacją oddziałów Wehrmachtu.";
x = 0.0; y = 0.76; w = 1.0; h = 0.1;
colorText[] = {1.0, 1.0, 1.0, 1};
font = FontBOOK;
sizeEx = 0.5 * 0.05;
size = 0.6;
};
};
};

Powrót do Operation Flashpoint

Kto przegląda forum

Użytkownicy przeglądający ten dział: Brak zidentyfikowanych użytkowników i 8 gości