Jump to content
Sign in to follow this  
TheStealthDj

config.cpp error

Recommended Posts

Hello there,

I have been working on my 1st terrain for Arma by following the "ArmA 2 Terrain Tutorial", fully completed the tutorial and decided to create my own terrain, textures, ect.

I managed to get my new terrain ingame and tried to get some extra textures in there, I could get them in but with no clutter on new texture so i tried last night to fix it and gave up untill today.

I gave it a go today and I am getting "Error in config p:\xx\xx\config.cpp" but it still packed the .pbo, I checked the log and the first line says..

File p:\xx\xx\config.cpp, line 49: /CfgSurfaces/: Missing '}'

Now I am unable to select my terrain ingame and I am at a loss as to what to do?

I will include the config.cpp below

class CfgPatches

{

class SmallMap

{

units[] = {SmallMap};

weapons[] = {};

requiredVersion = 1.03;

requiredAddons[] = {"Utes"};

version = "2009-9-1";

fileName = "SmallMap.pbo";

author = "TheStealthDj";

mail = "na";

};

};

class CfgWorlds

{

class CAWorld;

class Utes: CAWorld

{

class Grid;

class DefaultClutter;

};

class SmallMap: Utes

{

description = "A Small Map";

worldName= "\smalltest\smallmap\smallmap.wrp";

pictureShot = "\smalltest\smallmap\data\sm_picture_ca.paa";

centerPosition[] = {2720,2462,500};

seagullPos[] = {2720,2462,500};

longitude = -3; // positive is east, in degrees?

latitude = -54; // positive is south, in degrees?

class Clutter

{

#include "cfgClutter.hpp"

};

class Names

{

#include "SmallMap.hpp"

};

};

};

class CfgWorldList

{

class SmallMap {};

};

//SURFACES

#include "cfgSurfaces.hpp"

I will also include surfaces, clutter and layers files incase they are needed.

cfgSurfaces

class CfgSurfaces

{

class Default {};

class SMgrassSurface : Default

{

files = "sm_grass_*";

rough = 0.1;

dust = 0.1;

soundEnviron = "grass";

character = "sm_grassClutter";

};

class SMstonegrassSurface : Default

{

files = "sm_stonegrass_*";

rough = 0.1;

dust = 0.1;

soundEnviron = "hard_ground";

character = "sm_stonegrassClutter";

};

class CfgSurfaceCharacters

{

class sm_grassClutter

{

probability[]={0.79,0.1,0.1,0.01};

names[]={sm_GrassCrookedGreen,sm_GrassCrooked,sm_AutumnFlowers,sm_WeedDead};

};

class sm_stonegrassClutter

{

probability[]={0.79,0.1,0.1,0.01};

names[]={sm_GrassCrookedGreen,sm_GrassCrooked,sm_AutumnFlowers,sm_WeedDead};

};

};

cfgClutter

class sm_AutumnFlowers: DefaultClutter

{

model=ca\plants2\clutter\c_autumn_flowers.p3d;

affectedByWind = 0.4;

swLighting = true;

scaleMin = 0.7;

scaleMax = 1.0;

};

class sm_GrassCrooked: DefaultClutter

{

model=ca\plants2\clutter\c_GrassCrooked.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.7;

scaleMax = 1.4;

};

class sm_GrassCrookedGreen: DefaultClutter

{

model=ca\plants2\clutter\c_GrassCrookedGreen.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.9;

scaleMax = 1.3;

};

class sm_WeedDead: DefaultClutter

{

model=ca\plants2\clutter\c_WeedDead.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.75;

scaleMax = 1.1;

};

Layers.cfg

class Layers

{

class sm_grass

{

texture = "smalltest\smallmap\data\sm_grass_mco.png";

material= "smalltest\smallmap\data\sm_grass.rvmat";

};

class sm_stonegrass

{

texture = "smalltest\smallmap\data\sm_stonegrass_mco.png";

material= "smalltest\smallmap\data\sm_stonegrass.rvmat";

};

};

class Legend

{

picture="smalltest\smallMap\source\mapLegend.png";

class Colors

{

sm_grass[]={{255,255,255}};

sm_stonegrass[]={{255,000,000}};

};

};

Any help is much appreciated.

---------- Post added at 14:40 ---------- Previous post was at 12:40 ----------

Managed to get past the config error, i was missing a bracket out of the cfgSufaces.hpp but still no clutter.

---------- Post added at 16:21 ---------- Previous post was at 14:40 ----------

Well got clutter working, dont know how but its solved.

Share this post


Link to post
Share on other sites

Was coming in to have a look then noticed you fixed it. Good job! Fun isn't it!

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  

×