Jump to content
Sign in to follow this  
TacBacon

[Solved] Texture not loaded

Recommended Posts

I have made uniform addon that just retexture it

but when I try it on virtual arsenal it's texture is the default one There's no error popping out

 

 

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 RTAF_Uniform {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F_BLUFOR"};
	};
};

class CfgVehicles {

	class B_Soldier_base_F;
	class Example_Soldier_F : B_Soldier_base_F {
		_generalMacro = "B_Soldier_F"; //unsure what this does
		scope = 2;
		displayName = "RTA Rifleman";
		nakedUniform = "U_BasicBody"; //class for "naked" body
		uniformClass = "RTAF_CombatUniform_wdl"; //e.g. "Example_Soldier_F"
		hiddenSelections[] = {"Camo"};
		hiddenSelectionsTextures[] = {"\RTAF\data\RTAF_CombatUniform_digiwdl_f.paa"};
	};
};

class cfgWeapons {
	
	class Uniform_Base;
	class UniformItem;

	class RTAF_CombatUniform_wdl : Uniform_Base {
		scope = 2;
		displayName = "RTA Uniform";
		picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
		model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
		};

	class ItemInfo : UniformItem {
		uniformModel = "-";
		uniformClass = "Example_Soldier_F"; //would be same as our made soldier class
		containerClass = "Supply20"; //how much it can carry
		mass = 80; //how much it weights
	};
};

Share this post


Link to post
Share on other sites

Please try adding scope = 1; to your Example_Soldier_F class. Or eve 2, if you want the soldier in the editor. It doesn't work with scope 0, which is inherited to your soldier class from B_Soldier_base_F.

  • Like 1

Share this post


Link to post
Share on other sites

Please try adding scope = 1; to your Example_Soldier_F class. Or eve 2, if you want the soldier in the editor. It doesn't work with scope 0, which is inherited to your soldier class from B_Soldier_base_F.

I think It's already 2 or am I understand something wrong?

 

P5NV2ys.png

Share this post


Link to post
Share on other sites

Indeed, sorry for overlooking that. A bit of a random idea: please try Characters_F instead of Characters_F_BLUFOR in the requiredAddons[] property of CfgPatches. (You also should add the soldier into CfgPatches' units[] property and the uniform into weapons[] one, even though the absence of thereof shouldn't be much of a deal ATM.)

  • Like 1

Share this post


Link to post
Share on other sites

the problem is is that your class itemInfo is supposed to be inside you uniform class but it aint.

 
class cfgWeapons {
    
    class Uniform_Base;
    class UniformItem;
 
    class RTAF_CombatUniform_wdl : Uniform_Base {
        scope = 2;
        displayName = "RTA Uniform";
        picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
        model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        };
 
    class ItemInfo : UniformItem {
        uniformModel = "-";
        uniformClass = "Example_Soldier_F"; //would be same as our made soldier class
        containerClass = "Supply20"; //how much it can carry
        mass = 80; //how much it weights
    };
};

should be:

 
class cfgWeapons {
    
    class Uniform_Base;
    class UniformItem;
 
    class RTAF_CombatUniform_wdl : Uniform_Base {
        scope = 2;
        displayName = "RTA Uniform";
        picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
        model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        class ItemInfo : UniformItem
        {
         uniformModel = "-";
         uniformClass = "Example_Soldier_F"; //would be same as our made soldier class
         containerClass = "Supply20"; //how much it can carry
         mass = 80; //how much it weights
        };
    };
};

  • Like 2

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  

×