Jump to content

Recommended Posts

So i tried making a simple addon today, but when i launch addon builder in Arma 3 Tools it starts doing it's thing packing the addon, but ends with "Build Failed. Result Code = 1"


These are my two RPT's:  Addonbuilder.rpt Addonbuilder.User


Worth noting: I've tried unchecking binarize and i get the same error, same with unticking clear temp and everything else. I've also verified the cache.


 


Also i've tried Mikero's pboProject, it simply says makepbo isnt recognised as an internal or external command. Even though it's installed. (I've restarted PC) and yes i've reinstalled it...


 


Config.cpp = http://pastebin.com/bz6AjQY7


edit: I've  removed the comma from line 16 and still fails...


Share this post


Link to post
Share on other sites

I've removed the comma from line 16 and still fails...[/font][/color][/background]

Having "// = 2" might cause you problems since "//" is used to comment out code. Though I'm not sure why you even included those enumeration defines at the header, since you're not using them in the config.

Simply cutting it back to

class CfgPatches {
    class Backpack_config {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F_BLUFOR"};
    };
};
 
class CfgVehicles {
    class B_Kitbag_cbr;
 
    class HP_OPBackpack : B_Kitbag_cbr  {
        author = "BI, Master Plobber.";
        icon = "Icons\flotikontilop.paa";
        displayname = "Mighty Pack.";
        descriptionShort = "Short Description.";
        maximumLoad = 50000;
        mass = 1;
        hiddenSelections[] = {"camo"};
            hiddenSelectionsTextures[] = {"Textures\Teksturtilop.paa"};
    };
};

Would probably be sufficient.

Share this post


Link to post
Share on other sites

Having "// = 2" might cause you problems since "//" is used to comment out code. Though I'm not sure why you even included those enumeration defines at the header, since you're not using them in the config.

Simply cutting it back to.

Still doesn' work, same error... (with AND without binarize)

 

EDIT: I FIXED IT!!! if you add a pboPrefix in Addon Builder it wont work!

Share this post


Link to post
Share on other sites

Hello,

 

I've got nearly the same problem but I cannot create a new topic in this froum (idk why).

 

So I want to create a small mod with two new bagpack skins. I've got already the same issue while packing my mod with the addon builder.

 

 

Build result

Build failed. Result code=1
CfgConvert task failed.
Config : some input after EndOfFile.
Error reading config file 'C:\User\eiMu\Desktop\mod\addons\config.cpp'

config.cpp

class CfgPatches {	
	class Backpacks {
		units = {"B_kitbag_Olive", "B_kitbag_Sand"};		
		weapons = {};
		requiredVersion = 0.100000;		
		requiredAddons = {"A3_Characters_F", "A3_Weapons_F_Ammoboxes"};
	};	
};

class CfgVehicles {	
	/*extern*/ class B_kitbag_Base;

	class B_kitbag_Olive: B_kitbag_Base {
		scope = 2;
		displayName = "Kitbag (olive)";
		author = "eiMu";
		model = "A3\weapons_f\ammoboxes\bags\Backpack_fast.p3d";
		picture = "\A3\characters_f\Data\UI\icon_b_assaultpack_ca.paa";
		hiddenSelectionsTextures = {"mod\data\b_kitbag_olive.paa"};
	};

	class B_kitbag_Sand: B_kitbag_Base {
		scope = 2;
		displayName = "Kitbag (sand)";
		author = "eiMu";
		model = "A3\weapons_f\ammoboxes\bags\Backpack_fast.p3d";
		picture = "\A3\characters_f\Data\UI\icon_b_assaultpack_ca.paa";
		hiddenSelectionsTextures = {"mod\data\b_kitbag_sand.paa"};
	};	
};

Thank you

Share this post


Link to post
Share on other sites
class CfgPatches {	
	class Backpacks {
		units[] = {"B_kitbag_Olive", "B_kitbag_Sand"};		
		weapons[] = {};
		requiredVersion = 0.100000;		
		requiredAddons[] = {"A3_Characters_F", "A3_Weapons_F_Ammoboxes"};
	};	
};
 
class CfgVehicles {	
	/*extern*/ class B_kitbag_Base;
 
