Meatball0311 79 Posted October 30, 2015 Having issue with hiddenselections on my nvg's. There are two models: first model is the NVG in the ON position and the other is in the OFF position. I have two named selections in both models that I want to use hiddenselections on (PVS15 and L4_G24). The first model (ON position) the hiddenselections work fine and the textures show in-game, but on the second model (OFF position) the hiddenselections do not work and there are no textures. class NOD_SOCOM_M953: NVGoggles { scope = 2; author = "SOCMOD"; displayName = "[SOC]M953 NODs"; nameSound = "nvgoggles"; simulation = "NVGoggles"; showEmpty = 0; muzzlePos = "usti hlavne"; muzzleEnd = "konec hlavne"; value = 5; weaponPoolAvailable = 1; opticsZoomMin = 1; opticsZoomMax = 1; modelOptics = "\soc_gear\data\optics\SOC_ANPVS15_OPTIC.p3d"; model = "\soc_gear\data\gear\nvg\SOCOM_PVS15_F_ON.p3d"; picture = "\soc_gear\data\UI\SOCOM_PVS15_UI_ca.paa"; //descriptionUse = "$STR_A3_cfgWeapons_PVS15"; descriptionUse = ""; hiddenSelections[] = {"PVS15","L4_G24"}; /// what selection in model could have different textures hiddenSelectionsTextures[] = {"\soc_gear\data\tex\nvg\acc_soc_anpvs15_blk_co.paa","\soc_gear\data\tex\nvg\acc_soc_wilcox_g24_blk_co.paa"}; /// what texture is going to be used class Library { //libTextDesc = "$STR_LIB_PVS15"; libTextDesc = ""; }; descriptionShort = "M953 SOCOM Night Vision Goggles"; class ItemInfo: ItemInfo { type = 616; hmdType = 0; uniformModel = "\soc_gear\data\gear\nvg\SOCOM_PVS15_F_ON.p3d"; modelOff = "\soc_gear\data\gear\nvg\SOCOM_PVS15_F_OFF.p3d"; mass = 12; hiddenSelections[] = {"PVS15","L4_G24"}; /// what selection in model could have different textures hiddenSelectionsTextures[] = {"\soc_gear\data\tex\nvg\acc_soc_anpvs15_blk_co.paa","\soc_gear\data\tex\nvg\acc_soc_wilcox_g24_blk_co.paa"}; /// what texture is going to be used }; }; }; Question: Can the "modelOff" use hiddenselections? Share this post Link to post Share on other sites
h a w a i i a n 511 Posted October 30, 2015 so you're using two seperate textures for the uniformModel/modelOff P3Ds? Share this post Link to post Share on other sites
h a w a i i a n 511 Posted October 30, 2015 okay so this is what I just did to the pvs-15's I have.... 1. I went into the "model ON" p3d and erased the hiddenselections "camo" array in the "Named Selections" box and did the same for the "model OFF" 2. went into the config and erased the hiddenselections paths for the nvgs hiddenSelections[] = {""}; hiddenSelectionsTextures[] = {""}; tested in-game and it worked, model On had a different texture than model OFF, that is one way to do it.... Share this post Link to post Share on other sites
Meatball0311 79 Posted October 30, 2015 so you're using two seperate textures for the uniformModel/modelOff P3Ds? No. They are the same textures, but there is two selections that I am working with ("PVS15" - the tubes) and ("L4_G24" - the mount). I want them to be the same textures on each model, but I need them to be hiddenselections so I can change textures for different versions i.e. desert PVS15's okay so this is what I just did to the pvs-15's I have.... 1. I went into the "model ON" p3d and erased the hiddenselections "camo" array in the "Named Selections" box and did the same for the "model OFF" 2. went into the config and erased the hiddenselections paths for the nvgs hiddenSelections[] = {""}; hiddenSelectionsTextures[] = {""}; tested in-game and it worked, model On had a different texture than model OFF, that is one way to do it.... Not sure what you are meaning here. Do you have textures applied to the model in the .p3d? Share this post Link to post Share on other sites
h a w a i i a n 511 Posted October 30, 2015 I see my bad for the misunderstanding and yes I have "hiddenselections" and textures on both my NVGs ON & OFF .p3ds and In my config I have about 6 different re-textured NVGs from the same model. Share this post Link to post Share on other sites
h a w a i i a n 511 Posted October 30, 2015 I can help you and I'm wondering if these are the same PVS-15's I am using.... Share this post Link to post Share on other sites
Meatball0311 79 Posted October 30, 2015 I can help you and I'm wondering if these are the same PVS-15's I am using.... Mine are from my mod team... where did you get yours from? The problem is this use to work for me... did something get broken by an Arma update? Share this post Link to post Share on other sites
h a w a i i a n 511 Posted October 30, 2015 I got mine from Lennard, not sure if you know him, these are what mine looks like, are they the same? http://img03.deviantart.net/488e/i/2015/289/7/b/davegary_s_modified_opscore_variant_by_dissizithawaii-d9dc1gi.jpg. As for the update thing I'm not too sure man, looks like you use hiddenSelections[] = {"PVS15","L4_G24"}; instead of "camo", "camo2".... Share this post Link to post Share on other sites
Meatball0311 79 Posted October 30, 2015 I got mine from Lennard, not sure if you know him, these are what mine looks like, are they the same? http://img03.deviantart.net/488e/i/2015/289/7/b/davegary_s_modified_opscore_variant_by_dissizithawaii-d9dc1gi.jpg. As for the update thing I'm not too sure man, looks like you use hiddenSelections[] = {"PVS15","L4_G24"}; instead of "camo", "camo2".... No they are not the same ours are custom built in house. I already tried "camo" Share this post Link to post Share on other sites
h a w a i i a n 511 Posted October 30, 2015 I see.... Share this post Link to post Share on other sites
Meatball0311 79 Posted October 30, 2015 You see I had this working in our previous release, but now all of a sudden it is not working. Also, a rvmat that I was using for a green glow is not working either. Is there problems with ArmA? Share this post Link to post Share on other sites
h a w a i i a n 511 Posted October 30, 2015 I honestly can't say bro, though I wouldn't be too surprised <_< Share this post Link to post Share on other sites
da12thMonkey 1943 Posted October 30, 2015 Is SOCOM_PVS15_F_OFF in the model.cfg and does it have (or inherit) the PVS15 and L4_G24 named selections in that class' the sections[]= array Share this post Link to post Share on other sites
Meatball0311 79 Posted October 30, 2015 Is SOCOM_PVS15_F_OFF in the model.cfg and does it have (or inherit) the PVS15 and L4_G24 named selections in that class' the sections[]= array Yes class SOC_NVG: ArmaMan { sections[] = {"PVS15","L4_G24"}; }; class SOC_PVS15_F_ON : SOC_NVG {}; class SOC_PVS15_F_OFF : SOC_NVG {}; Share this post Link to post Share on other sites