Jump to content
Sign in to follow this  
eagledude4

Binarizing Error

Recommended Posts

Before I started getting the error, I had the classes for the AH6_Base_EP1 and MH6J_EP1 defined in the below code, but I decided to remove them since they were duplicates of the default arma classes.

// Configured by eagledude4/OneShot

#define public		2

class CfgPatches {
class MH6J_UltRP {
	units[] = {};
	weapons[] = {};
	requiredAddons[] = {};
	requiredVersion = 1;
};
};

class CfgVehicleClasses {
class UltRP_Vehicles {
	displayName = "Ultimate-RP Vehicles";
};
};

class CfgVehicles {
class Air;
class Helicopter : Air;
class AH6_Base_EP1 : Helicopter;
class MH6J_EP1 : AH6_Base_EP1;
class MH6J_UltRP : MH6J_EP1 {
	scope = public;
	vehicleClass = "UltRP_Vehicles";
	cost = 0;
	accuracy = 0.2;	// accuracy needed to recognize type of this target
};
class MH6J_UltRP_Blue : MH6J_UltRP {
	displayName = "MH6J (Blue)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_blue_co.paa","ca\air_e\ah6j\data\default_co.paa"};
};
class MH6J_UltRP_Camo : MH6J_UltRP {
	displayName = "MH6J (Camo)";
	hiddenSelectionsTextures[] = {"ca\air_e\ah6j\data\ah6_merge1_co.paa","UltRP_Skins\skin_camo_co.paa"};
};
class MH6J_UltRP_DarkGreen : MH6J_UltRP {
	displayName = "MH6J (Dark Green)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_darkgreen_co.paa","UltRP_Skins\skin_darkgreen_co.paa"};
};
class MH6J_UltRP_DarkRed : MH6J_UltRP {
	displayName = "MH6J (DarkRed)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_darkred_co.paa","UltRP_Skins\skin_darkred_co.paa"};
};
class MH6J_UltRP_Green : MH6J_UltRP {
	displayName = "MH6J (Green)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_green_co.paa","UltRP_Skins\skin_green_co.paa"};
};
class MH6J_UltRP_Orange : MH6J_UltRP {
	displayName = "MH6J (Orange)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_orange_co.paa","UltRP_Skins\skin_orange_co.paa"};
};
class MH6J_UltRP_Purple : MH6J_UltRP {
	displayName = "MH6J (Purple)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_purple_co.paa","UltRP_Skins\skin_purple_co.paa"};
};
class MH6J_UltRP_Red : MH6J_UltRP {
	displayName = "MH6J (Red)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_red_co.paa","UltRP_Skins\skin_red_co.paa"};
};
class MH6J_UltRP_Silver : MH6J_UltRP {
	displayName = "MH6J (Silver)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_silver_co.paa","UltRP_Skins\skin_silver_co.paa"};
};
class MH6J_UltRP_White : MH6J_UltRP {
	displayName = "MH6J (White)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_white_co.paa","UltRP_Skins\skin_white_co.paa"};
};
class MH6J_UltRP_Yellow : MH6J_UltRP {
	displayName = "MH6J (Yellow)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_yellow_co.paa","UltRP_Skins\skin_yellow_co.paa"};
};
};

I've looked up and down the code several times and I can't seem to find what the issue is.

log:

File p:\ultrp_vehicles\civilian\air\mh6j\config.cpp, line 17: /CfgVehicles/: ';' encountered instead of '{'

Edited by eagledude4

Share this post


Link to post
Share on other sites

There is no need for all this;

class Air;
class Helicopter : Air;
class AH6_Base_EP1 : Helicopter;
class MH6J_EP1 : AH6_Base_EP1;

simply do this;

class CfgVehicles {
class MH6J_EP1;
class MH6J_UltRP : MH6J_EP1 {

Might help

Share this post


Link to post
Share on other sites

Ya, your right. problem seems to be on a different line now:

File p:\ultrp_vehicles\civilian\air\mh6j\config.cpp, line 66: /CfgVehicles/: Missing '}'

Line 66 is the }; line in my MH6J_UltRP_White class

Edited by eagledude4

Share this post


Link to post
Share on other sites
Ya, your right. problem seems to be on a different line now:

File p:\ultrp_vehicles\civilian\air\mh6j\config.cpp, line 66: /CfgVehicles/: Missing '}'

Line 66 is the }; line in my MH6J_UltRP_White class

