PBrechler 0 Posted October 2, 2003 Hi! Whats wrong with this Description?? PLEASE HELP ME!! email: PBrechler@aol.com DOWNLOAD Share this post Link to post Share on other sites
RED 0 Posted October 2, 2003 What error does it give you? Knowing this will tell people what to look for. RED Share this post Link to post Share on other sites
PBrechler 0 Posted October 2, 2003 smth. with { isteat of = Share this post Link to post Share on other sites
RED 0 Posted October 2, 2003 This section is very messed up: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class DlgSecurityCam { idd = -1; movingEnable = true; controlsBackground[]= { Dialog_background, Cross1, Cross2, Cross3, Cross4} }; class Dialog_background : RscPicture { idc = 500; x = 0; y = 0; w = 1; h = 1; text = "textures\BackGround.paa"; }; class Cross1 : RscPicture { idc = 601; x = 0.5; y = 0.4; w = 0.002; h = 0.09; text = "textures\black.paa"; }; class Cross2 : RscPicture { idc = 602; x = 0.5; y = 0.5; w = 0.002; h = 0.09; text = "textures\black.paa"; }; class Cross3 : RscPicture { idc = 603; x = 0.41; y = 0.495; w = 0.08; h = 0.002; text = "textures\black.paa"; }; class Cross4 : RscPicture { idc = 604; x = 0.51; y = 0.495; w = 0.08; h = 0.002; text = "textures\black.paa"; }; objects[]= {}; controls[]= { Exit, Camera1, Camera2, Camera3, Camera4, Camera5, Camera6, Camera7, Camera8, Cam_loc1, Cam_loc2, Cam_loc3, Cam_loc4, Cam_loc5, Cam_loc6, Cam_loc7, Cam_loc8, Cam_loc1a, Cam_loc2a, Cam_loc3a, Cam_loc4a, Cam_loc5a, Cam_loc6a, Cam_loc7a, Cam_loc8a }; Actually looking at it, most of the description.ext is incorrect (curly brackets missing, duplicate classes etc) I suggest redoing the whole thing, take a look at vektorbosons Dialog tutorial. RED Share this post Link to post Share on other sites
PBrechler 0 Posted October 2, 2003 Actually I have to make 2 Descritions to 1. Maybe im to stupid for this so please help me!! These are the links to the 2 Descriptions: No. 1 No. 2 Thx Share this post Link to post Share on other sites
RED 0 Posted October 2, 2003 If you reckon they both work then this is the merged one: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> // description.ext of Strategic Commando Force // see http://home.arcor.de/vektorboson for news // or email vektorboson@gmx.de // original from BIS, modified by vektorboson // thanks to KTottE for some hints // Control types Respawn = "BASE"; RespawnDelay = 10; #include <DragonWarrior\resource.cpp> #define CT_STATIC 0 #define CT_BUTTON 1 #define CT_EDIT 2 #define CT_SLIDER 3 #define CT_COMBO 4 #define CT_LISTBOX 5 #define CT_TOOLBOX 6 #define CT_CHECKBOXES 7 #define CT_PROGRESS 8 #define CT_HTML 9 #define CT_STATIC_SKEW 10 #define CT_ACTIVETEXT 11 #define CT_TREE 12 #define CT_3DSTATIC 20 #define CT_3DACTIVETEXT 21 #define CT_3DLISTBOX 22 #define CT_3DHTML 23 #define CT_3DSLIDER 24 #define CT_3DEDIT 25 #define CT_OBJECT 80 #define CT_OBJECT_ZOOM 81 #define CT_OBJECT_CONTAINER 82 #define CT_OBJECT_CONT_ANIM 83 #define CT_USER 99 // Static styles #define ST_HPOS 0x0F #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_TYPE 0xF0 #define ST_SINGLE 0 #define ST_MULTI 16 #define ST_TITLE_BAR 32 #define ST_PICTURE 48 #define ST_FRAME 64 #define ST_BACKGROUND 80 #define ST_GROUP_BOX 96 #define ST_GROUP_BOX2 112 #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 #define ST_TITLE ST_TITLE_BAR + ST_CENTER // Predefined controls #define IDC_OK 1 #define IDC_CANCEL 2 // Fonts #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" // Vektorboson Colors #define VB_LB_TXC 0.2, 0.2, 0.2, 1 #define VB_LB_STXC 0.4, 0.4, 0.4, 1 #define VB_T_LC 1, 1, 1, 0.75 #define VB_FR_BGC 0.4, 0.4, 0.4, 0.75 class RscText { type = CT_STATIC; idc = -1; style = ST_LEFT; h = 0.04; colorBackground[] = {0, 0, 0, 0}; colorText[] = {1,1,1,1}; font = FontHTML; sizeEx = 0.022; }; class RscPicture : RscText { style = ST_PICTURE; }; class RscEdit { type = CT_EDIT; idc = -1; style = ST_LEFT; font = FontHTML; sizeEx = 0.02; colorText[] = {0, 0, 0, 1}; colorSelection[] = {0.5, 0.5, 0.5, 1}; autocomplete = false; text =; }; // from here added by vektorboson class RscFrame { type = CT_STATIC; idc = -1; style = ST_FRAME; colorBackground[] = {VB_LB_STXC}; colorText[] = {VB_LB_TXC}; font = FontHTML; sizeEx = 0.02; } class RscButton { type = CT_BUTTON; idc = -1; style = ST_CENTER; colorText[] = {1, 1, 1, 0.75}; sizeEx = 0.025; font = FontHTML; soundPush[] = { , 0.2, 1}; soundClick[] = {"ui\ui_ok", 0.2, 1}; soundEscape[] = {"ui\ui_cc", 0.2, 1}; }; // from here BIS class RscActiveText { type = CT_ACTIVETEXT; style = ST_LEFT; color[] = {0, 0, 0, 1}; colorActive[] = {1, 1, 1, 1}; font = FontMAIN; sizeEx = 0.05; 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 RscLB_C { style = ST_LEFT; idc = -1; colorSelect[] = {0.2, 0.2, 0.2, 1}; colorSelectBackground[] = {0.4, 0.4, 0.4, 1}; colorText[] = {0, 0, 0, 1}; colorBackground[] = {0.5, 0.5, 0.5, 1}; font = FontHTML; sizeEx = 0.025; rowHeight = 0.04; }; class RscActiveMenu : RscActiveText { color[] = {1, 1, 1, 1}; colorActive[] = {1, 1, 0, 1}; font = FontTITLEHalf; sizeEx = 0.05; default = false; }; class RscCombo : RscLB_C { type = CT_COMBO; wholeHeight = 0.3; }; class DlgSecurityCam { idd = -1; movingEnable = true; controlsBackground[]= { Dialog_background, Cross1, Cross2, Cross3, Cross4 }; class Dialog_background : RscPicture { idc = 500; x = 0; y = 0; w = 1; h = 1; text = "textures\BackGround.paa"; }; class Cross1 : RscPicture { idc = 601; x = 0.5; y = 0.4; w = 0.002; h = 0.09; text = "textures\black.paa"; }; class Cross2 : RscPicture { idc = 602; x = 0.5; y = 0.5; w = 0.002; h = 0.09; text = "textures\black.paa"; }; class Cross3 : RscPicture { idc = 603; x = 0.41; y = 0.495; w = 0.08; h = 0.002; text = "textures\black.paa"; }; class Cross4 : RscPicture { idc = 604; x = 0.51; y = 0.495; w = 0.08; h = 0.002; text = "textures\black.paa"; }; objects[]= {}; controls[]= { Exit, Camera1, Camera2, Camera3, Camera4, Camera5, Camera6, Camera7, Camera8, Cam_loc1, Cam_loc2, Cam_loc3, Cam_loc4, Cam_loc5, Cam_loc6, Cam_loc7, Cam_loc8, Cam_loc1a, Cam_loc2a, Cam_loc3a, Cam_loc4a, Cam_loc5a, Cam_loc6a, Cam_loc7a, Cam_loc8a }; class cam_loc1 : RscText { idc = 400; text =; x = 0.19; y = 0.025; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc1a : RscText { idc = 401; text =; x = 0.19; y = 0.045; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc2 : RscText { idc = 402; text =; x = 0.19; y = 0.105; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc2a : RscText { idc = 403; text =; x = 0.19; y = 0.125; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc3 : RscText { idc = 404; text =; x = 0.19; y = 0.185; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc3a : RscText { idc = 405; text =; x = 0.19; y = 0.205; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc4 : RscText { idc = 406; text =; x = 0.19; y = 0.265; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc4a : RscText { idc = 407; text =; x = 0.19; y = 0.285; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc5 : RscText { idc = 408; text =; x = 0.19; y = 0.345; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc5a : RscText { idc = 409; text =; x = 0.19; y = 0.365; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc6 : RscText { idc = 410; text =; x = 0.19; y = 0.425; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc6a : RscText { idc = 411; text =; x = 0.19; y = 0.445; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc7 : RscText { idc = 412; text =; x = 0.19; y = 0.505; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc7a : RscText { idc = 413; text =; x = 0.19; y = 0.525; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc8 : RscText { idc = 414; text =; x = 0.19; y = 0.585; w = 0.5; h = 0.032; style = ST_LEFT; }; class cam_loc8a : RscText { idc = 415; text =; x = 0.19; y = 0.605; w = 0.5; h = 0.032; style = ST_LEFT; }; class Exit : RscButton { idc = 600; text = "Exit"; x = 0.835; y = 0.94; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""cam_destroy\terminatecam_all.sqs"""; }; class Camera1 : RscButton { idc = 601; text = "Camera 1"; x = 0.1; y = 0.025; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script1.sqs"""; }; class Camera2 : RscButton { idc = 602; text = "Camera 2"; x = 0.1; y = 0.105; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script2.sqs"""; }; class Camera3 : RscButton { idc = 603; text = "Camera 3"; x = 0.1; y = 0.185; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script3.sqs"""; }; class Camera4 : RscButton { idc = 604; text = "Camera 4"; x = 0.1; y = 0.265; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script4.sqs"""; }; class Camera5 : RscButton { idc = 605; text = "Camera 5"; x = 0.1; y = 0.345; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script5.sqs"""; }; class Camera6 : RscButton { idc = 606; text = "Camera 6"; x = 0.1; y = 0.425; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script6.sqs"""; }; class Camera7 : RscButton { idc = 607; text = "Camera 7"; x = 0.1; y = 0.505; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script7.sqs"""; }; class Camera8 : RscButton { idc = 608; text = "Camera 8"; x = 0.1; y = 0.585; w = 0.086; h = 0.035; sizeEx = 0.022; action = "[] exec ""rotate_scripts\rotate_script8.sqs"""; }; }; class DlgSatellite { idd = -1; movingEnable = true; controlsBackground[]= { SAT_CAM_BG1, SAT_CAM_BG2, SAT_CAM_BG3, SAT_CAM_BG4, SAT_CAM_DOT, SAT_CAM_MARKER, SAT_CAM_NOISE, SAT_CAM_MONITOR, SAT_CAM_TRACKING }; class SAT_CAM_TRACKING : RscText { idc = 224; text = $STR_UI_TRACKING; x = 0.12; y = 0.12; w = 0.1; h = 0.032; }; class SAT_CAM_BG1 : RscText { x = 0.0; y = 0.0; w = 1; h = 0.1; text =; colorBackground[] = {VB_LB_TXC}; }; class SAT_CAM_BG2 : RscText { x = 0; y = 0; w = 0.1; h = 1; text =; colorBackground[] = {VB_LB_TXC}; }; class SAT_CAM_BG3 : RscText { x = 0.9; y = 0; w = 0.1; h = 1; text =; colorBackground[] = {VB_LB_TXC}; }; class SAT_CAM_BG4 : RscText { x = 0; y = 0.9; w = 1; h = 0.1; text =; colorBackground[] = {VB_LB_TXC}; }; class SAT_CAM_DOT : RscPicture { idc = 200; x = 0.865; y = 0.865; w = 0.015; h = 0.02; text = "images\dot3.paa"; }; class SAT_CAM_MARKER : RscPicture { x = 0.45; y = 0.45; w = 0.1;h = 0.133; text = "images\target.paa"; }; class SAT_CAM_NOISE : RscPicture { idc = 225; x = 0.1; y = 0.1;w = 0.8; h = 0.8; text = ""; }; class SAT_CAM_MONITOR : RscPicture { x = 0.1; y = 0.1;w = 0.8; h = 0.8; text = "images\zeilen2.paa"; }; objects[]= {}; controls[]= { SAT_CAM_ZOOM_SLIDER, SAT_CAM_ZOOM_LBL,SAT_CAM_PUSHLEFT,SAT_CAM_PUSHRIGHT, SAT_CAM_PUSHUP,SAT_CAM_PUSHDOWN,SAT_CAM_SHUTDOWN,SAT_CAM_TRACK, SAT_CAM_END_TRACK,SAT_CAM_ZOOM }; class SAT_CAM_ZOOMIN : RscActiveMenu { idc = 206; text = $STR_UI_ZOOMIN; x = 0.08; y = 0.02; w = 0.1; h = 0.032; sizeEx = 0.032; action = "[6] exec ""satellite\adjustCamera.sqs"""; }; class SAT_CAM_ZOOMOUT : RscActiveMenu { idc = 207; text = $STR_UI_ZOOMOUT; x = 0.18; y = 0.02; w = 0.1; h = 0.032; sizeEx = 0.032; action = "[7] exec ""satellite\adjustCamera.sqs"""; }; class SAT_CAM_ZOOM_SLIDER : RscSliderH { idc = 206; x = 0.7; y = 0.02; w = 0.28; h = 0.04; color[] = {1,1,1,1}; }; class SAT_CAM_ZOOM_LBL : RscText { text = "IN << Zoom >> OUT"; style = ST_CENTER; x = 0.7; y = 0.06; w = 0.28; h = 0.04; }; class SAT_CAM_PUSHLEFT : RscActiveMenu { idc = 216; text = $STR_UI_LEFT; x = 0.375;y = 0.04;w = 0.05;h = 0.032; sizeEx = 0.032; action = "[0] exec ""satellite\adjustCamera.sqs"""; }; class SAT_CAM_PUSHRIGHT : RscActiveMenu { idc = 217; text = $STR_UI_RIGHT; x = 0.475;y = 0.04;w = 0.05;h = 0.032; sizeEx = 0.032; action = "[1] exec ""satellite\adjustCamera.sqs"""; }; class SAT_CAM_PUSHUP : RscActiveMenu { idc = 218; text = $STR_UI_UP; x = 0.425;y = 0.02;w = 0.05;h = 0.032; sizeEx = 0.032; action = "[2] exec ""satellite\adjustCamera.sqs"""; }; class SAT_CAM_PUSHDOWN : RscActiveMenu { idc = 219; text = $STR_UI_DOWN; x = 0.425;y = 0.06;w = 0.05;h = 0.032; sizeEx = 0.032; action = "[3] exec ""satellite\adjustCamera.sqs"""; }; class SAT_CAM_SHUTDOWN : RscActiveMenu { idc = 220; text = $STR_UI_SHUTDOWN; x = 0.9;y = 0.95;w = 0.07;h = 0.032; sizeEx = 0.032; action = "[5] exec ""satellite\adjustCamera.sqs""; closeDialog 0"; }; class SAT_CAM_TRACK : RscActiveMenu { idc = 221; text = $STR_UI_TRACK; x = 0.1;y = 0.95;w = 0.2;h = 0.032; sizeEx = 0.032; action = "[] exec ""satellite\trackObject.sqs""" }; class SAT_CAM_END_TRACK : RscActiveMenu { idc = 222; text = $STR_UI_STOP_TRACK; x = 0.3;y = 0.95;w = 0.2;h = 0.032; sizeEx = 0.032; action = "SAT_stopTrack = true"; }; class SAT_CAM_ZOOM : RscText { idc = 223; text =; x = 0.85;y = 0.03;w = 0.1;h = 0.032; style = ST_RIGHT; }; }; Share this post Link to post Share on other sites
PBrechler 0 Posted October 2, 2003 sry but it does'nt work. I get this error message: Share this post Link to post Share on other sites
raedor 8 Posted October 2, 2003 add this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class RscSliderH { type = CT_SLIDER; style = ST_HPOS; color[] = {0.2, 0.2, 0.2, 1}; idc = -1; sizeEx = 0.025; };after class RscCombo p.s.: ah, plätzchendachs, du hier? =) Share this post Link to post Share on other sites