ElDubya Posted November 19, 2014 Report Share Posted November 19, 2014 Maybe it's just late at night or I haven't had enough coffee or something but this error : ErrorMessage: File mpmissions\DayZ_Epoch_11.Chernarus\plm\transport\dlg_vehicle_content.h, line 3: Config: '{' after class PLM_dlg_vehicle_content Has me stumped. The answer is probably staring me right in the face, but I can't see it ..... Please help ..... lol /** * Interface to display the contents of the vehicle * * Copyright (C) 2014 OneManGang * * This program is free software under the terms of the GNU General Public License version 3. * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "dlg_constants.h" class PLM_dlg_vehicle_content { idd = PLM_IDD_dlg_vehicle_contents; name = "PLM_dlg_vehicle_content"; movingEnable = false; controlsBackground[] = {R3F_LOG_dlg_CV_arriere_plan}; objects[] = {}; controls[] = { R3F_LOG_dlg_CV_titre, R3F_LOG_dlg_CV_capacite_vehicule, R3F_LOG_dlg_CV_liste_contenu, R3F_LOG_dlg_CV_credits, R3F_LOG_dlg_CV_btn_decharger, R3F_LOG_dlg_CV_btn_fermer }; // Définition des classes de base class R3F_LOG_dlg_CV_texte { idc = -1; type = CT_STATIC; style = ST_LEFT; x = 0.0; w = 0.3; y = 0.0; h = 0.03; sizeEx = 0.023; colorBackground[] = {0.5, 0.5, 0.5, 0}; colorText[] = {0.85, 0.85, 0.85, 1}; font = "Zeppelin32"; text = ""; }; class R3F_LOG_dlg_CV_btn { idc = -1; type = 16; style = 0; text = "btn"; action = ""; x = 0; y = 0; w = 0.23; h = 0.11; size = 0.03921; sizeEx = 0.03921; color[] = {0.543, 0.5742, 0.4102, 1.0}; color2[] = {0.95, 0.95, 0.95, 1}; colorBackground[] = {1, 1, 1, 1}; colorbackground2[] = {1, 1, 1, 0.4}; colorDisabled[] = {1, 1, 1, 0.25}; periodFocus = 1.2; periodOver = 0.8; class HitZone { left = 0.004; top = 0.029; right = 0.004; bottom = 0.029; }; class ShortcutPos { left = 0.0145; top = 0.026; w = 0.0392157; h = 0.0522876; }; class TextPos { left = 0.05; top = 0.034; right = 0.005; bottom = 0.005; }; textureNoShortcut = ""; animTextureNormal = "\ca\ui\data\ui_button_normal_ca.paa"; animTextureDisabled = "\ca\ui\data\ui_button_disabled_ca.paa"; animTextureOver = "\ca\ui\data\ui_button_over_ca.paa"; animTextureFocused = "\ca\ui\data\ui_button_focus_ca.paa"; animTexturePressed = "\ca\ui\data\ui_button_down_ca.paa"; animTextureDefault = "\ca\ui\data\ui_button_default_ca.paa"; period = 0.4; font = "Zeppelin32"; soundEnter[] = {"\ca\ui\data\sound\mouse2", 0.09, 1}; soundPush[] = {"\ca\ui\data\sound\new1", 0.09, 1}; soundClick[] = {"\ca\ui\data\sound\mouse3", 0.07, 1}; soundEscape[] = {"\ca\ui\data\sound\mouse1", 0.09, 1}; class Attributes { font = "Zeppelin32"; color = "#E5E5E5"; align = "left"; shadow = "true"; }; class AttributesImage { font = "Zeppelin32"; color = "#E5E5E5"; align = "left"; shadow = "true"; }; }; class R3F_LOG_dlg_CV_liste { type = CT_LISTBOX; style = ST_LEFT; idc = -1; text = ""; w = 0.275; h = 0.04; colorSelect[] = {1, 1, 1, 1}; colorText[] = {1, 1, 1, 1}; colorBackground[] = {0.8,0.8,0.8,1}; colorSelectBackground[] = {0, 0, 0, 1}; colorScrollbar[] = {0.2, 0.2, 0.2, 1}; arrowEmpty = "\ca\ui\data\ui_arrow_combo_ca.paa"; arrowFull = "\ca\ui\data\ui_arrow_combo_active_ca.paa"; wholeHeight = 0.45; rowHeight = 0.06; color[] = {0.8, 0.8, 0.8, 1}; colorActive[] = {0,0,0,1}; colorDisabled[] = {0,0,0,0.3}; font = "Zeppelin32"; sizeEx = 0.035; soundSelect[] = {"",0.1,1}; soundExpand[] = {"",0.1,1}; soundCollapse[] = {"",0.1,1}; maxHistoryDelay = 1; autoScrollSpeed = -1; autoScrollDelay = 5; autoScrollRewind = 0; class ScrollBar { color[] = {1, 1, 1, 0.6}; colorActive[] = {1, 1, 1, 1}; colorDisabled[] = {1, 1, 1, 0.3}; thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa"; arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa"; arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa"; border = "\ca\ui\data\ui_border_scroll_ca.paa"; }; }; // FIN Définition des classes de base class R3F_LOG_dlg_CV_arriere_plan { idc = -1; type = CT_STATIC; style = ST_PICTURE; x = 0.25; w = 0.5; y = 0.1; h = 0.8; colorText[] = {1, 1, 1, 1}; colorBackground[] = {0,0,0,0}; text = "\ca\ui\data\ui_gameoptions_background_ca.paa"; font = "Zeppelin32"; sizeEx = 0.032; }; class R3F_LOG_dlg_CV_titre : R3F_LOG_dlg_CV_texte { idc = PLM_dlg_VC_btn_title; x = 0.28; w = 0.4; y = 0.125; h = 0.05; sizeEx = 0.05; text = ""; }; class R3F_LOG_dlg_CV_capacite_vehicule : R3F_LOG_dlg_CV_texte { idc = PLM_IDC_dlg_VC_vehicle_capacity; x = 0.255; w = 0.4; y = 0.185; h = 0.03; sizeEx = 0.03; text = ""; }; class R3F_LOG_dlg_CV_liste_contenu : R3F_LOG_dlg_CV_liste { idc = PLM_IDC_dlg_VC_contents; x = 0.26; w = 0.45; y = 0.22; h = 0.44; onLBDblClick = "execVM ""PLM\transport\unload.sqf"";"; }; class R3F_LOG_dlg_CV_credits : R3F_LOG_dlg_CV_texte { idc = PLM_dlg_VC_credits; x = 0.250; w = 0.19; y = 0.737; h = 0.02; sizeEx = 0.02; colorText[] = {0.5, 0.5, 0.5, 0.75}; text = ""; }; class R3F_LOG_dlg_CV_btn_decharger : R3F_LOG_dlg_CV_btn { idc = PLM_IDC_dlg_VC_btn_unload; x = 0.355; w = 0.18; y = 0.66; sizeEx = 0.02; text = ""; action = "execVM ""PLM\transport\unload.sqf"";"; }; class R3F_LOG_dlg_CV_btn_fermer : R3F_LOG_dlg_CV_btn { idc = PLM_dlg_VC_btn_close; x = 0.537; w = 0.16; y = 0.66; text = ""; action = "closeDialog 0;"; }; }; Link to comment Share on other sites More sharing options...
0 Sandbird Posted November 19, 2014 Report Share Posted November 19, 2014 Maybe something wrong is happening in #include "dlg_constants.h". Like some bracket is missing or something. Your class looks fine to me Link to comment Share on other sites More sharing options...
0 ElDubya Posted November 19, 2014 Author Report Share Posted November 19, 2014 /** * Constants to make the definitions of dialog boxes more readable and maintainable */ #define PLM_transport_vehicle_START 65430 #define PLM_IDD_dlg_vehicle_contents (PLM_transport_vehicle_START + 1) #define PLM_IDC_dlg_VC_vehicle_capacity (PLM_transport_vehicle_START + 2) #define PLM_IDC_dlg_VC_contents (PLM_transport_vehicle_START + 3) #define PLM_IDC_dlg_VC_btn_unload (PLM_transport_vehicle_START + 4) #define PLM_dlg_VC_btn_title (PLM_transport_vehicle_START + 10) #define PLM_dlg_VC_credits (PLM_transport_vehicle_START + 11) #define PLM_dlg_VC_btn_close (PLM_transport_vehicle_START + 12) // Control types #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_STRUCTURED_TEXT 13 #define CT_CONTEXT_MENU 14 #define CT_CONTROLS_GROUP 15 #define CT_SHORTCUT_BUTTON 16 // Arma 2 - textured button #define CT_XKEYDESC 40 #define CT_XBUTTON 41 #define CT_XLISTBOX 42 #define CT_XSLIDER 43 #define CT_XCOMBO 44 #define CT_ANIMATED_TEXTURE 45 #define CT_OBJECT 80 #define CT_OBJECT_ZOOM 81 #define CT_OBJECT_CONTAINER 82 #define CT_OBJECT_CONT_ANIM 83 #define CT_LINEBREAK 98 #define CT_USER 99 #define CT_MAP 100 #define CT_MAP_MAIN 101 #define CT_List_N_Box 102 // Arma 2 - N columns list box // Static styles #define ST_POS 0x0F #define ST_HPOS 0x03 #define ST_VPOS 0x0C #define ST_LEFT 0x00 #define ST_RIGHT 0x01 #define ST_CENTER 0x02 #define ST_DOWN 0x04 #define ST_UP 0x08 #define ST_VCENTER 0x0c #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 0x100 #define ST_NO_RECT 0x200 #define ST_KEEP_ASPECT_RATIO 0x800 #define ST_TITLE ST_TITLE_BAR + ST_CENTER // Slider styles #define SL_DIR 0x400 #define SL_VERT 0 #define SL_HORZ 0x400 #define SL_TEXTURES 0x10 // Listbox styles #define LB_TEXTURES 0x10 #define LB_MULTI 0x20 To my very untrained eye, that looks right too? Link to comment Share on other sites More sharing options...
0 raymix Posted November 19, 2014 Report Share Posted November 19, 2014 (edited) You can only open squiggly brackets when actually defining or inheriting a class... line #11 controls[] = { R3F_LOG_dlg_CV_titre, Should be something like: controls[] = class defineClassHere { R3F_LOG_dlg_CV_titre, edit: nevermind I'm an idiot... that's an array hmm.. everything else looks fine in both files Edited November 19, 2014 by raymix Sandbird 1 Link to comment Share on other sites More sharing options...
0 ElDubya Posted November 20, 2014 Author Report Share Posted November 20, 2014 It's weird too, those are two files I have never altered. I manually stopped the server, restarted it and it threw that error at me. Have uploaded backup files and fixed the issue but I just found it odd. Thanks for the help anyway, appreciate it. Link to comment Share on other sites More sharing options...
Question
ElDubya
Maybe it's just late at night or I haven't had enough coffee or something but this error :
ErrorMessage: File mpmissions\DayZ_Epoch_11.Chernarus\plm\transport\dlg_vehicle_content.h, line 3: Config: '{' after class PLM_dlg_vehicle_content
Has me stumped. The answer is probably staring me right in the face, but I can't see it ..... Please help ..... lol
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now