Jump to content

Recommended Posts

Currently making a re-texture for a helmet, when i launch arma 3 with my mod (yes the config.cpp is in the addons.pbo)

 

Arma 3 starts to load until "initializing Addons" then pops up with this :  "File addons/config.cpp, line 42: Config: 'm' after class HeadGearItem {

 

Please help me, im new to this and im pretty sure my code is really messed up! thanks!

 

 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 Veeta_beret
 {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F_BLUFOR"};
    };
};

class cfgWeapons {
    class ItemCore;
    class HeadgearItem;

    class Veeta_beret : ItemCore {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "{Veeta's Beret}";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] ={"\addons\Veeta_beret.paa";

        class ItemInfo ;
        class HeadGearItem {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.8;
            hiddenSelections[] = {"camo"};
        };
    };
};
 

Share this post


Link to post
Share on other sites
 class ItemInfo ;

Remove the space after ItemInfo.

 

 

Share this post


Link to post
Share on other sites
33 minutes ago, swtx said:

 class ItemInfo ;

Remove the space after ItemInfo.

 

 

I did that, but it still pops up with "Config: 'm" after class HeadGearItem {

Share this post


Link to post
Share on other sites

Put this:

class ItemInfo: HeadgearItem
    {

 

in place of:

class ItemInfo ;
        class HeadGearItem { 

Also change this:

hiddenSelectionsTextures[] ={"\addons\Veeta_beret.paa"; 

 

to:

hiddenSelectionsTextures[] ={"\addons\Veeta_beret.paa"}; 

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×