BadHabitz 235 Posted September 11, 2013 (edited) Need help making a proper config.bin, I guess. I thought I had everything right. I've looked around the forums, and I've seen some help threads, and I thought that I'm complying with those, but I'm still not getting it to work. I'm getting errors that prevent the config.cpp from turning into a config.bin Please help. Thanks in advance config.cpp 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 CMP { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class CfgVehicles { class B_Soldier_base_F; class I_soldier_F; class B_Soldier_03_F; class NWU_Soldier_A : B_Soldier_base_F { _generalMacro = "B_Soldier_F"; scope = 2; displayName = "NWU2 Uniform"; nakedUniform = "U_BasicBody"; uniformClass = "Uniform_NWU2"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"CMP\data\Uniform_NWU2.paa"}; }; class NWU_Soldier_B : B_Soldier_base_F { _generalMacro = "B_Soldier_F"; scope = 2; displayName = "NWU2 Alt Uniform"; nakedUniform = "U_BasicBody"; uniformClass = "Uniform_NWU2_B"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"CMP\data\Uniform_NWU2_A.paa"}; }; class Des_Placeholder_A : I_soldier_F { _generalMacro = "I_soldier_F"; scope = 2; displayName = "Desert Uniform"; nakedUniform = "U_BasicBody"; uniformClass = "Uniform_Desert"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"CMP\data\Uniform_Desert.paa"}; }; class NWU_Soldier_Recon_A : B_Soldier_03_F { _generalMacro = "B_Soldier_03_F"; scope = 2; displayName = "NWU2 Recon Uniform"; nakedUniform = "U_BasicBody"; uniformClass = "Uniform_Recon_NWU2"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"CMP\data\Uniform_NWU2.paa"}; }; class NWU_Soldier_Recon_B : B_Soldier_03_F { _generalMacro = "B_Soldier_03_F"; scope = 2; displayName = "NWU2 Alt Recon Uniform"; nakedUniform = "U_BasicBody"; uniformClass = "Uniform_Recon_NWU2_B"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"CMP\data\Uniform_NWU2_A.paa"}; }; class cfgWeapons { class Uniform_Base; class UniformItem; class Vest_Base; class Vest_Camo_Base; class VestItem; class ItemCore; class HeadgearItem; class B_AssaultPack_Base; class B_Kitbag_Base; class Uniform_NWU2 : Uniform_Base { scope = 2; displayName = "NWU2 Uniform"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "NWU_Soldier_A"; containerClass = "Supply30"; mass = 70; }; }; class Uniform_NWU2_B : Uniform_Base { scope = 2; displayName = "NWU2 Alt Uniform"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "NWU_Soldier_B"; containerClass = "Supply30"; mass = 70; }; }; class Uniform_Desert : Uniform_Base { scope = 2; displayName = "Desert Uniform"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "Des_Placeholder_A"; containerClass = "Supply30"; mass = 70; }; }; class Uniform_Recon_NWU2 : Uniform_Base { scope = 2; displayName = "NWU2 Recon Uniform"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "NWU_Soldier_Recon_A"; containerClass = "Supply30"; mass = 70; }; }; class Uniform_Recon_NWU2_B : Uniform_Base { scope = 2; displayName = "NWU2 Alt Recon Uniform"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "NWU_Soldier_Recon_B"; containerClass = "Supply30"; mass = 70; }; }; class Vest_NWU2 : Vest_Camo_Base { scope = 2; displayName = "NWU2 Vest"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa"; model = "\A3\Characters_F\BLUFOR\equip_b_vest02"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Vest_NWU2.paa"}; class ItemInfo: VestItem { uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02"; containerClass = "Supply100"; mass = 50; armor = "5*0.5"; passThrough = 0.700000; hiddenSelections[] = {"camo"}; }; }; class Vest_C_NWU2 : Vest_Camo_Base { scope = 2; displayName = "NWU2 Vest (Strong)"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_2_CA.paa"; model = "\A3\Characters_F\BLUFOR\equip_b_vest01"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Vest_NWU2.paa"}; class ItemInfo: VestItem { uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest01"; containerClass = "Supply100"; mass = 50; armor = "5*0.5"; passThrough = 0.800000; hiddenSelections[] = {"camo"}; }; }; class Vest_C_BLACK : Vest_Camo_Base { scope = 2; displayName = "Black Vest (Strong)"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_2_CA.paa"; model = "\A3\Characters_F\BLUFOR\equip_b_vest01"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Vest_Black.paa"}; class ItemInfo: VestItem { uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest01"; containerClass = "Supply100"; mass = 50; armor = "5*0.5"; passThrough = 0.800000; hiddenSelections[] = {"camo"}; }; }; class Vest_BLACK : Vest_Camo_Base { scope = 2; displayName = "Black Vest"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa"; model = "\A3\Characters_F\BLUFOR\equip_b_vest02"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Vest_Black.paa"}; class ItemInfo: VestItem { uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02"; containerClass = "Supply100"; mass = 50; armor = "5*0.5"; passThrough = 0.700000; hiddenSelections[] = {"camo"}; }; }; class Vest_Desert : Vest_Camo_Base { scope = 2; displayName = "Khaki Vest"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa"; model = "\A3\Characters_F\BLUFOR\equip_b_vest02"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Vest_Desert.paa"}; class ItemInfo: VestItem { uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02"; containerClass = "Supply100"; mass = 50; armor = "5*0.5"; passThrough = 0.700000; hiddenSelections[] = {"camo"}; }; }; class Vest_C_Desert : Vest_Camo_Base { scope = 2; displayName = "Khaki Vest (Strong)"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_2_CA.paa"; model = "\A3\Characters_F\BLUFOR\equip_b_vest01"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Vest_Desert.paa"}; class ItemInfo: VestItem { uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest01"; containerClass = "Supply100"; mass = 50; armor = "5*0.5"; passThrough = 0.800000; hiddenSelections[] = {"camo"}; }; }; class Helmet_NWU2 : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "ECH NWU2"; picture = "\A3\characters_f\Data\UI\icon_H_HelmetSpecB_CA.paa"; model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_light"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Helmet_NWU2.paa"}; class ItemInfo: HeadgearItem { mass = 100; uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_light"; modelSides[] = {3, 1}; armor = "3*0.5"; passThrough = 0.800000; hiddenSelections[] = {"camo"}; }; }; class Helmet_Desert : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "ECH Desert"; picture = "\A3\characters_f\Data\UI\icon_H_HelmetSpecB_CA.paa"; model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_light"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Helmet_Desert.paa"}; class ItemInfo: HeadgearItem { mass = 100; uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_light"; modelSides[] = {3, 1}; armor = "3*0.5"; passThrough = 0.800000; hiddenSelections[] = {"camo"}; }; }; class Helmet_BLACK : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "ECH Black"; picture = "\A3\characters_f\Data\UI\icon_H_HelmetSpecB_CA.paa"; model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_light"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Helmet_BLACK.paa"}; class ItemInfo: HeadgearItem { mass = 100; uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_light"; modelSides[] = {3, 1}; armor = "3*0.5"; passThrough = 0.800000; hiddenSelections[] = {"camo"}; }; }; class Cap_NWU2 : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "NWU2 Cap"; picture = "\A3\characters_f\Data\UI\icon_H_cap_blk_CA.paa"; model = "\A3\Characters_F\Common\capb.p3d"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Cap_NWU2.paa"}; class ItemInfo: HeadgearItem { mass = 100; uniformModel = "\A3\Characters_F\Common\capb.p3d"; modelSides[] = {3, 1}; armor = "1*0.5"; passThrough = 0.100000; hiddenSelections[] = {"camo"}; }; }; class Cap_Black : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "Black Cap (US)"; picture = "\A3\characters_f\Data\UI\icon_H_cap_blk_CA.paa"; model = "\A3\Characters_F\Common\capb.p3d"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Cap_Black.paa"}; class ItemInfo: HeadgearItem { mass = 100; uniformModel = "\A3\Characters_F\Common\capb.p3d"; modelSides[] = {3, 1}; armor = "1*0.5"; passThrough = 0.100000; hiddenSelections[] = {"camo"}; }; }; class Boonie_NWU2 : ItemCore { scope = 2; weaponPoolAvailable = 1; displayName = "NWU2 Boonie"; picture = "\A3\characters_f\Data\UI\icon_H_booniehat_CA.paa"; model = "\A3\Characters_F\Common\booniehat.p3d"; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"CMP\data\Boonie_NWU2.paa"}; class ItemInfo: HeadgearItem { mass = 100; uniformModel = "\A3\Characters_F\Common\booniehat.p3d"; modelSides[] = {3, 1}; armor = "1*0.5"; passThrough = 0.100000; hiddenSelections[] = {"camo"}; }; }; class Backpack_NWU2 : B_AssaultPack_Base { scope = 2; displayName = "NWU2 Assault Backpack"; hiddenSelectionsTextures[] = {"CMP\data\Backpack_NWU2.paa"}; }; class Kitbag_NWU2 : B_Kitbag_Base { scope = 2; displayName = "NWU2 Kitbag"; hiddenSelectionsTextures[] = {"CMP\data\Kitbag_NWU2.paa"}; }; }; }; error log Cannot register unknown string STR_STATE_HEALSOLDIER Cannot register unknown string STR_STATE_FIRST_AID Cannot register unknown string STR_UI_RADARRANGE Cannot register unknown string STR_ACTION_LAUNCHCM Cannot register unknown string STR_ACTION_NEXTCM Cannot register unknown string STR_USRACT_ACTION_CONTEXT Cannot register unknown string STR_USRACT_OPTICS_MODE Cannot register unknown string STR_USRACT_ZEROING_UP Cannot register unknown string STR_USRACT_ZEROING_DOWN Cannot register unknown string STR_USRACT_NETWORK_DS_INTERFACE Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_10CM Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_10CM Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_50CM Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_50CM Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_0 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_1 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_2 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_3 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_4 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_5 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_6 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_7 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_8 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_9 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_10 Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_11 Cannot register unknown string STR_DISP_LEFT Cannot register unknown string STR_DIFF_CAMERA_SHAKE Cannot register unknown string STR_FREETRACK Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_CORE Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_MOD Cannot register unknown string STR_ADDON_ACTIONS_PLAY_MISSION Cannot register unknown string STR_ADDON_ACTIONS_TRY_ENTITY Cannot register unknown string STR_ADDON_ACTIONS_TRY_WEAPON Cannot register unknown string STR_MSG_ADDON_NOT_FOUND Cannot register unknown string STR_MSG_ADDON_CANNOT_OPEN Cannot register unknown string STR_MSG_ADDON_UNKNOWN_PRODUCT Cannot register unknown string STR_INCOMPATIBLE_LOAD_GAME_ATTEMPT Warning: CfgVehicles missing in PreloadConfig - may slow down vehicle creation Warning: CfgAmmo missing in PreloadConfig - may slow down vehicle creation Warning: CfgNonAIVehicles missing in PreloadConfig - may slow down vehicle creation Cannot load font core\data\fonts\lucidaconsoleb8 Fonts file \core\data\fonts\lucidaConsoleB8 not found Cannot load font core\data\fonts\lucidaconsoleb11 Fonts file \core\data\fonts\lucidaConsoleB11 not found Creating texture headers file... 14 texture headers saved to file "C:\Users\Fredock1\AppData\Local\Temp\ARMAaddons\cmp\texHeaders.bin" w:\C_branch\Poseidon\Arrowhead\El\FileServer\fileServer.cpp(2513) : Assertion failed 'req->RefCounter()==1' Edited September 11, 2013 by BadHabitz Share this post Link to post Share on other sites
[frl]myke 14 Posted September 11, 2013 A common mistake. Array is missing square brackets []. These: hiddenSelections = {"Camo"}; hiddenSelectionsTextures = {"CMP\data\Uniform_NWU2.paa"}; should look like this: hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"CMP\data\Uniform_NWU2.paa"}; Those are arrays and need to defined with the square brackets as such. Simple rule: if after a = comes a {, then before the = comes []. This should solve the problem. Share this post Link to post Share on other sites
cfsfirefighter 1 Posted September 11, 2013 how come the ones in game have [] taken out and they work is that because when they become locked it removes them?? Share this post Link to post Share on other sites
BadHabitz 235 Posted September 11, 2013 (edited) Thanks Myke. Latest attempt... I made some fixes and I actually got BinPBO to run through with no errors ang gives what appears to be a clean log. Only problem now is the gear doesn't show in Virtual Ammobox. I thought all of the mods just would naturally show up in there. So I'm thinking I still have a problem. The good news is that I now have a config.bin in my pbo! I've updated my original post with latest config.cpp and error log. Edited September 11, 2013 by BadHabitz update Share this post Link to post Share on other sites
surpher 1 Posted September 11, 2013 Looks like you have you cfgWeapons class wrongly placed inside your CfgVehicles class. Share this post Link to post Share on other sites
BadHabitz 235 Posted September 11, 2013 (edited) Looks like you have you cfgWeapons class wrongly placed inside your CfgVehicles class.So I need to close out vehicles before I start on weapons?edit: That's exactly what needed to happen. It works now! Now anyone have an idea how I get my imported objects to show up on the bottom of the Virtual Ammobox list? In my experience VAS places modded stuff at the bottom, but mine is at the top. Edited September 11, 2013 by BadHabitz Share this post Link to post Share on other sites
captainclaw 10 Posted September 14, 2013 Now anyone have an idea how I get my imported objects to show up on the bottom of the Virtual Ammobox list? In my experience VAS places modded stuff at the bottom, but mine is at the top. From what I have seen it places some items in the relevant area, my uniforms all go to the bottom as do headgear and vests however the backpacks go in the same section as the original. Looking over your code it is almost the exact same as mine so I have no idea as to why your items would not be at the bottom Share this post Link to post Share on other sites