Jump to content
Sign in to follow this  
digitalcenturion

Using Takistan features in your map config, need help

Recommended Posts

Right-o, as probably many others are doing right now I am working on a takistan type terrain, and among other things i have used the takistan config as a basis.

But i have a number of outstanding issues which i need help resolving, since i'm no real config-experience.

The issues I'm having:

  1. Error upon loading the map:
    No entry 'bin\config.bin/CfgWorlds/DGC_TAKIST_N/Weather/Overcast/Weather6.overcast'.
    This issue is probably related to the custom weather classes i got from the takistan map config, but is it safe to remove it or what, or could i reconfig it in such a matter as to inherit all this directly from the takistan map
  2. The nights are not really dark as they should be, there is no ambient light but they are not very dark either. This is probably related to the classDaylightning et cetera config. But i cant really figure out what it does.

class CfgPatches
{
class DGC_TAKIST_N
{
	units[] = {DGC_TAKIST_N};
	weapons[] = {};
	requiredVersion = 1.05;
	requiredAddons[] = {Utes,CA_E, "CARoads_E", "CARocks_E", "CAStructures_E", "CAMisc_E"};
	version = "2010-08-22";
	fileName = "DGC_TAKIST_N.pbo";
	author = "Mats Liljeroos";
	mail = "snip";
};
};
class CfgWorlds {
class DefaultWorld {
	class Weather {
		class Overcast;	// External class reference
	};
};

class Utes : DefaultWorld {
	class Grid {};
	class DayLightingBrightAlmost;	// External class reference
	class DayLightingRainy;	// External class reference
	class DefaultClutter;	// External class reference
	class EnvSounds;	// External class reference


	class Weather : Weather {
		class Lighting;	// External class reference

		class Overcast : Overcast {
			class Weather1;	// External class reference
			class Weather2;	// External class reference
			class Weather3;	// External class reference
			class Weather4;	// External class reference
			class Weather5;	// External class reference
			class Weather6;	// External class reference
		};
	};
};

class DefaultLighting;

class DGC_TAKIST_N: Utes
{
	description = "Northern Takistan";
	worldName=\DGC\DGC_TAKIST_N\DGC_TAKIST_N.wrp;
	pictureShot = "\DGC\DGC_TAKIST_N\data\SM_Picture_ca.paa";
	centerPosition[] = {22040,19925,500};
	seagullPos[] = {2720,2462,500};
	longitude = 66; // positive is east, in degrees?
	latitude = -35; // positive is south, in degrees?
	ilsPosition[] = {3712,9265};
	ilsDirection[] = {0,0.080000,1};
	ilsTaxiIn[] = {3705,8274,3690,8274,3676,8280,3670,8289,3667,8298,3667,8932};
	ilsTaxiOff[] = {3667,8932,3667,9224,3669,9233,3676,9243,3687,9248,3702,9249};
	skyObject = "ca\Takistan\Data\obloha.p3d";
	horizontObject = "ca\Takistan\Data\horizont.p3d";
	skyTexture = "ca\Takistan\Data\sky_semicloudy_sky.paa";
	skyTextureR = "ca\Takistan\Data\sky_semicloudy_lco.paa";

	class SecondaryAirports
		{
 		 class DGCDirtstrip1
 			 {
   			ilsPosition[] = {7893,32120};
  			ilsDirection[] = {0.707,0.08000,0.707};
   			ilsTaxiIn[] = {7461,31692,7464,31685,7484,31679,7509,31679,7549,31715,7705,31847};
   			ilsTaxiOff[] = {7705,31847,7882,32045,7901,32065,7905,32081,7901,32097,7884,32113};
   			drawTaxiway = 0;
  			};
		};

	class EnvSounds : EnvSounds {
		class Sea {
			name = $STR_DN_SEA;
			sound[] = {"\ca\Sounds_E\sfx\lake_1", 0.1, 1};
			soundNight[] = {"\ca\Sounds_E\sfx\lake_3", 0.177828, 1};
			volume = "sea";
		};
	};
/*
	class OutsideTerrain {
		satellite = "DGC\DGC_TAKIST_N\data\s_satout_co.paa";
		enableTerrainSynth = 1;

		class Layers {
			class Layer0 {
				nopx = "DGC\DGC_TAKIST_N\data\sm_redsand_detail_nopx.paa";
				texture = "DGC\DGC_TAKIST_N\data\sm_redsand_detail_co.paa";
			};
		};
	};
*/
	class Lighting : DefaultLighting {
		groundReflection[] = {0.06, 0.06, 0.03};
	};

