Jump to content
SageNTitled

[SOLVED] Clutter not showing

Recommended Posts

I'm trying to figure out why my clutter isn't showing up in Buldozer. This is my first time working with terrains, so bear with me. I have created the following files. I'd appreciate if someone could validate the configuration, since I can't find anything wrong with it. It's only the grass_green texture that should have clutter on it.

 

cfgSurfaces.hpp:

class CfgSurfaces 
{
	class Default {};
	class snt_langoya_dirt_Surface : Default
	{	
		files = "snt_langoya_dirt_*";
		rough = 0.09;
		maxSpeedCoef = 0.9;
		dust = 0.5;
		soundEnviron = "dirt";
		character = "Empty";
		soundHit = "soft_ground";
		lucidity = 1;
		grassCover = 0.03;
	};
	class snt_langoya_grass_green_Surface : Default
	{	
		files = "snt_langoya_grass_green_*";
		rough = 0.08;
		maxSpeedCoef = 0.9;
		dust = 0.15;
		soundEnviron = "grass";
		character = "snt_langoya_green_grass_Character";
		soundHit = "soft_ground";
		lucidity = 4;
		grassCover = 0.05;
	};
};

class CfgSurfaceCharacters
{
	class snt_langoya_green_grass_Character
	{
		probability[] = {0.92,0.07};
		names[] = {"snt_langoya_GrassGreenGroup","snt_langoya_FlowerLowYellow2"};
	};
};

cfgClutter.hpp:

class Clutter	
{
	class snt_langoya_GrassGreenGroup: DefaultClutter
	{
		model = "a3\plants_f\clutter\c_strgrassgreen_group.p3d";
		affectedByWind = 0.6;
		swLighting = "true";
		scaleMin = 0.7;
		scaleMax = 1.0;
	};
	class snt_langoya_FlowerLowYellow2: DefaultClutter
	{
		model = "a3\plants_f\clutter\c_flower_low_yellow2.p3d";
		affectedByWind = 0.4;
		swLighting = "true";
		scaleMin = 0.6;
		scaleMax = 1.0;
	};
};

config.cpp:

#define _ARMA_

//Class config.bin{
class CfgPatches
{
	class snt_langoya
	{
		units[] = {"snt_langoya"};
		weapons[] = {};
		requiredVersion = 1.0;
		requiredaddons[]={"A3_Map_Stratis"};
		version = "25/01/2015";
		fileName = "snt_langoya.pbo";
		author = "SageNTitled";
	};
};

class CfgWorlds
{
	class CAWorld;
	class Stratis: CAWorld
	{
		class Grid;
		class DefaultClutter;
	};
	class snt_langoya: Stratis
	{
		cutscenes[] = {};
		author = "SageNTitled";
		description = "snt_langoya";
		pictureMap = "Langoya\data\imagery\snt_langoya.paa"; 
		worldName = "yourtag\yourtag_yourproject\yourtag_yourproject.wrp";
		startTime = "11:00";
		startDate = "05/05/2016";
		startWeather = 0.2;
		startFog = 0.0;
		forecastWeather = 0.6;
		forecastFog = 0.0;
		centerPosition[] = {1024,1024,500};
		seagullPos[] = {1024,1024,500};
		longitude = 65;
		latitude = -34;
		elevationOffset = 5;
		envTexture = "a3\data_f\env_land_ca.tga";
		minTreesInForestSquare = 2;
		minRocksInRockSquare = 2;
		newRoadsShape = "\Langoya\data\roads\roads.shp";
		ilsPosition[] = {1024,1024};
		ilsDirection[] = {0.5075,0.08,-0.8616};
		ilsTaxiIn[] = {};
		ilsTaxiOff[] = {};
		drawTaxiway = 0;
		class SecondaryAirports {};
		class Sea
		{
			seaTexture = "a3\data_f\seatexture_co.paa";
			seaMaterial = "#water";
			shoreMaterial = "#shore";
			shoreFoamMaterial = "#shorefoam";
			shoreWetMaterial = "#shorewet";
			WaterMapScale = 20;
			WaterGrid = 50;
			MaxTide = 0;
			MaxWave = 0;
			SeaWaveXScale = "2.0/50";
			SeaWaveZScale = "1.0/50";
			SeaWaveHScale = 2.0;
			SeaWaveXDuration = 5000;
			SeaWaveZDuration = 10000;
		};
		class Grid: Grid
		{
			offsetX = 0;
			offsetY = 5120;
			class Zoom1
			{
				zoomMax = 0.15;
				format = "XY";
				formatX = "000";
				formatY = "000";
				stepX = 100;
				stepY = -100;
			};
			class Zoom2
			{
				zoomMax = 0.85;
				format = "XY";
				formatX = "00";
				formatY = "00";
				stepX = 1000;
				stepY = -1000;
			};
			class Zoom3
			{
				zoomMax = 1e+030.0;
				format = "XY";
				formatX = "0";
				formatY = "0";
				stepX = 10000;
				stepY = -10000;
			};
		};
		class DefaultClutter;
		#include "cfgClutter.hpp"
		class Names
		{
			#include "snt_langoya.hpp"
		};
	};
};

class CfgWorldList
{
	class snt_langoya{};
};

class CfgMissions
{
	class Cutscenes
	{

	};
};

//SURFACES
#include "cfgSurfaces.hpp"

Share this post


Link to post
Share on other sites

In buldozer or the main game? Because clutter doesn't show in buldozer

  • Like 2

Share this post


Link to post
Share on other sites

In buldozer or the main game? Because clutter doesn't show in buldozer

Well, that explains it. How inconvenient. Thanks.

Share this post


Link to post
Share on other sites

this is not for the clutter

but you missed this line in config.cpp

"worldName = "yourtag\yourtag_yourproject\yourtag_yourproject.wrp";"

must be

worldName = "Langoya\snt_langoya.wrp";

or whichever name  has given 

 

now for the clutter ingame , check in lanqoya\data folder for the files snt_langoya_grass_green_*    (plus *.rvmats).

 satmask and layers.cfg 

if is there , then you can see the clutter ingame .

  • Like 1

Share this post


Link to post
Share on other sites

this is not for the clutter

but you missed this line in config.cpp

"worldName = "yourtag\yourtag_yourproject\yourtag_yourproject.wrp";"

must be

worldName = "Langoya\snt_langoya.wrp";

or whichever name you has given 

Yeah, I managed to correct that based on the errors I got when crunching. Thanks!

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

×