Jump to content
Sign in to follow this  
wass24

Config problem

Recommended Posts

I need help with a config error.  I am adding 2 vehicles with different p3d files but everything else is the same.  When the game launches I get an error that says:

"No entry 'config.bin/CfgVehicles/CfgWeapons.scope'.  

Please help me get this thing working.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

// some basic defines

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

#define WeaponNoSlot 0// dummy weapons

#define WeaponSlotPrimary 1// primary weapons

#define WeaponSlotSecondary 16// secondary weapons

#define WeaponSlotItem 256// items

#define WeaponSlotBinocular 4096// binocular

#define WeaponHardMounted 65536

#define CanSeeRadar 1

#define CanSeeEye 2

#define CanSeeOptics 4

#define CanSeeEar 8

#define CanSeeCompass 16

#define CanSeeRadarC CanSeeRadar+CanSeeCompass

#define CanSeeAll 31

class CfgModels

{

class default {};

class Vehicle: default {};

class Car: Vehicle {};

class Crown_Vic: car {};

class Crown_Vic_cop: car {};

};

class CfgPatches

{

class Crown_Vic

{

units[]={"Crown_Vic","Crown_Vic_cop"};

weapon[]={};

requiredVersion=1.80;

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class LandVehicle: Land {};

class Car: LandVehicle {};

class Jeep: Car {};

class Crown_Vic: Jeep

{

scope=2;

side=1;

vehicleClass="US Vehicles";

weapons[]={sg};

hasDriver=1;

hasganner=0;

displayName="Crown_Vic (Blue)";

model=\Crown_Vic\Crown_Vic.p3d;

icon="\Crown_Vic\volga.paa";

accuracy=7.00000;

armor=50;

armorBody=0.900000;

armorFuel=1.800000;

armorLights=0.100000;

armorWeels=0.10000;

armorGlass=0.200000;

cost=30000;

fuelCapacity=40;

maxSpeed=250;

turnCoef=1.7500000;

terrainCoef=0.450000;

damperSize=0.100000;

damperForce=20;

brakeDistance=10.00

precision=0.02;

preferRoads=1;

unitInfoType="UnitInfoShip";

wheelCircumference=2.400;

driverCastShadow=true;

transportSoldier=4;

transportAmmo=0;

transportMaxMagazines=50

transportMaxWeapons=10

driverAction="ManActJeepDriver";

cargoAction[]={"ManActJeepCoDriver","ManActJeepCoDriverBack"};

cargoIsCoDriver[]={1,0};

}

class Crown_Vic_cop: jeep

{

scope=2;

side=1;

vehicleClass="US Vehicles";

weapons[]={sg};

hasDriver=1;

hasganner=0;

displayName="Crown Vic (Blue)(Lights)";

model=\Crown_Vic\Crown_Vic_cop.p3d;

icon="\Crown_Vic\volga.paa";

accuracy=7.00000;

armor=50;

armorBody=0.900000;

armorFuel=1.800000;

armorLights=0.100000;

armorWeels=0.10000;

armorGlass=0.200000;

cost=30000;

fuelCapacity=40;

maxSpeed=250;

turnCoef=1.7500000;

terrainCoef=0.450000;

damperSize=0.100000;

damperForce=20;

brakeDistance=10.00

precision=0.02;

preferRoads=1;

unitInfoType="UnitInfoShip";

wheelCircumference=2.400;

driverCastShadow=true;

transportSoldier=4;

transportAmmo=0;

transportMaxMagazines=50

transportMaxWeapons=10

driverAction="ManActJeepDriver";

cargoAction[]={"ManActJeepCoDriver","ManActJeepCoDriverBack"};

cargoIsCoDriver[]={1,0};

}

class CfgWeapons

{

class Default {};

class CarHorn: Default {};

class SportCarHorn: CarHorn {};

class Sirena: SportCarHorn

{

scope=2;

displayName="Siren A";

drySound[]={"\Crown_VIc\sirena.ogg",10.000000,1};

};

class sirenb: SportCarHorn

{

scope=2;

displayName="Siren B";

drySound[]={"\Crown_VIc\sirenb.ogg",10.000000,1};

};

}

class IndicatorSpeed

{

selection="ukaz_rychlo";

axis="osa_rychlo";

angle=250;

min=0;

max=90;

};

class IndicatorRPM

{

selection="ukaz_rpm";

axis="osa_rpm";

angle=180;

min=0;

max=1;

};

class IndicatorWatch

{

hour = "hodinova";

minute = "minutova";

axis = "osa_time";

reversed = false;

};

class Animations

{

