Jump to content
Sign in to follow this  
swatdog

Help?

Recommended Posts

Hey guys, I need help converting a description.ext that was used in one of my old missions in OFP that I would now like in ArmA. It has to do with dialogs There's quite a bit of data, but I'll post it....

I'm getting an error on activation that says:

error1bn8.jpg

And then another when I try and press a button on the dialog:

error2mc7.jpg

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class cfgSounds

{

sounds[] = { button, codefound, wrongcode,Close_end,gatemoan,open_end};

class button

{ name = "button";sound[] = {"button.ogg", db-0, 1.4}; titles[] = {0, $STRM_button};};

class codefound

{ name = "codefound";sound[] = {"codefound.ogg", db-0, 1.0}; titles[] = {0, $STRM_codefound};};

class wrongcode

{ name = "wrongcode";sound[] = {"wrongcode.ogg", db-0, 1.0}; titles[] = {0, $STRM_wrongcode};};

class Close_end

{ name = "Close_end";sound[] = {"Close_end.ogg", db-0, 1.0}; titles[] = {0, $STRM_Close_end};};

class Gatemoan

{ name = "Gatemoan";sound[] = {"Gatemoan.ogg", db-0, 1.0}; titles[] = {0, $STRM_Gatemoan};};

class Open_end

{ name = "Open_end";sound[] = {"Open_end.ogg", db-0, 1.0}; titles[] = {0, $STRM_Open_end};};

};

class cfgRadio

{

sounds[] = { };

};

class cfgMusic

{

tracks[] = { };

};

#define ST_LEFT 0

#define ST_RIGHT 1

#define ST_CENTER 2

#define CT_STATIC 0

#define ST_PICTURE 48

#define FontM "tahomaB36"

#define FontHTML "CourierNewB64"

#define FontNOTES "AudreysHandI48"

#define CT_ACTIVETEXT 11

#define CT_BUTTON 1

#define ST_FRAME 64

#define CT_EDIT 2

#define CT_COMBO 4

#define CT_LISTBOX 5

#define CT_SLIDER 3

#define ST_HPOS 0x0F

class RscText

{

type = CT_STATIC;

idc = -1;

style = ST_LEFT;

colorBackground[] = {0, 0, 0, 0};

colorText[] = {1, 1, 1, 1};

font = FontM;

sizeEx = 0.04;

};

class RscTextcode

{

type = CT_STATIC;

idc = -1;

style = ST_LEFT;

colorBackground[] = {0, 0, 0, 0};

colorText[] = {0, 0, 0, 1};

font = FontNOTES;

sizeEx = 0.04;

};

class RscPicture

{

type = CT_STATIC;

idc = -1;

style = ST_PICTURE;

colorBackground[] = {0, 0, 0, 0};

colorText[] = {1, 1, 1, 1};

font = FontM;

sizeEx = 0.04;

};

class RscActiveText

{

type = CT_ACTIVETEXT;

idc = -1;

style = ST_LEFT;

color[] = {1, 1, 1, 1};

colorActive[] = {1, 0, 0, 1};

font = FontM;

sizeEx = 0.04;

soundEnter[] = {"ui\ui_over", 0.2, 1};

soundPush[] = {, 0.2, 1};

soundClick[] = {"ui\ui_ok", 0.2, 1};

soundEscape[] = {"ui\ui_cc", 0.2, 1};

default = false;

};

class RscButton

{

type = CT_BUTTON;

idc = -1;

style = ST_CENTER;

colorText[] = {0, 0, 0, 1};

font = FontHTML;

sizeEx = 0.025;

soundPush[] = {, 0.2, 1};

soundClick[] = {"", 0.2, 1};

soundEscape[] = {"", 0.2, 1};

default = false;

};

class RscFrame

{

type = CT_STATIC;

idc = -1;

style = ST_FRAME;

colorBackground[] = {0, 0, 0, 1};

colorText[] = {1, 1, 1, 1};

font = FontM;

sizeEx = 0.04;

};

class RscEdit

{

type = CT_EDIT;

idc = -1;

style = ST_LEFT;

font = FontHTML;

sizeEx = 0.02;

colorText[] = {0, 0, 0, 0};

colorSelection[] = {0, 0, 0, 0};

autocomplete = false;

text =;

};

class RscLB_C

