Jump to content
Sign in to follow this  
yugoslav

No clue how to get vest to work

Recommended Posts

I have been trying for about a week now to port a A2 vest to A3. I am not sure what I have wrong, this is my config.cpp. Any help is greatly appreciated, thank you. I'm pretty sure I have it wrong.

class cfgWeapons {

class ItemCore; // External class reference

class InventoryItem_Base_F; // External class reference

class HeadgearItem;

class Uniform_Base;

class UniformItem;

class Vest_Base;

class VestItem;

class UO_AK_VEST: V_PlateCarrier1_rgr {

{

scope = 2;

displayName = "AK MAG Vest";

picture = "\UO_AK_VEST\data\mideast-iraq.jpg";

author = "Yugoslav";

model = "\UO_AK_VEST\data\UO_AK_VEST";

hiddenSelectionsTextures[] = {"\UO_AK_VEST\data\tak_soldier_equip_co.paa"};

hiddenSelections[] = {"camo"};

class ItemInfo: VestItem

{

uniformModel = "\UO_AK_VEST\data\UO_AK_VEST";

containerClass = "Supply60";

mass = 25;

armor = "2";

passThrough = true;

hiddenSelections[] = {"camo"};

};

};

};

Share this post


Link to post
Share on other sites

..What exactly isn't working? Do you have it properly in the P3d? Do you have a model.cfg?

Share this post


Link to post
Share on other sites

yes I have both, The vest isn't showing up in the virtual arsenal or when I do it manually.

This is my newest attempt with no success

class CfgPatches

{

class UO_Yugoslav_Vest_Something

{

units[] = {};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] = {"A3_Characters_F_BLUFOR"};

};

};

class cfgWeapons

{

class Vest_Camo_Base;

class VestItem;

class UO_AK_VEST: Vest_Camo_Base

{

scope = 2;

displayName = "AK MAG Vest";

picture = "\UO_AK_VEST\data\mideast-iraq.jpg";

author = "Yugoslav";

model = "\UO_AK_VEST\data\UO_AK_VEST";

hiddenSelectionsTextures[] = {"\UO_AK_VEST\data\tak_soldier_equip_co.paa"};

hiddenSelections[] = {"camo"};

class ItemInfo: VestItem

{

uniformModel = "\UO_AK_VEST\data\UO_AK_VEST";

containerClass = "Supply60";

mass = 25;

armor = "2";

passThrough = true;

hiddenSelections[] = {"camo"};

};

};

};

This is my model.cfg

class CfgSkeletons