	class B_kitbag_Olive: B_kitbag_Base {
		scope = 2;
		displayName = "Kitbag (olive)";
		author = "eiMu";
		model = "A3\weapons_f\ammoboxes\bags\Backpack_fast.p3d";
		picture = "\A3\characters_f\Data\UI\icon_b_assaultpack_ca.paa";
		hiddenSelectionsTextures[] = {"mod\data\b_kitbag_olive.paa"};
	};
 
	class B_kitbag_Sand: B_kitbag_Base {
		scope = 2;
		displayName = "Kitbag (sand)";
		author = "eiMu";
		model = "A3\weapons_f\ammoboxes\bags\Backpack_fast.p3d";
		picture = "\A3\characters_f\Data\UI\icon_b_assaultpack_ca.paa";
		hiddenSelectionsTextures[] = {"mod\data\b_kitbag_sand.paa"};
	};	
};

In your config, the arrays were incorrectly defined. 

array[] = {data};

 

In addition, I would recommend to use a more specific prefix for the class names in order to avoid any conflict with other mods.

Share this post


Link to post
Share on other sites

hello .. me too i got the same error so this is my config if you could fix the config i would be very thankful and if the problem with weapons if possible make with game original weapons 

class CfgPatches
{
    class Tunisian_Infantry
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F"};
        version="1.0";
    };
};
class cfgFactionClasses
{
    class Tunisian_Army
    {
        displayName="Tunisian Army";
        icon="Infantry\1stregiment.paa";
        priority=2;
        side=1;
    };
};
class CfgVehicleClasses
{
    class Tunisian_Infantry
    {
        displayName="1st Infantry Reg";
        priority=1;
    };
};
class CfgVehicles
{
    class B_Soldier_base_F;
    class B_Soldier_F;
    class B_Kitbag_Base;
    class NATO_Box_Base;
    class B_Competitor_F;
    class B_Carryall_oli;
    class B_TacticalPack_rgr;
    class B_soldier_exp_F;
    class B_soldier_repair_F;
    class B_AssaultPack_cbr;
    class B_Carryall_oucamo;
    class B_soldier_AR_F;
    class B_Soldier_SL_F;
    class B_Soldier_TL_F;
    class B_Soldier_GL_F;
    class B_medic_F;
    class Rifleman: B_Soldier_base_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="";
        _generalMacro="Rifleman";
        scope=2;
        displayName="Rifleman";
        weapons[]=
        {
            "arifle_mas_m4",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_mas_m4",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_01.p3d";
        uniformClass="Uniform_Green";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "infantry\Data\Uniform_green.paa"
        };
    };
    class Medic: B_medic_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="";
        _generalMacro="Medic";
        scope=2;
        displayName="Medic";
        weapons[]=
        {
            "arifle_mas_m4",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_mas_m4",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_03.p3d";
        uniformClass="Uniform_Green_Rolled";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    
    class Repair: B_soldier_repair_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="";
        _generalMacro="Repair";
        scope=2;
        displayName="Repair Specialist";
        weapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_03.p3d";
        uniformClass="Uniform_Green_Rolled";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    class SquadLeader: B_Soldier_SL_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="";
        _generalMacro="SquadLeader";
        scope=2;
        displayName="Squad Leader";
        weapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_01.p3d";
        uniformClass="Uniform_Green";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    class TeamLeader: B_Soldier_TL_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="Drifter";
        _generalMacro="TeamLeader";
        scope=2;
        displayName="Team Leader";
        weapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_01.p3d";
        uniformClass="Uniform_Green";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    class AutoRifleman: B_soldier_AR_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="";
        _generalMacro="AutoRifleman";
        scope=2;
        displayName="Automatic Rifleman";
        weapons[]=
        {
            "LMG_mas_M249_F_h",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "LMG_mas_M249_F_h",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "200Rnd_mas_556x45_T_Stanag",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_03.p3d";
        uniformClass="Uniform_Green";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    class Machinegunner: B_soldier_AR_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="";
        _generalMacro="Machinegunner";
        scope=2;
        displayName="Machinegunner";
        weapons[]=
        {
            "LMG_mas_Mk48_F_h",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "LMG_mas_Mk48_F_h",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "150Rnd_762x51_Box_Tracer",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_03.p3d";
        uniformClass="Uniform_Green";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    class Grenadier: B_Soldier_GL_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="";
        _generalMacro="Grenadier";
        scope=2;
        displayName="Grenadier";
        weapons[]=
        {
            "arifle_mas_m4_m203_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_mas_m4_m203_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_Smoke_Grenade_shell",
            "1Rnd_Smoke_Grenade_shell",
            "1Rnd_Smoke_Grenade_shell",
            "1Rnd_SmokeRed_Grenade_shell",
            "1Rnd_SmokeRed_Grenade_shell",
            "1Rnd_SmokeRed_Grenade_shell",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_HE_Grenade_shell",
            "1Rnd_Smoke_Grenade_shell",
            "1Rnd_Smoke_Grenade_shell",
            "1Rnd_Smoke_Grenade_shell",
            "1Rnd_SmokeRed_Grenade_shell",
            "1Rnd_SmokeRed_Grenade_shell",
            "1Rnd_SmokeRed_Grenade_shell",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP_2",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP_2",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_01.p3d";
        uniformClass="Uniform_Green";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    class RTO: B_Soldier_base_F
    {
        side=1;
        faction="Tunisian Army";
        backpack="OCP_Backpack";
        vehicleclass="Tunisian_Infantry";
        author="r";
        _generalMacro="RTO";
        scope=2;
        displayName="Radio Telephone Operator";
        weapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        respawnWeapons[]=
        {
            "arifle_mas_m4_t",
            "hgun_Pistol_heavy_01_MRD_F",
            "Throw",
            "Put"
        };
        magazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        respawnMagazines[]=
        {
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "30Rnd_mas_556x45_Stanag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "11Rnd_45ACP_Mag",
            "HandGrenade",
            "HandGrenade",
            "SmokeShell"
        };
        cost=300000;
        threat[]={1,0.69999999,0.30000001};
        linkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP_2",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        respawnLinkedItems[]=
        {
            "Vest_OCP",
            "Helmet_OCP_2",
            "ItemMap",
            "ItemCompass",
            "ItemWatch",
            "ItemRadio",
            "NVGoggles"
        };
        model="\A3\Characters_F\BLUFOR\b_soldier_01.p3d";
        uniformClass="Uniform_Green";
        camouflage=1.6;
        hiddenSelections[]=
        {
            "camo"
        };
        HiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
    };
    
    };
    class Infantry_Backpack: B_Kitbag_Base
    {
        scope=1;
        displayName="{"" KitBag""";
        picture="-";
        icon="-";
        model="\A3\weapons_f\Ammoboxes\bags\Backpack_Fast.p3d";
        maximumLoad=860;
        mass=40;
        class TransportMagazines
        {
        };
        class TransportWeapons
        {
        };
        isbackpack=1;
        reversed=1;
        mapSize=2;
        vehicleClass="Backpacks";
        allowedSlots[]={1901};
        transportMaxWeapons=0;
        transportMaxMagazines=12;
        class DestructionEffects
        {
        };
    };
    class Backpack: B_Kitbag_Base
    {
        scope=2;
        model="\A3\weapons_f\Ammoboxes\bags\Backpack_Fast.p3d";
        displayName=" KitBag";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\data\Backpacks\backpack_OCP.paa"
        };
    };
    class Infantry_Backpack_Carry: B_Carryall_oucamo
    {
        scope=1;
        displayName="{"" Carryall""";
        picture="-";
        icon="-";
        model="\A3\weapons_f\Ammoboxes\bags\Backpack_Tortila.p3d";
        maximumLoad=860;
        mass=40;
        class TransportMagazines
        {
        };
        class TransportWeapons
        {
        };
        isbackpack=1;
        reversed=1;
        mapSize=2;
        vehicleClass="Backpacks";
        allowedSlots[]={1901};
        transportMaxWeapons=0;
        transportMaxMagazines=12;
        class DestructionEffects
        {
        };
    };
    class Carryall: B_Carryall_oucamo
    {
        scope=2;
        model="\A3\weapons_f\Ammoboxes\bags\Backpack_Tortila.p3d";
        displayName=" Carryall";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\data\Backpacks\backpack_OCP_Carry.paa"
        };
    };
    class Infantry_Backpack_Compact: B_AssaultPack_cbr
    {
        scope=1;
        displayName="{"" Assault Pack""";
        picture="-";
        icon="-";
        model="\A3\weapons_f\Ammoboxes\bags\Backpack_Compact.p3d";
        maximumLoad=860;
        mass=40;
        class TransportMagazines
        {
        };
        class TransportWeapons
        {
        };
        isbackpack=1;
        reversed=1;
        mapSize=2;
        vehicleClass="Backpacks";
        allowedSlots[]={1901};
        transportMaxWeapons=0;
        transportMaxMagazines=12;
        class DestructionEffects
        {
        };
    };
    class Compact: B_AssaultPack_cbr
    {
        scope=2;
        model="\A3\weapons_f\Ammoboxes\bags\Backpack_Compact.p3d";
        displayName=" Assault Pack";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\data\Backpacks\backpack_OCP_Compact.paa"
        };
    };
};
class cfgWeapons
{
    class Uniform_Base;
    class UniformItem;
    class U_B_CombatUniform_mcam_vest;
    class Uniform_OCP: Uniform_Base
    {
        scope=2;
        displayName=" Uniform";
        picture="\A3\characters_f_epa\data\ui\icon_U_B_CTRG_uniform_ca.paa";
        model="\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        hiddenSelections[]=
        {
            "Camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\Data\Uniform_Green.paa"
        };
        class ItemInfo: UniformItem
        {
            uniformModel="-";
            uniformClass="Rifleman_Green";
            containerClass="Supply40";
            mass=30;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
    class Uniform_Green_Rolled: U_B_CombatUniform_mcam_vest
    {
        scope=2;
        displayName=" Uniform Rolled Sleeve";
        picture="\A3\characters_f_epa\data\ui\icon_U_B_CTRG_uniform_ca.paa";
        model="\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        hiddenSelections[]=
        {
            "Camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Rangers\OCP\Data\Uniform_Green.paa"
        };
        class ItemInfo: UniformItem
        {
            uniformModel="-";
            uniformClass="Medic";
            containerClass="Supply40";
            mass=30;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
    