	class DayLightingBrightAlmost : DayLightingBrightAlmost {
		deepNight[] = {-15, {0.037, 0.063, 0.091}, {0.001, 0.001, 0.0012}, {0.067, 0.075, 0.091}, {0.003, 0.004, 0.006}, {0.0001, 			0.0001, 0.0002}, {0.0001, 0.0001, 0.0002}, 0};
		fullNight[] = {-5, {0.182, 0.213, 0.25}, {0.05, 0.111, 0.221}, {0.04, 0.034, 0.004}, {0.039, 0.049, 0.072}, {0.082, 0.128, 			0.185}, {0.283, 0.35, 0.431}, 0};
		sunMoon[] = {-3.75, {0.377, 0.441, 0.518}, {0.103, 0.227, 0.453}, {0.04, 0.034, 0.004}, {0.039, 0.049, 0.072}, {0.174, 				0.274, 0.395}, {0.582, 0.72, 0.887}, 0.5};
		earlySun[] = {-2.5, {0.675, 0.69, 0.784}, {0.22, 0.322, 0.471}, {0.04, 0.034, 0.004}, {0.039, 0.049, 0.072}, {0.424, 0.549, 0.745}, {0.698, 0.753, 0.894}, 1};
		sunrise[] = {0, {0.675, 0.69, 0.784}, {0.478, 0.51, 0.659}, {0.2, 0.19, 0.07}, {0.124, 0.161, 0.236}, {{0.847, 0.855, 0.965}, 0.2}, {{0.933, 0.949, 0.996}, 2}, 1};
		earlyMorning[] = {3, {{0.844, 0.61, 0.469}, 2}, {0.424, 0.557, 0.651}, {{1, 0.45, 0.2}, 1}, {0.12, 0.26, 0.38}, {{0.428, 0.579, 0.743}, 2}, {{0.844, 0.61, 0.469}, 2.7}, 1};
		midMorning[] = {8, {{0.822, 0.75, 0.646}, 3.8}, {{0.383, 0.58, 0.858}, 1.3}, {{1.3, 0.9, 0.61}, 3.8}, {{0.12, 0.18, 0.28}, 0.5}, {{0.322, 0.478, 0.675}, 3.5}, {{1.0, 0.929, 0.815}, 4.7}, 1};
		morning[] = {16, {{1, 0.95, 0.91}, 11.2}, {{0.12, 0.18, 0.28}, 7.5}, {{1, 0.95, 0.91}, 11.2}, {{0.12, 0.16, 0.18}, 7.5}, {{0.14, 0.18, 0.24}, 10.5}, {{0.5, 0.6, 0.9}, 11.7}, 1};
		noon[] = {45, {{0.98, 0.96, 0.9}, 13.55}, {{0.3, 0.32, 0.35}, 9.5}, {{1, 0.95, 0.91}, 13.2}, {{0.12, 0.16, 0.18}, 9.5}, {{0.14, 0.14, 0.14}, 12.5}, {{0.5, 0.6, 0.9}, 13.7}, 1};
	};

	class DayLightingRainy : DayLightingRainy {
		deepNight[] = {-15, {0.0034, 0.0034, 0.004}, {0.003, 0.003, 0.003}, {0.0034, 0.0034, 0.004}, {0.003, 0.003, 0.003}, {0.001, 0.001, 0.002}, {0.001, 0.001, 0.002}, 0};
		fullNight[] = {-5, {0.023, 0.023, 0.023}, {0.02, 0.02, 0.02}, {0.023, 0.023, 0.023}, {0.02, 0.02, 0.02}, {0.01, 0.01, 0.02}, {0.08, 0.06, 0.06}, 0};
		sunMoon[] = {-3.75, {0.04, 0.04, 0.05}, {0.04, 0.04, 0.05}, {0.04, 0.04, 0.05}, {0.04, 0.04, 0.05}, {0.04, 0.035, 0.04}, {0.11, 0.08, 0.09}, 0.5};
		earlySun[] = {-2.5, {0.0689, 0.0689, 0.0804}, {0.06, 0.06, 0.07}, {0.0689, 0.0689, 0.0804}, {0.06, 0.06, 0.07}, {0.08, 0.07, 0.08}, {0.14, 0.1, 0.12}, 0.5};
		earlyMorning[] = {0, {{1, 1, 1}, (-4)+3.95}, {{1, 1, 1}, (-4)+3.0}, {{1, 1, 1}, (-4)+3.95}, {{1, 1, 1}, (-4)+3.0}, {{1, 1, 1}, (-4)+4}, {{1, 1, 1}, (-4)+5.5}, 1};
		morning[] = {5, {{1, 1, 1}, (-4)+5.7}, {{1, 1, 1}, (-4)+4.5}, {{1, 1, 1}, (-4)+5.7}, {{1, 1, 1}, (-4)+4.5}, {{1, 1, 1}, (-4)+7}, {{1, 1, 1}, (-4)+8}, 1};
		lateMorning[] = {25, {{1, 1, 1}, (-4)+10.45}, {{1, 1, 1}, (-4)+9.75}, {{1, 1, 1}, (-4)+10.45}, {{1, 1, 1}, (-4)+9.75}, {{1, 1, 1}, (-4)+12}, {{1, 1, 1}, (-4)+12.75}, 1};
		noon[] = {70, {{1, 1, 1}, (-4)+12.5}, {{1, 1, 1}, (-4)+11}, {{1, 1, 1}, (-4)+12}, {{1, 1, 1}, (-4)+11}, {{1, 1, 1}, (-4)+13.5}, {{1, 1, 1}, (-4)+14}, 1};
	};