{

class Default

{

isDiscrete = 1;

skeletonInherit = "";

skeletonBones[] = {};

};

class OFP2_ManSkeleton

{

isDiscrete = 0;

skeletonInherit = "";

skeletonBones[] =

{

"Pelvis","",

"Spine","Pelvis",

"Spine1","Spine",

"Spine2","Spine1",

"Spine3","Spine2",

"Camera","Pelvis",

"weapon","Spine1",

"launcher","Spine1",

//Head skeleton in hierarchy

"neck","Spine3",

"neck1","neck",

"head","neck1",

//New facial features

"Face_Hub","head",

"Face_Jawbone","Face_Hub",

"Face_Jowl","Face_Jawbone",

"Face_chopRight","Face_Jawbone",

"Face_chopLeft","Face_Jawbone",

"Face_LipLowerMiddle","Face_Jawbone",

"Face_LipLowerLeft","Face_Jawbone",

"Face_LipLowerRight","Face_Jawbone",

"Face_Chin","Face_Jawbone",

"Face_Tongue","Face_Jawbone",

"Face_CornerRight","Face_Hub",

"Face_CheekSideRight","Face_CornerRight",

"Face_CornerLeft","Face_Hub",

"Face_CheekSideLeft","Face_CornerLeft",

"Face_CheekFrontRight","Face_Hub",

"Face_CheekFrontLeft","Face_Hub",

"Face_CheekUpperRight","Face_Hub",

"Face_CheekUpperLeft","Face_Hub",

"Face_LipUpperMiddle","Face_Hub",

"Face_LipUpperRight","Face_Hub",

"Face_LipUpperLeft","Face_Hub",

"Face_NostrilRight","Face_Hub",

"Face_NostrilLeft","Face_Hub",

"Face_Forehead","Face_Hub",

"Face_BrowFrontRight","Face_Forehead",

"Face_BrowFrontLeft","Face_Forehead",

"Face_BrowMiddle","Face_Forehead",

"Face_BrowSideRight","Face_Forehead",

"Face_BrowSideLeft","Face_Forehead",

"Face_Eyelids","Face_Hub",

"Face_EyelidUpperRight","Face_Hub",

"Face_EyelidUpperLeft","Face_Hub",

"Face_EyelidLowerRight","Face_Hub",

"Face_EyelidLowerLeft","Face_Hub",

"EyeLeft","Face_Hub",

"EyeRight","Face_Hub",

//Left upper side

"LeftShoulder","Spine3",

"LeftArm","LeftShoulder",

"LeftArmRoll","LeftArm",

"LeftForeArm","LeftArmRoll",

"LeftForeArmRoll","LeftForeArm",

"LeftHand","LeftForeArmRoll",

"LeftHandRing","LeftHand",

"LeftHandRing1","LeftHandRing",

"LeftHandRing2","LeftHandRing1",

"LeftHandRing3","LeftHandRing2",

"LeftHandPinky1","LeftHandRing",

"LeftHandPinky2","LeftHandPinky1",

"LeftHandPinky3","LeftHandPinky2",

"LeftHandMiddle1","LeftHand",

"LeftHandMiddle2","LeftHandMiddle1",

"LeftHandMiddle3","LeftHandMiddle2",

"LeftHandIndex1","LeftHand",

"LeftHandIndex2","LeftHandIndex1",

"LeftHandIndex3","LeftHandIndex2",

"LeftHandThumb1","LeftHand",

"LeftHandThumb2","LeftHandThumb1",

"LeftHandThumb3","LeftHandThumb2",

//Right upper side

"RightShoulder","Spine3",

"RightArm","RightShoulder",

"RightArmRoll","RightArm",

"RightForeArm","RightArmRoll",

"RightForeArmRoll","RightForeArm",

"RightHand","RightForeArmRoll",

"RightHandRing","RightHand",

"RightHandRing1","RightHandRing",

"RightHandRing2","RightHandRing1",

"RightHandRing3","RightHandRing2",

"RightHandPinky1","RightHandRing",

"RightHandPinky2","RightHandPinky1",

"RightHandPinky3","RightHandPinky2",

"RightHandMiddle1","RightHand",

"RightHandMiddle2","RightHandMiddle1",

"RightHandMiddle3","RightHandMiddle2",

"RightHandIndex1","RightHand",

"RightHandIndex2","RightHandIndex1",

"RightHandIndex3","RightHandIndex2",

"RightHandThumb1","RightHand",

"RightHandThumb2","RightHandThumb1",

"RightHandThumb3","RightHandThumb2",

//Left lower side

"LeftUpLeg","Pelvis",

"LeftUpLegRoll","LeftUpLeg",

"LeftLeg","LeftUpLegRoll",

"LeftLegRoll","LeftLeg",

"LeftFoot","LeftLegRoll",

"LeftToeBase","LeftFoot",

//Right lower side

"RightUpLeg","Pelvis",

"RightUpLegRoll","RightUpLeg",

"RightLeg","RightUpLegRoll",

"RightLegRoll","RightLeg",

"RightFoot","RightLegRoll",

"RightToeBase","RightFoot"

};

// location of pivot points (local axes) for hierarchical animation

pivotsModel="A3\anims_f\data\skeleton\SkeletonPivots.p3d";

};

};

class CfgModels

{

class Default

{

sectionsInherit="";

sections[] = {};

skeletonName = "";

};

class ArmaMan : Default

{

htMin = 60; // Minimum half-cooling time (in seconds)

htMax = 1800; // Maximum half-cooling time (in seconds)

afMax = 30; // Maximum temperature in case the model is alive (in celsius)

mfMax = 0; // Maximum temperature when the model is moving (in celsius)

mFact = 1; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).

tBody = 37; // Metabolism temperature of the model (in celsius)

sections[] =

{

"osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury","injury_body", "injury_legs", "injury_hands",

"clan","clan_sign","Camo","CamoB","Camo1","Camo2","personality","hl", "injury_head"

};

skeletonName = "OFP2_ManSkeleton";

};

};

Share this post


Link to post
Share on other sites

uniformModel = "\UO_AK_VEST\data\UO_AK_VEST";
containerClass = "Supply60";
mass = 25;
armor = "2";
passThrough = true;
HiddenSelectionTextures[] = {}; //<-- Was Missing
hiddenSelections[] = {"camo"};

You were missing a line here - As well as in the model.cfg you need to inherit the model name to arma man, ie

