Jump to content
Big Stan

Im having trouble with adding in a custom backpack

Recommended Posts

I never really worked out how to write my own config the content I have done already was using config templates I had found online or youtube.

 

This is what I had tried to use got off the but unfortunately its not appearing in arma

 

///backpack config ///
 
class cfgVehicles
{
    class Bag_Base;
    class New_Bag: Bag_Base
    {
        author = "Stan";
        scope = 2;
        model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Gorod";
        displayName = "Medic Bag US Army";
        picture = "\ww2_medic_bag\Data\medic_bag_logo";
        hiddenSelectionsTextures[]={"\ww2_medic_bag\Data\medic_bag.paa"};
        maximumLoad = 200;
        mass = 30;
        };
    };
}; 

 

 

I dont get error messages when I launch up arma  so what am i doing wrong. I got this config off community.bistudio.com

 

Thanks for your time !!!!

Share this post


Link to post
Share on other sites

I believe 'bag_base' should be the backpack you're drawing the attributes from. Whatever the gorod model belongs to, is what you want to us in place of 'bag_base'.

 

You should also give your new bag a unique name instead of ' New_Bag '

 

Here's an example of one I did

 

	class mygroup_d_comp: B_AssaultPack_Base
	{
		displayName = "MYGROUPS Olive Backpack";
		scope = 2;
		model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Compact";
		picture = "\MYGROUP\data\ui\icon_com_olive_ca.paa";
		maximumLoad = 160;
		mass = 20;
		hiddenSelectionsTextures[] = {"MYGROUP\data\compact_gd_co.paa"};
		class TransportMagazines{};
		class TransportItems{};
		class TransportWeapons{};
	};

 

 

Share this post


Link to post
Share on other sites

 ERROR MESSAGE ON BOOT    -     line 0: .Medic_bag_d_comp: Undefined base class 'B_FieldPack_Base'

 

 

class Medic_Bag_d_comp: B_FieldPack_Base
{
    displayName = "US Army Medic Bag";
    scope = 2;
    model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Gorod";
    picture = "\ww2_medic_bag\Data\medic_bag_logo.paa";
    maximumLoad = 200;
    mass = 30;
    hiddenSelectionsTextures[] = {"\ww2_medic_bag\Data\medic_bag.paa"};
    class TransportMagazines{};
    class TransportItems{};
    class TransportWeapons{}; 
        };
    };
}; 

 

 

Im not sure if the "B_FieldPack_Base" is the correct base or perhaps it was the custom name?

http://tikka.ws/class/index.php?b=cfgVehices&c=B_FieldPack_oli&conf=2

http://tikka.ws/class/index.php?b=cfgVehicles&c=B_FieldPack_Base

 

and thank you for your response !

Share this post


Link to post
Share on other sites

Did you define the class beforehand? As the amended partial example shows;

 

class B _fieldpack_base;
class Medic_Bag_d_comp: B_FieldPack_Base
{
    displayName = "US Army Medic Bag";
    scope = 2;
    model = "\A3\we
 
 
 
This is a good guide, read and follow carefully :)
 

Share this post


Link to post
Share on other sites

Thanks I took a look at that guide, I will need to spend far more time looking but I used the simple config for backpacks with all the adjustments including defining the class but still no luck.

 

 

 

/// Sample backpack config ///
 
class cfgVehicles
{
   class B_fieldpack_base;
    class New_Bag: B_FieldPack_Base
    {
        author = "Stan";
        scope = 2;
        model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Gorod";
        displayName = "Medic Bag US Army";
        picture = "\ww2_medic_bag\Data\medic_bag_logo.paa";      
        hiddenSelectionsTextures[]={"\ww2_medic_bag\Data\medic_bag.paa"};
        maximumLoad = 200;
        mass = 30;
    };
};

 

 

 

Perhaps ive defined the classes wrong ?

thx

Share this post


Link to post
Share on other sites

Try adding a CfgPatches section at the top of your config.cpp:

 

class CfgPatches {
    class Stan_Backpacks {
		author = "Stan";
		name = "Stans Backpacks";
		requiredAddons[] = {"A3_Data_F"};
		requiredVersion = 0.1;
		units[] = {"New_Bag"};
		weapons[] = {};
		magazines[] = {};
    };
};

 

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

×