Jump to content
Sign in to follow this  
_Leshen_

"no entry bin\config.bin|cfgwapons\arilfe_MX_Base_F\single.displayName" help

Recommended Posts

Hello, 
I'm making my reskin of AKM, after some time finally made it work. Simply inheriting from AKM class didn't work for me. So I needed to make it as a new class and I coped settings from AKM class. But somehow it makes all guns lose single fire and full auto option to change, it stays on single fire or if it have 2 fire burst i can switch to it. So i think it have something with single fire and full auto class. but i dont know what i done. Please Help
When i turn game it gives error "no entry bin\config.bin/cfgwapons\arilfe_MX_Base_F\single.displayName"
When i enter arsenal it gives error "no entry "bin\config.bin\CfgWeapons/arfile/_AK12_base_F/FullAuto.displayName"

my code look like this, it's in CfgWeapons of m

	class Mode_SemiAuto;
	class Mode_FullAuto;
	class CowsSlot_Rail;
	class CowsSlot_Rail_Pistol;
	class CowsSlot_Pistol;
	class CowsSlot_MSBS65;
	class CowsSlot_Dovetail;
	class CowsSlot_Dovetail_RPG;
	class MuzzleSlot_45ACP;
	class MuzzleSlot_9mm;
	class MuzzleSlot_65;
	class MuzzleSlot_65MG;
	class MuzzleSlot_556;
	class MuzzleSlot_762;
	class MuzzleSlot_338;
	class MuzzleSlot_93;
	class MuzzleSlot_57;
	class MuzzleSlot_58;
	class MuzzleSlot_545R;
	class MuzzleSlot_762R;
	class UnderBarrelSlot_rail;
	class PointerSlot_Rail;
	class PointerSlot_Pistol;
	class PointerSlot_Launcher;
class Rifle;
class Rifle_Base_F: Rifle
	{
		class GunParticles;
		class WeaponSlotsInfo;
	};
