Jump to content
BL1P

Problems with uniform Config

Recommended Posts

Hello.

 

I am attempting to update a Uniform mod I created for the community I play with.

The mod used to work fine.

But now I get errors when trying to use the Tshirt or rolledup versions.

 

Here is a sample of my CfgVehicle for the uniform :-


//--- Woodland
class Falcons_DPM_Soldier_Base: B_Soldier_F 
{
identityTypes[] = {"LanguageENG_F", "Head_NATO", "G_HAF_default"};
_generalMacro = "Falcons_DPM_Soldier_Base";
faction = "Falcons_Units";
vehicleClass = "Men_DPM";
nakedUniform = "Falcons_BasicBody";
uniformClass = "Falcons_CombatUniform_DPM";
hiddenSelections[] = {"Camo", "insignia"};
hiddenSelectionsTextures[] = {"\Falcons_Uniforms\data\DPM\Falcons_clothing_Wood.paa"};
linkedItems[] = {"ItemCompass","ItemGPS","ItemMap","ItemWatch","Falcons_DPM_Plate_Carrier_H","ItemMap"};
respawnlinkedItems[] = {"ItemCompass","ItemGPS","ItemMap","ItemWatch","Falcons_DPM_Plate_Carrier_H","ItemMap"};
};
class Falcons_DPM_Soldier_01: B_Soldier_02_f
{
_generalMacro = "Falcons_DPM_Soldier_01";
faction = "Falcons_Units";
vehicleClass = "Men_DPM";
nakedUniform = "Falcons_BasicBody";
uniformClass = "Falcons_CombatUniform_DPM_tshirt";
hiddenSelections[] = {"Camo", "insignia"};
hiddenSelectionsTextures[] = {"\Falcons_Uniforms\data\DPM\Falcons_clothing_Wood.paa"};
linkedItems[] = {"ItemCompass","ItemGPS","ItemMap","ItemWatch","Falcons_DPM_Plate_Carrier_H","ItemMap"};
respawnlinkedItems[] = {"ItemCompass","ItemGPS","ItemMap","ItemWatch","Falcons_DPM_Plate_Carrier_H","ItemMap"};
};
class Falcons_DPM_Soldier_02: B_Soldier_03_f 
{
_generalMacro = "Falcons_DPM_Soldier_02";
faction = "Falcons_Units";
vehicleClass = "Men_DPM";
nakedUniform = "Falcons_BasicBody";
uniformClass = "Falcons_CombatUniform_DPM_vest";
hiddenSelections[] = {"Camo", "insignia"};
hiddenSelectionsTextures[] = {"\Falcons_Uniforms\data\DPM\Falcons_clothing_Wood.paa"};
linkedItems[] = {"ItemCompass","ItemGPS","ItemMap","ItemWatch","Falcons_DPM_Plate_Carrier_H","ItemMap"};
respawnlinkedItems[] = {"ItemCompass","ItemGPS","ItemMap","ItemWatch","Falcons_DPM_Plate_Carrier_H","ItemMap"};
};

Here are the errors I get :-

 

16:05:30 In class "Falcons_CombatUniform_DPM_vest" is abstract config class "Falcons_DPM_Soldier_02" and can't be used with uniform.
16:05:30 In class "Falcons_CombatUniform_DPM_tshirt" is abstract config class "Falcons_DPM_Soldier_01" and can't be used with uniform.

Share this post


Link to post
Share on other sites

Could you post the cfgWeapons class entries for the uniforms themselves, as that is where the error seems to indicate the issue is.

Share this post


Link to post
Share on other sites

You inherit your soldier classes from classes with scope 0, which most likely causes the issue. Please try changing the scope of your classes to either 1 or 2 (depending on if you want them available in the editor etc.).

Share this post


Link to post
Share on other sites

You inherit your soldier classes from classes with scope 0, which most likely causes the issue. Please try changing the scope of your classes to either 1 or 2 (depending on if you want them available in the editor etc.).

 

Thank you very much, this fixed it for me.

 

 

Bonus image of it working :)

 

7328E87DEE878DFE5D7BD83D9D72D9C4D1B3A7D3

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

 