       class bagajik

{

type="rotation";

animPeriod=2;

selection="bagajik";

axis="osBagajik";

angle0=0;

angle1=-1;

};

class kapot

{

type="rotation";

animPeriod=1;

selection="kapot";

axis="osKapot";

angle0=0;

angle1=-0.8;

};

class Fuel

{

type="rotation";

animPeriod=1;

selection="ufuel";

axis="osa_fuel";

angle0=0.1;

angle1=1.1;

};

};

class UserActions

{

class Openbagajik

{

displayName="Open Trunk";

position="pos_trunk";

radius=3;

condition="this animationPhase ""bagajik"" < 0.5";

statement="this animate[""bagajik"",1]";

};

class Closebagajik

{

displayName="Close Trunk";

position="pos_trunk";

radius=3;

condition="this animationPhase ""bagajik"" >= 0.5";

statement="this animate[""bagajik"",0]";

};

class Openkapot

{

displayName="Open Hood";

position="pos_hood";

radius=3;

condition="this animationPhase ""kapot"" < 0.5";

statement="this animate[""kapot"",1]";

};

class Closekapot

{

displayName="Close Hood";

position="pos_hood";

radius=3;

condition="this animationPhase ""kapot"" >= 0.5";

statement="this animate[""kapot"",0]";

};

};

};

Share this post


Link to post
Share on other sites

CfgWeapons section should not be inside CfgVehicles section.

Move it so that it is outside the CfgVehicles section.

Planck

Share this post


Link to post
Share on other sites

You will do yourself a hell of alot more favours by using the tab key to indent the start of text in the config file which is sub-ordinate to a previous define or class (whatever you want to call it). The way you have it set-up at the moment it is very difficult to see which parts of the config are sub-ordinate to which.

Example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgVehicles

{

            class All {};

            class AllVehicles: All {};

            class Land: AllVehicles {};

            class LandVehicle: Land {};

            class Car: LandVehicle {};

            class Jeep: Car {};

            class Crown_Vic: Jeep

            {

                        scope=2;

                        side=1;

                        vehicleClass="US Vehicles";

                        weapons[]={sg};

                        hasDriver=1;

                        hasganner=0;

                        displayName="Crown_Vic (Blue)";

                        model=\Crown_Vic\Crown_Vic.p3d;

                        icon="\Crown_Vic\volga.paa";

                        accuracy=7.00000;

                        armor=50;

                        armorBody=0.900000;

                        armorFuel=1.800000;

                        armorLights=0.100000;

                        armorWeels=0.10000;

                        armorGlass=0.200000;

                        cost=30000;

                        fuelCapacity=40;

                        maxSpeed=250;

                        turnCoef=1.7500000;

                        terrainCoef=0.450000;

                        damperSize=0.100000;

                        damperForce=20;

                        brakeDistance=10.00

                        precision=0.02;

                        preferRoads=1;

                        unitInfoType="UnitInfoShip";

                        wheelCircumference=2.400;

                        driverCastShadow=true;

                        transportSoldier=4;

                        transportAmmo=0;

                        transportMaxMagazines=50;

                        transportMaxWeapons=10;

                        driverAction="ManActJeepDriver";

                        cargoAction[]=

                        "ManActJeepCoDriver","ManActJeepCoDriverBack"};

                        cargoIsCoDriver[]={1,0};

            };

};

I also noticed there appear (assuming my eyes do not deceive) to be some semi colons ; missing from the code sample you posted. These will give you hair-tearing-out problems later if you don't fix them before trying to load the .PBO file up in the game thumbs-up.gif

**Edit

I noticed that this board does not include tab spacing when you copy and paste. I presume this is why there are no idents. I've edited the example to show you how it should look just in case it helps you and/or anybody else who might happen across the thread thumbs-up.gif

Share this post


Link to post
Share on other sites

Thank you, I fixed it and it works. Stupid brackets always appearing in the wrong place. They should have colors so you know what sections your closing off.

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  

×