Jump to content
Sign in to follow this  
Chris Death

Problem with config.cpp

Recommended Posts

:edit - i found the error

at the definition of base class chd_walls i wrote

class chd_walls: Wall {};

but there should only be:

class chd_walls: Wall

tounge_o.gif

Topic solved

~S~ CD

I get the following message, when i start ofp, using the

config below:

'chd_oriental\config.cpp/CfgVehicles.': '{' encountered instead of '='

Now i know what the message wants to tell me, and i've checked this config over and over again, but i cannot find

the wrong piece.  crazy_o.gif

I'm getting already pain on my neck from searching

OK, you know how this is, if you cannot find the forrest because of so many trees there, and that's why i post here:

Can maybe somebody else see what's wrong here?

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

 Oriental Buildings by Chris Death

*/

// 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 access

#define ReadAndWrite 0 //! any modifications enabled

#define ReadAndCreate 1 //! only adding new class members is allowed

#define ReadOnly 2 //! no modifications enabled

#define ReadOnlyVerified 3 //! no modifications enabled, CRC test applied

// type scope

#define private 0

#define protected 1

#define public 2

// type destrType

#define DESTRUCTNO 0

#define DESTRUCTBUILDING 1

#define DESTRUCTENGINE 2

#define DESTRUCTTREE 3

#define DESTRUCTTENT 4

#define DESTRUCTMAN 5

#define DESTRUCTDEFAULT 6

class CfgPatches

{

class chd_objects

{

units[] = {chd_wall01,chd_wall02,chd_wall03,chd_wall04,chd_wall05,chd_wall06,chd_walltst,chd_fortres

s1,chd_rough01,chd_rough02};

worlds[] = {};

requiredVersion = 1.85;

requiredAddons[] = {"BIS_Resistance"};

};

};

class CfgVehicles

{

    class All {};

    class Static: All {};

    class Building: Static {};

    class NonStrategic: Building {};

    class Wall: NonStrategic {};

    class Rock: NonStrategic {};

// ******************** CHD Walls ***********************************

    class chd_walls: Wall {};

{

vehicleClass="chd_walls";

armor=50000;

destrType=DESTRUCTNO;

scope = 0;

};

class chd_wall01: chd_walls

{

model="\chd_oriental\chd_wall01";

armor=5000;

scope=2;

       mapSize=16;

displayName="Wall with stairs";  

};

class chd_wall02: chd_walls

{

model="\chd_oriental\chd_wall02";

armor=5000;

scope=2;

       mapSize=16;

displayName="Wall";  

};

class chd_wall03: chd_walls

{

model="\chd_oriental\chd_wall03";

armor=5000;

scope=2;

       mapSize=16;

displayName="Wall entrance";  

};

class chd_wall04: chd_walls

{

model="\chd_oriental\chd_wall04";

armor=5000;

scope=2;

       mapSize=16;

displayName="Wall corner";  

};

class chd_wall05: chd_walls

{

model="\chd_oriental\chd_wall05";

armor=5000;

scope=2;

       mapSize=16;

displayName="Wall gap";  

};

class chd_wall06: chd_walls

{

model="\chd_oriental\chd_wall06";

armor=5000;

scope=2;

       mapSize=16;

displayName="Wall big entrance";  

};

class chd_walltst: chd_walls

{

model="\chd_oriental\chd_walltst";

armor=5000;

scope=2;

       mapSize=16;

displayName="Wall stairs test";  

};

class chd_fortress1: chd_walls

{

model="\chd_oriental\chd_fortress1";

scope=2;

       mapSize=64;

displayName="fortress1";  

class Eventhandlers

{

init="(_this select 0) exec {\chd_oriental\fortress.sqs}";

};

};

class chd_rough01: Rock

{

model="\chd_oriental\chd_rough01";

armor=2000;

scope=2;

       mapSize=3;

displayName="rough 1";  

};

class chd_rough02: Rock

{

model="\chd_oriental\chd_rough02";

armor=2000;

scope=2;

       mapSize=3;

displayName="rough 2";  

};

};

~S~ CD

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  

×