Jump to content

Recommended Posts

Evening all, I am creating some uniforms, headgear, vests and such for my group of friends but I cannot get the file to covert to a PBO because of config errors. I've been through the config a couple of times looking for errors and I'm at my wit's end. Any assistance would be appreciated. Following below is the config.

class cfgPatches
{
	class My_Mod_Config
	{
		units[]=
		{
			"ARC"
		};
		weapons[]={};
		requiredVersion=0.1;
		requiredAddons[]=
		{
			"A3_Characters_F"
		};
	};
};

// Factions
class cfgFactionClasses
{
	class ARC_Faction
	{
		displayName="Normanland Defence Force";
		priority=3;
		side=1;
		icon="";
	};
};

class cfgUnitInsignia
{
	class Custom_Insignia
	{
		displayName="Advance Recon Commandos";
		author="Raven";
		texture="\ARC_Clothing_and_Gear\UI\Icon Patch.paa";
		textureVehicle="";
	};
};

class UnifromSlotInfo
{
	slotType=0;
	linkProxy="-";
};

class cfgVehicles
{
	class B_Soldier_F;
	class ARC_Uniform: B_Soldier_F {
		author="Raven";
		scope=2;
		displayName="Rifleman";
		identityTypes[]=
		{
			"Head_NATO",
			"G_NATO_default"
		};
		genericNames="NATOMen";
		faction="ARC_Faction";
		model="\A3\characters_f_beta\INDEP\ia_soldier_01.p3d";
		uniformClass="ARC_Uniform";
		hiddenSelections[]=
		{
			"Head_NATO",
			"G_NATO_default",
		};
		hiddenSelectionsTextures[]=
		{
			"ARC_Clothing_and_Gear\Data\blue_digi_co.paa"
		};
		respawnWeapons[]=
		{
			"arifle_TRG20_ACO_Flash_F",
			"Throw",
			"Put"
		};
		magazines[]=
		{
			"HandGrenade",
			"HandGrenade",
			"SmokeShell",
			"SmokeShellGreen",
			"Chemlight_green",
			"Chemlight_green"
		};
		respawnMagazines[]=
		{
			"HandGrenade",
			"HandGrenade",
			"SmokeShell",
			"SmokeShellGreen",
			"Chemlight_green",
			"Chemlight_green"
		};
		linkedItems[]=
		{
			"ARC_Vest1",
			"ARC_Helmet1",
			"ItemMap",
			"ItemCompass",
			"ItemWatch",
			"ItemRadio"
		};
		respawnLinkedItems[]=
		{
			"ARC_Vest1",
			"ARC_Helmet1",
			"ItemMap",
			"ItemCompass",
			"ItemWatch",
			"ItemRadio"
		};
	};
};

class cfgWeapons
{
	class UniformItem;
	class Uniform_Base;
		{
			class ItemInfo;
		};
		class ARC_Blue_Uniform_1: Uniform_Base
		{
			scope= 2;
			displayName= "Combat Uniform (Blue Digis)";
			picture= "-";
			model= "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d";
			class ItemInfo: UniformItem
			{
				uniformClass= "ARC_Uniform";
				containerClass= "Supply50";
				mass= 50;
			};
		};
};
// Vests
class VestItem;
class Vest_Camo_Base;
{
	class ItemInfo;
	{;
	class ARC_Vest1: Vest_Camo_Base
	{
		scope=2;
		displayName="Carrier Rig (Blue Digi)";
		picture="-";
		model="A3\Characters_F\BLUFOR\equip_b_Vest01";
		hiddenSelections[]=
		{
			"Camo"
		};
		hiddenSelectionsTextures
		{
			"\ARC_Clothing_and_Gear\Data\blue_digi_co.paa"
		};
		class ItemInfo: VestItem
		{
			uniformModel="A3\Characters_F\BLUFOR\equip_b_Vest01.p3d";
			containerClass="Supply120";
			mass=80;
			armor="5";
			passThrough=0.3;
			hiddenSelections[]=
			{
				"Camo"
			};
		};
	}
	// Headgear
	class H_HelmetB: ItemCore
	{
		class ItemInfo;
		};
		class ARC_Helmet1: H_HelmetB
		{
			scope=2;
			picture="";
			displayName="Enhanced Combat Helmet (Blue Digi)";
			model="\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
			hiddenSelections[]=
		{
				"Camo"
			};
			hiddenSelectionsTextures[]=
			{
				"\ARC_Clothing_and_Gear\Data\blue_helmet_co.paa"
			};
			class ItemInfo: ItemInfo
			{
				mass=15;
				allowedSlots[]={901,605);
				uniformModel="\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
				modelSides[]={1,2,3};
				hiddenSelections[]=
				{
					"Camo"
				};
				armor="3*0.3";
				passThrough=0.75;
				};
			};
		};
	};
};

		

 

Share this post


Link to post
Share on other sites
On 10.10.2018 at 5:57 AM, RavenKiller said:

because of config errors

What errors?

 

On 10.10.2018 at 5:57 AM, RavenKiller said:

    // Headgear
    class H_HelmetB: ItemCore
    {
        class ItemInfo;
        };

wtf is this indentation?

 

			model="\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
			hiddenSelections[]=
		{
				"Camo"
			};

No wonder you can't find your problems in this indentation mess.

 

 

			class ItemInfo: ItemInfo
			{
				mass=15;
				allowedSlots[]={901,605);
				uniformModel="\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
				modelSides[]={1,2,3};
				hiddenSelections[]=
				{
					"Camo"
				};
				armor="3*0.3";
				passThrough=0.75;
				}; //<-- What is this supposed to be?
			};

 

 

class Vest_Camo_Base;
{
	class ItemInfo;
	{;
	class ARC_Vest1: Vest_Camo_Base
	{

the {; is a syntax error.. It doesn't make any sense.

 

 

	class Uniform_Base;
		{
			class ItemInfo;
		};

what is that semicolon after the classname doing there?

Share this post


Link to post
Share on other sites
		hiddenSelections[]=
		{
			"Head_NATO",
			"G_NATO_default", <----
		};
	class Uniform_Base; <----
		{
			class ItemInfo;
		};
class Vest_Camo_Base; <----
{
	class ItemInfo;
	{; <----
		hiddenSelectionsTextures <----
		{
			"\ARC_Clothing_and_Gear\Data\blue_digi_co.paa"
		};
	} <----
	// Headgear
	class H_HelmetB: ItemCore
	{
				mass=15;
				allowedSlots[]={901,605); <----
				uniformModel="\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";

 

Check all the arrows, there is a lot of stuff. You'll have unbalanced braces after fixing these as well I think

  • Thanks 1

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

×