    class V_PlateCarrier1_rgr;
    class ItemInfo;
    class V_PlateCarrierSpec_rgr;
    class V_PlateCarrier2_rgr;
    class V_PlateCarrierIA1_dgtl;
    class V_PlateCarrierIA2_dgtl;
    class Vest: V_PlateCarrier1_rgr
    {
        picture="\A3\Characters_F_EPA\Data\ui\Icon_V_plate_carrier_snake_ca.paa";
        displayName=" Vest";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\Data\Vest_OCP.paa"
        };
        class ItemInfo: ItemInfo
        {
            uniformModel="\A3\Characters_F\BLUFOR\equip_b_vest01";
            containerClass="Supply160";
            mass=50;
            armor=40;
            passThrough=0.80000001;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
    class Vest2: V_PlateCarrierSpec_rgr
    {
        picture="\A3\Characters_F_EPA\Data\ui\Icon_V_plate_carrier_snake_ca.paa";
        displayName=" Vest 2";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\Data\Vest_OCP.paa"
        };
        class ItemInfo: ItemInfo
        {
            uniformModel="\A3\Characters_F\BLUFOR\equip_b_vest02";
            containerClass="Supply160";
            mass=50;
            armor=40;
            passThrough=0.80000001;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
    class ItemCore;
    class HeadgearItem;
    class H_HelmetIA;
    class H_HelmetB_light;
    class H_HelmetB_plain_blk;
    class Helmet: ItemCore
    {
        scope=2;
        weaponPoolAvailable=1;
        displayName=" ECH Helmet";
        picture="\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model="\A3\Characters_F_EPA\BLUFOR\headgear_b_helmet_kerry";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\Data\Helmet_OCP.paa"
        };
        class ItemInfo: HeadgearItem
        {
            mass=40;
            uniformModel="\A3\Characters_F_EPA\BLUFOR\headgear_b_helmet_kerry";
            modelSides[]={3,1,2};
            armor=20;
            passThrough=0.60000002;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
    class Helmet_3: H_HelmetB_light
    {
        scope=2;
        weaponPoolAvailable=1;
        displayName="[OCP] Helmet Light";
        picture="\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model="\A3\Characters_F_EPA\BLUFOR\headgear_b_helmet_kerry";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\Data\Helmet_OCP.paa"
        };
        class ItemInfo: HeadgearItem
        {
            mass=40;
            uniformModel="\A3\Characters_F\BLUFOR\headgear_b_helmet_light.p3d";
            modelSides[]={3,1,2};
            armor=20;
            passThrough=0.60000002;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
    class Helmet_4: H_HelmetB_plain_blk
    {
        scope=2;
        weaponPoolAvailable=1;
        displayName="[OCP] Helmet Plain";
        picture="\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model="\A3\Characters_F_EPA\BLUFOR\headgear_b_helmet_kerry";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\Data\Helmet_OCP.paa"
        };
        class ItemInfo: HeadgearItem
        {
            mass=40;
            uniformModel="\A3\Characters_F\BLUFOR\headgear_b_helmet_plain.p3d";
            modelSides[]={3,1,2};
            armor=20;
            passThrough=0.60000002;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
    class Helmet_2: H_HelmetIA
    {
        scope=2;
        weaponPoolAvailable=1;
        displayName="[OCP] MICH Helmet";
        picture="\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model="\a3\characters_f_beta\indep\headgear_helmet_canvas";
        hiddenSelections[]=
        {
            "camo"
        };
        hiddenSelectionsTextures[]=
        {
            "Infantry\Data\Helmet_OCP_2.paa"
        };
        class ItemInfo: HeadgearItem
        {
            mass=40;
            uniformModel="\a3\characters_f_beta\indep\headgear_helmet_canvas";
            modelSides[]={3,1,2};
            armor=20;
            passThrough=0.60000002;
            hiddenSelections[]=
            {
                "camo"
            };
        };
    };
};

Share this post


Link to post
Share on other sites

Okay,

 

First error: you can't use arifle_mas_m4 whitout having the names of the addon in the requiredaddon section in the cfg patches.

second one: faction: the faction you fill in there is not the displayname of it but the classname.

third: if your gonna retexture a uniform its good practice to acctually create that uniform aswell in cfgWeapons. so calling the unit class rifleman_green and then the rifleman just rifleman is not gonna work you have to have them both the same.

fourth: one of the carryall's is having a very weird displayname... might wanna check that out.

fith: if you get all that fixed and you get your units ingame I urge you to read through the sample models on how to initialize the armour system for uniforms, vests and headgear otherwise you won't have any protection on them.

six: in the hiddenselections don't forget to add ,"insignia" to make insignia's work on your uniforms.

seven: make sure to get CfgPatches ready for 1.60 upwards otherwise it will trow fits

 

hope this helps you

cheers,

KBBW - Kai

Share this post


Link to post
Share on other sites

Okay,

 

First error: you can't use arifle_mas_m4 whitout having the names of the addon in the requiredaddon section in the cfg patches.

second one: faction: the faction you fill in there is not the displayname of it but the classname.

third: if your gonna retexture a uniform its good practice to acctually create that uniform aswell in cfgWeapons. so calling the unit class rifleman_green and then the rifleman just rifleman is not gonna work you have to have them both the same.

fourth: one of the carryall's is having a very weird displayname... might wanna check that out.

fith: if you get all that fixed and you get your units ingame I urge you to read through the sample models on how to initialize the armour system for uniforms, vests and headgear otherwise you won't have any protection on them.

six: in the hiddenselections don't forget to add ,"insignia" to make insignia's work on your uniforms.

seven: make sure to get CfgPatches ready for 1.60 upwards otherwise it will trow fits

 

hope this helps you

cheers,

KBBW - Kai

thanks it's 1st time to me crating addon i used an old American soldier addon that is why the "arifle_mas_m4" and is it possible to replace it with NIArms AUG Rifle Pack  or game original weapons   and about the retuxture i do one not perfect the vest and helmet and backpacks not same color of uniform ( uniform Olive green and rest MUlticam )

the 5 & 6 & 7  how ( i still new in making addon )  if possible to fix it for me i know this request sound stupid but i guess i'm still noob in creating addon ..... to be honest i got only 1 great addon and  in arma 2 not 3 hh F-16 TUN 

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

×