Chris Death 0 Posted May 30, 2005 :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 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. Â 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