	class Weather : Weather {
		class Lighting : Lighting {
			class BrightAlmost : DayLightingBrightAlmost {
				overcast = 0;
			};

			class Rainy : DayLightingRainy {
				overcast = 1.0;
			};
		};

		class Overcast : Overcast {
			class Weather1 : Weather1 {
				sky = "ca\Takistan\Data\sky_clear_sky.paa";
				skyR = "ca\Takistan\Data\sky_clear_lco.paa";
				horizon = "ca\Takistan\Data\sky_clear_horizont_sky.paa";
			};

			class Weather7 : Weather1 {
				sky = "ca\Takistan\Data\sky_veryclear_sky.paa";
				skyR = "ca\Takistan\Data\sky_clear_lco.paa";
				horizon = "ca\Takistan\Data\sky_veryclear_horizont_sky.paa";
			};

			class Weather2 : Weather2 {
				sky = "ca\Takistan\Data\sky_almostclear_sky.paa";
				skyR = "ca\Takistan\Data\sky_almostclear_lco.paa";
				horizon = "ca\Takistan\Data\sky_almostclear_horizont_sky.paa";
			};

			class Weather3 : Weather3 {
				sky = "ca\Takistan\Data\sky_semicloudy_sky.paa";
				skyR = "ca\Takistan\Data\sky_semicloudy_lco.paa";
				horizon = "ca\Takistan\Data\sky_semicloudy_horizont_sky.paa";
			};

			class Weather4 : Weather4 {
				sky = "ca\Takistan\Data\sky_cloudy_sky.paa";
				skyR = "ca\Takistan\Data\sky_cloudy_lco.paa";
				horizon = "ca\Takistan\Data\sky_cloudy_horizont_sky.paa";
			};

			class Weather5 : Weather5 {
				sky = "ca\Takistan\Data\sky_mostlycloudy_sky.paa";
				skyR = "ca\Takistan\Data\sky_mostlycloudy_lco.paa";
				horizon = "ca\Takistan\Data\sky_mostlycloudy_horizont_sky.paa";
			};

			class Weather6 : Weather6 {
				sky = "ca\Takistan\Data\sky_overcast_sky.paa";
				skyR = "ca\Takistan\Data\sky_overcast_lco.paa";
				horizon = "ca\Takistan\Data\sky_overcast_horizont_sky.paa";
			};
		};
	};
	clutterGrid = 1.5;
	clutterDist = 125;
	noDetailDist = 40;
	fullDetailDist = 10;
	midDetailTexture = "ca\takistan\data\tk_middle_mco.paa";
	minTreesInForestSquare = 4;
	minRocksInRockSquare = 3;

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

};
};

class CfgWorldList
{
class DGC_TAKIST_N {};
};

class CfgMissions
{
class Cutscenes
{
	class DGC_TAKIST_NIntro
	{
	directory = "DGC\DGC_TAKIST_N\data\scenes\Intro.DGC_TAKIST_N";
	};
};
};

//SURFACES
#include "cfgSurfaces.hpp"

So if any config gurus could help that would be great, or just give me pointers

Share this post


Link to post
Share on other sites

ill give u something to work with

