Jump to content
Sign in to follow this  
chain

Need HELP with uniform mod, config.cpp is apparently broken (I cant see the error).

Recommended Posts

Hey all :bounce3:



So I am modifying a uniform mod for private use.

Whenever I launch the mod, I get an error stating: File 2010_multicam\config.cpp, line 171: /CfgVehicles/AUS_2010_Multicam_FeildUniform1/: Missing '}'

4Su5Vgu.png?1

I have reviewed my config.cpp and cannot find the error for the life of me. I have looked at line 171 and also the surrounding lines of code. I cannot see any missing Boolean or even a data value.

I have no idea what I am missing. If someone could point out what I am doing wrong that would be awesome :D

#define ReadAndWrite		0
#define ReadAndCreate		1
#define ReadOnly		2
#define ReadOnlyVerified		3

#define true	1
#define false	0

#define VSoft		0
#define VArmor		1
#define VAir		2

#define TEast		0
#define TWest		1
#define TGuerrila		2
#define TCivilian		3
#define TSideUnknown		4
#define TEnemy		5
#define TFriendly		6
#define TLogic		7

#define private		0
#define protected		1
#define public		2 




class CfgPatches	{

class AUS_Pack_Craig_2010_Multicam
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Data_F","A3_Weapons_F","A3_Characters_F","A3_Characters_F_BLUFOR"};
   };
};


class CfgFactionClasses {
class AUS_Pack {
	displayName = "Australian Pack";
	priority = 100;
	side = 1;
       icon = "\AUS_Pack\Icon\Icon.jpg";
   };
};


class CfgVehicleClasses	{

class AUS_2010_Multicam
{
	displayName = "Australian 2010 Multicam";
   };
};


class CfgVehicles	{
   class B_Soldier_base_F;		// External class reference
   class B_Carryall_oucamo;	// External class reference
class B_AssaultPack_Base;	// External class reference

class AUS_2010_Multicam_AssaultPack : B_AssaultPack_Base {
	scope = public;
	displayName = "AUS Assault Pack [Multicam]";
	hiddenSelectionsTextures[] = {"\AUS_Pack\2010_Multicam\AssaultPack-Multicam.paa"};
	maximumLoad = 300;

	class TransportItems {};
	class TransportMagazines {};
};

   class AUS_2010_Multicam_FieldUniform1: B_Soldier_base_F	{
	scope = 2;
	displayName = "2010 Multicam (Field Uniform)";
       faction = "AUS_Pack";
	vehicleClass = "AUS_2010_Multicam";
       canCarryBackPack = 1;
	canDeactivateMines = 1;
	engineer=1; 
       attendant = "true";
	uniformAccessories[] = {};
       uniformClass = "AUS_2010_Multicam_FieldUniform1";
	nakedUniform = "U_BasicBody";
	model = "\SP_Pack\Models\FieldUniform.p3d";
	Items[] = {};
	weapons[] = {"Throw","Put"};
       magazines[] = {};
       linkedItems[] = {"ItemWatch","ItemRadio","ItemGPS"};
	respawnLinkedItems[] = {"ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS"};
       hiddenSelectionsTextures[] = {"\AUS_Pack\2010_Multicam\FieldUniform1.paa"};   
       hiddenSelections[] = {"Camo"};

   class Wounds
	{
		tex[] = {};
		mat[] = {"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3   \Characters_F\Heads\Data\hl_white_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads \Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat";
	};

};


   class AUS_2010_Multicam_FieldUniform1_SS: B_Soldier_base_F	{ 
	scope = 2;
	displayName = "2010 Multicam (Field Uniform)";
       faction = "AUS_Pack";
	vehicleClass = "AUS_2010_Multicam";
       canCarryBackPack = 1;
	canDeactivateMines = 1;
	engineer = 1; 
       attendant = "true";
	uniformAccessories[] = {};
       uniformClass = "AUS_2010_Multicam_FieldUniform1_SS";
	nakedUniform = "U_BasicBody";
	model = "\SP_Pack\Models\FieldUniform2.p3d";
	Items[] = {};
	weapons[] = {"Throw","Put"};
       magazines[] = {};
       linkedItems[] = {"ItemWatch","ItemRadio","ItemGPS"};
	respawnLinkedItems[] = {"ItemMap","ItemCompass","ItemWatch","ItemRadio","ItemGPS"};
       hiddenSelectionsTextures[] = {"\AUS_Pack\2010_Multicam\FieldUniform1.paa"};   
       hiddenSelections[] = {"Camo"};

       class Wounds
	{
		tex[] = {};
		mat[] = {"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat";
	};
};


