Jump to content
Sign in to follow this  
guare88

Uniform icon not display

Recommended Posts

Hi there,

I have created a new uniform. Everything is working apart from the fact that icon is not display both on virtual arsenal and inventory when applied. Here the below the code

 

class Uniform_Base;
class UniformItem;
class U_I_FullGhillie_sard;
class U_I_FullGhillie_ard;

class BSM_uniforme_base_wood: Uniform_Base
{
    author = "BSM Cocidio";
    scope = 2;
    displayName = "BSM uniforme woodland";
    picture = "\BSM_uniform\BSM_uniform\data\ui\ico_bsm_uniform_woodland_ca.paa";
    model = "\A3\Characters_F\Common\Suitpacks\suitpack_universal_F.p3d";
    hiddenSelections[] = {"camo"};
    hiddenSelectionsTextures[] = {"\A3\Characters_F\Common\Suitpacks\data\suitpack_soldier_indep_co.paa"};
 
    class ItemInfo: UniformItem
    {
        uniformModel = "-";
        uniformClass = "BSM_soldato_base_wood";
        containerClass = Supply40;
        mass = 40;
    };
};

 

*.paa file is in the right folder.

 

Thanks for your help

 

Cheers

Share this post


Link to post
Share on other sites

I believe you need a "host" for the wearer, so the uniform shows up, as it's got nothing to inherit from. You need a vehicle class otherwise who wears the uniform ?

Ate bare minimum you need to have this as your config.cpp

The parts in bold colour are very important to get each class inheriting.

 

Spoiler

class CfgPatches
{
    class MyModName_Uniforms
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F"};
    };
};
class CfgVehicleClasses
{
    class Mymodname_BDU
    {
        displayName = "MyMod";
    };
};

class CfgVehicles
{
    // this configs the dude
    class B_Soldier_F;
    class MyModName_Soldier_1: B_Soldier_F
    {
        scope                        = 2;
        displayName                    = "Rifleman (Olive)";
        vehicleClass                = "MyModName_BDU";
        uniformAccessories[]        = {};
        nakedUniform                 = "U_BasicBody";
        uniformClass                = "MyModName_Uniform_Base";
        model                        = "\SOTG_Uniform\Sotg_Body_1.p3d";

    };
};

class cfgWeapons
{
    // this configs the uniform
    class Uniform_Base;
    class UniformItem;
    class MyModName_Uniform_Base: Uniform_Base
    {
        scope                        = 2;
        displayName                    = "MyModName Uniform";
        picture                        = "\MyModName_Uniform\tx\ui\crye_full_MC_ca";
        model                        = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";

        class ItemInfo: UniformItem
        {
            uniformModel            = "-";
            uniformClass            = "MyModName_Soldier_1";
            containerClass            = "Supply20";
            mass                    = 50;
        };
    };
}:

 

Share this post


Link to post
Share on other sites

Thanks road runner, but i have already did what you said (sorry for not having say that before ). So i have assigned uniform to a soldier and in virtual Arsenal and editor i can wear It. Icon is not showned in arsenal list neither in inventory when you have in character.

 

Thanks again

Share this post


Link to post
Share on other sites
7 minutes ago, guare88 said:

Thanks road runner, but i have already did what you said (sorry for not having say that before ). So i have assigned uniform to a soldier and in virtual Arsenal and editor i can wear It. Icon is not showned in arsenal list neither in inventory when you have in character.

 

Thanks again

Ahh... you need to have a mod.cpp in your @Mymodname that enable the custom icon, instead of the jigsaw thingy ?

Share this post


Link to post
Share on other sites
1 minute ago, road runner said:

Ahh... you need to have a mod.cpp in your @Mymodname that enable the custom icon, instead of the jigsaw thingy ?

Does any icon show on the left or the right of the uniform? Try dropping one of the " \BSM_uniform\BSM_uniform\ " to a single folder in your working directory and see if that helps?

Spoiler

name = "MyModName";
picture = "MyModName.paa";
actionName = "Website";
action = "";
description = "MyModName";

 

Share this post


Link to post
Share on other sites

Ah ok. I didnt have mod.cpp so probably is that the reason why. I will try later at home.

 

Cheers mate

  • Like 1

Share this post


Link to post
Share on other sites
13 hours ago, guare88 said:

So nothing is working..attached image and scripting file (for better understanding)

 

https://drive.google.com/open?id=0Bwch9Z0XRrbdcThOZmt1T1FHckU

 

 

Sorry, I'm just seeing this now, well in your cfg.patches, your hidden selection texture is pointing to the suit .paa

    hiddenSelections[] = {"camo"};
    hiddenSelectionsTextures[] = {"\A3\Characters_F\Common\Suitpacks\data\suitpack_soldier_indep_co.paa"};

 

It should be
        hiddenSelectionsTextures[] = {"\BSM_uniform\BSM_uniform\data\textures\bsm_woodland_uniform_co.paa"};


I'd also not have data\textures either, I'd keep the rvmats and nohq/smdi/as .paa's in that folder and have a separate one called Tex, don't have them within each other, try to keep them separate.

Share this post


Link to post
Share on other sites
On 11/2/2017 at 0:54 PM, road runner said:

Sorry, I'm just seeing this now, well in your cfg.patches, your hidden selection texture is pointing to the suit .paa

    hiddenSelections[] = {"camo"};
    hiddenSelectionsTextures[] = {"\A3\Characters_F\Common\Suitpacks\data\suitpack_soldier_indep_co.paa"};

 