//Class Fayshkhabur : config.bin{
class CfgPatches
{
class Fayshkhabur
{
 units[] = {"Fayshkhabur"};
 weapons[] = {};
 requiredVersion = 1.02;
 requiredAddons[] = {"CA_E","CARoads_E","CARocks_E","CAStructures_E","CAMisc_E","CAStructures_PMC"};
};
};
class CfgVehicles{};
class CfgWorlds
{
class DefaultWorld
{
 class Weather
 {
  class Overcast;
 };
};
class CAWorld: DefaultWorld
{
 class Grid{};
 class DayLightingBrightAlmost;
 class DayLightingRainy;
 class DefaultClutter;
 class EnvSounds;
 class Weather: Weather
 {
  class Lighting;
  class Overcast: Overcast
  {
   class Weather1;
   class Weather2;
   class Weather3;
   class Weather4;
   class Weather5;
   class Weather6;
  };
 };
};
class DefaultLighting;
class Fayshkhabur: CAWorld
{
 access = 3;
 worldId = 7;
 cutscenes[] = {"ShapurIntro1","ZargabadIntro1"};
 description = "Faysh khabur";
 icon = "";
 worldName = "Fayshkhabur\Fayshkhabur.wrp";
 pictureMap = "";
 pictureShot = "Fayshkhabur\icons\ui_selectisland_Fayshkhabur_ca.paa";
 plateFormat = "TK$ - #####";
 plateLetters = "ABCDEGHIKLMNOPRSTVXZ";
 longitude = 37;
 latitude = -43;
 elevationOffset = 401;
 class EnvSounds: EnvSounds
 {
  class Sea
  {
   name = "$STR_DN_SEA";
   sound[] = {"\ca\Sounds_E\sfx\lake_1",0.01,1};
   soundNight[] = {"\ca\Sounds_E\sfx\lake_3",0.17782794,1};
   volume = "sea";
  };
 };
 class OutsideTerrain
 {
  satellite = "Fayshkhabur\data\s_satout_co.paa";
  enableTerrainSynth = 1;
  class Layers
  {
   class Layer0
   {
    nopx = "Fayshkhabur\data\tk_polopoust_nopx.paa";
    texture = "Fayshkhabur\data\tk_polopoust_co.paa";
   };
  };
 };
 class Grid: Grid
 {
  offsetX = 10240;
  offsetY = 10240;
  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;
   format = "XY";
   formatX = "0";
   formatY = "0";
   stepX = 10000;
   stepY = -10000;
  };
 };
 startTime = "06:45";
 startDate = "23/1/1991";
 startWeather = 0.2;
 startFog = 0.0;
 forecastWeather = 0.0;
 forecastFog = 0.0;
 centerPosition[] = {10240,10240,300};
 seagullPos[] = {6015,5448,200};
 ilsPosition[] = {5148,4865.46};
 ilsDirection[] = {0,0.080000,-1};
 ilsTaxiOff[] = {5146,5592,5176.73,5609,5438.48,5608.8,5457.56,5598.55,5458,5494};
 ilsTaxiIn[] = {5458,5494,5457.56,5404.55,5438.12,5393.25,5173,5393.25,5149,5426.82};
 class SecondaryAirports
 {
  class TakistanAirstrip1
  {
   ilsPosition[] = {4977,4865.46};
   ilsDirection[] = {0,0.080000,-1};
   ilsTaxiOff[] = {4974,5593,5006,5607,5438,5609,5458,5599,5458,5494};
   ilsTaxiIn[] = {5458,5494,5458,5393,5436,5391,5006,5391,4977.69,5420.1};
   drawTaxiway = 1;
  };
  class TakistanAirstrip2
  {
   ilsPosition[] = {15883.7,15523.7};
   ilsDirection[] = {-1,0.080000,0};
   ilsTaxiOff[] = {16406.2,15524,16425.5,15499,16424.8,15391.2,16421.6,15373.6,16041,15372.5};
   ilsTaxiIn[] = {16041,15372.5,15925,15372.5,15817.8,15372.5,15807.5,15386.7,15807.5,15508.2,15865,15524.8};
   drawTaxiway = 1;
  };
 };
 class ReplaceObjects{};
 class Sounds
 {
  sounds[] = {};
 };
 class Animation
 {
  vehicles[] = {};
 };
 class Lighting: DefaultLighting
 {
  groundReflection[] = {0.03,0.025,0.015};
 };
 class DayLightingBrightAlmost: DayLightingBrightAlmost
 {
  deepNight[] = {-15,
   { 0.037,0.063,0.091 },
   { 0.001,0.001,0.0012 },
   { 0.067,0.075,0.091 },
   { 0.003,0.004,0.006 },
   { 0.0001,0.0001,0.0002 },
   { 0.0001,0.0001,0.0002 },0};
  fullNight[] = {-5,
   { 0.182,0.213,0.25 },
   { 0.05,0.111,0.221 },
   { 0.04,0.034,0.004 },
   { 0.039,0.049,0.072 },
   { 0.082,0.128,0.185 },
   { 0.283,0.35,0.431 },0};
  sunMoon[] = {-3.75,
   { 0.377,0.441,0.518 },
   { 0.103,0.227,0.453 },
   { 0.04,0.034,0.004 },
   { 0.039,0.049,0.072 },
   { 0.174,0.274,0.395 },
   { 0.582,0.72,0.887 },0.5};
  earlySun[] = {-2.5,
   { 0.675,0.69,0.784 },
   { 0.22,0.322,0.471 },
   { 0.04,0.034,0.004 },
   { 0.039,0.049,0.072 },
   { 0.424,0.549,0.745 },
   { 0.698,0.753,0.894 },1};
  sunrise[] = {0,
   { 0.675,0.69,0.784 },
   { 0.478,0.51,0.659 },
   { 0.2,0.19,0.07 },
   { 0.124,0.161,0.236 },
   { 
    { 0.847,0.855,0.965 },0.2 },
   { 
    { 0.933,0.949,0.996 },2 },1};
  earlyMorning[] = {3,
   { 
    { 0.844,0.61,0.469 },0.8 },
   { 0.424,0.557,0.651 },
   { 
    { 1,0.45,0.2 },1 },
   { 0.12,0.26,0.38 },
   { 
    { 0.428,0.579,0.743 },2 },
   { 
    { 0.844,0.61,0.469 },2.7 },1};
  midMorning[] = {8,
   { 
    { 0.822,0.75,0.646 },3.8 },
   { 
    { 0.383,0.58,0.858 },1.3 },
   { 
    { 1.3,0.9,0.61 },3.8 },
   { 
    { 0.12,0.18,0.28 },0.5 },
   { 
    { 0.322,0.478,0.675 },3.5 },
   { 
    { 1.0,0.929,0.815 },4.7 },1};
  morning[] = {16,
   { 
    { 1,0.95,0.91 },11.2 },
   { 
    { 0.12,0.18,0.28 },7.5 },
   { 
    { 1,0.95,0.91 },11.2 },
   { 
    { 0.12,0.16,0.18 },7.5 },
   { 
    { 0.14,0.18,0.24 },10.5 },
   { 
    { 0.5,0.6,0.9 },11.7 },1};
  noon[] = {45,
   { 
    { 0.92,0.95,1.0 },13.3 },
   { 
    { 0.26,0.35,0.5 },10.0 },
   { 
    { 1,0.95,0.91 },11.2 },
   { 
    { 0.12,0.16,0.18 },7.5 },
   { 
    { 0.66,0.84,1.0 },12.0 },
   { 
    { 0.5,0.6,0.9 },13.9 },1};
 };
 class DayLightingRainy: DayLightingRainy
 {
  deepNight[] = {-15,
   { 0.0034,0.0034,0.004 },
   { 0.003,0.003,0.003 },
   { 0.0034,0.0034,0.004 },
   { 0.003,0.003,0.003 },
   { 0.001,0.001,0.002 },
   { 0.001,0.001,0.002 },0};
  fullNight[] = {-5,
   { 0.023,0.023,0.023 },
   { 0.02,0.02,0.02 },
   { 0.023,0.023,0.023 },
   { 0.02,0.02,0.02 },
   { 0.01,0.01,0.02 },
   { 0.08,0.06,0.06 },0};
  sunMoon[] = {-3.75,
   { 0.04,0.04,0.05 },
   { 0.04,0.04,0.05 },
   { 0.04,0.04,0.05 },
   { 0.04,0.04,0.05 },
   { 0.04,0.035,0.04 },
   { 0.11,0.08,0.09 },0.5};
  earlySun[] = {-2.5,
   { 0.0689,0.0689,0.0804 },
   { 0.06,0.06,0.07 },
   { 0.0689,0.0689,0.0804 },
   { 0.06,0.06,0.07 },
   { 0.08,0.07,0.08 },
   { 0.14,0.1,0.12 },0.5};
  earlyMorning[] = {0,
   { 
    { 1,1,1 },"(-4)+3.95" },
   { 
    { 1,1,1 },"(-4)+3.0" },
   { 
    { 1,1,1 },"(-4)+3.95" },
   { 
    { 1,1,1 },"(-4)+3.0" },
   { 
    { 1,1,1 },"(-4)+4" },
   { 
    { 1,1,1 },"(-4)+5.5" },1};
  morning[] = {5,
   { 
    { 1,1,1 },"(-4)+5.7" },
   { 
    { 1,1,1 },"(-4)+4.5" },
   { 
    { 1,1,1 },"(-4)+5.7" },
   { 
    { 1,1,1 },"(-4)+4.5" },
   { 
    { 1,1,1 },"(-4)+7" },
   { 
    { 1,1,1 },"(-4)+8" },1};
  lateMorning[] = {25,
   { 
    { 1,1,1 },"(-4)+10.45" },
   { 
    { 1,1,1 },"(-4)+9.75" },
   { 
    { 1,1,1 },"(-4)+10.45" },
   { 
    { 1,1,1 },"(-4)+9.75" },
   { 
    { 1,1,1 },"(-4)+12" },
   { 
    { 1,1,1 },"(-4)+12.75" },1};
  noon[] = {40,
   { 
    { 0.22,0.28,0.28 },5.5 },
   { 
    { 0.22,0.28,0.28 },4.0 },
   { 
    { 0.22,0.28,0.28 },5.1 },
   { 
    { 0.22,0.28,0.28 },4.0 },
   { 
    { 0.22,0.28,0.28 },8.0 },
   { 
    { 0.59,0.59,0.45 },9.5 },1};
 };
 class Weather: Weather
 {
  class Lighting: Lighting
  {
   class BrightAlmost: DayLightingBrightAlmost
   {
    overcast = 0.25;
   };
   class Rainy: DayLightingRainy
   {
    overcast = 1.0;
   };
  };
  class Overcast: Overcast
  {
   class Weather1: Weather1
   {
    sky = "ca\Data\data\sky_clear_sky.paa";
    skyR = "ca\Data\data\sky_clear_lco.paa";
    horizon = "ca\Data\data\sky_clear_horizont_sky.paa";
   };
   class Weather7: Weather1
   {
    sky = "ca\Data\data\sky_veryclear_sky.paa";
    skyR = "ca\Data\data\sky_clear_lco.paa";
    horizon = "ca\Data\data\sky_veryclear_horizont_sky.paa";
   };
   class Weather2: Weather2
   {
    sky = "ca\Data\data\sky_almostclear_sky.paa";
    skyR = "ca\Data\data\sky_almostclear_lco.paa";
    horizon = "ca\Data\data\sky_almostclear_horizont_sky.paa";
   };
   class Weather3: Weather3
   {
    sky = "ca\Data\data\sky_semicloudy_sky.paa";
    skyR = "ca\Data\data\sky_semicloudy_lco.paa";
    horizon = "ca\Data\data\sky_semicloudy_horizont_sky.paa";
   };
   class Weather4: Weather4
   {
    sky = "ca\Data\data\sky_cloudy_sky.paa";
    skyR = "ca\Data\data\sky_cloudy_lco.paa";
    horizon = "ca\Data\data\sky_cloudy_horizont_sky.paa";
   };
   class Weather5: Weather5
   {
    sky = "ca\Data\data\sky_mostlycloudy_sky.paa";
    skyR = "ca\Data\data\sky_mostlycloudy_lco.paa";
    horizon = "ca\Data\data\sky_mostlycloudy_horizont_sky.paa";
   };
   class Weather6: Weather6
   {
    sky = "ca\Data\data\sky_overcast_sky.paa";
    skyR = "ca\Data\data\sky_overcast_lco.paa";
    horizon = "ca\Data\data\sky_overcast_horizont_sky.paa";
   };
  };
 };
 clutterGrid = 1.5;
 clutterDist = 125;
 noDetailDist = 40;
 fullDetailDist = 15;
 midDetailTexture = "Fayshkhabur\data\tk_middle_mco.paa";
 minTreesInForestSquare = 4;
 minRocksInRockSquare = 3;
 class clutter
 {
  class GrassTall: DefaultClutter
  {
   model = "ca\plants2\clutter\c_GrassTall.p3d";
   affectedByWind = 0.4;
   swLighting = 1;
   scaleMin = 0.7;
   scaleMax = 1.0;
  };
  class AutumnFlowers: DefaultClutter
  {
   model = "ca\plants2\clutter\c_autumn_flowers.p3d";
   affectedByWind = 0.4;
   swLighting = 1;
   scaleMin = 0.7;
   scaleMax = 1.0;
  };
  class GrassBunch: DefaultClutter
  {
   model = "ca\plants2\clutter\c_GrassBunch.p3d";
   affectedByWind = 0.35;
   swLighting = 1;
   scaleMin = 0.6;
   scaleMax = 1.0;
  };
  class GrassCrooked: DefaultClutter
  {
   model = "ca\plants2\clutter\c_GrassCrooked.p3d";
   affectedByWind = 0.3;
   swLighting = 1;
   scaleMin = 0.7;
   scaleMax = 1.4;
  };
  class WeedDead: DefaultClutter
  {
   model = "ca\plants2\clutter\c_WeedDead.p3d";
   affectedByWind = 0.3;
   swLighting = 1;
   scaleMin = 0.75;
   scaleMax = 1.1;
  };
  class WeedDeadSmall: DefaultClutter
  {
   model = "ca\plants2\clutter\c_WeedDead2.p3d";
   affectedByWind = 0.3;
   swLighting = 1;
   scaleMin = 0.75;
   scaleMax = 0.9;
  };
  class TK_GrassGreen: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_GrassGreen_EP1.p3d";
   affectedByWind = 0.7;
   swLighting = 1;
   scaleMin = 0.85;
   scaleMax = 1.1;
  };
  class TK_GrassGreenLong: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_GrassGreenLong_EP1.p3d";
   affectedByWind = 0.8;
   swLighting = 1;
   scaleMin = 0.75;
   scaleMax = 1.0;
  };
  class TK_BrushHard: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_Brush_Hard_EP1.p3d";
   affectedByWind = 0.4;
   swLighting = 1;
   scaleMin = 0.9;
   scaleMax = 1.3;
  };
  class TK_BrushSoft: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_Brush_Soft_EP1.p3d";
   affectedByWind = 0.8;
   swLighting = 1;
   scaleMin = 0.75;
   scaleMax = 1.4;
  };
  class TK_PlantsViolet: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_Plants_Violet_EP1.p3d";
   affectedByWind = 0.7;
   swLighting = 1;
   scaleMin = 1.0;
   scaleMax = 1.25;
  };
  class TK_PlantsWhite: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_Plants_White_EP1.p3d";
   affectedByWind = 0.7;
   swLighting = 1;
   scaleMin = 0.85;
   scaleMax = 1.1;
  };
  class TK_Weed1: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_Weed_1_EP1.p3d";
   affectedByWind = 0.65;
   swLighting = 1;
   scaleMin = 0.65;
   scaleMax = 1.0;
  };
  class TK_WeedThistle: DefaultClutter
  {
   model = "ca\plants_E\Clutter\c_Weed_Thistle_EP1.p3d";
   affectedByWind = 0.7;
   swLighting = 1;
   scaleMin = 1.0;
   scaleMax = 1.25;
  };
  class GrassGreenGroupHard: DefaultClutter
  {
   model = "ca\plants_pmc\Clutter\c_GrassGreen_GroupHard_pmc.p3d";
   affectedByWind = 1.0;
   swLighting = 1;
   scaleMin = 0.6;
   scaleMax = 0.9;
  };
  class GrassDesertGroupSoft: DefaultClutter
  {
   model = "ca\plants_pmc\Clutter\c_GrassDesert_GroupSoft_pmc.p3d";
   affectedByWind = 1.0;
   swLighting = 1;
   scaleMin = 0.6;
   scaleMax = 1.2;
  };
  class GrassGreenGroupSoft: DefaultClutter
  {
   model = "ca\plants_pmc\Clutter\c_GrassGreen_GroupSoft_pmc.p3d";
   affectedByWind = 1.0;
   swLighting = 1;
   scaleMin = 0.6;
   scaleMax = 1.2;
  };
  class Carduus: DefaultClutter
  {
   model = "ca\plants_pmc\Clutter\c_carduus_pmc.p3d";
   affectedByWind = 0.4;
   swLighting = 1;
   scaleMin = 0.6;
   scaleMax = 1.2;
  };
  class BranchBig: DefaultClutter
  {
   model = "ca\plants_pmc\Clutter\c_branchBig_pmc.p3d";
   affectedByWind = 0.3;
   swLighting = 1;
   scaleMin = 0.2;
   scaleMax = 1.0;
  };
  class DeadGrass_Cover_F
  {
   model = "ca\plants_pmc\Clutter\c_GrassCrooked_pmc.p3d";
   affectedByWind = 0.6;
   swLighting = 1;
   scaleMin = 0.8;
   scaleMax = 1.1;
  };
  class DeadGrass_GrpBig_F
  {
   model = "ca\plants_pmc\Clutter\c_GrassTall_pmc.p3d";
   affectedByWind = 0.8;
   swLighting = 1;
   scaleMin = 0.75;
   scaleMax = 1.15;
  };
  class DeadGrass_GrpSmall_F
  {
   model = "ca\plants_pmc\Clutter\c_grassDryLongBunch_pmc.p3d";
   affectedByWind = 0.8;
   swLighting = 1;
   scaleMin = 0.9;
   scaleMax = 1.2;
  };
 };
 class Subdivision
 {
  class Fractal
  {
   rougness = 5;
   maxRoad = 0.02;
   maxTrack = 0.5;
   maxSlopeFactor = 0.05;
  };
  class WhiteNoise
  {
   rougness = 2;
   maxRoad = 0.01;
   maxTrack = 0.05;
   maxSlopeFactor = 0.0025;
  };
  minY = -0.0;
  minSlope = 0.02;
 };
 class Ambient
 {
  class Mammals
  {
   radius = 200;
   cost = "(1 + forest + trees) * (0.5 + (0.5 * night)) * (1 - sea) * (1 - houses)";
   class Species
   {
    class Rabbit
    {
     probability = 0.2;
     cost = 1;
    };
   };
  };
  class BigBirds
  {
   radius = 300;
   cost = "((1 + forest + trees) - ((2 * rain)) - houses) * (1 - night) * (1 - sea)";
   class Species
   {
    class Hawk
    {
     probability = 0.2;
     cost = 1;
    };
   };
  };
  class Birds
  {
   radius = 170;
   cost = "(1 - night) * ((1 + (3 * sea)) - (2 * rain))";
   class Species
   {
    class Crow
    {
     probability = 0.2;
     cost = 1;
    };
   };
  };
  class BigInsects
  {
   radius = 20;
   cost = "(5 - (2 * houses)) * (1 - night) * (1 - rain) * (1 - sea) * (1 - windy)";
   class Species
   {
    class DragonFly
    {
     probability = "0.6 - (meadow * 0.5) + (forest * 0.4)";
     cost = 1;
    };
    class ButterFly
    {
     probability = "0.4 + (meadow * 0.5) - (forest * 0.4)";
     cost = 1;
    };
   };
  };
  class BigInsectsAquatic
  {
   radius = 20;
   cost = "(3 * sea) * (1 - night) * (1 - rain) * (1 - windy)";
   class Species
   {
    class DragonFly
    {
     probability = 1;
     cost = 1;
    };
   };
  };
  class SmallInsects
  {
   radius = 3;
   cost = "(12 - 8 * hills) * (1 - night) * (1 - rain) * (1 - sea) * (1 - windy)";
   class Species
   {
    class HouseFly
    {
     probability = "deadBody + (1 - deadBody) * (0.5 - forest * 0.1 - meadow * 0.2)";
     cost = 1;
    };
    class HoneyBee
    {
     probability = "(1 - deadBody) * (0.5 - forest * 0.1 + meadow * 0.2)";
     cost = 1;
    };
    class Mosquito
    {
     probability = "(1 - deadBody) * (0.2 * forest)";
     cost = 1;
    };
   };
  };
  class NightInsects
  {
   radius = 3;
   cost = "(9 - 8 * hills) * night * (1 - rain) * (1 - sea) * (1 - windy)";
   class Species
   {
    class Mosquito
    {
     probability = 1;
     cost = 1;
    };
   };
  };
  class WindClutter
  {
   radius = 10;
   cost = "((20 - 5 * rain) * (3 * (windy factor [0.2, 0.5]))) * (1 - sea)";
   class Species
   {
    class FxWindGrass1
    {
     probability = "0.4 - 0.2 * hills - 0.2 * trees";
     cost = 1;
    };
    class FxWindGrass2
    {
     probability = "0.4 - 0.2 * hills - 0.2 * trees";
     cost = 1;
    };
    class FxWindRock1
    {
     probability = "0.4 * hills";
     cost = 1;
    };
   };
  };
  class NoWindClutter
  {
   radius = 15;
   cost = 8;
   class Species
   {
    class FxWindPollen1
    {
     probability = 1;
     cost = 1;
    };
   };
  };
 };
 skyObject = "ca\ProvingGrounds_PMC\Data\obloha.p3d";
 horizontObject = "ca\ProvingGrounds_PMC\Data\horizont.p3d";
 skyTexture = "ca\ProvingGrounds_PMC\Data\sky_semicloudy_sky.paa";
 skyTextureR = "ca\ProvingGrounds_PMC\Data\sky_semicloudy_lco.paa";
};
};
class CfgWorldList
{
class Fayshkhabur{};
};
class CfgMissions
{
class Cutscenes
{
 class ShapurIntro1
 {
  directory = "ca\shapur_baf\data\scenes\intro.Shapur_BAF";
 };
 class ZargabadIntro1
 {
  directory = "ca\zargabad\data\scenes\intro1.zargabad";
 };
};
};
class CfgSurfaces
{
class Default{};
class Water{};
class TKAsfalt: Default
{
 access = 2;
 files = "tk_asfalt_*";
 rough = 0.001;
 dust = 0.1;
 soundEnviron = "concrete_ext";
 character = "EMPTY";
 soundHit = "concrete";
};
class TKPole: Default
{
 access = 2;
 files = "tk_pole_*";
 rough = 0.01;
 dust = 0.6;
 soundEnviron = "grass";
 character = "TKFieldGrassClutter";
 soundHit = "soft_ground";
};
class TKPolopoust: Default
{
 access = 2;
 files = "tk_polopoust_*";
 rough = 0.01;
 dust = 0.9;
 soundEnviron = "dirt";
 character = "TKDesertClutter";
 soundHit = "soft_ground";
};
class TKSkala: Default
{
 access = 2;
 files = "tk_skala_*";
 rough = 0.3;
 dust = 0.5;
 soundEnviron = "rock";
 character = "Empty";
 soundHit = "hard_ground";
};
class GZTrava: Default
{
 access = 2;
 files = "gz_trava_*";
 rough = 0.12;
 dust = 0.6;
 soundEnviron = "grass";
 character = "GZTravaClutter";
 soundHit = "soft_ground";
};
class CROranicedetail: Default
{
 access = 2;
 files = "cr_hlina_detail_*";
 rough = 0.12;
 dust = 0.6;
 soundEnviron = "dirt";
 character = "GZTravaGreen";
 soundHit = "soft_ground";
};
};
class CfgSurfaceCharacters
{
class GZTravaClutter
{
 probability[] = {0.3,0.4,0.1,0.2};
 names[] = {"DeadGrass_Cover_F","GrassDesertGroupSoft","DeadGrass_GrpBig_F","DeadGrass_GrpSmall_F"};
};
class GZTravaGreen
{
 probability[] = {0.4,0.29,0.01,0.3};
 names[] = {"GrassGreenGroupSoft","GrassGreenGroupHard","BranchBig","Carduus"};
};
class TKDesertClutter
{
 probability[] = {0.03,0.05,0.005,0.005};
 names[] = {"TK_BrushSoft","TK_BrushHard","TK_PlantsWhite","TK_WeedThistle"};
};
class TKFieldGrassClutter
{
 probability[] = {0.6,0.3,0.02,0.01,0.02};
 names[] = {"TK_GrassGreen","TK_GrassGreenLong","TK_PlantsWhite","TK_PlantsViolet","TK_Weed1"};
};
class CRTallGrassWClutter
{
 probability[] = {0.3,0.25,0.2,0.2,0.03,0.02};
 names[] = {"GrassTall","AutumnFlowers","GrassBunch","GrassCrooked","WeedDead","WeedDeadSmall"};
};
};
};
//};

this is a config.cpp from takistan but edited to my needs

u could use it as a source if u want

your problem with darknes is caused by the moon.

if u start a mission in evening and it gets dark while playing, it will get pitchblack.

but if u start lets say 03:00 u have full moon and its almost as bright as daylight.

got the same issue its nothing u can do abouth that in the textures i believe.

(EDIT)

oow boy i got here from google didnt notice this thread is that old.

Edited by =KCT=BlackMamba

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  

×