Jump to content
Sign in to follow this  
DerBiwi

Problem with Accessory-Config

Recommended Posts

Hey Guys,

since 1/2 Hour, I'm trying to get my Config.cpp of my accessories work.

I get this errormessage:

File p:\biw_weapons\acc\config.cpp, line 176: /cfgWeapons/biw_mfs_g40/ItemInfo.biw_mfs_lr: Undefined base class 'biw_mfs_g40'

I cannot understand this, because I got the named "biw_mfs_g40"-Class

Here is the Config.cpp of my "acc-folder":

#define _ARMA_

//Class biw_acc : config.bin{

class CfgPatches

{

class biw_acc

{

requiredaddons[] = {"A3_Weapons_F"};

requiredversion = 0.1;

units[] = {};

weapons[] = {"biw_optic_cqc","biw_mfs_g40"};

magazines[] = {""};

};

};

class cfgWeapons

{

class optic_Aco;

class InventoryOpticsItem_Base_F;

class MRCOscope;

class muzzle_snds_M;

class Mode_SemiAuto;

class Mode_FullAuto;

class ItemInfo;

class biw_optic_cqc: optic_Aco

{

scope = 2;

displayName = "CQBS";

picture = "\A3\weapons_F\Data\UI\gear_acco_aco_CA.paa";

model = "biw_weapons\acc\biw_optic_01";

descriptionShort = "Visier mit 1x Vergrößerung";

weaponInfoType = "RscWeaponZeroing";

class ItemInfo: InventoryOpticsItem_Base_F

{

mass = 2;

modelOptics = "\A3\Weapons_F\empty";

optics = 1;

class OpticsModes

{

class ACO

{

opticsID = 1;

useModelOptics = 0;

opticsZoomMin = 0.375;

opticsZoomMax = 1.1;

opticsZoomInit = 0.75;

memoryPointCamera = "eye";

opticsFlare = 0;

opticsDisablePeripherialVision = 0;

distanceZoomMin = 100;

distanceZoomMax = 100;

cameraDir = "";

visionMode[] = {};

opticsPPEffects[] = {"OpticsCHAbera5","OpticsBlur5"};

};

};

};

};

class biw_mfs_g40: muzzle_snds_M

{

displayName = "Mündungsfeuerdämpfer (G40)";

picture = ;

model = "\biw_weapons\acc\biw_mfs";

scope = 2;

class ItemInfo: ItemInfo

{

mass = 5;

class MagazineCoef

{

initSpeed = 1;

};

muzzleEnd = "zaslehPoint";

alternativeFire = "Zasleh2";

modes[] = {"Single_G40","FullAuto_G40"};

class Single_G40: Mode_SemiAuto

{

aidispersioncoefx = 1.4;

aidispersioncoefy = 1.7;

airateoffire = 2;

airateoffiredistance = 500;

artillerycharge = 1;

artillerydispersion = 1;

autofire = 0;

begin1[] = {"biw_weapons\biw_g40\data\sounds\g40_single_01",2.51189,1,1200};

begin2[] = {"biw_weapons\biw_g40\data\sounds\g40_single_02",2.51189,1,1200};

begin3[] = {"biw_weapons\biw_g40\data\sounds\g40_single_01",2.51189,1,1200};

burst = 1;

canshootinwater = 0;

closure1[] = {"\A3\sounds_f\weapons\closure\closure_rifle_2",3.16228,1,500};

closure2[] = {"\A3\sounds_f\weapons\closure\closure_rifle_3",3.16228,1,500};

dispersion = 0.0005;

displayname = "Semi";

ffcount = 1;

fffrequency = 11;

ffmagnitude = 0.5;

flash = "gunfire";

flashsize = 0.1;

maxrange = 500;

maxrangeprobab = 0.2;

midrange = 250;

midrangeprobab = 0.7;

minrange = 2;

minrangeprobab = 0.3;

multiplier = 1;

recoil = "recoil_single_mx";

recoilProne = "recoil_single_prone_mx";

reloadtime = 0.096;

requiredoptictype = -1;

showtoplayer = 1;

sound[] = {"",10,1};

soundbegin[] = {"begin1",0.333,"begin2",0.333,"begin3",0.333};

soundbeginwater[] = {"sound",1};

soundburst = 0;

soundclosure[] = {"closure1",0.5,"closure2",0.5};

soundcontinuous = 0;

soundend[] = {};

soundloop[] = {};

texturetype = "semi";

useaction = 0;

useactiontitle = "";

weaponsoundeffect = "DefaultRifle";

};

class FullAuto_G40: Mode_FullAuto

{

aidispersioncoefx = 2;

aidispersioncoefy = 3;

airateoffire = "1e-006";

airateoffiredistance = 500;

artillerycharge = 1;

artillerydispersion = 1;

autofire = 1;

begin1[] = {"biw_weapons\biw_g40\data\sounds\g40_single_01",2.51189,1,1200};

begin2[] = {"biw_weapons\biw_g40\data\sounds\g40_single_02",2.51189,1,1200};

begin3[] = {"biw_weapons\biw_g40\data\sounds\g40_single_01",2.51189,1,1200};

burst = ;

canshootinwater = 0;

closure1[] = {"\A3\sounds_f\weapons\closure\closure_rifle_2",3.16228,1,500};

closure2[] = {"\A3\sounds_f\weapons\closure\closure_rifle_3",3.16228,1,500};

dispersion = 0.0005;

displayname = "Auto";

ffcount = 30;

fffrequency = 2;

ffmagnitude = 0.5;

flash = "gunfire";

flashsize = 0.1;

maxrange = 30;

maxrangeprobab = 0.05;

midrange = 15;

midrangeprobab = 0.7;

minrange = 0;

minrangeprobab = 0.9;

multiplier = 1;

recoil = "recoil_auto_mx";

recoilProne = "recoil_auto_prone_mx";

reloadtime = 0.096;

requiredoptictype = -1;

showtoplayer = 1;

sound[] = {"",10,1};

soundbegin[] = {"begin1",0.333,"begin2",0.333,"begin3",0.333};

soundbeginwater[] = {"sound",1};

soundburst = 0;

soundclosure[] = {"closure1",0.5,"closure2",0.5};

soundcontinuous = 0;

soundend[] = {"sound",1};

soundloop[] = {};

texturetype = "fullAuto";

useaction = 0;

useactiontitle = "";

weaponsoundeffect = "DefaultRifle";

};

class biw_mfs_lr : biw_mfs_g40

{

displayName = "Mündungsfeuerdämpfer (LR-X)";

picture = ;

model = "\biw_weapons\acc\biw_mfs";

scope = 2;

class ItemInfo: ItemInfo

{

mass = 5;

class MagazineCoef

{

initSpeed = 1;

};

modes[] = {"Single_lr","FullAuto_lr"};

class Single_lr: Mode_SemiAuto

{

aidispersioncoefx = 1.4;

aidispersioncoefy = 1.7;

airateoffire = 2;

airateoffiredistance = 500;

artillerycharge = 1;

artillerydispersion = 1;

autofire = 0;

begin1[] = {"biw_weapons\biw_lr\data\sounds\lr555_01",2.51189,1,1200};

begin2[] = {"biw_weapons\biw_lr\data\sounds\lr555_02",2.51189,1,1200};

begin3[] = {"biw_weapons\biw_lr\data\sounds\lr555_03",2.51189,1,1200};

burst = 1;

canshootinwater = 0;

closure1[] = {"A3\sounds_f\weapons\closure\ebr-1",3.16228,1,500};

closure2[] = {"A3\sounds_f\weapons\closure\ebr-2",3.16228,1,500};

closure3[] = {"A3\sounds_f\weapons\closure\ebr-3",3.16228,1,500};

dispersion = 0.001;

displayname = "Semi";

ffcount = 20;

fffrequency = 2;

ffmagnitude = 0.5;

flash = "gunfire";

flashsize = 0.1;

maxrange = 500;

maxrangeprobab = 0.2;

midrange = 250;

midrangeprobab = 0.7;

minrange = 2;

minrangeprobab = 0.3;

multiplier = 1;

recoil = "recoil_single_ebr";

recoilProne = "recoil_single_prone_ebr";

reloadtime = 0.098;

requiredoptictype = -1;

showtoplayer = 1;

sound[] = {"",10,1};

soundbegin[] = {"begin1",0.333,"begin2",0.333,"begin3",0.333};

soundbeginwater[] = {"sound",1};

soundburst = 0;

soundclosure[] = {"closure1",0.5,"closure2",0.5,"closure3",0.5};

soundcontinuous = 0;

soundend[] = {};

soundloop[] = {};

texturetype = "semi";

useaction = 0;

useactiontitle = "";

weaponsoundeffect = "DefaultRifle";

};

class FullAuto_lr: Mode_FullAuto

{

aidispersioncoefx = 2;

aidispersioncoefy = 3;

airateoffire = 1e-006;

airateoffiredistance = 500;

artillerycharge = 1;

artillerydispersion = 1;

autofire = 1;

burst = ;

begin1[] = {"biw_weapons\biw_lr\data\sounds\lr555_01",2.51189,1,1200};

begin2[] = {"biw_weapons\biw_lr\data\sounds\lr555_02",2.51189,1,1200};

begin3[] = {"biw_weapons\biw_lr\data\sounds\lr555_03",2.51189,1,1200};

canshootinwater = 0;

closure1[] = {"A3\sounds_f\weapons\closure\ebr-1",3.16228,1,500};

closure2[] = {"A3\sounds_f\weapons\closure\ebr-2",3.16228,1,500};

closure3[] = {"A3\sounds_f\weapons\closure\ebr-3",3.16228,1,500};

dispersion = 0.001;

displayname = "Auto";

ffcount = 20;

fffrequency = 2;

ffmagnitude = 0.5;

flash = "gunfire";

flashsize = 0.1;

maxrange = 30;

maxrangeprobab = 0.05;

midrange = 15;

midrangeprobab = 0.0007;

minrange = 0;

minrangeprobab = 0.9;

multiplier = 1;

recoil = "recoil_auto_ebr";

recoilProne = "recoil_auto_prone_ebr";

reloadtime = 0.098;

requiredoptictype = -1;

showtoplayer = 1;

sound[] = {"",10,1};

soundbegin[] = {"begin1",0.333,"begin2",0.333,"begin3",0.333};

soundbeginwater[] = {"sound",1};

soundburst = 0;

soundclosure[] = {"closure1",0.5,"closure2",0.5,"closure3",0.5};

soundcontinuous = 0;

soundend[] = {"sound",1};

soundloop[] = {};

texturetype = "fullAuto";

useaction = 0;

useactiontitle = "";

weaponsoundeffect = "DefaultRifle";

};

};

};

I hope, someone could help me in this.

Oh, and happy eastern:cool:

Share this post


Link to post
Share on other sites

I think you are missing two }; at the end of your biw_mfs_g40 class.

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  

×