It should be
        hiddenSelectionsTextures[] = {"\BSM_uniform\BSM_uniform\data\textures\bsm_woodland_uniform_co.paa"};


I'd also not have data\textures either, I'd keep the rvmats and nohq/smdi/as .paa's in that folder and have a separate one called Tex, don't have them within each other, try to keep them separate.

 

Hey man,

that is not for the uniform texture when you put on the ground (https://community.bistudio.com/wiki/Arma_3_Characters_And_Gear_Encoding_Guide)?

 

Maybe I didn't explain myself..but my problem is that uniform icon is not showing in arsenal and inventory (see picture below)

 

0hcO5h2.jpg

 

 

b5irby8.jpg

 

As you can see on arenal list for BSM pilot uniform this is not happening, but code in cfgWeapons has the same structure as others.

 

Thanks

 

 

Edited by guare88
add quote

Share this post


Link to post
Share on other sites

Please help me!My mod is almost ove apart from this icon problem..:down:

 

Share this post


Link to post
Share on other sites
10 hours ago, guare88 said:

Please help me!My mod is almost ove apart from this icon problem..:down:

 

Try replacing this

picture = "\BSM_uniform\BSM_uniform\data\ui\ico_bsm_uniform_woodland_ca.paa";

with the default picture

picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";

and see if that shows, if it does, there's something wrong with your ico picture.

Share this post


Link to post
Share on other sites
On 21/2/2017 at 10:52 AM, road runner said:

Try replacing this

picture = "\BSM_uniform\BSM_uniform\data\ui\ico_bsm_uniform_woodland_ca.paa";

with the default picture

picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";

and see if that shows, if it does, there's something wrong with your ico picture.

Tried as you said buddy..and it is working with default picture. So my ico picture has something broken. Honestly i dont know...I have followed this tutorial

 

 

But only for uniform is not working, for vest and backapack no problem :eh:

Share this post


Link to post
Share on other sites

Is the dimensions of the .paa correct? as in 128 x128, or 256 x 256, or 512 x 512?

Share this post


Link to post
Share on other sites

256x256..in the shared folder there are all paa file that it has been used

Share this post


Link to post
Share on other sites

I'm having a similar problem with the UI icon. What I have so far works great in the Virtual Arsenal world but in the editor the icon is a no show in the UI. My character is wearing my custom uniform but the UI icon is not showing in the inventory menu. I switched to the default UI multicam icon for simplicity's sake but still no joy. 

 

Here is my code as is:

 

Spoiler

class cfgWeapons 
{    

class ItemCore; 
    class UniformItem; 
    class Uniform_Base: ItemCore 
    { 
        class ItemInfo; 
    }; 

    class Custom_Camo: Uniform_Base 
    { 
        scope = 2; 
        displayName = "Custom ACU"; 
        picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_CA"; 
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d"; 
        class ItemInfo : UniformItem { 
            uniformClass = "ACU_Uniform"; 
            containerClass = "Supply50"; 
            mass = 50; 
        }; 
    }; 

 

Any help would be appreciated.

 

EDIT:

 

I believe after looking at everything that its not the uniform that is bugged but something to do with the weapons. I get this error in the editor: 

 

Spoiler

no entry 'bin\config.bin/CfgWeapons.ACU_Camo'.

 

I'm not sure what to do about it. I tried putting my weapons back to default "throw","put" but no effect. It makes sense that it has something to do with the weapons as no weapons show up in my uniform when I have grenades equipped in the editor.

 

 

I figured it out! Took me a while but I finally figured it out. I had to switch the class names to be opposites of each other. For example:

 

Spoiler

    class ACU_Uniform: B_soldier_F {
        author = "5C4R556"; 
        _generalMacro = "B_soldier_F"; 
        scope = 2; 
        displayName = "Operator ACU"; 
        identityTypes[] = {"Head_NATO", "G_NATO_default"}; 
        genericNames = "NATOMen"; 
        faction = "Custom_Faction";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d"; 
        uniformClass = "ACU_Camo"; 
        hiddenSelections[] = {"Camo","Insignia"}; 
        hiddenSelectionsTextures[] = {"\custom_faction\data\textures\custom_acu_co.paa"}; 
        weapons[] = {"arifle_SPAR_01_blk_F","Throw","Put"}; 
        respawnWeapons[] = {"arifle_SPAR_01_blk_F","Throw","Put"}; 
        magazines[] = {"30Rnd_556x45_Stanag_Tracer_Red","HandGrenade","HandGrenade","SmokeShellYellow","SmokeShellYellow","B_IR_Grenade"}; 
        respawnMagazines[] = {"30Rnd_556x45_Stanag_Tracer_Red","HandGrenade","HandGrenade","SmokeShellYellow","SmokeShellYellow","B_IR_Grenade"};
        linkedItems[] = {"ItemMap","ItemGPS","ItemRadio","ItemCompass","ItemWatch"}; 
        respawnLinkedItems[] = {"ItemMap","ItemGPS","ItemRadio","ItemCompass","ItemWatch"}; 

      };

 };

 

class ACU_Camo: Uniform_Base 
    { 
        author = "5C4R556";
        scope = 2; 
        displayName = "Custom ACU"; 
        picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_CA"; 
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d"; 
        class ItemInfo : UniformItem { 
            uniformClass = "ACU_Uniform"; 
            containerClass = "Supply50"; 
            mass = 50; 

 

 

 

Hope that helps you OP! Damn that was tricky.:don11:

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  

×