{

style = ST_LEFT;

idc = -1;

colorSelect[] = {0.4, 0.4, 0.4, 1};

colorSelectBackground[] = {0.2, 0.2, 0.2, 1};

colorText[] = {0.2, 0.2, 0.2, 1};

colorBackground[] = {0.4, 0.4, 0.4, 1};

font = FontHTML;

sizeEx = 0.025;

rowHeight = 0.04;

};

class RscListBox: RscLB_C

{

type = CT_LISTBOX;

};

class RscCombo: RscLB_C

{

type = CT_COMBO;

wholeHeight = 0.3;

};

class RscSliderH

{

type = CT_SLIDER;

style = ST_HPOS;

color[] = {0.2, 0.2, 0.2, 1};

idc = -1;

sizeEx = 0.025;

};

class DIALOG1

{

idd = -1;

movingEnable = true;

controlsBackground[] = {DLG_BACK1, Codepadfrrame};

objects[] = { };

controls[] = {CODEPAD,paper,CODE,led_green,led_red, display, digit7, digit8, digit9, digit4, digit5, digit6, digit1, digit2, digit3, digit0, digit_R, digit_X};

class DLG_BACK1: RscText

{

colorBackground[] = {0.4, 0.4, 0.4, 1};

text =;

x = 0.375;

y = 0.25;

w = 0.2;

h = 0.4;

};

class Codepadfrrame : RscText

{

x = 0.34

y = 0.25

idc = -1

w = 0.2

h = 0.4

style = ST_FRAME

colorText[] = {0, 0, 0, 0};

colorBackground[] = {1, 1, 1,0};

SizeEX = 0.025

text = ""

};

class display : RscEdit

{

x = 0.405

y = 0.3083

idc = 999

w = 0.14

h = 0.04

style = ST_LEFT

colorText[] = {0.9,0.9,0.9, 0.65};

font = "tahomaB36"

SizeEX = 0.02

colorSelect[] = {0, 0, 0, 0};

};

class digit7 : RscButton

{

x = 0.435

y = 0.43

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "7"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),7];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit8 : RscButton

{

x = 0.465

y = 0.43

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "8"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),8];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit9 : RscButton

{

x = 0.495

y = 0.43

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "9"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),9];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit4 : RscButton

{

x = 0.435

y = 0.47

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "4"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),4];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit5 : RscButton

{

x = 0.465

y = 0.47

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "5"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),5];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit6 : RscButton

{

x = 0.495

y = 0.47

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "6"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),6];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit1 : RscButton

{

x = 0.435

y = 0.51

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "1"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),1];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit2 : RscButton

{

x = 0.465

y = 0.51

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "2"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),2];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit3 : RscButton

{

x = 0.495

y = 0.51

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "3"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),3];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit0 : RscButton

{

x = 0.435

y = 0.55

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "0"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),0];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit_X : RscButton

{

x = 0.465

y = 0.55

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "*"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),{*}];ctrlSetText [999,num];playsound ""button"""

default = false

};

class digit_R : RscButton

{

x = 0.495

y = 0.55

idc = -1

w = 0.025

h = 0.035

style = ST_CENTER

colorText[] = {0, 0, 0, 1};

font = "CourierNewB64"

SizeEX = 0.025

text = "#"

action = "Keypad_num = Keypad_num +1;num=format [{%1%2},(ctrlText 999),{#}];ctrlSetText [999,num];playsound ""button"""

default = false

};

class CODEPAD : RscPicture

{

idc = 501;

text = "Pics\codepad.paa";

x = 0.343;y = 0.228;w = 0.27;h = 0.454;

};

class Paper : RscPicture

{

idc = 599;

text = "Pics\paper.paa";

x = 0.343;y = 0.628;w = 0.27;h = 0.154;

};

class led_green : RscPicture

{

idc = 598;

text = "Pics\led_green.paa";

x = 0.468;y = 0.387;w = 0.01;h = 0.012;

};

class led_red : RscPicture

{

idc = 597;

text = "Pics\led_red.paa";

x = 0.48;y = 0.387;w = 0.01;h = 0.012;

};

class CODE : RscTextcode

{

idc = 600;

text = "";

x = 0.21;y = 0.7;w = 0.5;h = 0.032;

style = ST_CENTER;

};

};

Thanks a lot...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×