I have the same issue with my custom uniforms. They depends from "U_B_CombatUniform_mcam_tshirt" and "U_B_CombatUniform_mcam_vest". The addon worked until patch 1.52.

	class ST1_ACU_Uniform_tshirt: U_B_CombatUniform_mcam_tshirt
	{
		author = "ST1";
		scope = 2;
		picture = "\ST1\data\ACU\Icon_ST1_DU_clothing.paa";
		model = "\A3\Characters_F\Common\Suitpacks\suitpack_universal_F";
		displayName = "ST1 Uniforme Camiseta (ACU)";
		hiddenSelectionsTextures[] = {"\ST1\data\ACU\ST1_ACU_clothing.paa"};
		class ItemInfo: UniformItem
		{
			uniformModel = "-";
			uniformClass = "ST1_ACU_Soldier_01";
			containerClass = "Supply30";
			mass = 20;
		};
	};

This uniform doesn't works, isn't visible. Any idea?

Share this post


Link to post
Share on other sites

doesn't work

Could you please elaborate? Is there any error message? Do you launch the game with local data? (If so, do you use the -filepatching parameter?) "Isn't visible" refers to the model basically having no texture, or you cannot find it in the editor/VA? Could you include your config of ST1_ACU_Soldier_01, as well?

Share this post


Link to post
Share on other sites

Sorry, I didn't had much time to post. Here we go:

 

In our community, we use a pack of custom textures for uniforms, vests and helmets. What happens is after the last patch (v1.52), some uniforms are not visible, I can see my PJ in underwear. I can pick it has an item in-game, or select it in the Virtual Arsenal. I can even put magazines inside, and doesn't throws any error. The texture and model are invisible.

This only happens on the items that are inherited from "U_B_CombatUniform_mcam_tshirt" and "U_B_CombatUniform_mcam_vest".

 

The only warning I receive it's from the .rpt of the session, that indicates:

In class "ST1_DIG_Uniform_vest" is abstract config class "ST1_DIG_Soldier_02" and can't be used with uniform.
In class "ST1_MC_Uniform_vest" is abstract config class "ST1_MC_Soldier_02" and can't be used with uniform.
In class "ST1_DS_Uniform_vest" is abstract config class "ST1_DS_Soldier_02" and can't be used with uniform.
In class "ST1_ACU_Uniform_vest" is abstract config class "ST1_ACU_Soldier_02" and can't be used with uniform.

And this is the CfgWeapons of the uniforms:

 

class cfgWeapons
{
    class UniformItem;
    class VestItem;
    class HeadgearItem;
    class ItemCore;
    class ItemInfo;
    class U_B_CombatUniform_mcam;
    class U_B_CombatUniform_mcam_tshirt;
    class U_B_CombatUniform_mcam_vest;
    class U_I_CombatUniform;
    class U_I_CombatUniform_tshirt;
    class U_B_PilotCoveralls;
    class U_B_HeliPilotCoveralls;
    class U_O_CombatUniform_ocamo;
    class V_Rangemaster_belt;
    class V_BandollierB_rgr;
    class V_PlateCarrier1_rgr;
    class V_PlateCarrier2_rgr;
    class V_TacVest_khk;
    class V_PlateCarrierIA1_dgtl;
    class H_HelmetB;
    class H_HelmetB_light;
    class H_PilotHelmetFighter_B;
    class H_PilotHelmetHeli_B;
    class H_MilCap_mcamo;
    class H_Booniehat_mcamo;
    class H_Cap_blk;
    class H_Cap_headphones;
    class H_Beret_blk;
    class U_BasicBody;
    class ST1_BasicBody: U_BasicBody
    {
        scope = 2;
        displayName = "ST1 Camiseta";
        picture = "\ST1\data\WDL\Icon_ST1_WL_clothing.paa";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"\ST1\data\WDL\ST1_BasicBody.paa"};
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = "ST1_Naked";
            containerClass = "Supply0";
            mass = 5;
        };
    };

/////////////

    class ST1_PMC_Uniform_B_BlackGreen_vest: U_B_CombatUniform_mcam_vest
    {
        scope = 2;
        author = "ST1";
        displayName = "ST1 PMC Uniforme Combate Negro Verde Mangas";
        picture = "\ST1\Data\PMC\icon_U_PMC_CombatUniformRS_BSGPBB.paa";
        model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_soldier";
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = "ST1_PMC_Soldier_B_BlackGreen_vest";
            containerClass = "Supply40";
            mass = 60;
        };
    };

