Jump to content
SaltyNewt

What's wrong with my config.cpp file?

Recommended Posts

I'm testing an addon that adds things to a campaign I'm working on. At the moment the config.cpp file only adds one character to the editor and one vest. It looks like this:

 
 
0
 Advanced issue found
 
 
Spoiler

class CfgPatches
{
    class CampaignMod_Config
    {
        units[] = {"Campaign Mod";};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F"};
    };
};

class UniformSlotInfo
{
    slotType = 0;
    linkProxy = "-";
};

class CfgVehicles
{
    class B_Story_Protagonist_F;
    class Nichols: B_Story_Protagonist_F
    {
        author = "Blue Scarab";
        scope = 2;
        displayName = "Nichols";
        identityTypes[] = {"LanguageENG_F","Head_NATO", "G_NATO_default"};
        model = "\A3\Characters_F\BLUFOR\b_soldier_01.p3d";;
        uniformClass = "U_B_CombatUniform_mcam_tshirt";
        hiddenSelections[] = {"Camo","Insignia"};
        hiddenSelectionsTextures[] = {"Test Mod\Data\vest_nichols_co.paa"};
         weapons[] = {"arifle_MX_SW_pointer_F","hgun_P07_F","Throw","Put"};
        respawnWeapons[] = {"arifle_MX_SW_pointer_F","hgun_P07_F","Throw","Put"};
        Items[] = {FirstAidKit};
        respawnItems[] = {FirstAidKit};
        magazines[] = {mag_3(100Rnd_65x39_caseless_mag),mag_2(16Rnd_9x21_Mag),SmokeShell, SmokeShellGreen, Chemlight_green, Chemlight_green, mag_2(HandGrenade)};
        respawnMagazines[] = {mag_3(100Rnd_65x39_caseless_mag),mag_2(16Rnd_9x21_Mag),SmokeShell, SmokeShellGreen, Chemlight_green, Chemlight_green, mag_2(HandGrenade)};
        linkedItems[] = {"H_HelmetB_light","NicholsVest","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnLinkedItems[] = {"H_HelmetB_light","NicholsVest","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
    };
};

class cfgWeapons
{
    class itemCore;
    class VestItem;
    class Vest_Camo_Base: ItemCore
    {
        class ItemInfo;
      };
      class NicholsVest: Vest_Camo_Base
      {
        author = "Blue Scarab";
        scope = 2;
        displayName = "US Plate Carrier Rig (Nichols)";
        picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA";
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01.p3d";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"Test Mod\Data\vest_nichols_co.paa"};
          class ItemInfo: VestItem
          {
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest01.p3d";
            containerClass = "Supply120";
            mass = 80;
            armor = "5";
            passThrough = 0.3;
            hiddenSelections[] = {"camo"};
          };
        };
      };
    };
};

I have everything in its current state in a folder labeled "@Test_Mod" and inside is an addons folder and within that is the pbo titled "Test Mod.pbo". The mod shows up in the launcher and when I open the game it shows up in the bottom left corner of the main menu, but neither the custom unit nor the vest show up in-game. I'm still very new to making configs, so it's incredibly likely that I missed something, but what would it be?

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

×