Jump to content
Sign in to follow this  
Bloodshot_Pico

What Have I Broken?

Recommended Posts

Hello,

so first off I'm going to say before you yell at how stupid I may seem from what I'm about to post I want you to know I'm new to the whole ArmA modding scene.

 

But I'll start with my problem, so basically I am planning on having a few mods separate from one another like vests, uniforms etc. And my first question is that can you have the helmets and vests separate since I've seen the .paa's and there are together within there, so I'm not sure if I can do them separately.

 

My second question is why won't my vests mod load, I'll post code for it underneath, but basically I was getting errors etc. and I thought I fixed them but when I load into the game, it says that the mod is loaded yet there aren't any vests from the mod within the virtual arsenal, and I've removed the vests from another mod I am working on which is basically my template. But I'm guessing it has something to do with Units?

Spoiler


    //************************************************************************************************************************************************************************************************
    //*****             Vests                *********************************************************************************************************************************************************
    //************************************************************************************************************************************************************************************************
    class ItemCore;
	class VestItem; 
    class Vest_Camo_Base: ItemCore 
    { 
        class ItemInfo; 
    }; 
     
    class Custom_Vest1: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "Custom Platecarrier"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_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"}; 
        }; 
    };
    class Custom_Vest2: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "Custom Platecarrier Lite"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_co.paa"}; 
        class ItemInfo: VestItem 
        { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "5"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
    class Custom_Vest3: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "Custom Platecarrier Kerry"; 
        picture = "-"; 
        model = "A3\Charactrs_F_EPA\BLUFOR\equip_b_vest_kerry"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_co.paa"}; 
        class ItemInfo: VestItem 
        { 
            uniformModel = "A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "5"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };

 

(This is the entirety of the config.cpp file.)

 

Thanks for reading and faceplaming at me. :) Thank you for helping in advance.

~Blood

Share this post


Link to post
Share on other sites

mod.cpp? Do you mean config.cpp?

You need a CfgPatches {} entry and to enclose your vests classes in CfgWeapons {}.

 

Just out of interest, where are the author="BloodshotPico"; lines we talked about earlier?

 

  • Like 1

Share this post


Link to post
Share on other sites

Try this:

 

class CfgPatches {
    class BSP_Vests {
        author = "BloodshotPico";
        name = "BloodshotPico - Vests";
        url = "";
        requiredAddons[] = {"A3_Data_F"};
        requiredVersion = 0.1;
        units[] = {};
        weapons[] = {
            "Custom_Vest1",
            "Custom_Vest2",
            "Custom_Vest3"
        };
        magazines[] = {};
    };
};    
		
class CfgWeapons {	
    class ItemCore;
    class VestItem; 
    class Vest_Camo_Base : ItemCore { 
        class ItemInfo; 
    }; 
     
    class Custom_Vest1 : Vest_Camo_Base { 
        scope = 2; 
        author = "BloodshotPico";
        displayName = "Custom Platecarrier"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_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"}; 
        }; 
    };
    class Custom_Vest2 : Vest_Camo_Base {
        scope = 2; 
        author = "BloodshotPico";
        displayName = "Custom Platecarrier Lite"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_co.paa"}; 
        class ItemInfo : VestItem { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "5"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
    class Custom_Vest3 : Vest_Camo_Base { 
        scope = 2; 
        author = "BloodshotPico";
        displayName = "Custom Platecarrier Kerry"; 
        picture = "-"; 
        model = "A3\Charactrs_F_EPA\BLUFOR\equip_b_vest_kerry"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_co.paa"}; 
        class ItemInfo : VestItem { 
            uniformModel = "A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "5"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
};

 

  • Like 1

Share this post


Link to post
Share on other sites
6 minutes ago, UK_Apollo said:

Try this:

 


class CfgPatches {
    class BSP_Vests {
        author = "BloodshotPico";
        name = "BloodshotPico - Vests";
        url = "";
        requiredAddons[] = {"A3_Data_F"};
        requiredVersion = 0.1;
        units[] = {};
        weapons[] = {
            "Custom_Vest1",
            "Custom_Vest2",
            "Custom_Vest3"
        };
        magazines[] = {};
    };
};    
		
class CfgWeapons {	
    class ItemCore;
    class VestItem; 
    class Vest_Camo_Base : ItemCore { 
        class ItemInfo; 
    }; 
     
    class Custom_Vest1 : Vest_Camo_Base { 
        scope = 2; 
        author = "BloodshotPico";
        displayName = "Custom Platecarrier"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_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"}; 
        }; 
    };
    class Custom_Vest2 : Vest_Camo_Base {
        scope = 2; 
        author = "BloodshotPico";
        displayName = "Custom Platecarrier Lite"; 
        picture = "-"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_co.paa"}; 
        class ItemInfo : VestItem { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "5"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
    class Custom_Vest3 : Vest_Camo_Base { 
        scope = 2; 
        author = "BloodshotPico";
        displayName = "Custom Platecarrier Kerry"; 
        picture = "-"; 
        model = "A3\Charactrs_F_EPA\BLUFOR\equip_b_vest_kerry"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"DTI_Vests\Data\testvest_co.paa"}; 
        class ItemInfo : VestItem { 
            uniformModel = "A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "5"; 
            passThrough = 0.3; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };
};

 

Ah okay I will try this and thanks again for helping me. :) And this was taken from a copy of that mod a while back and I haven't updated it since I didn't know what was wrong and I've been trying to update the other mod, but yet again thanks for helping me and I'll get back to you if it works or not. Oh and yes I did mean config.cpp. :D

Share this post


Link to post
Share on other sites

@UK_Apollo That fixed my problem I was having, at least now I know I need something before just slamming a bunch of text into a config.cpp for it to work. Thanks again. :)

  • Like 1

Share this post


Link to post
Share on other sites

Should Helmets and Vests be together since they're in the same .paa file? For example does the helmet and vest textures come from the same .paa file or can I have separate .paa files for vests and helmets only?

 

I am very confused on how it works with these two.

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  

×