////////////

    class ST1_ACU_Uniform_tshirt: U_B_CombatUniform_mcam_tshirt
    {
        author = "ST1";
        picture = "\ST1\data\ACU\Icon_ST1_DU_clothing.paa";
        model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        displayName = "ST1 Uniforme Camiseta (ACU)";
        hiddenSelectionsTextures[] = {"\ST1\data\ACU\ST1_ACU_clothing.paa"};
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = "ST1_ACU_Soldier_01";
            containerClass = "Supply30";
            mass = 20;
        };
    };
    class ST1_WDL_Uniform_vest: U_B_CombatUniform_mcam_vest
    {
        scope = 2;
        author = "ST1";
        picture = "\ST1\data\WDL\Icon_ST1_WL_clothing.paa";
        model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        displayName = "ST1 Uniforme Mangas (Woodland)";
        hiddenSelectionsTextures[] = {"\ST1\data\WDL\ST1_WDL_clothing.paa"};
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = "ST1_WDL_Soldier_02";
            containerClass = "Supply40";
            mass = 40;
        };
    };

 

I've posted only three classes, because the file it's way too big. I've marked in blue an item that works (using "U_B_CombatUniform_mcam_vest") and red the ones that aren't working. The only difference I can see, it's the model, but I've changed and still no luck.

 

And heres the config of the unit ST1_ACU_Soldier_01:

	class ST1_ACU_Soldier_01: B_Soldier_02_f
	{
		_generalMacro = "ST1_ACU_Soldier_01";
		uniformClass = "ST1_ACU_Uniform_tshirt";
		hiddenSelections[] = {"Camo","Camo2","insignia"};
		hiddenSelectionsTextures[] = {"\ST1\data\ACU\ST1_ACU_clothing.paa","\ST1\data\ACU\ST1_ACU_BasicBody.paa"};
		nakedUniform = "ST1_BasicBody";
	};

Share this post


Link to post
Share on other sites

Ok, I see the problem:

    class ST1_WDL_Soldier_01: B_Soldier_02_f
    {
        scope = 1;
        _generalMacro = "ST1_WDL_Soldier_01";
        uniformClass = "ST1_WDL_Uniform_tshirt";
        hiddenSelections[] = {"Camo","Camo2","insignia"};
        hiddenSelectionsTextures[] = {"\ST1\data\WDL\St1_WDL_clothing.paa","\ST1\data\WDL\ST1_WL_BasicBody.paa"};
        nakedUniform = "ST1_BasicBody";
    };

I've thought that the items were defined on cfgWeapons. Anyway, I've managed to break it even more:

 

vgLfVEI.jpg

 

Sometimes loads OK, and sometimes happens ^ THAT ^. I went full retard...

Share this post


Link to post
Share on other sites

Your warnings in RPT indicated the same problem as the first one in this threat, so changing the scope of the character classes used in the uniformClass property of a uniform solves the issue. The items like uniforms, vests, or headgear are indeed defined in cfgWeapons. The tricky part is that a uniform is always "linked" with a soldier class (via uniformClass property in configuration of both). If that soldier has scope 0, the problem appears.

 

The problem you encountered next is something I've seen on the forum recently, but it doesn't seem to be a problem in vanilla. I suggest trying your mod without any other mods to test if the one of yours is working properly.

Share this post


Link to post
Share on other sites

Your warnings in RPT indicated the same problem as the first one in this threat, so changing the scope of the character classes used in the uniformClass property of a uniform solves the issue. The items like uniforms, vests, or headgear are indeed defined in cfgWeapons. The tricky part is that a uniform is always "linked" with a soldier class (via uniformClass property in configuration of both). If that soldier has scope 0, the problem appears.

 

The problem you encountered next is something I've seen on the forum recently, but it doesn't seem to be a problem in vanilla. I suggest trying your mod without any other mods to test if the one of yours is working properly.

did you guys change anything that you know  off ?? as the problem came up sinds 1.52  so after that update something breaks other things and so its broken :P

(i ask so hopefully we an identify the problem and solve it so Arma 3 can be played with addons again as most of us play it :P )  

Share this post


Link to post
Share on other sites

I have seen both issues with several other mods. Especially the Massi USSOCOM & DEVGRU. I've seen the body in the ground issue as well on other mods. I hope BI fixes this soon, or undoes whatever they did to cause this in the first place. Whatever changed in 1.52 broke it. 

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

×