   class AUS_2010_Multicam_Carryall: B_Carryall_oucamo	{
	scope = 2;
       maximumLoad = 500;
	displayName = "Australian 2010 Multicam (Carryall)";
       picture = "\AUS_Pack\2010_Multicam\ui\Carryall.paa";
	hiddenSelectionsTextures[] = {"\AUS_Pack\2010_Multicam\Carryall.paa"};
};
};  

class cfgWeapons	{
class Uniform_Base;			// External class reference
class UniformItem;			// External class reference
class InventoryItem_Base_F;	// External class reference
class ItemCore;				// External class reference
class HeadGearItem;			// External class reference
   class V_PlateCarrier1_rgr;	// External class reference
   class VestItem;				// External class reference
class ItemInfo;				// External class reference

   class AUS_2010_Multicam_FieldUniform1: Uniform_Base	{
	scope = public;
       model = "\SP_Pack\Models\Suitpack";
	displayName = "Australian 2010 Multicam (Field Uniform)";
	picture = "\AUS_Pack\2010_Multicam\ui\FieldUniform1.paa";

	class ItemInfo: UniformItem	{
		uniformModel = "-";
		uniformClass = "AUS_2010_Multicam_FieldUniform1";
		containerClass = "Supply60";
		mass = 80;
	};
};

class AUS_2010_Multicam_FieldUniform1_SS: Uniform_Base	{
	scope = public;
       model = "\SP_Pack\Models\Suitpack";
	displayName = "Australian 2010 Multicam (Field Uniform)";
	picture = "\AUS_Pack\2010_Multicam\ui\FieldUniform1.paa";

	class ItemInfo: UniformItem	{
		uniformModel = "-";
		uniformClass = "AUS_2010_Multicam_FieldUniform1_SS";
		containerClass = "Supply60";
		mass = 80;
	};
};

   class AUS_2010_Multicam_PlateCarrier: V_PlateCarrier1_rgr	{
	scope = 2;
	displayName = "Australian 2010 Multicam (PlateCarrier)";
	picture = "\AUS_Pack\2010_Multicam\ui\PlateCarrier.paa";
	model = "\SP_Pack\Models\PlateCarrier1";
       hiddenSelectionsTextures[] = {"\AUS_Pack\2010_Multicam\PlateCarrier.paa"};
       hiddenSelections[] = {"Camo"};

	class ItemInfo: VestItem	{
		uniformModel = "\SP_Pack\Models\PlateCarrier1";
		containerClass = "Supply120";
		hiddenSelections[] = {"camo"};
		mass = 50;
		armor = 60;
		passThrough = 0.30;
	};
};
};
//};

I think I need an outside perspective to find my error :(

Edited by Chain

Share this post


Link to post
Share on other sites

http://pastebin.com/LuPtMbJL

class Wounds

{

tex[] = {};

mat[] = {"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat";

};

};

};

Share this post


Link to post
Share on other sites
http://pastebin.com/LuPtMbJL

class Wounds

{

tex[] = {};

mat[] = {"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat";

};

};

};

Hey man it still doesn't work, same error just on a different line.

Share this post


Link to post
Share on other sites

This:

        class Wounds
       {
           tex[] = {};
           mat[] = {"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat","A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat";
       };

Is your problem, and a perfect example of the importance of good formatting. You haven't got a closing bracket at the end of the mat[] section, and have a semicolon where you really don't want one at the end -EDIT, nvm, you can apparently use semicolons and commas interchangeably here.

If you'd formatted your code like this:

class Wounds
{
	tex[] = {};
	mat[] =
	{
		"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing.rvmat",
		"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat",
		"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_white_hairy_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_white_old.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_asian_bald_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat";
       };

Sure, it takes about 20 times longer to scroll through the code, but spotting the exact problem can be done instantly (you can clearly see where the bracket is missing). Since I'm assuming you've copy-pasted the class wounds from each vehicle class, you need to replace the wounds section in each of them with this:

class Wounds
{
	tex[] = {};
	mat[] = 
	{
		"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing.rvmat",
		"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat",
		"A3\Characters_F_Beta\INDEP\Data\ia_soldier_01_clothing_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_bald_muscular_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_black_bald_muscular_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_white_hairy_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_hairy_muscular_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_white_old.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_white_old_injury.rvmat",

		"A3\Characters_F\Heads\Data\hl_asian_bald_muscular.rvmat",
		"A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat",
		"A3\Characters_F\Heads\Data\hl_asian_bald_muscular_injury.rvmat",						
	};
       };

Hope this helps! :)

Edited by BiggerDave
correction

Share this post


Link to post
Share on other sites

@BiggerDave

Thanks so much man yea I have it all working now :)

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  

×