class lb_akmSlav_base: Rifle_Base_F
	{
		author="Leshen";
		_generalMacro="lb_akmSlav_base";
		scope=0;
		displayName="$STR_A3_CfgWeapons_arifle_AKM_F0";
		descriptionShort="$STR_A3_CFGWEAPONS_ARIFLE_AK12_BASE_F1";
		model="\A3\Weapons_F_Exp\Rifles\AKM\AKM_F.p3d";
		hiddenSelections[]=
		{
			"camo_1",
			"camo_2",
			"camo_3"
		};
		handAnim[]=
		{
			"OFP2_ManSkeleton",
			"\A3\Weapons_F_Exp\Rifles\AKM\Data\Anim\akm.rtm"
		};
		reloadAction="GestureReloadAKM";
		magazines[]=
		{
			"30Rnd_762x39_Mag_F",
			"30Rnd_762x39_Mag_Green_F",
			"30Rnd_762x39_Mag_Tracer_F",
			"30Rnd_762x39_Mag_Tracer_Green_F"
		};
		magazineWell[]=
		{
			"AK_762x39"
		};
		magazineReloadSwitchPhase=0.47999999;
		htMin=11;
		htMax=730;
		inertia=0.60000002;
		aimTransitionSpeed=1;
		dexterity=1.4;
		initSpeed=715;
		recoil="recoil_akm";
		maxZeroing=800;
		bullet1[]=
		{
			"A3\sounds_f\weapons\shells\7_62\metal_762_01",
			0.50118721,
			1,
			15
		};
		bullet2[]=
		{
			"A3\sounds_f\weapons\shells\7_62\metal_762_02",
			0.50118721,
			1,
			15
		};
		bullet3[]=
		{
			"A3\sounds_f\weapons\shells\7_62\metal_762_03",
			0.50118721,
			1,
			15
		};
		bullet4[]=
		{
			"A3\sounds_f\weapons\shells\7_62\metal_762_04",
			0.50118721,
			1,
			15
		};
		bullet5[]=
		{
			"A3\sounds_f\weapons\shells\7_62\dirt_762_01",
			0.39810717,
			1,
			15
		};
		bullet6[]=
		{
			"A3\sounds_f\weapons\shells\7_62\dirt_762_02",
			0.39810717,
			1,
			15
		};
		bullet7[]=
		{
			"A3\sounds_f\weapons\shells\7_62\dirt_762_03",
			0.39810717,
			1,
			15
		};
		bullet8[]=
		{
			"A3\sounds_f\weapons\shells\7_62\dirt_762_04",
			0.39810717,
			1,
			15
		};
		bullet9[]=
		{
			"A3\sounds_f\weapons\shells\7_62\grass_762_01",
			0.25118864,
			1,
			15
		};
		bullet10[]=
		{
			"A3\sounds_f\weapons\shells\7_62\grass_762_02",
			0.25118864,
			1,
			15
		};
		bullet11[]=
		{
			"A3\sounds_f\weapons\shells\7_62\grass_762_03",
			0.25118864,
			1,
			15
		};
		bullet12[]=
		{
			"A3\sounds_f\weapons\shells\7_62\grass_762_04",
			0.25118864,
			1,
			15
		};
		soundBullet[]=
		{
			"bullet1",
			0.082999997,
			"bullet2",
			0.082999997,
			"bullet3",
			0.082999997,
			"bullet4",
			0.082999997,
			"bullet5",
			0.082999997,
			"bullet6",
			0.082999997,
			"bullet7",
			0.082999997,
			"bullet8",
			0.082999997,
			"bullet9",
			0.082999997,
			"bullet10",
			0.082999997,
			"bullet11",
			0.082999997,
			"bullet12",
			0.082999997
		};
		class Library
		{
			libTextDesc="$STR_A3_CfgWeapons_arifle_AKM_base_F_Library0";
		};
		class WeaponSlotsInfo: WeaponSlotsInfo
		{
			class CowsSlot: CowsSlot_Dovetail
			{
				iconPosition[]={0.55000001,0.38};
				iconScale=0.2;
			};
			class MuzzleSlot: MuzzleSlot_762R
			{
				iconPosition[]={-0.02,0.41};
				iconScale=0.2;
			};
			class UnderBarrelSlot
			{
			};
			class PointerSlot
			{
			};
			mass=120;
		};
		modes[]=
		{
			"FullAuto",
			"Single",
			"FullAuto_medium"
		};
		class Single: Mode_SemiAuto
		{
			sounds[]=
			{
				"StandardSound",
				"SilencedSound"
			};
			class BaseSoundModeType;
			class StandardSound: BaseSoundModeType
			{
			};
			reloadTime=0.1;
			dispersion=0.00145;
			minRange=2;
			minRangeProbab=0.5;
			midRange=150;
			midRangeProbab=0.69999999;
			maxRange=250;
			maxRangeProbab=0.2;
		};
		class FullAuto: Mode_FullAuto
		{
			sounds[]=
			{
				"StandardSound",
				"SilencedSound"
			};
			class BaseSoundModeType;
			class StandardSound: BaseSoundModeType
			{
			};
			reloadTime=0.1;
			dispersion=0.00145;
			minRange=2;
			minRangeProbab=0.89999998;
			midRange=15;
			midRangeProbab=0.69999999;
			maxRange=30;
			maxRangeProbab=0.050000001;
		};
		class FullAuto_medium: FullAuto
		{
			showToPlayer=0;
			burst=3;
			minRange=2;
			minRangeProbab=0.5;
			midRange=75;
			midRangeProbab=0.69999999;
			maxRange=100;
			maxRangeProbab=0.050000001;
			aiRateOfFire=2;
		};
	};
	class lb_akmSlav: lb_akmSlav_base
	{
		author="Leshen";
		_generalMacro="lb_akmSlav";
		baseWeapon="lb_akmSlav";
		scope=2;
		displayName="AKM (slav)";
		picture="\A3\Weapons_F_Exp\Rifles\AKM\Data\UI\arifle_AKM_F_X_CA.paa";
		hiddenSelectionsTextures[]=
		{
			"\LB\Data\akm\akm.paa",
			"\LB\Data\akm\akm_wood.paa",
			"\LB\Data\akm\akm_steel_mag.paa"
		};
	};
	class lb_akmSlav_FL: lb_akmSlav
	{
		author="Leshen";
		_generalMacro="lb_akmSlav_FL";
		baseWeapon="lb_akmSlav";
		scope=1;
		model="\A3\Weapons_F_Exp\Rifles\AKM\AKM_flashlight_F.p3d";
		class FlashLight
		{
			color[]={180,156,120};
			ambient[]={0.89999998,0.77999997,0.60000002};
			intensity=20;
			size=1;
			innerAngle=20;
			outerAngle=80;
			coneFadeCoef=5;
			position="flash dir";
			direction="flash";
			useFlare=1;
			flareSize=1.4;
			flareMaxDistance=100;
			dayLight=0;
			class Attenuation
			{
				start=0.5;
				constant=0;
				linear=0;
				quadratic=1.1;
				hardLimitStart=20;
				hardLimitEnd=30;
			};
			scale[]={0};
		};
	};

 

Share this post


Link to post
Share on other sites

Fixed, this is how it looks.

class arifle_AKM_base_F;

	class lb_akmSlav: arifle_AKM_base_F
	{
		author="Leshen";
		_generalMacro="lb_akmSlav";
		baseWeapon="lb_akmSlav";
		scope=2;
		displayName="AKM (slav)";
		picture="\A3\Weapons_F_Exp\Rifles\AKM\Data\UI\arifle_AKM_F_X_CA.paa";
		hiddenSelectionsTextures[]=
		{
			"\LB\Data\akm\akm.paa",
			"\LB\Data\akm\akm_wood.paa",
			"\LB\Data\akm\akm_steel_mag.paa"
		};
	};
	class lb_akmSlav_FL: lb_akmSlav
	{
		author="Leshen";
		_generalMacro="lb_akmSlav_FL";
		baseWeapon="lb_akmSlav";
		scope=1;
		model="\A3\Weapons_F_Exp\Rifles\AKM\AKM_flashlight_F.p3d";
		class FlashLight
		{
			color[]={180,156,120};
			ambient[]={0.89999998,0.77999997,0.60000002};
			intensity=20;
			size=1;
			innerAngle=20;
			outerAngle=80;
			coneFadeCoef=5;
			position="flash dir";
			direction="flash";
			useFlare=1;
			flareSize=1.4;
			flareMaxDistance=100;
			dayLight=0;
			class Attenuation
			{
				start=0.5;
				constant=0;
				linear=0;
				quadratic=1.1;
				hardLimitStart=20;
				hardLimitEnd=30;
			};
			scale[]={0};
		};
	};

 

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  

×