class CfgSkeletons
{
class Default
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {};
};
class OFP2_ManSkeleton
{
	isDiscrete = 0;
	skeletonInherit = "";
	skeletonBones[] =
	{
		"Pelvis","",
		"Spine","Pelvis",
		"Spine1","Spine",
		"Spine2","Spine1",
		"Spine3","Spine2",
		"Camera","Pelvis",
		"weapon","Spine1",
		"launcher","Spine1",
	//Head skeleton in hierarchy
		"neck","Spine3",
		"neck1","neck",
		"head","neck1",
	//New facial features
		"Face_Hub","head",
			"Face_Jawbone","Face_Hub",
				"Face_Jowl","Face_Jawbone",
				"Face_chopRight","Face_Jawbone",
				"Face_chopLeft","Face_Jawbone",
				"Face_LipLowerMiddle","Face_Jawbone",
				"Face_LipLowerLeft","Face_Jawbone",
				"Face_LipLowerRight","Face_Jawbone",
				"Face_Chin","Face_Jawbone",
				"Face_Tongue","Face_Jawbone",
			"Face_CornerRight","Face_Hub",
				"Face_CheekSideRight","Face_CornerRight",
			"Face_CornerLeft","Face_Hub",
				"Face_CheekSideLeft","Face_CornerLeft",
			"Face_CheekFrontRight","Face_Hub",
			"Face_CheekFrontLeft","Face_Hub",
			"Face_CheekUpperRight","Face_Hub",
			"Face_CheekUpperLeft","Face_Hub",
			"Face_LipUpperMiddle","Face_Hub",
			"Face_LipUpperRight","Face_Hub",
			"Face_LipUpperLeft","Face_Hub",
			"Face_NostrilRight","Face_Hub",
			"Face_NostrilLeft","Face_Hub",
			"Face_Forehead","Face_Hub",
				"Face_BrowFrontRight","Face_Forehead",
				"Face_BrowFrontLeft","Face_Forehead",
				"Face_BrowMiddle","Face_Forehead",
				"Face_BrowSideRight","Face_Forehead",
				"Face_BrowSideLeft","Face_Forehead",
			"Face_Eyelids","Face_Hub",
			"Face_EyelidUpperRight","Face_Hub",
			"Face_EyelidUpperLeft","Face_Hub",
			"Face_EyelidLowerRight","Face_Hub",
			"Face_EyelidLowerLeft","Face_Hub",
			"EyeLeft","Face_Hub",
			"EyeRight","Face_Hub",			
	//Left upper side
		"LeftShoulder","Spine3",
		"LeftArm","LeftShoulder",
		"LeftArmRoll","LeftArm",
		"LeftForeArm","LeftArmRoll",
		"LeftForeArmRoll","LeftForeArm",
		"LeftHand","LeftForeArmRoll",
		"LeftHandRing","LeftHand",
		"LeftHandRing1","LeftHandRing",
		"LeftHandRing2","LeftHandRing1",
		"LeftHandRing3","LeftHandRing2",
		"LeftHandPinky1","LeftHandRing",
		"LeftHandPinky2","LeftHandPinky1",
		"LeftHandPinky3","LeftHandPinky2",
		"LeftHandMiddle1","LeftHand",
		"LeftHandMiddle2","LeftHandMiddle1",
		"LeftHandMiddle3","LeftHandMiddle2",
		"LeftHandIndex1","LeftHand",
		"LeftHandIndex2","LeftHandIndex1",
		"LeftHandIndex3","LeftHandIndex2",
		"LeftHandThumb1","LeftHand",
		"LeftHandThumb2","LeftHandThumb1",
		"LeftHandThumb3","LeftHandThumb2",
	//Right upper side
		"RightShoulder","Spine3",
		"RightArm","RightShoulder",
		"RightArmRoll","RightArm",
		"RightForeArm","RightArmRoll",
		"RightForeArmRoll","RightForeArm",
		"RightHand","RightForeArmRoll",
		"RightHandRing","RightHand",
		"RightHandRing1","RightHandRing",
		"RightHandRing2","RightHandRing1",
		"RightHandRing3","RightHandRing2",
		"RightHandPinky1","RightHandRing",
		"RightHandPinky2","RightHandPinky1",
		"RightHandPinky3","RightHandPinky2",
		"RightHandMiddle1","RightHand",
		"RightHandMiddle2","RightHandMiddle1",
		"RightHandMiddle3","RightHandMiddle2",
		"RightHandIndex1","RightHand",
		"RightHandIndex2","RightHandIndex1",
		"RightHandIndex3","RightHandIndex2",
		"RightHandThumb1","RightHand",
		"RightHandThumb2","RightHandThumb1",
		"RightHandThumb3","RightHandThumb2",
	//Left lower side
		"LeftUpLeg","Pelvis",
		"LeftUpLegRoll","LeftUpLeg",
		"LeftLeg","LeftUpLegRoll",
		"LeftLegRoll","LeftLeg",
		"LeftFoot","LeftLegRoll",
		"LeftToeBase","LeftFoot",
	//Right lower side
		"RightUpLeg","Pelvis",
		"RightUpLegRoll","RightUpLeg",
		"RightLeg","RightUpLegRoll",
		"RightLegRoll","RightLeg",
		"RightFoot","RightLegRoll",
		"RightToeBase","RightFoot"
	};
	// location of pivot points (local axes) for hierarchical animation
	pivotsModel="A3\anims_f\data\skeleton\SkeletonPivots.p3d";
 	};
};

