alleycat 28 Posted February 4, 2013 (edited) class CfgPatches { class MyItems { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; /////////ALL ABOVE WORKS class CfgVehicles { //It appears to fail here Class ReammoBox; Class MyCrate : ReammoBox { scope=2; accuracy=1000; displayName="MyCrate"; model="\ca\weapons\AmmoBoxes\USBasicAmmo.p3d"; Class TransportMagazines { Class _xx_30Rnd_556x45_Stanag { magazine="30Rnd_556x45_Stanag"; count=400; }; }; Class TransportWeapons { Class _xx_M4A1 { weapon="M4A1"; count=4; }; Class _xx_M9 { weapon="M9"; count=4; }; }; }; }; line 55: '/CfgVehicles.Class': 'R' encountered instead of '=' Config : some input after EndOfFile. What is wrong with this? Edited February 4, 2013 by alleycat Share this post Link to post Share on other sites
[frl]myke 14 Posted February 4, 2013 Is this the whole config? Share this post Link to post Share on other sites
alleycat 28 Posted February 4, 2013 (edited) class CfgPatches { class MyItems { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class CfgMagazines { class Default; class ItemCore: Default {}; class CA_Magazine : Default { scope = 1; value = 1; displayName = ""; model = "\ca\weapons\mag_univ.p3d"; picture = ""; modelSpecial = ""; useAction = 0; useActionTitle = ""; reloadAction = "ManActReloadMagazine"; ammo = ""; count = 30; type = 256; initSpeed = 900; selectionFireAnim = "zasleh"; nameSound = "magazine"; maxLeadSpeed = 23; }; class MyItem1 : CA_Magazine { scope=2; model = "\ca\weapons\mag_univ.p3d"; displayName="Item1"; picture="\CA\misc\data\icons\picture_photo_folder_ca.paa"; }; class MyItem2 : CA_Magazine { scope=2; model = "\ca\weapons\mag_univ.p3d"; displayName="Item2"; picture="\CA\misc\data\icons\picture_photo_folder_ca.paa"; }; }; class CfgVehicles { Class ReammoBox; Class MyCrate : ReammoBox { scope=2; accuracy=1000; displayName="MyCrate"; model="\ca\weapons\AmmoBoxes\USBasicAmmo.p3d"; Class TransportMagazines { Class _xx_30Rnd_556x45_Stanag { magazine="30Rnd_556x45_Stanag"; count=400; }; }; Class TransportWeapons { Class _xx_M4A1 { weapon="M4A1"; count=4; }; Class _xx_M9 { weapon="M9"; count=4; }; }; }; }; Everything above cfg vehicles works (commening out the contents of cfgvehicles but leaving the shell compiles without errors). I suspect that it might be some dependency on some pbo, but why the hell would cloning an existing stock ammobox cause that? Also could it be something about baseclasses? The ammobox inherits from: Class All; Class Static; Class Building; Class Strategic; But I would only need to have "Class ReammoBox;" because that class already inherits all of them, right? Edited February 4, 2013 by alleycat Share this post Link to post Share on other sites
[frl]myke 14 Posted February 4, 2013 This one compiles without error on my side: class CfgPatches { class MyItems { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class CfgMagazines { class Default; class CA_Magazine : Default { scope = 1; value = 1; displayName = ""; model = "\ca\weapons\mag_univ.p3d"; picture = ""; modelSpecial = ""; useAction = 0; useActionTitle = ""; reloadAction = "ManActReloadMagazine"; ammo = ""; count = 30; type = 256; initSpeed = 900; selectionFireAnim = "zasleh"; nameSound = "magazine"; maxLeadSpeed = 23; }; class MyItem1 : CA_Magazine { scope=2; model = "\ca\weapons\mag_univ.p3d"; displayName="Item1"; picture="\CA\misc\data\icons\picture_photo_folder_ca.paa"; }; class MyItem2 : CA_Magazine { scope=2; model = "\ca\weapons\mag_univ.p3d"; displayName="Item2"; picture="\CA\misc\data\icons\picture_photo_folder_ca.paa"; }; }; class CfgVehicles { class ReammoBox; class MyCrate : ReammoBox { scope=2; accuracy=1000; displayName="MyCrate"; model="\ca\weapons\AmmoBoxes\USBasicAmmo.p3d"; class TransportMagazines { class _xx_30Rnd_556x45_Stanag { magazine="30Rnd_556x45_Stanag"; count=400; }; }; class TransportWeapons { class _xx_M4A1 { weapon="M4A1"; count=4; }; class _xx_M9 { weapon="M9"; count=4; }; }; }; }; Changes: - formatting (please use tabs, not space) ;) - replaced Class with class - removed unused inheritance (class ItemCore: Default {};) Nothing else changed, compiles without spitting any error at my side. Share this post Link to post Share on other sites
alleycat 28 Posted February 4, 2013 It appears that writing class lowercase fixed the issue. Thanks for helping Share this post Link to post Share on other sites
[aps]gnat 28 Posted February 4, 2013 It appears that writing class lowercase fixed the issue. Seems odd, I've never seen ArmA get case sensitive. Share this post Link to post Share on other sites
Vasily.B 529 Posted May 28, 2016 Have same error12:40:44 Error context class rhs_weap_ak74m: rhs_weap_ak74m_Base_F {ErrorMessage: File AK\config.cpp, line 16: '/CfgWeapons.': '{' encountered instead of '=' class AK { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"rhs_weapons"}; }; class CfgWeapons { class Rifle_Base_F; { ///////////////////////////////////////////////////////AK-74M class rhs_weap_ak74m: rhs_weap_ak74m_Base_F { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak74m_co_paa"}; }; class rhs_weap_ak74m_camo: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak74mcamo_co_paa"}; rhs_fold="rhs_weap_ak74m_camo_folded"; rhs_npz="rhs_weap_ak74m_camo_npz"; baseWeapon="rhs_weap_ak74m_camo"; }; class rhs_weap_ak74m_desert: rhs_weap_ak74m { hiddenSelectionsTextures[]= {"AK/ak74mpaint_co_paa"}; rhs_fold="rhs_weap_ak74m_desert_folded"; rhs_npz="rhs_weap_ak74m_desert_npz"; baseWeapon="rhs_weap_ak74m_desert"; }; class rhs_weap_ak74m_plummag: rhs_weap_ak74m { hiddenSelectionsTextures[]= {"AK/ak74m_plum_co_paa"}; rhs_fold="rhs_weap_ak74m_plummag_folded"; rhs_npz="rhs_weap_ak74m_plummag_npz"; baseWeapon="rhs_weap_ak74m_plummag"; }; class rhs_weap_ak74m_2mag: rhs_weap_ak74m { hiddenSelectionsTextures[]= {"AK/ak74mcamo_co_paa"}; rhs_npz="rhs_weap_ak74m_2mag_npz"; baseWeapon="rhs_weap_ak74m_2mag"; }; class rhs_weap_ak74m_2mag_camo: rhs_weap_ak74m_2mag { hiddenSelectionsTextures[]= {"AK/ak74mcamo_co_paa"}; rhs_npz="rhs_weap_ak74m_2mag_camo_npz"; baseWeapon="rhs_weap_ak74m_2mag_camo"; }; ///////////////////////////////////////////////////////AK-74M_NPZ class rhs_weap_ak74m_npz: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak74m_plum_co_paa"}; rhs_npz="rhs_weap_ak74m"; }; class rhs_weap_ak74m_camo_npz: rhs_weap_ak74m_npz { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak74mcamo_co_paa"}; rhs_npz="rhs_weap_ak74m_camo"; }; class rhs_weap_ak74m_desert_npz: rhs_weap_ak74m_npz { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak74mpaint_co_paa"}; rhs_npz="rhs_weap_ak74m_desert"; baseWeapon="rhs_weap_ak74m_desert_npz"; }; class rhs_weap_ak74m_plummag_npz: rhs_weap_ak74m_npz { rhs_npz="rhs_weap_ak74m_plummag"; hiddenSelectionsTextures[]= {"AK/ak74m_plum_co_paa"}; weaponInfoType="rhs_rscOptics_ak74_plummag_npz"; baseWeapon="rhs_weap_ak74m_plummag_npz"; }; class rhs_weap_ak74m_2mag_npz: rhs_weap_ak74m_2mag { hiddenSelectionsTextures[]= {"AK/ak74mcamo_co_paa"}; rhs_npz="rhs_weap_ak74m_2mag"; baseWeapon="rhs_weap_ak74m_2mag_npz"; }; class rhs_weap_ak74m_2mag_camo_npz: rhs_weap_ak74m_2mag_npz { rhs_npz="rhs_weap_ak74m_2mag_camo"; hiddenSelectionsTextures[]= {"AK/ak74mcamo_co_paa"}; }; ///////////////////////////////////////////////////////AK-74M_FOLDED class rhs_weap_ak74m_folded: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak74m_co_paa"}; rhs_fold="rhs_weap_ak74m"; baseWeapon="rhs_weap_ak74m_folded"; }; class rhs_weap_ak74m_camo_folded: rhs_weap_ak74m_folded { hiddenSelectionsTextures[]= {"AK/ak74mcamo_co_paa"}; rhs_fold="rhs_weap_ak74m_camo"; baseWeapon="rhs_weap_ak74m_camo_folded"; }; class rhs_weap_ak74m_desert_folded: rhs_weap_ak74m_folded { hiddenSelectionsTextures[]= {"AK/ak74mpaint_co_paa"}; rhs_fold="rhs_weap_ak74m_desert"; baseWeapon="rhs_weap_ak74m_desert_folded"; }; class rhs_weap_ak74m_plummag_folded: rhs_weap_ak74m_folded { hiddenSelectionsTextures[]= {"AK/ak74m_plum_co_paa"}; rhs_fold="rhs_weap_ak74m_plummag"; baseWeapon="rhs_weap_ak74m_plummag_folded"; }; ///////////////////////////////////////////////////////AK-103 class rhs_weap_ak103_base: rhs_weap_akm { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak103_co_paa"}; rhs_npz="rhs_weap_ak103_npz";"; }; class rhs_weap_ak103_npz: rhs_weap_ak103 { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak103_co_paa"}; rhs_npz="rhs_weap_ak103"; baseWeapon="rhs_weap_ak103_npz"; }; class rhs_weap_ak103_1: rhs_weap_ak103_base { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak103_co_paa"}; baseWeapon="rhs_weap_ak103_1"; }; class rhs_weap_ak103_2: rhs_weap_ak103_base { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak103_co_paa"}; baseWeapon="rhs_weap_ak103_2"; }; ///////////////////////////////////////////////////////AK-104 class rhs_weap_ak104: rhs_weap_ak103_base { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak104_co_paa"}; }; class rhs_weap_ak104_npz: rhs_weap_ak104 { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak104_co_paa"}; rhs_npz="rhs_weap_ak104"; baseWeapon="rhs_weap_ak104_npz"; }; ///////////////////////////////////////////////////////AK-105 class rhs_weap_ak105: rhs_weap_ak74m { baseWeapon="rhs_weap_ak105"; hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK/ak105_co_paa"}; }; class rhs_weap_ak105_npz: rhs_weap_ak105{ hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK/ak105_co_paa"}; rhs_npz="rhs_weap_ak105"; baseWeapon="rhs_weap_ak105_npz"; }; }; }; Share this post Link to post Share on other sites
Locklear 214 Posted May 30, 2016 Please try putting the whole class AK{}; at the beginning into the class CfgPatches{};. However, the error message is most likely caused by the "{" after "class RifleBase_F;. You just declare the class RifleBase_F, that's why it's followed by the semicolon. The following curly bracket (and the ending one) just breaks the thing. Share this post Link to post Share on other sites
Vasily.B 529 Posted May 30, 2016 It works, but mod is not working (textures are not overriden. Thanks anyway :) Share this post Link to post Share on other sites
Locklear 214 Posted May 31, 2016 In the texture paths, please try replacing "/" with "\". Also, under AK103, you have obsolete ";, which probably breaks a lot of things below. Share this post Link to post Share on other sites
Vasily.B 529 Posted May 31, 2016 In the texture paths, please try replacing "/" with "\". Also, under AK103, you have obsolete ";, which probably breaks a lot of things below. No, its still not working. Some say to use this : https://community.bistudio.com/wiki/ArmA_3_Replacement_Config_Tutorial But its just over my skills. There is no word to describe how bad i'm in the modding. Share this post Link to post Share on other sites
Locklear 214 Posted May 31, 2016 Okay, so please post your current config, so I and the other helpful guys from the forum can take a look. We shall get it right! :) 1 Share this post Link to post Share on other sites
Vasily.B 529 Posted May 31, 2016 class CfgPatches { class AK { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"rhs_weapons","rhs_weapons2","rhs_c_weapons"}; }; class CfgWeapons { class Rifle_Base_F; class rhs_weap_ak74m_Base_F; class rhs_weap_akm; class rhs_weap_ak103; class rhs_weap_ak74m: rhs_weap_ak74m_Base_F { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak74m_co.paa"}; }; class rhs_weap_ak74m_camo: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak74mcamo_co.paa"}; rhs_fold="rhs_weap_ak74m_camo_folded"; rhs_npz="rhs_weap_ak74m_camo_npz"; baseWeapon="rhs_weap_ak74m_camo"; }; class rhs_weap_ak74m_desert: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74mpaint_co.paa"}; rhs_fold="rhs_weap_ak74m_desert_folded"; rhs_npz="rhs_weap_ak74m_desert_npz"; baseWeapon="rhs_weap_ak74m_desert"; }; class rhs_weap_ak74m_plummag: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74m_plum_co.paa"}; rhs_fold="rhs_weap_ak74m_plummag_folded"; rhs_npz="rhs_weap_ak74m_plummag_npz"; baseWeapon="rhs_weap_ak74m_plummag"; }; class rhs_weap_ak74m_2mag: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74mcamo_co.paa"}; rhs_npz="rhs_weap_ak74m_2mag_npz"; baseWeapon="rhs_weap_ak74m_2mag"; }; class rhs_weap_ak74m_2mag_camo: rhs_weap_ak74m_2mag { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74mcamo_co.paa"}; rhs_npz="rhs_weap_ak74m_2mag_camo_npz"; baseWeapon="rhs_weap_ak74m_2mag_camo"; }; class rhs_weap_ak74m_npz: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak74m_plum_co.paa"}; rhs_npz="rhs_weap_ak74m"; }; class rhs_weap_ak74m_camo_npz: rhs_weap_ak74m_npz { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak74mcamo_co.paa"}; rhs_npz="rhs_weap_ak74m_camo"; }; class rhs_weap_ak74m_desert_npz: rhs_weap_ak74m_npz { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak74mpaint_co.paa"}; rhs_npz="rhs_weap_ak74m_desert"; baseWeapon="rhs_weap_ak74m_desert_npz"; }; class rhs_weap_ak74m_plummag_npz: rhs_weap_ak74m_npz { rhs_npz="rhs_weap_ak74m_plummag"; hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74m_plum_co.paa"}; weaponInfoType="rhs_rscOptics_ak74_plummag_npz"; baseWeapon="rhs_weap_ak74m_plummag_npz"; }; class rhs_weap_ak74m_2mag_npz: rhs_weap_ak74m_2mag { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74mcamo_co.paa"}; rhs_npz="rhs_weap_ak74m_2mag"; baseWeapon="rhs_weap_ak74m_2mag_npz"; }; class rhs_weap_ak74m_2mag_camo_npz: rhs_weap_ak74m_2mag_npz { hiddenSelections[] = {"body"}; rhs_npz="rhs_weap_ak74m_2mag_camo"; hiddenSelectionsTextures[]= {"AK\data\ak74mcamo_co.paa"}; }; class rhs_weap_ak74m_folded: rhs_weap_ak74m { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak74m_co.paa"}; rhs_fold="rhs_weap_ak74m"; baseWeapon="rhs_weap_ak74m_folded"; }; class rhs_weap_ak74m_camo_folded: rhs_weap_ak74m_folded { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74mcamo_co.paa"}; rhs_fold="rhs_weap_ak74m_camo"; baseWeapon="rhs_weap_ak74m_camo_folded"; }; class rhs_weap_ak74m_desert_folded: rhs_weap_ak74m_folded { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74mpaint_co.paa"}; rhs_fold="rhs_weap_ak74m_desert"; baseWeapon="rhs_weap_ak74m_desert_folded"; }; class rhs_weap_ak74m_plummag_folded: rhs_weap_ak74m_folded { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak74m_plum_co.paa"}; rhs_fold="rhs_weap_ak74m_plummag"; baseWeapon="rhs_weap_ak74m_plummag_folded"; }; class rhs_weap_ak103_base: rhs_weap_akm { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak103_co.paa"}; rhs_npz="rhs_weap_ak103_npz"; }; class rhs_weap_ak103_npz: rhs_weap_ak103 { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak103_co.paa"}; rhs_npz="rhs_weap_ak103"; baseWeapon="rhs_weap_ak103_npz"; }; class rhs_weap_ak103_1: rhs_weap_ak103_base { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak103_co.paa"}; baseWeapon="rhs_weap_ak103_1"; }; class rhs_weap_ak103_2: rhs_weap_ak103_base { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak103_co.paa"}; baseWeapon="rhs_weap_ak103_2"; }; class rhs_weap_ak104: rhs_weap_ak103_base { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak104_co.paa"}; }; class rhs_weap_ak104_npz: rhs_weap_ak104 { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak104_co.paa"}; rhs_npz="rhs_weap_ak104"; baseWeapon="rhs_weap_ak104_npz"; }; class rhs_weap_ak105: rhs_weap_ak74m { baseWeapon="rhs_weap_ak105"; hiddenSelections[] = {"body"}; hiddenSelectionsTextures[]= {"AK\data\ak105_co.paa"}; }; class rhs_weap_ak105_npz: rhs_weap_ak105 { hiddenSelections[] = {"body"}; hiddenSelectionsTextures[] = {"AK\data\ak105_co.paa"}; rhs_npz="rhs_weap_ak105"; baseWeapon="rhs_weap_ak105_npz"; }; }; }; Share this post Link to post Share on other sites