Page MenuHomeFeedback Tracker

#define UNIFORM() cannot load texture but texture shows
New, NormalPublic

Description

I am trying to use #define macro to simply uniform in my config.cpp with #include files as well.

#define UNIFORM(NAME,DLC,DN,TEX,SOLDIER,LOAD,WEIGHT) \

class ##NAME##: Uniform_Base \
{ \
    author = "$STR_USE_Author"; \
    DLC = ##DLC##; \
    scope = 2; \
    displayName = ##DN##; \
    picture = "\A3\characters_f\data\ui\icon_U_C_miller_ca.paa"; \
    model = "\A3\Characters_F\Common\Suitpacks\suitpack_original_F.p3d"; \
    hiddenSelections[] = {"camo"}; \
    hiddenSelectionsTextures[] = {"\use_police\data\##TEX##.paa"}; \
    \
    class ItemInfo: UniformItem \
    { \
        uniformModel = "-"; \
        uniformClass = ##SOLDIER##; \
        containerClass = Supply##LOAD##; \
        mass = ##WEIGHT##; \
    }; \
};

UNIFORM(U_Police_Cadet,UE_Mod,"$STR_USE_police_cadet0",u_b_cadet_co,use_Police_Cadet_F,20,40);

I get a error message in VA saying "cannot load texture \use_police\data\TEX.paa' but the textures shows up anway

Details

Severity
Text
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Config
Steps To Reproduce

use #define config from the arma 3 Characters and Gear Config and always comes out saying cannot find texture but textures shows

Additional Information

Also get this in my client .rpt log
9:41:06 Warning Message: Cannot load texture use_police\data\tex.paa.
9:41:07 Warning Message: Cannot load texture use_police\data\tex.paa.

Event Timeline

usedragon added a comment.EditedMay 25 2016, 5:15 AM

I have gotten some feedback from commy by making another #define Quote to handle the texture input.

#define QUOTE(var type paa) #(var.paa)
hiddenSelectionsTextures[] = {QUOTE(\use_police\data\TEX)}; \

there are no more leading errors that it cannot find texture in the VA

For new people even for my self, I wouldn't have figured this out by myself or even thinking about making another #define macro to make the texture to show and not produce any errors.