Jump to content
Sign in to follow this  
Kreator

Kitbag CPP problem, can't find my addon in Virtual Arsenal

Recommended Posts

Hi there,

I've made a texture for the kitbag, everything seem good for me but, it's not showing in virtual arsenal any idea ? Thanx in advance :) Here's the config.cpp

class CfgVehicles
{
class Bag_Base;
class sac_camo_ce_fr: Bag_Base
{
	_generalMacro = "sac_camo_ce_fr";
	picture = "\A3\Weapons_F\ammoboxes\bags\data\ui\icon_B_C_Kitbag_rgr";
	model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Fast";
	hiddenSelectionsTextures[] = {"\sac_armadeus\Data\sac_camo_ce_fr.paa"};
	displayName = "Sac Moyen Camo CE FR";
	scope = 2;
	maximumLoad = 350;
	passThrough = 1;
	mass = 4;
};
};

Share this post


Link to post
Share on other sites

Nope, i tried to add this in the init field of my unit :

this addBackpack "sac_camo_ce_fr

and it returns

No entry 'bin\config/cfgPatches/cfgVehicles.units'

I also changed my .cpp here it is :

class CfgPatches
{
            class Kreator_sac
               {
               units[] = {"sac_camo_ce_fr"};
               weapons[] = {};
               requiredVersion = 1;
               rewuiredAddons[] = {};
               };

class CfgVehicles
{
class B_Kitbag_cbr;
class sac_camo_ce_fr: B_Kitbag_cbr
{
	_generalMacro = "sac_camo_ce_fr";
	picture = "\A3\Weapons_F\ammoboxes\bags\data\ui\icon_B_C_Kitbag_rgr";
	model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Fast";
	hiddenSelectionsTextures[] = {"\sac_armadeus\Data\sac_camo_ce_fr.paa"};
	displayName = "Sac Moyen Camo CE FR";
	scope = public;
	maximumLoad = 350;
	passThrough = 1;
	mass = 4;
};
};
};

Share this post


Link to post
Share on other sites

you did not close cfgPatches properly use this:

class CfgPatches 
{ 
               class Kreator_sac 
               { 
               units[] = {"sac_camo_ce_fr"}; 
               weapons[] = {}; 
               requiredVersion = 1; 
               rewuiredAddons[] = {}; 
               }; 
};
class CfgVehicles 
{ 
   class B_Kitbag_cbr; 
   class sac_camo_ce_fr: B_Kitbag_cbr 
   { 
       _generalMacro = "sac_camo_ce_fr"; 
       picture = "\A3\Weapons_F\ammoboxes\bags\data\ui\icon_B_C_Kitbag_rgr"; 
       model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Fast"; 
       hiddenSelectionsTextures[] = {"\sac_armadeus\Data\sac_camo_ce_fr.paa"}; 
       displayName = "Sac Moyen Camo CE FR"; 
       scope = public; 
       maximumLoad = 350; 
       passThrough = 1; 
       mass = 4; 
   }; 
}; 

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  

×