brad7 4 Posted June 1, 2013 I am trying to get a helmet in game but some reason it isnt working, i think it is something to do with the config [i may be wrong]; 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 Denmark_GoggHelmet_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F_BLUFOR"}; }; }; class cfgWeapons { class ItemCore; class HeadgearItem; class Denmark_GoggHelmet : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "Denmark Kevlar Helmet"; picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa"; model = "\DenmarkHelmet#2\data\DenmarkHelmet"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"\DenmarkHelmet#2\data\DenmarkHelmet_co.paa"}; class ItemInfo : HeadgearItem { mass = 100; uniformModel = "\DenmarkHelmet#2\data\DenmarkHelmet"; modelSides[] = {3, 1}; armor = 3*0.5; passThrough = 0.8; hiddenSelections[] = {"camo"}; }; }; }; Share this post Link to post Share on other sites
surpher 1 Posted June 1, 2013 Could be the #'s in your file paths, you might need to add class ItemInfo; also (stick it just below class HeadgearItem;) and add "A3_Characters_F" to requiredAddons[] just to be sure Share this post Link to post Share on other sites
brad7 4 Posted June 1, 2013 Still dont work, i get this when i try to equip in game. "error loading DenmarkKevlarHelmet\data\denmark.p3d (Magic)" config; 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 Denmark_GoggHelmet_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F"}; }; }; class cfgWeapons { class ItemCore; class HeadgearItem; class ItemInfo; class Denmark_GoggHelmet : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "Denmark Kevlar Helmet"; picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa"; model = "\DenmarkKevlarHelmet\data\DenmarkHelmet"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"\DenmarkHelmet#2\data\DenmarkHelmet_co.paa"}; class ItemInfo : HeadgearItem { mass = 100; uniformModel = "\DenmarkKevlarHelmet\data\DenmarkHelmet"; modelSides[] = {3, 1}; armor = 3*0.5; passThrough = 0.8; hiddenSelections[] = {"camo"}; }; }; }; Share this post Link to post Share on other sites
ovenmit 11 Posted June 1, 2013 What are you using binPBO to build the pbo? Share this post Link to post Share on other sites
brad7 4 Posted June 1, 2013 Yeh, ive managed to get the helmet in game now but the helmet is floating between my legs? Share this post Link to post Share on other sites
ovenmit 11 Posted June 1, 2013 look at the headgear example in A3_Character_Examples_1.1 for correct positioning. also, try referencing an in game helmet instead of itemcore link Share this post Link to post Share on other sites
brad7 4 Posted June 1, 2013 My stuff seems the same as that dont know why it isnt working properly? Share this post Link to post Share on other sites
Foxtrop 10 Posted June 2, 2013 My stuff seems the same as that dont know why it isnt working properly? I had the same problem with a vest, the solution is to copy your helmet over the example model, for some reason the example model has a diferent center of the model, I couldnt replicate it in my model so I just copy mine over the example and the remove all the related to the expample polygons model Share this post Link to post Share on other sites
bad benson 1733 Posted June 2, 2013 read this post: http://forums.bistudio.com/showthread.php?147988-Helmet-Addons&p=2318293&viewfull=1#post2318293 you probably are missing a model.cfg Share this post Link to post Share on other sites
brad7 4 Posted June 2, 2013 read this post:http://forums.bistudio.com/showthread.php?147988-Helmet-Addons&p=2318293&viewfull=1#post2318293 you probably are missing a model.cfg i Have a model.cfg Share this post Link to post Share on other sites
eagledude4 3 Posted June 2, 2013 Does the class in your model.cfg match your p3d name? (This was my issue) Share this post Link to post Share on other sites
brad7 4 Posted June 2, 2013 Yeh it matches and the helmet is in game but it just dosent show on the players head :S Share this post Link to post Share on other sites
AlexVestin 24 Posted June 3, 2013 (edited) I might be having the same problem with a pair of goggles! In-game they are floating in the mid-air inside of the soldiers. Even if you go prone, it's floating in the same spot. It does not follow head movement. I've re-checked several times that the goggles are in fact assigned to my selection "head", I've got an empty geometry lod with autocenter set to 0. A3 cap template was used for positioning. It has all the textures and stuff in-game. It's got a model.cfg with the goggles defined. Will check if i's the correct name / the same as the p3d. //edit Yup. model.cfg had the goggle classname there, not it's p3d name. Fixed it for me. Op should check too :) Edited June 3, 2013 by AlexVestin Share this post Link to post Share on other sites
eagledude4 3 Posted June 4, 2013 Make a geometry LOD, a view pilot LOD, and a shadowvolume LOD (view pilot can be empty) and see what happens. Share this post Link to post Share on other sites
brad7 4 Posted June 4, 2013 *this has now been solved* Share this post Link to post Share on other sites
bad benson 1733 Posted June 6, 2013 *this has now been solved* so aren't you gonna share what solved the problem? people looking for answers later might benefit from that... Share this post Link to post Share on other sites
brad7 4 Posted June 6, 2013 so aren't you gonna share what solved the problem?people looking for answers later might benefit from that... I didnt fix the problem, so I dont know what the problem was... Share this post Link to post Share on other sites