Jump to content
Sign in to follow this  
thubz

Config.cpp wont allow a second soldier

Recommended Posts

Hey,

After a long long time i decided this time i do need help!

Checked the forums but cant seem to figure it out normaly i always find my things i need but at this point i seem pretty lost.

So i've decided to make me entire own reskin mod (used to retexture one from Armaholic) and for now its going well and did add 1type of camouflage only need to find out how to add a backpack now,

Anyway to get to the question.

i made 1Camo called Altis Camo and now im trying to add a DPM uniform and i get a error that the soldier alrdy is defined or something in that range!

i might made a simple mistake with copy&paste sorry if that is the case :)

[color="#40E0D0"]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,
};[/color]

[color="#FFA07A"]// Digital Altis Camouflage[/color]

class CfgPatches {
class a3_dcoy_core {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F_BLUFOR"};
};
};

class CfgFactionClasses {
class a3_dcoy_core {
	displayName = "DCoy";
	priority = 100;
	side = 1;
	icon = "\a3_dcoy_core\ico\cfgFactionClasses_DCoy_ca.paa";
};
};

class CfgVehicles {

class B_Soldier_base_F;

class DCoy_Soldier_F : B_Soldier_base_F {
	_generalMacro = "B_Soldier_F"; //unsure what this does
	scope = 2;
	displayName = "DCoy [DPM Camo]";
	nakedUniform = "U_BasicBody"; //class for "naked" body
	uniformClass = "dcoy_DPMcam"; //the uniform item
	hiddenSelections[] = {"Camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\armor1_digiA_co.paa"};
	linkedItems[] = {"armor1_digiA_co", "equip1_digiA_co", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnLinkedItems[] = {"armor1_digiA_co", "equip1_digiA_co", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
};
};

class cfgWeapons {
class Uniform_Base;
class UniformItem;

class clothing1_digiA_co : Uniform_Base {
	scope = 2;
	displayName = "DCoy Uniform [DPM]";
	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 = "DCoy_Soldier_F"; //would be same as our made soldier class
		containerClass = "Supply20"; //how much it can carry
		mass = 80; //how much it weights
	};
};

class ItemCore;
class HeadgearItem;

class equip1_digiA_co : ItemCore {
	scope = 2;
	weaponPoolAvailable = 1;
	displayName = "DCoy Helmet [DPM]";
	picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
	model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\equip1_digiA_co.paa"};

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

class Vest_Base;
class VestItem;

class example_PlateCarrier1_rgr : Vest_Base {
	scope = 2;
	displayName = "DCoy Vest [DPM]";
	picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa";
	model = "\A3\Characters_F\BLUFOR\equip_b_vest02";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\armor1_digiA_co.paa"};

	class ItemInfo : VestItem {
		uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02";
		containerClass = "Supply100";
		mass = 50;
		armor = 5*0.5;
		passThrough = 0.7;
		hiddenSelections[] = {"camo"};
	};
};
};

[color="#008000"]// DPM Camouflage[/color]

class CfgPatches {
class a3_dcoy_core {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F_BLUFOR"};
};
};

class CfgFactionClasses {
class a3_dcoy_core {
	displayName = "DCoy";
	priority = 100;
	side = 1;
	icon = "\a3_dcoy_core\ico\cfgFactionClasses_DCoy_ca.paa";
};
};

class CfgVehicles {

class [color="#FF0000"]B_Soldier_base_F[/color];

class DCoy_Soldier_F : [color="#FF0000"]B_Soldier_base_F [/color]{
	_generalMacro = "[color="#FF0000"]B_Soldier_F[/color]"; //unsure what this does
	scope = 2;
	displayName = "DCoy [DPM Camo]";
	nakedUniform = "U_BasicBody"; //class for "naked" body
	uniformClass = "dcoy_DPMcam"; //the uniform item
	hiddenSelections[] = {"Camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\clothing1_dpmA_co.paa"};
	linkedItems[] = {"clothing1_dpmA_co", "equip1_digiA_co", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnLinkedItems[] = {"clothing1_dpmA_co", "equip1_digiA_co", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
};
};

class cfgWeapons {
class Uniform_Base;
class UniformItem;

class clothing1_digiA_co : Uniform_Base {
	scope = 2;
	displayName = "DCoy Uniform [DPM]";
	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 = "DCoy_Soldier_F"; //would be same as our made soldier class
		containerClass = "Supply20"; //how much it can carry
		mass = 80; //how much it weights
	};
};

class ItemCore;
class HeadgearItem;

class equip1_digiA_co : ItemCore {
	scope = 2;
	weaponPoolAvailable = 1;
	displayName = "DCoy Helmet [DPM]";
	picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
	model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\equip1_digiA_co.paa"};

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

class Vest_Base;
class VestItem;

class example_PlateCarrier1_rgr : Vest_Base {
	scope = 2;
	displayName = "DCoy Vest [DPM]";
	picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa";
	model = "\A3\Characters_F\BLUFOR\equip_b_vest02";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\armor1_digiA_co.paa"};