class CfgModels
{
class Default
{
	sectionsInherit="";
	sections[] = {};
	skeletonName = "";
};
class ArmaMan : Default
{
	htMin = 60;          // Minimum half-cooling time (in seconds)
	htMax = 1800;        // Maximum half-cooling time (in seconds)
	afMax = 30;          // Maximum temperature in case the model is alive (in celsius)
	mfMax = 0;           // Maximum temperature when the model is moving (in celsius)
	mFact = 1;           // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
	tBody = 37;  // Metabolism temperature of the model (in celsius)

	sections[] =
	{
		"osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury","injury_body", "injury_legs", "injury_hands",
		"clan","clan_sign","Camo","CamoB","Camo1","Camo2","personality","hl", "injury_head"
	};
	skeletonName = "OFP2_ManSkeleton";
}

class Your_Class : ArmaMan {};

};

Share this post


Link to post
Share on other sites

Added both, Still isn't showing up.

These are the errors I am getting.

Cannot register unknown string STR_STATE_HEALSOLDIER

Cannot register unknown string STR_STATE_FIRST_AID

Cannot register unknown string STR_UI_RADARRANGE

Cannot register unknown string STR_ACTION_LAUNCHCM

Cannot register unknown string STR_ACTION_NEXTCM

Cannot register unknown string STR_USRACT_ACTION_CONTEXT

Cannot register unknown string STR_USRACT_OPTICS_MODE

Cannot register unknown string STR_USRACT_ZEROING_UP

Cannot register unknown string STR_USRACT_ZEROING_DOWN

Cannot register unknown string STR_USRACT_NETWORK_DS_INTERFACE

Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_10CM

Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_10CM

Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_50CM

Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_50CM

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_0

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_1

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_2

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_3

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_4

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_5

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_6

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_7

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_8

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_9

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_10

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_11

Cannot register unknown string STR_DISP_LEFT

Cannot register unknown string STR_DIFF_CAMERA_SHAKE

Cannot register unknown string STR_FREETRACK

Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_CORE

Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_MOD

Cannot register unknown string STR_ADDON_ACTIONS_PLAY_MISSION

Cannot register unknown string STR_ADDON_ACTIONS_TRY_ENTITY

Cannot register unknown string STR_ADDON_ACTIONS_TRY_WEAPON

Cannot register unknown string STR_MSG_ADDON_NOT_FOUND

Cannot register unknown string STR_MSG_ADDON_CANNOT_OPEN

Cannot register unknown string STR_MSG_ADDON_UNKNOWN_PRODUCT

Cannot register unknown string STR_INCOMPATIBLE_LOAD_GAME_ATTEMPT

Warning: CfgVehicles missing in PreloadConfig - may slow down vehicle creation

Warning: CfgAmmo missing in PreloadConfig - may slow down vehicle creation

Warning: CfgNonAIVehicles missing in PreloadConfig - may slow down vehicle creation

Cannot load font core\data\fonts\lucidaconsoleb8

Fonts file \core\data\fonts\lucidaConsoleB8 not found

Cannot load font core\data\fonts\lucidaconsoleb11

Fonts file \core\data\fonts\lucidaConsoleB11 not found

Creating texture headers file...

4 texture headers saved to file "C:\Users\Sam's\AppData\Local\Temp\ARMAaddons\uo_ak_vest\texHeaders.bin"

w:\C_branch\Poseidon\Arrowhead\El\FileServer\fileServer.cpp(2513) : Assertion failed 'req->RefCounter()==1'

Share this post


Link to post
Share on other sites

I'll look at it after work. If you could pm me a link to the source files could fix it easily for ya'

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  

×