Jump to content
swtx

Some input after end of file error

Recommended Posts

Getting a config error "some input after end of file" error.  Indicates to me there is a bracket issue but I don't see it. 

Hoping you guys can look this over and let me know how to fix this.

 

Thx a bunch for your help.

 


enum {
	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,
};

class CfgPatches {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		name="Rhino .357 Magnum";
		requiredAddons[]={"A3_Weapons_F", "A3_Sounds_F"};
		requiredVersion=0.1;
		units[]={};
		ammo[]={"B_357_JHP"};
		magazines[]={"6Rnd_357magnum_Cylinder"};
		weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
	};
};
		

class CfgAmmo
{
	class B_762x51_Ball;
	class B_357_JHP: B_762x51_Ball
	{
		hit=12;
		caliber=1.6
		deflecting=15;
		audibleFire=50;
		cost=1.2;
		typicalSpeed=825;
	};
};

class CfgMagazines
{
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder: 6Rnd_45ACP_Cylinder
	{
		ammo="B_357_JHP";
		author="Project Genesis Team";
		author = "SWTX";
		picture="\A3\Weapons_F_EPA\Data\ui\M_6Rnd_revolver_CA.paa";
		displayName=".357 Magnum 6Rnd Speed Loader";
		descriptionShort=".357 Speed Loader";
		initSpeed=825;
		count=6;
		mass=6;
	};
};

class Mode_SemiAuto;	// External class reference
class SlotInfo;	// External class reference
class CowsSlot;	// External class reference
class PointerSlot;	// External class reference

class CfgWeapons {
	class hgun_Pistol_heavy_02_F;
	class hgun_357_Magnum : hgun_Pistol_heavy_02_F
	{
		class WeaponSlotsInfo;
	};
	
