Jump to content
Sign in to follow this  
Serza

ArmA 3 - Vests config.cpp problem

Recommended Posts

Hey guys,

I've a... little problem with my retex attempt.

I've successfully put the config etc. in the game (I can see it in the config viewer), but when I try to put the Platecarrier on, I can only see it in my inventory (ie it gets added) and in the form of a shadow on my character - no model gets displayed.

I'm using Bohemia's Platecarrier Rig model (it IS a retex, after all) as model, and their (slightly modified) black Platecarrier texture.

Below is my current config.cpp:

enum {
 //  = 2,	// Error parsing: Empty enum name
DESTRUCTENGINE = 2,
DESTRUCTDEFAULT = 6,
DESTRUCTWRECK = 7,
DESTRUCTTREE = 3,
DESTRUCTTENT = 4,
STABILIZEDINAXISX = 1,
STABILIZEDINAXESXYZ = 4,
STABILIZEDINAXISY = 2,
STABILIZEDINAXESBOTH = 3,
DESTRUCTNO = 0,
STABILIZEDINAXESNONE = 0,
DESTRUCTMAN = 5,
DESTRUCTBUILDING = 1,
};

class CfgPatches {
   class example_vest_config {
       units[] = {};
       weapons[] = {"V_SGT_N7Vest"};
       requiredVersion = 0.1;
       requiredAddons[] = {"A3_Characters_F_BLUFOR"};
   };
};

class cfgWeapons {
   class Vest_Base;
   class VestItem;

   class V_SGT_N7Vest : VestItem {
       scope = 2;
       displayName = "N7 Platecarrier";
       picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa";
       model = "\A3\Characters_F\BLUFOR\equip_b_vest02.p3d";
       hiddenSelections[] = {"camo"};
       hiddenSelectionsTextures[] = {"\vest\SGT_N7Vest_Texture.paa"};

       class ItemInfo : VestItem {
           uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02.p3d";
           containerClass = "Supply100";
           mass = 50;
           armor = 5*0.5;
           passThrough = 0.7;
           hiddenSelections[] = {"camo"};
       };
   };
};

(found the base for it somewhere on the forums - can't remember who made it, but thank you! - as the Sample config wouldn't even pop up in the CfgViewer)

There are two possible errors it also throws up when trying to equip:

No entry 'bin\config.bin/CfgWeapons/V_SGT_N7Vest.selectionFireAnim'

- if I'm armed while trying to equip

No entry 'bin/config.bin/CfgWeapons/V_SGT_N7Vest.nameSound'

- if I'm unarmed while trying to equip

(armed = have a primary or secondary weapon)

Can anybody clarify my errors and explain what went wrong?

Thanks in advance,

Serza

Share this post


Link to post
Share on other sites

You are using an old classname (Vest_Base). Try this.

class cfgWeapons
{
   class Vest_Camo_Base;
class ItemInfo;
   class VestItem;

   class V_SGT_N7Vest : Vest_Camo_Base
{
       scope = 2;
       displayName = "N7 Platecarrier";
       picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa";
       model = "\A3\Characters_F\BLUFOR\equip_b_vest02.p3d";
       hiddenSelections[] = {"camo"};
       hiddenSelectionsTextures[] = {"\vest\SGT_N7Vest_Texture.paa"};

       class ItemInfo : VestItem
	{
           uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02.p3d";
           containerClass = "Supply100";
           mass = 50;
           armor = 5*0.5;
           passThrough = 0.7;
           hiddenSelections[] = {"camo"};
       };
   };
};

Share this post


Link to post
Share on other sites

Thank you, solved that problem.

Now pops up with a "cannot load texture" instead, but that's something I must've messed up while editing it in Gimp.

Looks like I might even succeed in this :-)

Thanks again,

Serza

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  

×