Jump to content
Sign in to follow this  
liKe`-

Config : some input after EndOfFile

Recommended Posts

Hello guys,

I have a little trouble with a Dialog *.hpp file.

Everytime i try shoot up the mission in the editor, arma2 quits with a "Config : some input after EndOfFile" message.

I checked the only file where I made changes, but I don't found any characters at the EOF.

What's up?!?!?

class dlg_ArtilleryCommandMenu
{
	idd = -1;
	movingEnable = false;
	controlsBackground[] = {
		dlgBackground 		
	};

	objects[] = { };
	controls[] = { 
		lblTitle,
		btnCloseDlg,
		hrTitle,
		mapSelectTarget
	};

	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;
		h = 0.04; 
		text = ""; 
	}; 

	class RscButton : RscText {

		type = CT_BUTTON;
		default = false; 
		colorText[] = {1, 1, 1, 1}; 
		colorFocused[] = {0, 0, 0, 0}; 
		colorDisabled[] = {0, 0, 0, 0}; 
		colorBackground[] = {0, 0, 0, 0}; 
		colorBackgroundDisabled[] = {0, 0, 0, 0}; 
		colorBackgroundActive[] = {0, 0, 0, 0}; 

		offsetX = 0.003;
		offsetY = 0.003;

		offsetPressedX = 0.002; 
		offsetPressedY = 0.002;

		colorShadow[] = { 0, 0, 0, 0 };
		colorBorder[] = { 0, 0, 0, 0 }; 

		soundEnter[] = { "", 0, 1 };
		soundPush[] = { "", 0.1, 1 }; 
		soundClick[] = { "", 0, 1 }; 
		soundEscape[] = { "", 0, 1 };
		borderSize = 0; 
	};

	class RscMapControl {

		access = 0;
		idc = -1; 
		type = CT_MAP_MAIN;
		style = ST_PICTURE;

		x = 0.10; 
		y = 0.10; 
		w = 0.80; 
		h = 0.60; 

		colorBackground[] = {1.00, 1.00, 1.00, 1.00}; 
		colorText[] = {0.00, 0.00, 0.00, 1.00}; 
		colorSea[] = {0.56, 0.80, 0.98, 0.50}; 
		colorForest[] = {0.60, 0.80, 0.20, 0.50}; 
		colorRocks[] = {0.50, 0.50, 0.50, 0.50}; 
		colorCountlines[] = {0.65, 0.45, 0.27, 0.50};
		colorMainCountlines[] = {0.65, 0.45, 0.27, 1.00};
		colorCountlinesWater[] = {0.00, 0.53, 1.00, 0.50}; 
		colorMainCountlinesWater[] = {0.00, 0.53, 1.00, 1.00}; 
		colorForestBorder[] = {0.40, 0.80, 0.00, 1.00}; 
		colorRocksBorder[] = {0.50, 0.50, 0.50, 1.00};
		colorPowerLines[] = {0.00, 0.00, 0.00, 1.00}; 
		colorNames[] = {0.00, 0.00, 0.00, 1.00}; 
		colorInactive[] = {1.00, 1.00, 1.00, 0.50}; 
		colorLevels[] = {0.00, 0.00, 0.00, 1.00}; 

		font = "TahomaB"; 
		sizeEx = 0.040000; 

		fontLabel = "TahomaB";
		sizeExLabel = 0.02; 

		fontGrid = "TahomaB";
		sizeExGrid = 0.02;

		fontUnits = "TahomaB"; 
		sizeExUnits = 0.02; 

		fontNames = "TahomaB"; 
		sizeExNames = 0.02; 

		fontInfo = "TahomaB";
		sizeExInfo = 0.02; 

		fontLevel = "TahomaB";
		sizeExLevel = 0.02; 

		stickX = {0.20, {"Gamma", 1.00, 1.50} }; 
		stickY = {0.20, {"Gamma", 1.00, 1.50} }; 

		ptsPerSquareSea = 6;
		ptsPerSquareTxt = 8; 
		ptsPerSquareCLn = 8;
		ptsPerSquareExp = 8; 
		ptsPerSquareCost = 8;
		ptsPerSquareFor = "4.0f"; 
		ptsPerSquareForEdge = "10.0f"; 
		ptsPerSquareRoad = 2; 
		ptsPerSquareObj = 10;

		text = "\ca\ui\data\map_background2_co.paa"; 
		showCountourInterval=2; 
		scaleDefault = 0.1; 

		onMouseButtonClick = "";
		onMouseButtonDblClick = ""; 

		class ActiveMarker {
			color[] = {0.30, 0.10, 0.90, 1.00};
			size = 50; 
		}; 

		class Bunker {
			icon = "\ca\ui\data\map_bunker_ca.paa"; 
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 14; 
			importance = "1.5 * 14 * 0.05"; 
			coefMin = 0.25;
			coefMax = 4.00; 
		}; 

		class Bush { 
			icon = "\ca\ui\data\map_bush_ca.paa"; 
			color[] = {0.55, 0.64, 0.43, 1.00};
			size = 14;
			importance = "0.2 * 14 * 0.05";
			coefMin = 0.25; 
			coefMax = 4.00;
		}; 

		class BusStop {
			icon = "\ca\ui\data\map_busstop_ca.paa"; 
			color[] = {0.00, 0.00, 1.00, 1.00}; 
			size = 10; 
			importance = "1 * 10 * 0.05";
			coefMin = 0.25; 
			coefMax = 4.00; 
		}; 

		class Command {
			icon = "#(argb,8,8,3)color(1,1,1,1)"; 
			color[] = {0.00, 0.00, 0.00, 1.00}; 
			size = 18;
			importance = 1.00; 
			coefMin = 1.00;
			coefMax = 1.00;
		};

		class Cross { 
			icon = "\ca\ui\data\map_cross_ca.paa"; 
			color[] = {0.00, 0.35, 0.70, 1.00}; 
			size = 16; 
			importance = "0.7 * 16 * 0.05";
			coefMin = 0.25; 
			coefMax = 4.00;
		};

		class Fortress {
			icon = "\ca\ui\data\map_bunker_ca.paa";
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 16;
			importance = "2 * 16 * 0.05"; 
			coefMin = 0.25; 
			coefMax = 4.00; 
		};

		class Fuelstation {
			icon = "\ca\ui\data\map_fuelstation_ca.paa";
			color[] = {1.00, 0.35, 0.35, 1.00};
			size = 16; 
			importance = "2 * 16 * 0.05";
			coefMin = 0.75;
			coefMax = 4.00;
		}; 
		class Fountain {
			icon = "\ca\ui\data\map_fountain_ca.paa";
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 12; 
			importance = "1 * 12 * 0.05";
			coefMin = 0.25; 
			coefMax = 4.00;
		};

		class Hospital {
			icon = "\ca\ui\data\map_hospital_ca.paa";
			color[] = {0.78, 0.00, 0.05, 1.00}; 
			size = 16;
			importance = "2 * 16 * 0.05"; 
			coefMin = 0.50; 
			coefMax = 4;
		}; 

		class Chapel { 
			icon = "\ca\ui\data\map_chapel_ca.paa";
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 16; 
			importance = "1 * 16 * 0.05";
			coefMin = 0.90;
			coefMax = 4.00; 
		};

		class Church { 
			icon = "\ca\ui\data\map_church_ca.paa"; 
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 16; 
			importance = "2 * 16 * 0.05";
			coefMin = 0.90;
			coefMax = 4.00;
		}; 

		class Lighthouse {
			icon = "\ca\ui\data\map_lighthouse_ca.paa"; 
			color[] = {0.78, 0.00, 0.05, 1.00}; 
			size = 20;
			importance = "3 * 16 * 0.05"; 
			coefMin = 0.90;
			coefMax = 4.00;
		};

		class Quay {
			icon = "\ca\ui\data\map_quay_ca.paa";
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 16;
			importance = "2 * 16 * 0.05"; 
			coefMin = 0.50; 
			coefMax = 4.00; 
		}; 

		class Rock {
			icon = "\ca\ui\data\map_rock_ca.paa";
			color[] = {0.35, 0.35, 0.35, 1.00};
			size = 12;
			importance = "0.5 * 12 * 0.05";
			coefMin = 0.25; 
			coefMax = 4.00;
		}; 

		class Ruin { 
			icon = "\ca\ui\data\map_ruin_ca.paa"; 
			color[] = {0.78, 0.00, 0.05, 1.00}; 
			size = 16; 
			importance = "1.2 * 16 * 0.05";
			coefMin = 1.00; 
			coefMax = 4.00; 
		}; 

		class Stack {
			icon = "\ca\ui\data\map_stack_ca.paa"; 
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 20; 
			importance = "2 * 16 * 0.05"; 
			coefMin = 0.90; 
			coefMax = 4.00; 
		}; 

		class Tree { 
			icon = "\ca\ui\data\map_tree_ca.paa";
			color[] = {0.55, 0.64, 0.43, 1.00};
			size = 12;
			importance = "0.9 * 16 * 0.05";
			coefMin = 0.25;
			coefMax = 4.00; 
		}; 

		class SmallTree { 
			icon = "\ca\ui\data\map_smalltree_ca.paa";
			color[] = {0.55, 0.64, 0.43, 1.00};
			size = 12; 
			importance = "0.6 * 12 * 0.05"; 
			coefMin = 0.25; 
			coefMax = 4.00;
		};

		class Tourism {
			icon = "\ca\ui\data\map_tourism_ca.paa"; 
			color[] = {0.78, 0.00, 0.05, 1.00}; 
			size = 16;
			importance = "1 * 16 * 0.05"; 
			coefMin = 0.70; 
			coefMax = 4.00;
		}; 

		class Transmitter { 
			icon = "\ca\ui\data\map_transmitter_ca.paa"; 
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 20; 
			importance = "2 * 16 * 0.05"; 
			coefMin = 0.90;
			coefMax = 4.00; 
		}; 
		class ViewTower { 
			icon = "\ca\ui\data\map_viewtower_ca.paa"; 
			color[] = {0.00, 0.35, 0.70, 1.00};
			size = 16;
			importance = "2.5 * 16 * 0.05"; 
			coefMin = 0.50;
			coefMax = 4.00; 
		}; 

		class Watertower { 
			icon = "\ca\ui\data\map_watertower_ca.paa";
			color[] = {0.00, 0.35, 0.70, 1.00}; size = 32;
			importance = "1.2 * 16 * 0.05"; 
			coefMin = 0.90;
			coefMax = 4.00; 
		}; 

		class Waypoint { 
			icon = "\ca\ui\data\map_waypoint_ca.paa";
			color[] = {0.00, 0.00, 0.00, 1.00}; 
			size = 24;
			importance = 1.00;
			coefMin = 1.00;
			coefMax = 1.00; 
		};

		class WaypointCompleted { 
			icon = "\ca\ui\data\map_waypoint_completed_ca.paa"; 
			color[] = {0.00, 0.00, 0.00, 1.00}; size = 24; 
			importance = 1.00; 
			coefMin = 1.00; 
			coefMax = 1.00;
		};

	}; 

	class dlgBackground : RscText {
		colorBackground[] = { 1, 1, 1, 0.3 }; 	

		x = 0.0;
		y = 0.05; 
		w = 1; 
		h = 1; 
	};

	class lblTitle : RscText { 

		style = ST_TITLE_BAR;
		text = "Commander::Artillery"; 
		colorText[] = {1, 1, 1, 1}; 
		x = 0;
		y = 0; 
		w = 1; 
		h = 0.05; 
	};

	class btnCloseDlg : RscButton {

		style = ST_RIGHT;
		text = "X"; 

		x = 0.8;
		y = 0; 
		w = 0.2; 
		h = 0.05;

		action = "closeDialog 0; hint ""Dialog closed. You are good to go now!"""; 
	};


	class hrTitle : RscText {

		style = ST_LINE;

		x = 0;
		y = 0.05; 
		w = 1; 
		h = 0.01;
	};

	class mapSelectTarget : RscMapControl {
		x = 0.10; y = 0.10;
		w = 1; h = 1; 
	};
};

---------- Post added at 10:04 PM ---------- Previous post was at 09:32 PM ----------

okay since some debugging sessions, I found the error definitely in the

class RscMapControl { };

I copied this class from

http://community.bistudio.com/wiki/Dialog_Control_Map

Edited by liKe`-

Share this post


Link to post
Share on other sites

Only thing i could see so far is 2 missing square brackets here:

		stickX[] = {0.20, {"Gamma", 1.00, 1.50} }; 
		stickY[] = {0.20, {"Gamma", 1.00, 1.50} }; 

Share this post


Link to post
Share on other sites

Mikero's tools (eliteness/console tools) have lint check functionality. Great for error finding.

Share this post


Link to post
Share on other sites

Thanks man! I picked this two lines out few minutes before! But I don't recognize it as array.

@kju, thanks! I'll take a look on it.

Share this post


Link to post
Share on other sites

I have the same problem, only that my ARMA 2 crashes when I try to run a server.

Config : some input after EndOfFile

I am a mission creator - so I'm pretty much out of commission until this one is fixed :(

Share this post


Link to post
Share on other sites

Description.ext broken?

Do you use addons?

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  

×