Jump to content
suhhdude13

Having some config trouble

Recommended Posts

Trying to get this mod working for a server I play on. I want this vest to have multiple textures and it seems fine since I can convert from cpp to bin with cfgconvert but when I open up the eden editor and use the arsenal my vest isnt there. Wanting to know what it is that im doing wrong.

 

#include "BIS_AddonInfo.hpp"


class CfgWeapons
{
	class ItemCore;
	class VestItem;
	class Vest_Camo_Base : ItemCore
	{
	};




	class Red_Cross_ArmorVest: Vest_Camo_Base
	{
		scope = 2;
		displayName = "RedCross Armor Vest";
		picture = 
		model = "\A3\Characters_F\BLUFOR\equip_b_vest01.p3d";
		hiddenSelections[] = {"Commander","Captain","SeniorParamedic","TrainedParamedic"};
		hiddenSelectionsTextures[] = {"trc_vest\vest\Commander.paa","trc_vest\vest\Captain.paa","trc_vest\vest\SeniorParamedic.paa","trc_vest\vest\TrainedParamedic.paa"};
		class ItemInfo: VestItem
		{
			uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest01.p3d";
			hiddenSelections[] = {"camo"};
			containerClass = "Supply120";
			mass = 80;
			armor = 200;
			passThrough = 0.7;
		};
	};
};

 

Share this post


Link to post
Share on other sites

Okay, I went with a totally new config and was able to somehow get Vest2 and Vest4 to show up ingame but now I am having issues with Vest1 and Vest3 not showing up. I am at a total loss with what i am doing wrong at this point.
 

class CfgPatches 
{ 
    class Red_Cross_Vest_Config 
    { 
        units[] = {"RedCross_Vest_Mod";}; 
        weapons[] = {}; 
        requiredVersion = 0.1; 
        requiredAddons[] = {"A3_Characters_F"}; 
    }; 
}; 

class cfgWeapons 
{ 
    //************************************************************************************************************************************************************************************************
    //*****             Vests                *********************************************************************************************************************************************************
    //************************************************************************************************************************************************************************************************
    class ItemCore;
	class VestItem; 
    class Vest_Camo_Base: ItemCore 
    { 
        class ItemInfo; 
    }; 
     
    class RedCross_Vest1: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "Commander"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"trc_vest\vest\Commander.paa"}; 
        class ItemInfo: VestItem 
        { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest01.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "200"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
    class RedCross_Vest2: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "Captain"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"trc_vest\vest\Data\Captain.paa"}; 
        class ItemInfo: VestItem 
        { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "200"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };    
	class RedCross_Vest3: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "SeniorParamedic"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"trc_vest\vest\Data\SeniorParamedic.paa"}; 
        class ItemInfo: VestItem
        { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest01.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "200"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
    class RedCross_Vest4: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "TrainedParamedic"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"trc_vest\vest\Data\TrainedParamedic.paa"}; 
        class ItemInfo: VestItem 
        { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "200"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
}; 

 

Share this post


Link to post
Share on other sites
On 9/18/2022 at 7:02 PM, suhhdude13 said:

Okay, I went with a totally new config and was able to somehow get Vest2 and Vest4 to show up ingame but now I am having issues with Vest1 and Vest3 not showing up. I am at a total loss with what i am doing wrong at this point.


Double check the path of hiddenSelectionsTextures for RedCross_Vest1.
It's different to all the other vests... Missing Data folder.

The following line also looks weird to me.
It doesn't explain why its only Vest1 and Vest2 that aren't showing up though.
Why is it there? And why is there a semicolon within the brackets?

units[] = {"RedCross_Vest_Mod";};


I've only worked with vests twice so I'm likely missing something really obvious, but I'll check it out later when I have more time.


EDIT:

I've managed to get all FOUR vests to show up on units / players.
As I don't have the custom textures you are using, I used the default textures for testing.

There were so many weird characters throughout your example but that's probably down to a known copy-paste issue on the forums.
It was torturous but fun!

NOTE:
I corrected the hiddenSelectionsTextures for RedCross_Vest1 path.
The textures SHOULD still be visible, but if not then add a \ at the start of the path.

Reply if there any issues.

Spoiler

class CfgPatches
{
    class Red_Cross_Vest_Config
	{
		units[] = {};
        weapons[] = {"RedCross_Vest1","RedCross_Vest2","RedCross_Vest3","RedCross_Vest4"};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F"};
    };
};

class cfgWeapons
{
    class ItemCore;
	class VestItem;
    class Vest_Camo_Base: ItemCore
    {
        class ItemInfo;
    };

    class RedCross_Vest1: Vest_Camo_Base
    {
        scope = 2;
        displayName = "Commander";
        picture = "-";
        model = "\A3\Characters_F\BLUFOR\equip_b_Vest01";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"trc_vest\vest\Data\Commander.paa"};
        class ItemInfo: VestItem
        {
            uniformModel = "\A3\Characters_F\BLUFOR\equip_b_Vest01.p3d";
            containerClass = "Supply120";
            mass = 80;
            armor = "200";
            passThrough = 0.3;
            hiddenSelections[] = {"camo"};
        };
    };
    class RedCross_Vest2: Vest_Camo_Base
    {
        scope = 2;
        displayName = "Captain";
        picture = "-";
        model = "\A3\Characters_F\BLUFOR\equip_b_Vest02";
        hiddenSelections[] = {"Camo"};
		hiddenSelectionsTextures[] = {"trc_vest\vest\Data\Captain.paa"};
        class ItemInfo: VestItem
        {
            uniformModel = "\A3\Characters_F\BLUFOR\equip_b_Vest02.p3d";
            containerClass = "Supply120";
            mass = 80;
            armor = "200";
            passThrough = 0.3;
            hiddenSelections[] = {"camo"};
        };
    };
	class RedCross_Vest3: Vest_Camo_Base
    {
        scope = 2;
        displayName = "Senior Paramedic";
        picture = "-";
        model = "\A3\Characters_F\BLUFOR\equip_b_Vest01";
        hiddenSelections[] = {"Camo"};
		hiddenSelectionsTextures[] = {"trc_vest\vest\Data\SeniorParamedic.paa"};
        class ItemInfo: VestItem
        {
            uniformModel = "\A3\Characters_F\BLUFOR\equip_b_Vest01.p3d";
            containerClass = "Supply120";
            mass = 80;
            armor = "200";
            passThrough = 0.3;
            hiddenSelections[] = {"camo"};
        };
    };
    class RedCross_Vest4: Vest_Camo_Base
    {
        scope = 2;
        displayName = "Trained Paramedic";
        picture = "-";
        model = "\A3\Characters_F\BLUFOR\equip_b_Vest02";
        hiddenSelections[] = {"Camo"};
		hiddenSelectionsTextures[] = {"trc_vest\vest\Data\TrainedParamedic.paa"};
        class ItemInfo: VestItem
        {
            uniformModel = "\A3\Characters_F\BLUFOR\equip_b_Vest02.p3d";
            containerClass = "Supply120";
            mass = 80;
            armor = "200";
            passThrough = 0.3;
            hiddenSelections[] = {"camo"};
        };
    };
};

 

 
You now owe me beer.

Edited by Maff
Added working version.

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

×