VonBarb 11 Posted July 30, 2016 Hi Whenever I try to replace the default A3 CTRG uniforms (not the APEX ones) via configs, my game crashes when I try to enter the loadout editor, giving me an "Status_Access_Violation" error. I've tried both the item per item "hiddenselection" method and the "uniform class" one, with the same results. CTRG Plate carriers don't give me an error though. Here's my little bit of code (don't laugh) : class CfgPatches { class VonBarb's replacement thingie { units[]={}; weapons[]={}; requiredVersion=0.1; requiredAddons[]={"A3_Characters_F","A3_Characters_F_exp"}; }; }; class CfgVehicles { class B_Soldier_base_F; class U_B_CTRG_1: B_Soldier_base_F { hiddenSelections[] = {"camo","insignia"}; hiddenSelectionsTextures[] = {"\sf_uk_sbs\sf\UK\data\combatuniform_maritime_mtp_crye_co.paa"}; }; class U_B_CTRG_2: B_Soldier_base_F { hiddenSelections[] = {"camo","insignia"}; hiddenSelectionsTextures[] = {"\sf_uk_sbs\sf\UK\data\combatuniform_maritime_mtp_crye_co.paa"}; }; class U_B_CTRG_3: B_Soldier_base_F { hiddenSelections[] = {"camo","insignia"}; hiddenSelectionsTextures[] = {"\sf_uk_sbs\sf\UK\data\combatuniform_maritime_mtp_crye_co.paa"}; }; class cfgWeapons { /*extern*/ class H_Booniehat_khk_hs; /*extern*/ class Default; class H_Booniehat_khk: H_Booniehat_khk_hs { hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"\sf_us_sbs\sf\UK\data\booniehat_maritime_mtp_co.paa"}; }; }; All other NATO items work fine with the exact same script, but I seem to hit a rock everytime I try to get near the CTRG ones :mellow: Anyone got any idea ? Share this post Link to post Share on other sites
Jackal326 1182 Posted July 30, 2016 Probably has something to do with you having apostrophes (') and spaces in your classnames (specifically the cfgPatches). Replace the spaces with underscores (_) and take out the apostrophe and try again... Also, why are you inheriting uniform classnames (U_B_CTRG_1/2/3) from Infantry units in cfgVehicles?!? The units that wear them are defined within cfgVehicles but the uniforms are 'weapons' defined within cfgWeapons... Share this post Link to post Share on other sites
VonBarb 11 Posted July 30, 2016 Sorry, should've mentionned that name is a placeholder and not in the actual .cfg file . Please disregard everything coming before "class CfgVehicles" :D Share this post Link to post Share on other sites
Jackal326 1182 Posted July 30, 2016 Sorry, should've mentionned that name is a placeholder and not in the actual .cfg file . Please disregard everything coming before "class CfgVehicles" :D Fair enough, but the rest of my post still stands, specifcially: Also, why are you inheriting uniform classnames (U_B_CTRG_1/2/3) from Infantry units in cfgVehicles?!? The units that wear them are defined within cfgVehicles but the uniforms are 'weapons' defined within cfgWeapons... Share this post Link to post Share on other sites
VonBarb 11 Posted July 30, 2016 My mistake, overlooked that part for some reason ;) I'm inheriting them from CfgVehicles because that's how the .cfg I used as a template did it, and because it works in half a dozen other NATO replacements I made. I tried putting it all under CfgWeapons as you suggested, but I'm still getting the same error message... :/ Could it be that i've been somehow force-feeding textures to items worn by classes, instead of applying textures to those items directly ? Share this post Link to post Share on other sites
Jackal326 1182 Posted July 30, 2016 Could it be that i've been somehow force-feeding textures to items worn by classes, instead of applying textures to those items directly ? That is the only way I can see it working given that the code simply shouldn't work...I can't see the template actually meaning to do it that way, my guess is it forces the unit class to use those textures rather than the uniform class (as a uniform class defined in cfgVehicles makes no god-damned sense) and by the configured link between unit and uniform that is how its "worked". 1 Share this post Link to post Share on other sites
VonBarb 11 Posted July 31, 2016 (edited) You were right, I got uniform and unit classes mixed up. Finding the CORRECT classes for the units I was trying to replace helped. CfgWeapon classes inheriting from CfgVehicles was indeed not a good idea :P After several unhappy attempts at putting together something else using another method, it seems my brute force-feeding of textures to the classes is the only one that works, and with the best results. The .cfg above, when applied to NATO units will replace the textures on all combat uniforms, Gillie and Survival Fatigues included, without changing the model, which I could not reproduce using the "uniformclass" replacement approach, since the Mod I'm using as a replacement doesn't have a class using these models. Edited July 31, 2016 by VonBarb Share this post Link to post Share on other sites