Jump to content
Sign in to follow this  
jens198

Error in my clutter configs (but can't spot it by myself)

Recommended Posts

Hi folks,

I'm updating one of my long time projects with textures from OA. Recently all the island's clutter worked without any problems. After I reworked my config files I don't get any clutter ingame. Maybe someone can take a look at my files. The simplification I only configured a single clutter "SAND" with two p3d-files on it "deadGrassBunch, GrassAutumnBrown".

BTW, the new OA textures show up fine ingame.

Jens

layers.cfg

class Layers
{
 class j198_ntc_dgreen
 {
   texture="j198\j198_ntc\Data\j198_ntc_dgreen_tk_trava_mco.paa";
   material="j198\j198_ntc\Data\j198_ntc_dgreen_tk_trava.rvmat";
 };
 class j198_ntc_lgreen
 {
   texture="j198\j198_ntc\Data\j198_ntc_lgreen_tk_hlina_mco.paa";
   material="j198\j198_ntc\Data\j198_ntc_lgreen_tk_hlina.rvmat";
 };
 class j198_ntc_lbrown
 {
   texture="j198\j198_ntc\Data\j198_ntc_lbrown_tk_valouny_mco.paa";
   material="j198\j198_ntc\Data\j198_ntc_lbrown_tk_valouny.rvmat";
 };
 class j198_ntc_white
 {
   texture="j198\j198_ntc\Data\j198_ntc_white_tk_polopoust_mco.paa";
   material="j198\j198_ntc\Data\j198_ntc_white_tk_polopoust.rvmat";
 };
};

class Legend
{
 picture="j198\j198_ntc\source\mapLegend.png";

   class Colors
 {

  		j198_ntc_dgreen[]={{88,107,103}};
 			j198_ntc_lgreen[]={{153,174,154}};
  		j198_ntc_white[]={{232,237,231}};
    		j198_ntc_lbrown[]={{208,204,167}};
 };
};

satelliteMap="sat_lco.png";
layerMask="mask_lco.png";
rvmatBinary=true;

cfgSurfaces.hpp

class CfgSurfaces 
{
class Default {};
class j198_ntc_whiteSurface : Default
{	
	 files = "j198_ntc_white_*";
	 rough = 0.1;
	 dust = 0.1;
	 soundEnviron = "sand";
	 character = "j198_ntc_whiteClutter";
};
	class j198_ntc_lgreenSurface : Default
{	
	 files = "j198_ntc_lgreen_*";
	 rough = 0.1;
	 dust = 0.8;
	 soundEnviron = "sand";
	 character = "j198_ntc_lgreenClutter";
};

	class j198_ntc_dgreenSurface : Default
{	
	 files = "j198_ntc_dgreen_*";
	 rough = 0.2;
	 dust = 0.3;
	 soundEnviron = "sand";
	 character = "j198_ntc_dgreenClutter";
};

class j198_ntc_lbrownSurface : Default
{	
	 files = "j198_ntc_lbrown_*";
	 rough = 0.1;
	 dust = 0.1;
	 soundEnviron = "sand";
	 character = "j198_ntc_lbrownClutter";
};
};


class CfgSurfaceCharacters
{
class j198_ntc_whiteClutter
 	{
		probability[]={};
		names[]={};
 	};

 	class j198_ntc_lgreenClutter
 	{
		probability[]={0.5};
		names[]={"j198_ntc_PlantsViolet"};
 	};

 class j198_ntc_dgreenClutter
 	{
		probability[]={};
		names[]={};

 	};

 	  	class j198_ntc_lbrownClutter
 	{
		probability[]={};
		names[]={};
 	};
};



//			probability[]={0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.02, 0.002};
//			names[]={"j198_ntc_GrassDry", "j198_ntc_GrassDryLong", "j198_ntc_GrassGreen", "j198_ntc_GrassGreenLong", "j198_ntc_BrushHard", "j198_ntc_BrushSoft", "j198_ntc_Weed1", "j198_ntc_WeedThistle", "j198_ntc_prunus"};

cfgClutter.hpp

class j198_ntc_GrassDry: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_GrassDesert_GroupSoft_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_GrassDryLong: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_GrassDryLong_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_GrassGreen: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_GrassGreen_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_GrassGreenLong: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_GrassGreenLong_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_BrushHard: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_Brush_Hard_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_BrushSoft: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_Brush_Soft_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_PlantsViolet: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_Plants_Violet_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_PlantsWhite: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_Plants_White_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_Weed1: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_Weed_1_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_WeedThistle: DefaultClutter
{
	model = "ca\plants_E\Clutter\c_Weed_Thistle_EP1.p3d";
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.6;
	scaleMax = 1.5;
};

class j198_ntc_prunus: DefaultClutter
{
	model=ca\plants2\bush\b_prunus.p3d;
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.8;
	scaleMax = 1.6;
};

class j198_ntc_canina2s: DefaultClutter
{
	model=ca\plants2\bush\b_canina2s.p3d;
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.3;
	scaleMax = 0.7;
};

class j198_ntc_craet1: DefaultClutter
{
	model=ca\plants2\bush\b_craet1.p3d;
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.2;
	scaleMax = 0.5;
};

class j198_ntc_betulaHumilis: DefaultClutter
{
	model=ca\plants2\bush\b_betulaHumilis.p3d;
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.2;
	scaleMax = 0.8;	
};

class j198_ntc_salix2s: DefaultClutter
{
	model=ca\plants2\bush\b_salix2s.p3d;
	affectedByWind = 0.1;
	swLighting = true;
	scaleMin = 0.2;
	scaleMax = 0.9;	
};


//	
//	

config.cpp

class CfgPatches
{

	class j198_ntc
		{
			units[] = {j198_ntc};
			weapons[] = {};
			requiredVersion = 1.03;
			requiredAddons[] = {"Utes"};
			version = "2010-05-28";
			fileName = "j198_ntc.pbo";
			author = "j198";
			mail = "j198@googlemail.com";
};
};

class CfgWorlds
{
		class CAWorld;
		class Utes: CAWorld
		{
				class Grid;

					 //clutterDist = 400;
					 //clutterGrid = 1.25;
					 noDetailDist = 40;
 					 fullDetailDist = 15;

				class DefaultClutter
				{
//								    scaleMin = 0.9;
//								    scaleMax = 1.4;
				};
		};


class j198_ntc: Utes
{
			description = "Ft. Irwin - US Army National Training Center (NTC)";
			worldName= "\j198\j198_ntc\j198_ntc.wrp";
			pictureShot = "\j198\j198_ntc\data\j198_ntc_Picture_ca.paa";
			centerPosition[] = {2720,2462,500};
			seagullPos[] = {2720,2462,500};
			longitude = 30; // positive is east, in degrees?
			latitude = -45; // positive is south, in degrees?

			drawTaxiway=false;
			//			startTime = 10:30;
			//		startDate = 01/05/1985;
			//		startWeather = 0.1;
			//		startFog = 0.0;
			//		forecastWeather = 0.3;
			//		forecastFog = 0.0;


			class Clutter
						{
				#include "cfgClutter.hpp"
						};
			class Names
						{
							//#include "j198_ntc.hpp"
						};
			};
};

class CfgWorldList
{
			class j198_ntc {};
};

class CfgMissions
{
class Cutscenes
{
			class j198_ntcIntro
			{
			directory = "j198\j198_ntc\data\scenes\Intro.j198_ntc";
			};
};
};


#include "cfgSurfaces.hpp"

Edited by jens198
Updated cfg-files

Share this post


Link to post
Share on other sites

in cfhSurfaces...

//SAND

class sm_sandClutter

{

probability[]={0.9, 0.4};

names[]={"deadGrassBunch","GrassAutumnBrown"};

All looks OK at first glance... maybe add "cluttername" quotes like I've done above and, probably more importantly - the probability figures have to total 1.0... 0.9+0.4=1.3...

B

Edited by Bushlurker

Share this post


Link to post
Share on other sites

Thanks for your reply Bushlurker, but no joy so far. I have another map with basically the same configs (other texture files) and got clutter as far as I can see. :(

Jens

Share this post


Link to post
Share on other sites

Maybe you have the same classnames for your clutter and load both islands ingame. This will result in one island with and one without clutter.

For every island you should use different tags for your clutter.

Otherwise you assign the same clutter to different groundtextures what will result in no clutter on one island.

maybe that helped

Share this post


Link to post
Share on other sites

Thanks Beton. Seems like you were right. After your hint I rewrote my configs from scratch, found some other bugs as well and now I got my clutter. Thanks guys!

Jens

Share this post


Link to post
Share on other sites

Hi guys,

once more, a problem with my clutter *sigh*.

Currently I only got one clutter working: "j198_ntc_lgreenClutter"

The lgreenClutter covers the whole map and it makes no difference what I define in the CfgSurfaceCharacters class, every time, the map is completly covered with the lgreenClutter.

I already double and tripple checked the RGB values of the mask_lco.png with the values in the layers.cfg. Everything is fine.

I'm so desperate ... :confused:

Any help appreciated.

Jens

P.S. I updated my first post with the actual cfg.files.

Share this post


Link to post
Share on other sites

Try that.

In a single file "config.cpp"

class CfgPatches

{

class j198_ntc

{

units[] = {j198_ntc};

weapons[] = {};

requiredVersion = 1.03;

requiredAddons[] = {"Utes"};

version = "2010-05-28";

fileName = "j198_ntc.pbo";

author = "j198";

mail = "j198@googlemail.com";

};

};

class CfgWorlds

{

class CAWorld;

class Utes: CAWorld

{

class DefaultClutter;

class Grid;

};

class j198_ntc: Utes

{

description = "Ft. Irwin - US Army National Training Center (NTC)";

worldName= "\j198\j198_ntc\j198_ntc.wrp";

pictureShot = "\j198\j198_ntc\data\j198_ntc_Picture_ca.paa";

plateFormat="ML$ - #####";

plateLetters="ABCDEGHIKLMNOPRSTVXZ";

longitude = 30; // positive is east, in degrees?

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

class Grid : Grid

{

offsetX = 0;

offsetY = -15360;

class Zoom1

{

zoomMax = 0.5;

format = "XY";

formatX = "Aa";

formatY = "00";

stepX = 200;

stepY = 200;

};

class Zoom2

{

zoomMax = 1e30;

format = "XY";

formatX = "A";

formatY = "0";

stepX = 2000;

stepY = 2000;

};

};

startTime = 8:30;

startDate = 01/05/1985;

startWeather = 0.1;

startFog = 0.0;

forecastWeather = 0.3;

forecastFog = 0.0;

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

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

drawTaxiway=false;

class ReplaceObjects{};

class Sounds

{

sounds[] = {}; // sound sources

};

class Animation

{

vehicles[] = {}; // default - no film

};

clutterGrid = 1.0;

clutterDist = 125;

noDetailDist = 40;

fullDetailDist = 15;

midDetailTexture = "";

minTreesInForestSquare = 5;

minRocksInRockSquare = 4;

class clutter

{

class j198_ntc_GrassDry: DefaultClutter

{

model = "ca\plants_E\Clutter\c_GrassDesert_GroupSoft_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_GrassDryLong: DefaultClutter

{

model = "ca\plants_E\Clutter\c_GrassDryLong_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_GrassGreen: DefaultClutter

{

model = "ca\plants_E\Clutter\c_GrassGreen_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_GrassGreenLong: DefaultClutter

{

model = "ca\plants_E\Clutter\c_GrassGreenLong_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_BrushHard: DefaultClutter

{

model = "ca\plants_E\Clutter\c_Brush_Hard_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_BrushSoft: DefaultClutter

{

model = "ca\plants_E\Clutter\c_Brush_Soft_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_PlantsViolet: DefaultClutter

{

model = "ca\plants_E\Clutter\c_Plants_Violet_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_PlantsWhite: DefaultClutter

{

model = "ca\plants_E\Clutter\c_Plants_White_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_Weed1: DefaultClutter

{

model = "ca\plants_E\Clutter\c_Weed_1_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_WeedThistle: DefaultClutter

{

model = "ca\plants_E\Clutter\c_Weed_Thistle_EP1.p3d";

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.6;

scaleMax = 1.5;

};

class j198_ntc_prunus: DefaultClutter

{

model=ca\plants2\bush\b_prunus.p3d;

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.8;

scaleMax = 1.6;

};

class j198_ntc_canina2s: DefaultClutter

{

model=ca\plants2\bush\b_canina2s.p3d;

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.3;

scaleMax = 0.7;

};

class j198_ntc_craet1: DefaultClutter

{

model=ca\plants2\bush\b_craet1.p3d;

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.2;

scaleMax = 0.5;

};

class j198_ntc_betulaHumilis: DefaultClutter

{

model=ca\plants2\bush\b_betulaHumilis.p3d;

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.2;

scaleMax = 0.8;

};

class j198_ntc_salix2s: DefaultClutter

{

model=ca\plants2\bush\b_salix2s.p3d;

affectedByWind = 0.1;

swLighting = true;

scaleMin = 0.2;

scaleMax = 0.9;

};

};

class Names

{

//#include "j198_ntc.hpp"

};

};

};

class CfgWorldList

{

class j198_ntc {};

};

class CfgMissions

{

class Cutscenes

{

class j198_ntcIntro

{

directory = "j198\j198_ntc\data\scenes\Intro.j198_ntc";

};

};

};

class CfgSurfaces

{

class Default;

class Water;

class j198_ntc_whiteSurface : Default

{

files = "j198_ntc_white_tk_polopoust*";

rough = 0.1;

dust = 0.1;

soundEnviron = "sand";

character = "j198_ntc_whiteClutter";

};

class j198_ntc_lgreenSurface : Default

{

files = "j198_ntc_lgreen_tk_hlina*";

rough = 0.1;

dust = 0.8;

soundEnviron = "sand";

character = "j198_ntc_lgreenClutter";

};

class j198_ntc_dgreenSurface : Default

{

files = "j198_ntc_dgreen_tk_trava*";

rough = 0.2;

dust = 0.3;

soundEnviron = "sand";

character = "j198_ntc_dgreenClutter";

};

class j198_ntc_lbrownSurface : Default

{

files = "j198_ntc_lbrown_tk_valouny*";

rough = 0.1;

dust = 0.1;

soundEnviron = "sand";

character = "j198_ntc_lbrownClutter";

};

};

class CfgSurfaceCharacters

{

class j198_ntc_whiteClutter

{

probability[]={0.5, 0.5};

names[]={"j198_ntc_GrassDry", "j198_ntc_GrassGreen"};

};

class j198_ntc_lgreenClutter

{

probability[]={0.5, 0.1, 0.2, 0.3};

names[]={"j198_ntc_GrassDry", "j198_ntc_GrassGreen", "j198_ntc_GrassGreenLong", "j198_ntc_BrushHard"};

};

class j198_ntc_dgreenClutter

{

probability[]={0.2, 0.2};

names[]={"j198_ntc_BrushSoft", "j198_ntc_Weed1"};

};

class j198_ntc_lbrownClutter

{

probability[]={0.1, 0.3};

names[]={"j198_ntc_WeedThistle", "j198_ntc_prunus"};

};

};

There is much room for improvement, but it should work

Edited by akio

Share this post


Link to post
Share on other sites

An oversight, must be added at the beginning of the file "config.cpp":

#define private 0

#define protected 1

#define public 2

#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

Share this post


Link to post
Share on other sites

Well, this time it wasn't the configs but my personal stupidity.

Somehow the destination path in binPBO pointed to g:\arma2\addons and not to g:\arma2\@test\addons. That way I alway packed my new map in the regular arma2 addons directory while an old version of the map (with only one clutter) sit still in the @test-folder.

And when I noticed that the island won't binarize correctly if I use OA-clutter (just like IceBreakr did).

Oh well sometimes map-making for ArmA can be a painful experience...

Jens

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  

×