please repost your edited code now.

Share this post


Link to post
Share on other sites

use mikero's tools to scan configs (text files) for errors

Share this post


Link to post
Share on other sites

Apologies for the long response.

// Configured by eagledude4/OneShot

#define public		2

class CfgPatches {
class MH6J_UltRP {
	units[] = {};
	weapons[] = {};
	requiredAddons[] = {};
	requiredVersion = 1;
};
};

class CfgVehicleClasses {
class UltRP_Vehicles {
	displayName = "Ultimate-RP Vehicles";
};
};

class CfgVehicles {
class CfgVehicles {
   class MH6J_EP1;
   class MH6J_UltRP : MH6J_EP1 {
	scope = public;
	vehicleClass = "UltRP_Vehicles";
};
class MH6J_UltRP_Blue : MH6J_UltRP {
	displayName = "MH6J (Blue)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_blue_co.paa","ca\air_e\ah6j\data\default_co.paa"};
};
class MH6J_UltRP_Camo : MH6J_UltRP {
	displayName = "MH6J (Camo)";
	hiddenSelectionsTextures[] = {"ca\air_e\ah6j\data\ah6_merge1_co.paa","UltRP_Skins\skin_camo_co.paa"};
};
class MH6J_UltRP_DarkGreen : MH6J_UltRP {
	displayName = "MH6J (Dark Green)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_darkgreen_co.paa","UltRP_Skins\skin_darkgreen_co.paa"};
};
class MH6J_UltRP_DarkRed : MH6J_UltRP {
	displayName = "MH6J (DarkRed)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_darkred_co.paa","UltRP_Skins\skin_darkred_co.paa"};
};
class MH6J_UltRP_Green : MH6J_UltRP {
	displayName = "MH6J (Green)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_green_co.paa","UltRP_Skins\skin_green_co.paa"};
};
class MH6J_UltRP_Orange : MH6J_UltRP {
	displayName = "MH6J (Orange)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_orange_co.paa","UltRP_Skins\skin_orange_co.paa"};
};
class MH6J_UltRP_Purple : MH6J_UltRP {
	displayName = "MH6J (Purple)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_purple_co.paa","UltRP_Skins\skin_purple_co.paa"};
};
class MH6J_UltRP_Red : MH6J_UltRP {
	displayName = "MH6J (Red)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_red_co.paa","UltRP_Skins\skin_red_co.paa"};
};
class MH6J_UltRP_Silver : MH6J_UltRP {
	displayName = "MH6J (Silver)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_silver_co.paa","UltRP_Skins\skin_silver_co.paa"};
};
class MH6J_UltRP_White : MH6J_UltRP {
	displayName = "MH6J (White)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_white_co.paa","UltRP_Skins\skin_white_co.paa"};
};
class MH6J_UltRP_Yellow : MH6J_UltRP {
	displayName = "MH6J (Yellow)";
	hiddenSelectionsTextures[] = {"UltRP_Skins\skin_yellow_co.paa","UltRP_Skins\skin_yellow_co.paa"};
};
};

@.kju [PvPscene]: What tool are you referring to?

Share this post


Link to post
Share on other sites

class CfgVehicles {
class CfgVehicles {

Incorrect. Only define it once

hiddenSelectionsTextures[] = {"UltRP_Skins\skin_blue_co.paa","ca\air_e\ah6j\data\default_co.paa"};

Try changing to

hiddenSelectionsTextures[] = {"\UltRP_Skins\skin_blue_co.paa","ca\air_e\ah6j\data\default_co.paa"};

(added a leading " \ " )

Share this post


Link to post
Share on other sites

@Gnat: *facepalm* How did I not see that extra cfgvehicles? Also, I don't think the "\" is needed.

Edited by eagledude4

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  

×