	class hgun_Pistol_heavy_02_357_F: hgun_357_Magnum
	{ 
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_357_F";
		baseWeapon = "hgun_Pistol_heavy_02_357_F";
		scope = 2;
		model = "\A3\Weapons_F_EPA\Pistols\Pistol_heavy_02\Pistol_heavy_02_F.p3d";
		picture = "\A3\Weapons_F_EPA\Pistols\Pistol_Heavy_02\data\UI\gear_Pistol_heavy_02_X_CA.paa";
		magazines[]={"6Rnd_357magnum_Cylinder"};
		displayname = "Rhino .357 Magnum";
		descriptionShort = ".357 Magnum";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Pistol_heavy_02_357_F_Library0";
		};
		reloadAction = "GestureReloadPistolHeavy02";
		recoil = "recoil_pistol_zubr";
		drySound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\dry_Zubr", 0.398107, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\reload_Zubr", 0.562341, 1, 10};
		modes[] = {"Single"};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_01", 0.199526, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_02", 0.199526, 1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
			
			class StandardSound : BaseSoundModeType {
				begin1[] = {"\PG_Zubr\sounds\Zubr_short_01", 3.16228, 1, 1600};
				begin2[] = {"\PG_Zubr\sounds\Zubr_short_02", 3.16228, 1, 1600};
				begin3[] = {"\PG_Zubr\sounds\Zubr_short_03", 3.16228, 1, 1600};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_interior", 1.41254, 1, 1600};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_trees", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_forest", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_meadows", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_houses", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			
			
			class SilencedSound : BaseSoundModeType {};
			recoil = "recoil_pistol_heavy";
			recoilProne = "recoil_prone_pistol_heavy";
			reloadTime = 0.25;
			dispersion = 0.00145;
			minRange = 5;
			minRangeProbab = 0.3;
			midRange = 25;
			midRangeProbab = 0.6;
			maxRange = 50;
			maxRangeProbab = 0.1;
			aiRateOfFire = 2;
			aiRateOfFireDistance = 25;
		};
		bullet1[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet2[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet3[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet4[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet5[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet6[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet7[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet8[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet9[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet10[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet11[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet12[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
		inertia = 0.3;
		aimTransitionSpeed = 1.5;
		dexterity = 1.7;
		initSpeed = 480;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 30;
			holsterScale = 0.85;
			
			class CowsSlot : CowsSlot {
				compatibleItems[] = {"optic_Yorris"};
				iconPosition[] = {0.4, 0.3};
				iconScale = 0.15;
			};
			
			class MuzzleSlot {};
			
			class PointerSlot : PointerSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
				compatibleItems[] = {"acc_flashlight_pistol"};
				iconPosition[] = {0.35, 0.6};
				iconScale = 0.3;
			};
		};
	
	
	class hgun_Pistol_heavy_02_357_F; // External class reference
	
	class hgun_Pistol_heavy_02_357_Yorris_F: hgun_Pistol_heavy_02_357_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_Yorris_F";
		
		class LinkedItems {
			class LinkedItemsOptic {
				slot = "CowsSlot";
				item = "optic_Yorris";
			};			
								
				
			};
	    };
	};

 

Share this post


Link to post
Share on other sites

Your class hgun_Pistol_heavy_02_357_F: hgun_357_Magnum { isn't closed, missing }; on line 196

Share this post


Link to post
Share on other sites

Thanks Scruffy for your input.

 

Could you fix the problem and repost the fixed config below, I'm not sure I'm clear on your fix.

 

Thx so much

Share this post


Link to post
Share on other sites

Sure:

 

enum {
	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,
};

class CfgPatches {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		name="Rhino .357 Magnum";
		requiredAddons[]={"A3_Weapons_F", "A3_Sounds_F"};
		requiredVersion=0.1;
		units[]={};
		ammo[]={"B_357_JHP"};
		magazines[]={"6Rnd_357magnum_Cylinder"};
		weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
	};
};
		

class CfgAmmo
{
	class B_762x51_Ball;
	class B_357_JHP: B_762x51_Ball
	{
		hit=12;
		caliber=1.6
		deflecting=15;
		audibleFire=50;
		cost=1.2;
		typicalSpeed=825;
	};
};

class CfgMagazines
{
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder: 6Rnd_45ACP_Cylinder
	{
		ammo="B_357_JHP";
		author="Project Genesis Team";
		author = "SWTX";
		picture="\A3\Weapons_F_EPA\Data\ui\M_6Rnd_revolver_CA.paa";
		displayName=".357 Magnum 6Rnd Speed Loader";
		descriptionShort=".357 Speed Loader";
		initSpeed=825;
		count=6;
		mass=6;
	};
};

class Mode_SemiAuto;	// External class reference
class SlotInfo;	// External class reference
class CowsSlot;	// External class reference
class PointerSlot;	// External class reference

class CfgWeapons {
	class hgun_Pistol_heavy_02_F;
	class hgun_357_Magnum : hgun_Pistol_heavy_02_F
	{
		class WeaponSlotsInfo;
	};
	
	class hgun_Pistol_heavy_02_357_F: hgun_357_Magnum
	{ 
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_357_F";
		baseWeapon = "hgun_Pistol_heavy_02_357_F";
		scope = 2;
		model = "\A3\Weapons_F_EPA\Pistols\Pistol_heavy_02\Pistol_heavy_02_F.p3d";
		picture = "\A3\Weapons_F_EPA\Pistols\Pistol_Heavy_02\data\UI\gear_Pistol_heavy_02_X_CA.paa";
		magazines[]={"6Rnd_357magnum_Cylinder"};
		displayname = "Rhino .357 Magnum";
		descriptionShort = ".357 Magnum";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Pistol_heavy_02_357_F_Library0";
		};
		reloadAction = "GestureReloadPistolHeavy02";
		recoil = "recoil_pistol_zubr";
		drySound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\dry_Zubr", 0.398107, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\reload_Zubr", 0.562341, 1, 10};
		modes[] = {"Single"};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_01", 0.199526, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_02", 0.199526, 1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
		};	
		class StandardSound : BaseSoundModeType {
				begin1[] = {"\PG_Zubr\sounds\Zubr_short_01", 3.16228, 1, 1600};
				begin2[] = {"\PG_Zubr\sounds\Zubr_short_02", 3.16228, 1, 1600};
				begin3[] = {"\PG_Zubr\sounds\Zubr_short_03", 3.16228, 1, 1600};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_interior", 1.41254, 1, 1600};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_trees", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_forest", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_meadows", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_houses", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			
			class SilencedSound : BaseSoundModeType {};
			recoil = "recoil_pistol_heavy";
			recoilProne = "recoil_prone_pistol_heavy";
			reloadTime = 0.25;
			dispersion = 0.00145;
			minRange = 5;
			minRangeProbab = 0.3;
			midRange = 25;
			midRangeProbab = 0.6;
			maxRange = 50;
			maxRangeProbab = 0.1;
			aiRateOfFire = 2;
			aiRateOfFireDistance = 25;
		};
		bullet1[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet2[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet3[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet4[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet5[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet6[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet7[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet8[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet9[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet10[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet11[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet12[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
		inertia = 0.3;
		aimTransitionSpeed = 1.5;
		dexterity = 1.7;
		initSpeed = 480;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 30;
			holsterScale = 0.85;
			
			class CowsSlot : CowsSlot {
				compatibleItems[] = {"optic_Yorris"};
				iconPosition[] = {0.4, 0.3};
				iconScale = 0.15;
			};
			
			class MuzzleSlot {};
			
			class PointerSlot : PointerSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
				compatibleItems[] = {"acc_flashlight_pistol"};
				iconPosition[] = {0.35, 0.6};
				iconScale = 0.3;
			};
		};
    };
	
	class hgun_Pistol_heavy_02_357_F; // External class reference
	
	class hgun_Pistol_heavy_02_357_Yorris_F: hgun_Pistol_heavy_02_357_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_Yorris_F";
		
		class LinkedItems {
			class LinkedItemsOptic {
				slot = "CowsSlot";
				item = "optic_Yorris";
			};			
								
				
		};
	};
};

There was another }; missing to close class Single : Mode_SemiAuto {

 

I recommend you use an editor that can show you the corresponding bracket and has plugins for SQF syntax, like Notepad++ or Visual Studio Code, that helps when searching for errors like this.

Share this post


Link to post
Share on other sites

Unfortunately, I'm still getting the same error message.

 

If you spot anything else, please feel free to post it below.

 

Thx again.

Share this post


Link to post
Share on other sites

There are still mismatched brackets in class CfgPatches.

 

line 27, get rid of one of the };

 

class CfgPatches {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		name="Rhino .357 Magnum";
		requiredAddons[]={"A3_Weapons_F", "A3_Sounds_F"};
		requiredVersion=0.1;
		units[]={};
		ammo[]={"B_357_JHP"};
		magazines[]={"6Rnd_357magnum_Cylinder"};
		weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
	};
};

change to:

class CfgPatches {
	authors[] = {"Project Genesis Team"};
	author = "SWTX";
	name = "Rhino .357 Magnum";
	requiredAddons[] = {"A3_Weapons_F", "A3_Sounds_F"};
	requiredVersion = 0.1;
	units[] = {};
	ammo[] = {"B_357_JHP"};
	magazines[] = {"6Rnd_357magnum_Cylinder"};
	weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
};

 

Share this post


Link to post
Share on other sites

That helped, thx for pointing that out.

 

Now I'm getting an error in this area of the config. "" instead of };

class CfgAmmo
{
	class B_762x51_Ball;
	class B_357_JHP: B_762x51_Ball
	{
		hit=12;
		caliber=1.6
		deflecting=15;
		audibleFire=50;
		cost=1.2;
		typicalSpeed=825;
	};
};

class CfgMagazines
{ // In this area just above or below.
	
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder: 6Rnd_45ACP_Cylinder
	{
		ammo="B_357_JHP";
		authors[]="Project Genesis Team";
		author = "SWTX";
		picture="\A3\Weapons_F_EPA\Data\ui\M_6Rnd_revolver_CA.paa";
		displayName=".357 Magnum 6Rnd Speed Loader";
		descriptionShort=".357 Speed Loader";
		initSpeed=825;
		count=6;
		mass=6;
	};
};

 

Share this post


Link to post
Share on other sites

Thx again for pointing that out.  I'm still getting the same error,  "" encountered instead of } in that same area.

could be a problem somewhere else in the config.

 

Here is the updated and corrected config up to this point.

 

Thx so much for your continued help with this.

 

// config.bin - 09:08:36 06/10/17, generated in 0.00 seconds
// Generated by unRap v1.06 by Kegetys
// Separate rootclasses: Disabled, Automatic comments: Enabled

enum {
	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,
};

class CfgPatches {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		name="Rhino .357 Magnum";
		requiredAddons[]={"A3_Weapons_F", "A3_Sounds_F"};
		requiredVersion=0.1;
		units[]={};
		ammo[]={"B_357_JHP"};
		magazines[]={"6Rnd_357magnum_Cylinder"};
		weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
	};

		

class CfgAmmo
{
	class B_762x51_Ball;
	class B_357_JHP: B_762x51_Ball
	{
		hit=12;
		caliber=1.6;
		deflecting=15;
		audibleFire=50;
		cost=1.2;
		typicalSpeed=825;
	};
};

class CfgMagazines
{
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder: 6Rnd_45ACP_Cylinder
	{
		ammo="B_357_JHP";
		authors[]="Project Genesis Team";
		author = "SWTX";
		picture="\A3\Weapons_F_EPA\Data\ui\M_6Rnd_revolver_CA.paa";
		displayName=".357 Magnum 6Rnd Speed Loader";
		descriptionShort=".357 Speed Loader";
		initSpeed=825;
		count=6;
		mass=6;
	};
};

class Mode_SemiAuto;	// External class reference
class SlotInfo;	// External class reference
class CowsSlot;	// External class reference
class PointerSlot;	// External class reference
class BaseSoundModeType; // External class reference


class CfgWeapons {
	class hgun_Pistol_heavy_02_F;
	class hgun_357_Magnum : hgun_Pistol_heavy_02_F
	{
		class WeaponSlotsInfo;
	};
	
	class hgun_Pistol_heavy_02_357_F: hgun_357_Magnum
	{ 
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_357_F";
		baseWeapon = "hgun_Pistol_heavy_02_357_F";
		scope = 2;
		model = "\A3\Weapons_F_EPA\Pistols\Pistol_heavy_02\Pistol_heavy_02_F.p3d";
		picture = "\A3\Weapons_F_EPA\Pistols\Pistol_Heavy_02\data\UI\gear_Pistol_heavy_02_X_CA.paa";
		magazines[]={"6Rnd_357magnum_Cylinder"};
		displayname = "Rhino .357 Magnum";
		descriptionShort = ".357 Magnum";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Pistol_heavy_02_357_F_Library0";
		};
		reloadAction = "GestureReloadPistolHeavy02";
		recoil = "recoil_pistol_zubr";
		drySound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\dry_Zubr", 0.398107, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\reload_Zubr", 0.562341, 1, 10};
		modes[] = {"Single"};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_01", 0.199526, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_02", 0.199526, 1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
		};	
		class StandardSound : BaseSoundModeType {
				begin1[] = {"\PG_Zubr\sounds\Zubr_short_01", 3.16228, 1, 1600};
				begin2[] = {"\PG_Zubr\sounds\Zubr_short_02", 3.16228, 1, 1600};
				begin3[] = {"\PG_Zubr\sounds\Zubr_short_03", 3.16228, 1, 1600};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_interior", 1.41254, 1, 1600};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_trees", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_forest", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_meadows", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_houses", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
		    };
			class SilencedSound : BaseSoundModeType {};
			recoil = "recoil_pistol_heavy";
			recoilProne = "recoil_prone_pistol_heavy";
			reloadTime = 0.25;
			dispersion = 0.00145;
			minRange = 5;
			minRangeProbab = 0.3;
			midRange = 25;
			midRangeProbab = 0.6;
			maxRange = 50;
			maxRangeProbab = 0.1;
			aiRateOfFire = 2;
			aiRateOfFireDistance = 25;
		};
		bullet1[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet2[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet3[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet4[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet5[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet6[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet7[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet8[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet9[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet10[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet11[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet12[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
		inertia = 0.3;
		aimTransitionSpeed = 1.5;
		dexterity = 1.7;
		initSpeed = 480;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 30;
			holsterScale = 0.85;
			
			class CowsSlot : CowsSlot {
				compatibleItems[] = {"optic_Yorris"};
				iconPosition[] = {0.4, 0.3};
				iconScale = 0.15;
			};
			
			class MuzzleSlot {};
			
			class PointerSlot : PointerSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
				compatibleItems[] = {"acc_flashlight_pistol"};
				iconPosition[] = {0.35, 0.6};
				iconScale = 0.3;
			};
		};
	};
	
	class hgun_Pistol_heavy_02_357_F; // External class reference
	
	class hgun_Pistol_heavy_02_357_Yorris_F: hgun_Pistol_heavy_02_357_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_Yorris_F";
		
		class LinkedItems {
			class LinkedItemsOptic {
				slot = "CowsSlot";
				item = "optic_Yorris";
			};			
								
			
		};
	};
};

 

Share this post


Link to post
Share on other sites

Remove the }; which is sitting on it's own line:

 

			aiRateOfFireDistance = 25;
		};
		bullet1[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};

Full config

// config.bin - 09:08:36 06/10/17, generated in 0.00 seconds
// Generated by unRap v1.06 by Kegetys
// Separate rootclasses: Disabled, Automatic comments: Enabled

enum {
	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,
};

class CfgPatches {
	authors[] = {"Project Genesis Team"};
	author = "SWTX";
	name = "Rhino .357 Magnum";
	requiredAddons[] = {"A3_Weapons_F", "A3_Sounds_F"};
	requiredVersion = 0.1;
	units[] = {};
	ammo[] = {"B_357_JHP"};
	magazines[] = {"6Rnd_357magnum_Cylinder"};
	weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
};

class CfgAmmo {
	class B_762x51_Ball;
	class B_357_JHP : B_762x51_Ball {
		hit = 12;
		caliber = 1.6;
		deflecting = 15;
		audibleFire = 50;
		cost = 1.2;
		typicalSpeed = 825;
	};
};

class CfgMagazines {
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder : 6Rnd_45ACP_Cylinder {
		ammo = "B_357_JHP";
		authors[] = "Project Genesis Team";
		author = "SWTX";
		picture = "\A3\Weapons_F_EPA\Data\ui\M_6Rnd_revolver_CA.paa";
		displayName = ".357 Magnum 6Rnd Speed Loader";
		descriptionShort = ".357 Speed Loader";
		initSpeed = 825;
		count = 6;
		mass = 6;
	};
};

class Mode_SemiAuto;	// External class reference
class SlotInfo;		// External class reference
class CowsSlot;		// External class reference
class PointerSlot;	// External class reference
class BaseSoundModeType; // External class reference

class CfgWeapons {
	class hgun_Pistol_heavy_02_F;
	class hgun_357_Magnum : hgun_Pistol_heavy_02_F {
		class WeaponSlotsInfo;
	};
	
	class hgun_Pistol_heavy_02_357_F : hgun_357_Magnum { 
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_357_F";
		baseWeapon = "hgun_Pistol_heavy_02_357_F";
		scope = 2;
		model = "\A3\Weapons_F_EPA\Pistols\Pistol_heavy_02\Pistol_heavy_02_F.p3d";
		picture = "\A3\Weapons_F_EPA\Pistols\Pistol_Heavy_02\data\UI\gear_Pistol_heavy_02_X_CA.paa";
		magazines[] = {"6Rnd_357magnum_Cylinder"};
		displayname = "Rhino .357 Magnum";
		descriptionShort = ".357 Magnum";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Pistol_heavy_02_357_F_Library0";
		};
		reloadAction = "GestureReloadPistolHeavy02";
		recoil = "recoil_pistol_zubr";
		drySound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\dry_Zubr", 0.398107, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\reload_Zubr", 0.562341, 1, 10};
		modes[] = {"Single"};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_01", 0.199526, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_02", 0.199526, 1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
		};	
		class StandardSound : BaseSoundModeType {
			begin1[] = {"\PG_Zubr\sounds\Zubr_short_01", 3.16228, 1, 1600};
			begin2[] = {"\PG_Zubr\sounds\Zubr_short_02", 3.16228, 1, 1600};
			begin3[] = {"\PG_Zubr\sounds\Zubr_short_03", 3.16228, 1, 1600};
			soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
			class SoundTails {
				class TailInterior {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_interior", 1.41254, 1, 1600};
					frequency = 1;
					volume = "interior";
				};
				class TailTrees {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_trees", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*trees";
				};
				class TailForest {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_forest", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*forest";
				};
				class TailMeadows {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_meadows", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
				};
				class TailHouses {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_houses", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*houses";
				};
			};
		};
		class SilencedSound : BaseSoundModeType {};
		recoil = "recoil_pistol_heavy";
		recoilProne = "recoil_prone_pistol_heavy";
		reloadTime = 0.25;
		dispersion = 0.00145;
		minRange = 5;
		minRangeProbab = 0.3;
		midRange = 25;
		midRangeProbab = 0.6;
		maxRange = 50;
		maxRangeProbab = 0.1;
		aiRateOfFire = 2;
		aiRateOfFireDistance = 25;

		bullet1[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet2[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet3[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet4[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet5[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet6[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet7[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet8[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet9[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet10[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet11[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet12[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
		inertia = 0.3;
		aimTransitionSpeed = 1.5;
		dexterity = 1.7;
		initSpeed = 480;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 30;
			holsterScale = 0.85;
			
			class CowsSlot : CowsSlot {
				compatibleItems[] = {"optic_Yorris"};
				iconPosition[] = {0.4, 0.3};
				iconScale = 0.15;
			};
			
			class MuzzleSlot {};
			
			class PointerSlot : PointerSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
				compatibleItems[] = {"acc_flashlight_pistol"};
				iconPosition[] = {0.35, 0.6};
				iconScale = 0.3;
			};
		};
	};
	
	class hgun_Pistol_heavy_02_357_F; // External class reference
	
	class hgun_Pistol_heavy_02_357_Yorris_F : hgun_Pistol_heavy_02_357_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_Yorris_F";
		
		class LinkedItems {
			class LinkedItemsOptic {
				slot = "CowsSlot";
				item = "optic_Yorris";
			};			
		};
	};
};

The way to find these things is to be absolutely rigorous about the use of tab indentations whenever a new { } is opened or closed.

Hopefully that does it. :-)

Share this post


Link to post
Share on other sites

Still getting the same error at the same location, "" encountered instead of }.  

 

Thanks so much for the help and a fresh set of eyes.

 

It must be a bracket error in another part of the config.

 

 

Share this post


Link to post
Share on other sites

Ok, so I tried building your config and found a number of additional errors:

 

1. class cfgPatches has to have a 'sub' class

2. you had referenced hgun_Pistol_heavy_02_357_F as an external class, when it's created in your config

3. authors[] =    needs an array, so add { } where it was missing

4. recoil had two entries defined

 

enum {
	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,
};

class CfgPatches {
	class SWTX_Magnum {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		name = "Rhino .357 Magnum";
		requiredAddons[] = {"A3_Weapons_F", "A3_Sounds_F"};
		requiredVersion = 0.1;
		units[] = {};
		ammo[] = {"B_357_JHP"};
		magazines[] = {"6Rnd_357magnum_Cylinder"};
		weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
	};
};

class CfgAmmo {
	class B_762x51_Ball;
	class B_357_JHP : B_762x51_Ball {
		hit = 12;
		caliber = 1.6;
		deflecting = 15;
		audibleFire = 50;
		cost = 1.2;
		typicalSpeed = 825;
	};
};

class CfgMagazines {
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder : 6Rnd_45ACP_Cylinder {
		ammo = "B_357_JHP";
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		picture = "\A3\Weapons_F_EPA\Data\ui\M_6Rnd_revolver_CA.paa";
		displayName = ".357 Magnum 6Rnd Speed Loader";
		descriptionShort = ".357 Speed Loader";
		initSpeed = 825;
		count = 6;
		mass = 6;
	};
};

class Mode_SemiAuto;	// External class reference
class SlotInfo;		// External class reference
class CowsSlot;		// External class reference
class PointerSlot;	// External class reference
class BaseSoundModeType; // External class reference

class CfgWeapons {
	class hgun_Pistol_heavy_02_F;
	class hgun_357_Magnum : hgun_Pistol_heavy_02_F {
		class WeaponSlotsInfo;
	};
	
	class hgun_Pistol_heavy_02_357_F : hgun_357_Magnum { 
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_357_F";
		baseWeapon = "hgun_Pistol_heavy_02_357_F";
		scope = 2;
		model = "\A3\Weapons_F_EPA\Pistols\Pistol_heavy_02\Pistol_heavy_02_F.p3d";
		picture = "\A3\Weapons_F_EPA\Pistols\Pistol_Heavy_02\data\UI\gear_Pistol_heavy_02_X_CA.paa";
		magazines[] = {"6Rnd_357magnum_Cylinder"};
		displayname = "Rhino .357 Magnum";
		descriptionShort = ".357 Magnum";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Pistol_heavy_02_357_F_Library0";
		};
		reloadAction = "GestureReloadPistolHeavy02";
		recoil = "recoil_pistol_zubr";
		drySound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\dry_Zubr", 0.398107, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\reload_Zubr", 0.562341, 1, 10};
		modes[] = {"Single"};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_01", 0.199526, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_02", 0.199526, 1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
		};	
		class StandardSound : BaseSoundModeType {
			begin1[] = {"\PG_Zubr\sounds\Zubr_short_01", 3.16228, 1, 1600};
			begin2[] = {"\PG_Zubr\sounds\Zubr_short_02", 3.16228, 1, 1600};
			begin3[] = {"\PG_Zubr\sounds\Zubr_short_03", 3.16228, 1, 1600};
			soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
			class SoundTails {
				class TailInterior {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_interior", 1.41254, 1, 1600};
					frequency = 1;
					volume = "interior";
				};
				class TailTrees {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_trees", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*trees";
				};
				class TailForest {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_forest", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*forest";
				};
				class TailMeadows {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_meadows", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
				};
				class TailHouses {
					sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_houses", 1.0, 1, 1600};
					frequency = 1;
					volume = "(1-interior/1.4)*houses";
				};
			};
		};
		class SilencedSound : BaseSoundModeType {};
		//recoil = "recoil_pistol_heavy";
		recoilProne = "recoil_prone_pistol_heavy";
		reloadTime = 0.25;
		dispersion = 0.00145;
		minRange = 5;
		minRangeProbab = 0.3;
		midRange = 25;
		midRangeProbab = 0.6;
		maxRange = 50;
		maxRangeProbab = 0.1;
		aiRateOfFire = 2;
		aiRateOfFireDistance = 25;

		bullet1[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet2[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet3[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet4[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet5[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet6[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet7[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet8[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet9[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet10[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet11[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet12[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
		inertia = 0.3;
		aimTransitionSpeed = 1.5;
		dexterity = 1.7;
		initSpeed = 480;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 30;
			holsterScale = 0.85;
			
			class CowsSlot : CowsSlot {
				compatibleItems[] = {"optic_Yorris"};
				iconPosition[] = {0.4, 0.3};
				iconScale = 0.15;
			};
			
			class MuzzleSlot {};
			
			class PointerSlot : PointerSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
				compatibleItems[] = {"acc_flashlight_pistol"};
				iconPosition[] = {0.35, 0.6};
				iconScale = 0.3;
			};
		};
	};
	
	class hgun_Pistol_heavy_02_357_Yorris_F : hgun_Pistol_heavy_02_357_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_Yorris_F";
		
		class LinkedItems {
			class LinkedItemsOptic {
				slot = "CowsSlot";
				item = "optic_Yorris";
			};			
		};
	};
};

 

 

Share this post


Link to post
Share on other sites

That took care of the compile errors.  The config compiles and packs just fine.  However, when I select the pistol in the game, I get an error and the sounds are not working either.

 

 

cb62512e67.jpg

 

I'm praying this is the last error.

I can't thank you enough for your help and perseverance.

Share this post


Link to post
Share on other sites

Here you go:

 

enum {
	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,
};

class CfgPatches {
	class SWTX_Magnum {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		name = "Rhino .357 Magnum";
		requiredAddons[] = {"A3_Weapons_F", "A3_Sounds_F"};
		requiredVersion = 0.1;
		units[] = {};
		ammo[] = {"B_357_JHP"};
		magazines[] = {"6Rnd_357magnum_Cylinder"};
		weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
	};
};

class CfgAmmo {
	class B_762x51_Ball;
	class B_357_JHP : B_762x51_Ball {
		hit = 12;
		caliber = 1.6;
		deflecting = 15;
		audibleFire = 50;
		cost = 1.2;
		typicalSpeed = 825;
	};
};

class CfgMagazines {
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder : 6Rnd_45ACP_Cylinder {
		ammo = "B_357_JHP";
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		picture = "\A3\Weapons_F_EPA\Data\ui\M_6Rnd_revolver_CA.paa";
		displayName = ".357 Magnum 6Rnd Speed Loader";
		descriptionShort = ".357 Speed Loader";
		initSpeed = 825;
		count = 6;
		mass = 6;
	};
};

class Mode_SemiAuto;	// External class reference
class SlotInfo;		// External class reference
class CowsSlot;		// External class reference
class PointerSlot;	// External class reference
class BaseSoundModeType; // External class reference

class CfgWeapons {
	class hgun_Pistol_heavy_02_F;
	class hgun_357_Magnum : hgun_Pistol_heavy_02_F {
		class WeaponSlotsInfo;
	};
	
	class hgun_Pistol_heavy_02_357_F : hgun_357_Magnum { 
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_357_F";
		baseWeapon = "hgun_Pistol_heavy_02_357_F";
		scope = 2;
		model = "\A3\Weapons_F_EPA\Pistols\Pistol_heavy_02\Pistol_heavy_02_F.p3d";
		picture = "\A3\Weapons_F_EPA\Pistols\Pistol_Heavy_02\data\UI\gear_Pistol_heavy_02_X_CA.paa";
		magazines[] = {"6Rnd_357magnum_Cylinder"};
		displayname = "Rhino .357 Magnum";
		descriptionShort = ".357 Magnum";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Pistol_heavy_02_357_F_Library0";
		};
		reloadAction = "GestureReloadPistolHeavy02";
		recoil = "recoil_pistol_zubr";
		drySound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\dry_Zubr", 0.398107, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\reload_Zubr", 0.562341, 1, 10};
		modes[] = {"Single"};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_01", 0.199526, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Closure_Zubr_02", 0.199526, 1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
	
			class StandardSound : BaseSoundModeType {
				begin1[] = {"\PG_Zubr\sounds\Zubr_short_01", 3.16228, 1, 1600};
				begin2[] = {"\PG_Zubr\sounds\Zubr_short_02", 3.16228, 1, 1600};
				begin3[] = {"\PG_Zubr\sounds\Zubr_short_03", 3.16228, 1, 1600};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
					
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_interior", 1.41254, 1, 1600};
						frequency = 1;
						volume = "interior";
					};
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_trees", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_forest", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_meadows", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_houses", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
			class SilencedSound : BaseSoundModeType {};
			recoil = "recoil_pistol_heavy";
			recoilProne = "recoil_prone_pistol_heavy";
			reloadTime = 0.25;
			dispersion = 0.00145;
			minRange = 5;
			minRangeProbab = 0.3;
			midRange = 25;
			midRangeProbab = 0.6;
			maxRange = 50;
			maxRangeProbab = 0.1;
			aiRateOfFire = 2;
			aiRateOfFireDistance = 25;
		};

		bullet1[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet2[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet3[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet4[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet5[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet6[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet7[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet8[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet9[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet10[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet11[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		bullet12[] = {"A3\sounds_f\dummysound", 1.0, 1, 15};
		soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
		inertia = 0.3;
		aimTransitionSpeed = 1.5;
		dexterity = 1.7;
		initSpeed = 480;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 30;
			holsterScale = 0.85;
			
			class CowsSlot : CowsSlot {
				compatibleItems[] = {"optic_Yorris"};
				iconPosition[] = {0.4, 0.3};
				iconScale = 0.15;
			};
			
			class MuzzleSlot {};
			
			class PointerSlot : PointerSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
				compatibleItems[] = {"acc_flashlight_pistol"};
				iconPosition[] = {0.35, 0.6};
				iconScale = 0.3;
			};
		};
	};
	
	class hgun_Pistol_heavy_02_357_Yorris_F : hgun_Pistol_heavy_02_357_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_Yorris_F";
		
		class LinkedItems {
			class LinkedItemsOptic {
				slot = "CowsSlot";
				item = "optic_Yorris";
			};			
		};
	};
};

I should point out that your config doesn't really make use of inheritance in an efficient manner.

You could reduce it in size considerably by not redefining all of the attributes that you aren't changing, so that's something you could look at if you expect to be doing more modding.

 

Config reduced to use inheritance:

class CfgPatches {
	class SWTX_Magnum {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		name = "Rhino .357 Magnum";
		requiredAddons[] = {"A3_Weapons_F", "A3_Sounds_F"};
		requiredVersion = 0.1;
		units[] = {};
		ammo[] = {"B_357_JHP"};
		magazines[] = {"6Rnd_357magnum_Cylinder"};
		weapons[] = {"hgun_Pistol_heavy_02_357_F", "hgun_Pistol_heavy_02_357_Yorris_F"};
	};
};

class CfgAmmo {
	class B_762x51_Ball;
	class B_357_JHP : B_762x51_Ball {
		audibleFire = 50;
		typicalSpeed = 825;
	};
};

class CfgMagazines {
	class 6Rnd_45ACP_Cylinder;
	class 6Rnd_357magnum_Cylinder : 6Rnd_45ACP_Cylinder {
		ammo = "B_357_JHP";
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		displayName = ".357 Magnum 6Rnd Speed Loader";
		descriptionShort = ".357 Speed Loader";
		initSpeed = 825;
		mass = 6;
	};
};

class BaseSoundModeType;    // external class reference
class CfgWeapons {
	class Pistol_Base_F;
	class hgun_Pistol_heavy_02_F : Pistol_Base_F {
		class Single;
	};
	
	class hgun_Pistol_heavy_02_357_F : hgun_Pistol_heavy_02_F { 
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_357_F";
		baseWeapon = "hgun_Pistol_heavy_02_357_F";
		scope = 2;
		magazines[] = {"6Rnd_357magnum_Cylinder"};
		displayname = "Rhino .357 Magnum";
		descriptionShort = ".357 Magnum";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Pistol_heavy_02_357_F_Library0";
		};
		
		class Single : Single {
			class StandardSound : BaseSoundModeType {
				begin1[] = {"\PG_Zubr\sounds\Zubr_short_01", 3.16228, 1, 1600};
				begin2[] = {"\PG_Zubr\sounds\Zubr_short_02", 3.16228, 1, 1600};
				begin3[] = {"\PG_Zubr\sounds\Zubr_short_03", 3.16228, 1, 1600};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};				
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_interior", 1.41254, 1, 1600};
						frequency = 1;
						volume = "interior";
					};
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_trees", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_forest", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_meadows", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Zubr\Zubr_tail_houses", 1.0, 1, 1600};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
		};
	};
	
	class hgun_Pistol_heavy_02_357_Yorris_F : hgun_Pistol_heavy_02_357_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Pistol_heavy_02_Yorris_F";
		
		class LinkedItems {
			class LinkedItemsOptic {
				slot = "CowsSlot";
				item = "optic_Yorris";
			};			
		};
	};
};

 

Share this post


Link to post
Share on other sites

Here's the Rook Select File config.  The config and mod files will pack into a pbo no problem.  I can see the pistol in the VA, However, when I select it the game will CTD.

 

Your help is appreciated.

 


enum {
	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,
};

class CfgPatches {
	class PG_Pistols_Rook40s {
		addonRootClass = "A3_Weapons_F";
		authors[] ={"Project Genesis Team"};
		author = "SWTX";
		requiredAddons[] = {"A3_Weapons_F"};
		requiredVersion = 0.1;
		units[] = {};
		weapons[] = {"hgun_Rook40s_F", "hgun_Rook40s_snds_F"};
	};
};

class Mode_SemiAuto;	// External class reference
class Mode_FullAuto;	// External class reference
class MuzzleSlot;	// External class reference
class hgun_Rook40s_F;  // External class reference
class Pistol_Base_F; // External class reference
class Pistol; // External class reference
class BaseSoundModeType; // External class reference
class WeaponSlotsInfo; // External class reference

class CfgWeapons {
	class hgun_Rook40_F;	// External class reference
	class hgun_SF_Pistol : hgun_Rook40_F	
	
	{	
		class WeaponSlotsInfo;	// External class reference
	};
	
	class hgun_Rook40s_F : hgun_SF_Pistol {
		_generalMacro = "hgun_Rook40s_F";
		baseWeapon = "hgun_Rook40s_F";
		scope = 2;
		model = "\A3\weapons_F\Pistols\Rook40\Rook40_F.p3d";
		picture = "\A3\weapons_F\Pistols\Rook40\data\UI\gear_Rook40_x_ca.paa";
		magazines[] = {"16Rnd_9x21_Mag", "16Rnd_9x21_red_Mag", "16Rnd_9x21_green_Mag", "16Rnd_9x21_yellow_Mag", "30Rnd_9x21_Mag", "30Rnd_9x21_Red_Mag", "30Rnd_9x21_Yellow_Mag", "30Rnd_9x21_Green_Mag"};
		displayname = "Rook 9mm Select Fire";
		descriptionShort = "Rook 18s";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Rook40s_Library0";
		};
		drySound[] = {"\Rook18s\Auto\sounds\Rookdry", 0.223872, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\reload_rook40", 1.0, 1, 10};
		modes[] = {"Single", "FullAuto"};
		
		changeFiremodeSound[] = {"A3\sounds_f\weapons\closure\firemode_changer_1", 0.251189, 1, 20};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_01", 0.158489, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_02", 0.158489, 1.1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
			
			class StandardSound : BaseSoundModeType {
				begin1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_01", 3.16228, 1, 1200};
				begin2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_02", 3.16228, 1, 1200};
				begin3[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_03", 3.16228, 1, 1200};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_interior", 1.41254, 1, 1200};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_trees", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_forest", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_meadows", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_houses", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
			
			class SilencedSound : BaseSoundModeType {
				begin1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_short_01", 0.562341, 1, 400};
				begin2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_short_02", 0.562341, 1, 400};
				begin3[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_short_03", 0.562341, 1, 400};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin2", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_interior", 1.0, 1, 400};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_trees", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_forest", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_meadows", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_houses", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
	    
	 	 class FullAuto : Mode_FullAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_01", 0.158489, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_02", 0.158489, 1.1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
			
			class StandardSound : BaseSoundModeType {
				begin1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_01", 3.16228, 1, 1200};
				begin2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_02", 3.16228, 1, 1200};
				begin3[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_03", 3.16228, 1, 1200};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_interior", 1.41254, 1, 1200};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_trees", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_forest", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_meadows", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_houses", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
		};
			recoil = "recoil_auto_pdw";
			recoilProne = "recoil_auto_prone_pdw";
			dispersion = 0.095;
			reloadTime = 0.1;
			minRange = 5;
			minRangeProbab = 0.3;
			midRange = 25;
			midRangeProbab = 0.6;
			maxRange = 50;
			maxRangeProbab = 0.1;
			aiRateOfFire = 2;
			aiRateOfFireDistance = 25;
		
		inertia = 0.2;
		aimTransitionSpeed = 1.6;
		dexterity = 1.8;
		initSpeed = 450;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 20;
			
			class CowsSlot {};
			
			
			class MuzzleSlot : MuzzleSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE";
				compatibleItems[] = {"muzzle_snds_L"};
				iconPosition[] = {0.3, 0.38};
				iconScale = 0.2;
			};
		};
	
		
	class hgun_Rook40s_snds_F : hgun_Rook40s_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Rook40s_snds_F";
		
		class LinkedItems {
			class LinkedItemsMuzzle {
				slot = "MuzzleSlot";
				item = "muzzle_snds_L";
					
					};
				
				};	
				
			};
		};		
	};
};

 

 

 

Y

Share this post


Link to post
Share on other sites

Here is the updated Rook config.  I made a few changes like renaming some of class names.  Mod will compile and pack just fine with PBO manager.  Addon Builder will crash when compiling.  I can see the pistol and Icon fine in VA, when I select it the game will CTD.

 

I'm doing something illegal

 

Your help with is greatly appreciated

 



enum {
	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,
};

class CfgPatches {
	class Pistol_Rook18_Select {
		addonRootClass = "A3_Weapons_F";
		authors[] ={"Project Genesis Team"};
		author = "SWTX";
		requiredAddons[] = {"A3_Weapons_F"};
		requiredVersion = 0.1;
		units[] = {};
		weapons[] = {"hgun_Rook18_Select_F", "hgun_Rook18_Select_snds_F"};
	};
};

class Mode_SemiAuto;	// External class reference
class Mode_FullAuto;	// External class reference
class MuzzleSlot;	// External class reference
class hgun_Rook18_Select_F;  // External class reference
class Pistol_Base_F; // External class reference
class Pistol; // External class reference
class BaseSoundModeType; // External class reference
class WeaponSlotsInfo; // External class reference

class CfgWeapons {
	class hgun_Rook40_F;	// External class reference
	class hgun_SelectF_Pistol : hgun_Rook40_F	
	
	{	
		class WeaponSlotsInfo;	// External class reference
	};
	
	class hgun_Rook18_Select_F : hgun_SelectF_Pistol {
		_generalMacro = "hgun_Rook18_Select_F";
		baseWeapon = "hgun_Rook18_Select_F";
		scope = 2;
		model = "\A3\weapons_F\Pistols\Rook40\Rook40_F.p3d";
		picture = "\A3\weapons_F\Pistols\Rook40\data\UI\gear_Rook40_x_ca.paa";
		magazines[] = {"16Rnd_9x21_Mag", "16Rnd_9x21_red_Mag", "16Rnd_9x21_green_Mag", "16Rnd_9x21_yellow_Mag", "30Rnd_9x21_Mag", "30Rnd_9x21_Red_Mag", "30Rnd_9x21_Yellow_Mag", "30Rnd_9x21_Green_Mag"};
		displayname = "Rook 9mm Select Fire";
		descriptionShort = "Rook 18s";
		
		class Library {
			libTextDesc = "$STR_A3_CfgWeapons_hgun_Rook18_Select_Library0";
		};
		drySound[] = {"\Rook18s\Auto\sounds\Rookdry", 0.223872, 1, 20};
		reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\reload_rook40", 1.0, 1, 10};
		modes[] = {"Single", "FullAuto"};
		
		changeFiremodeSound[] = {"A3\sounds_f\weapons\closure\firemode_changer_1", 0.251189, 1, 20};
		
		class Single : Mode_SemiAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_01", 0.158489, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_02", 0.158489, 1.1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
			
			class StandardSound : BaseSoundModeType {
				begin1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_01", 3.16228, 1, 1200};
				begin2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_02", 3.16228, 1, 1200};
				begin3[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_03", 3.16228, 1, 1200};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_interior", 1.41254, 1, 1200};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_trees", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_forest", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_meadows", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_houses", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
			
			class SilencedSound : BaseSoundModeType {
				begin1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_short_01", 0.562341, 1, 400};
				begin2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_short_02", 0.562341, 1, 400};
				begin3[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_short_03", 0.562341, 1, 400};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin2", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_interior", 1.0, 1, 400};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_trees", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_forest", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_meadows", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Silencer_Rook40_tail_houses", 1.0, 1, 400};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
	    
	 	 class FullAuto : Mode_FullAuto {
			sounds[] = {"StandardSound", "SilencedSound"};
			
			class BaseSoundModeType {
				closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_01", 0.158489, 1, 10};
				closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_02", 0.158489, 1.1, 10};
				soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
			};
			
			class StandardSound : BaseSoundModeType {
				begin1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_01", 3.16228, 1, 1200};
				begin2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_02", 3.16228, 1, 1200};
				begin3[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_short_03", 3.16228, 1, 1200};
				soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
				
				class SoundTails {
					class TailInterior {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_interior", 1.41254, 1, 1200};
						frequency = 1;
						volume = "interior";
					};
					
					class TailTrees {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_trees", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*trees";
					};
					
					class TailForest {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_forest", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*forest";
					};
					
					class TailMeadows {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_meadows", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
					};
					
					class TailHouses {
						sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_houses", 1.0, 1, 1200};
						frequency = 1;
						volume = "(1-interior/1.4)*houses";
					};
				};
			};
		};
			recoil = "recoil_auto_pdw";
			recoilProne = "recoil_auto_prone_pdw";
			dispersion = 0.095;
			reloadTime = 0.1;
			minRange = 5;
			minRangeProbab = 0.3;
			midRange = 25;
			midRangeProbab = 0.6;
			maxRange = 50;
			maxRangeProbab = 0.1;
			aiRateOfFire = 2;
			aiRateOfFireDistance = 25;
		
		inertia = 0.2;
		aimTransitionSpeed = 1.6;
		dexterity = 1.8;
		initSpeed = 450;
		maxZeroing = 100;
		
		class WeaponSlotsInfo : WeaponSlotsInfo {
			mass = 20;
			
			class CowsSlot {};
			
			
			class MuzzleSlot : MuzzleSlot {
				linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE";
				compatibleItems[] = {"muzzle_snds_L"};
				iconPosition[] = {0.3, 0.38};
				iconScale = 0.2;
			};
		};
	
		
	class hgun_Rook18_Select_snds_F : hgun_Rook18_Select_F {
		authors[] = {"Project Genesis Team"};
		author = "SWTX";
		_generalMacro = "hgun_Rook18_Select_snds_F";
		
		class LinkedItems {
			class LinkedItemsMuzzle {
				slot = "MuzzleSlot";
				item = "muzzle_snds_L";
					
					};
				
				};	
				
			};
		};		
	};
};

 

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

×