	class ItemInfo : VestItem {
		uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02";
		containerClass = "Supply100";
		mass = 50;
		armor = 5*0.5;
		passThrough = 0.7;
		hiddenSelections[] = {"camo"};
	};
};
};

Mine @DCoy Layout

@DCoy

- Mod.paa

- mod.cpp

+ Addons

+ a3_dcoy_core

+ Data

- Digi

- DPM

- Config.cpp

+ ico

- cfgFactionClasses_DCoy_ca.paa

Digital Altis Camouflage works just fine part under DPM Camouflage is where the trouble is i marked the parts red where i assume the trouble is!

Feel free to suggestions give or any tips ima noob tho making Addons on Arma games only did edit them untill now that is.

also wierd enough it seems also that i cannot find Digital Altis Camouflage in my "VAS-Ammobox", do i have to define it with a certain command?

Tyvm.

---------- Post added at 10:50 ---------- Previous post was at 09:26 ----------

feel free to posts but just tought of something hope im wrong or iwill feel bit stupid for posting, i gues i just need to pick a diff soldier for example this is a rifleman i use and now i should get the medics class name i hope if this workd ppl still post some tips..

Edited by ThuBz

Share this post


Link to post
Share on other sites

Looks like you have two configs in one there. Just one of each of the main Cfg classes (CfgPatches, CfgVehicles, etc) allowed in a config.

Share this post


Link to post
Share on other sites
Looks like you have two configs in one there. Just one of each of the main Cfg classes (CfgPatches, CfgVehicles, etc) allowed in a config.

Thanks for the fast reply,

So if u understand i have to delete (in my 2nd units part "// DPM Camouflage") the following code

class CfgFactionClasses {
class dcoy_troops {
	displayName = "DCoy";
	priority = 100;
	side = 1;
	icon = "\dcoy_troops\ico\cfgFactionClasses_DCoy_ca.paa";
};
};

sorry if i sound a bit nuubish but im new to addon creating on Arma, and if im wrong that what should i edit?

ill try somethings myself now i am home again ofcourse :) will update asap if i got it solved.

Share this post


Link to post
Share on other sites

More like this.

// Digital Altis Camouflage

class CfgPatches {
class a3_dcoy_core {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F_BLUFOR"};
};
};

class CfgFactionClasses {
class a3_dcoy_core {
	displayName = "DCoy";
	priority = 100;
	side = 1;
	icon = "\a3_dcoy_core\ico\cfgFactionClasses_DCoy_ca.paa";
};
};

class CfgVehicles {

class B_Soldier_base_F;

class DCoy_Soldier_F_01 : B_Soldier_base_F {
	_generalMacro = "B_Soldier_F"; //unsure what this does
	scope = 2;
	displayName = "DCoy 1[DPM Camo]";
	nakedUniform = "U_BasicBody"; //class for "naked" body
	uniformClass = "armor1_digiA_co"; //the uniform item 
	hiddenSelections[] = {"Camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\armor1_digiA_co.paa"};
	linkedItems[] = {"equip1_digiA_co", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnLinkedItems[] = {"equip1_digiA_co", "example_PlateCarrier1_rgr", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
};

class DCoy_Soldier_F_02 : B_Soldier_base_F {
	_generalMacro = "B_Soldier_F"; //unsure what this does
	scope = 2;
	displayName = "DCoy 2[DPM Camo]";
	nakedUniform = "U_BasicBody"; //class for "naked" body
	uniformClass = "clothing1_digiA_co"; //the uniform item
	hiddenSelections[] = {"Camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\clothing1_dpmA_co.paa"};
	linkedItems[] = {"equip1_digiA_co", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnLinkedItems[] = {"equip1_digiA_co", "example_PlateCarrier1_rgr", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
};
};

class CfgWeapons
{
class Uniform_Base;
class UniformItem;
class ItemInfo;

class armor1_digiA_co : Uniform_Base {
	scope = 2;
	displayName = "DCoy Uniform 1[DPM]";
	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 = "DCoy_Soldier_F_01"; //would be same as our made soldier class
		containerClass = "Supply20"; //how much it can carry
		mass = 80; //how much it weights
	};
};

class clothing1_digiA_co : Uniform_Base {
	scope = 2;
	displayName = "DCoy Uniform 2[DPM]";
	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 = "DCoy_Soldier_F_02"; //would be same as our made soldier class
		containerClass = "Supply20"; //how much it can carry
		mass = 80; //how much it weights
	};
};

class ItemCore;
class HeadgearItem;

class equip1_digiA_co : ItemCore
{
	scope = 2;
	weaponPoolAvailable = 1;
	displayName = "DCoy Helmet [DPM]";
	picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
	model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\equip1_digiA_co.paa"};

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

class Vest_Camo_Base;
class VestItem;

class example_PlateCarrier1_rgr : Vest_Camo_Base
{
	scope = 2;
	displayName = "DCoy Vest [DPM]";
	picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa";
	model = "\A3\Characters_F\BLUFOR\equip_b_vest02";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"a3_dcoy_core\Data\Digi\armor1_digiA_co.paa"};

	class ItemInfo : VestItem
	{
		uniformModel = "\A3\Characters_F\BLUFOR\equip_b_vest02";
		containerClass = "Supply100";
		mass = 50;
		armor = 5*0.5;
		passThrough = 0.7;
		hiddenSelections[] = {"camo"};
	};
};
};

Share this post


Link to post
Share on other sites
More like this.

Alright thanks man! :D gonna try it out now.

Share this post


Link to post
Share on other sites

Something is wrong with the texture, could be the path. Did you get an error message?

Share this post


Link to post
Share on other sites

No error msg at start up and niether ingame im guesing i made a typo somewhere i changed my file names a bit because i wanna try to cover 4uniforms (Altis Camo/Urban/DPM/Desert) 2helicopters and maybe a tank or transport truck ^^

i changed a3_dcoy_core.pbo to dcoy_troops.pbo i will double check and hope i can figure it out cant wait to finish the mod up, ofcourse once i upload it to public site ill give u a shoutout for all the help u gave so far!

*Edit.

Ok delete a bunch of text, i did figure out few things my self now, some where simply miss guided to "Armor" as uniform but that is marked as "clothing" so i got the uniform and all fixed now.

http://oi60.tinypic.com/b3vknb.jpg (425 kB)

now its time to see if i can add the other uniforms and maybe even choppers to my addon :D

Edited by ThuBz
figured out some mistextures myself

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
Sign in to follow this  

×