Jump to content
SpacePilotMax

Uniform uses basicbody model

Recommended Posts

A uniform I made appears in the arsenal, has the defined carry capacity and weight, but does not have a model (and the character I linked the uniform to does not appear anywhere in the editor). Anyone knows why this is and how to fix it? I have encountered exactly the same issue twice in two separate projects. P.S. A helmet from the same config is also missing from the arsenal. I have made functional headgear and uniforms before.

 

Config:

Spoiler

class cfgPatches
{
	class CAF35
	{
		Author = "SpacePilotMax";
		name = "Canadian Armed Forces 2035";
		url = "-";
		requiredAddons[]=
		{"A3_Characters_F"};
		requiredVersion=0.1;
		units[]=
		{
			"B_Soldier_CA_F"

		};
		weapons[] = 
		{
			"U_B_CombatUniform_CA",
			"H_ECH_CA"
		};
	};	
};
class cfgVehicles
{
	class ContainerSupply;
    class Supply50: ContainerSupply     
    {
        maximumLoad = 50;              
    };
	
	class B_Soldier_base_F;
	class B_Soldier_CA_F: B_Soldier_base_F //Carrier defining
	{
		displayName = "Canadian";
		uniformClass = "U_B_CombatUniform_CA";		
		model = "\A3\Characters_F\BLUFOR\b_soldier_01.p3d";
        hiddenSelections[] = {"camo"};                             
        hiddenSelectionsTextures[] = {"\A3_CAF35\inf\data\clothing1_ca_co.paa"};
		
	};
	
};
class cfgWeapons
{
	class Uniform_Base;
	class UniformItem;
	class U_B_CombatUniform_CA: Uniform_Base //Uniform
	{	
		author="SpacePilotMax";
		scope=2;
		displayName= "Combat Fatigues (CADPAT)";
		picture="\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
		model="\A3\Characters_F\Common\Suitpacks\suitpack_universal_F.p3d";
		
		class ItemInfo: UniformItem
		{
            uniformModel = "-";
            uniformClass = B_Soldier_CA_F;
            containerClass = Supply50;
            mass = 20;
        };
	};
	
	class HeadgearItem;
	class H_Helmet_B;
	class H_ECH_CA: H_Helmet_B
	{
		author = "SpacePilotMax";
		scope=2;
		displayName = "ECH (CADPAT)";
		hiddenSelections[] = {"camo"};
		hiddenSelectionsTetures[] = {"\A3_CAF35\inf\data\ech_ca_co.paa"};
	};
};

(It's supposed to be a CADPAT retexture of the basic uniform and a helmet)

Thank you.

Share this post


Link to post
Share on other sites

 

I don't know a whole lot about coding as far as "what does this do", I usually just get told that I need it. The way it looks, there are things like ;

class cfgFactionClasses

class CfgVehicleClasses

class UniformSlotInfo

In mine, those go before;

class CfgVehicles

 

But for your soldier I have things you don't like:

  _generalMacro="CSAT_Army_A_Rifleman";
  scope=2;
  side=0;
  faction="CSAT_Infantry";
  vehicleClass="CSAT_Infantry_Arid";

 

those go between author and linked items. I don't think the order matters, and you may have chose not to put those.

I think you need more infor since you are using the base model of the unit rather than a rifleman or something. Without those things the game will automatically go to the base for the info. So your stuff might be in the game, but it's not where you want it..

 

I think the real problem is
class cfgVehicles

{
 class ContainerSupply;
    class Supply50: ContainerSupply    
    {
        maximumLoad = 50;             
    };

You have that before you defined the soldier. Also i'm not sure why you have that anyway. If you are trying to change what they can carry, it won't matter. Because the gear you wear has its own carrying capacity. If you want the uniform to hold more, change it in the uniform section under cfgweapons..

            containerClass = Supply50;
            mass = 20;

 

In your uniform, you have not given it a texture. I believe its the folded up uniform when its not on soldier.

 

I FOUND your ERROR, :0

            uniformClass = B_Soldier_CA_F;

It is not quoted.......

            uniformClass =" B_Soldier_CA_F;"

 

 

And the helmet, here is one of mine. Maybe its in the difference.

 

 class CSAT_ARMY_A_Helmet: H_HelmetIA
 {
  author="Victim9l3";
  _generalMacro="CSAT_ARMY_A_Helmet";
  scope=2;
  weaponPoolAvailable=1;
  displayName="CSAT Army Arid Helmet";
  picture="\A3\characters_F_Beta\Data\UI\icon_H_I_Helmet_canvas_ca.paa";
  model="\A3\Characters_F_Beta\INDEP\headgear_helmet_canvas";
  hiddenSelections[]=
  {
   "camo"
  };
  hiddenSelectionsTextures[]=
  {
   "\CSAT_Infantry\data\ARID\CSAT_ARMY_A_helmet.paa"
  };
 };

 

Share this post


Link to post
Share on other sites

Improper uniform class. That's it. As for the carry capacity, you have to define it in vehicles and then assign to the uniform in weapons, as such:

Spoiler

class U_B_Blue_Shirt_BlkPants: Uniform_Base
	{
		author="SpacePilotMax";
		scope=2;
		displayName="Combat Uniform (Space's)";
		picture="\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
		model="\A3\Characters_F\Common\Suitpacks\suitpack_universal_F.p3d";
		hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\A3\Characters_F\Common\data\basicbody_black_co.paa"};
 
        class ItemInfo: UniformItem
        {
            uniformModel = "\A3\Characters_F\BLUFOR\b_soldier_02.p3d";
            uniformClass = S_Blue_Shirt;
            containerClass = Supply50; //Here it is
            mass = 20;
        };
	};

 

 

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

×