User Tools

Site Tools


arma3:terrain:layers.cfg

This is an old revision of the document!


ArmA 3 Layers.cfg

The layers.cfg file is where we configure our terrain types (concrete, grass, sand etc). The satellite mask image file RGB color values reflect where our terrain types are located on the terrain.

Layers.cfg is placed in MyAddon\Source\ directory.

layers.cfg

class Layers
{
	// terrain types
	class pmc_grass
	{
		// no need to specify actual texture file
		texture = "";
		material = "pmc\pmc_terrain_data\data\pmc_grass.rvmat";
	};
 
	class pmc_beach
	{
		texture = "";
		material = "pmc\pmc_terrain_data\data\pmc_beach.rvmat";
	};
 
	class pmc_dirt
	{
		texture = "";
		material = "pmc\pmc_terrain_data\data\pmc_dirt.rvmat";
	};
// etc...
class Legend
{
	// read from P:\ root directory
	picture = "mapLegend.png";
 
	class Colors
	{
		// RGB color values for terrain types (class layers)
		pmc_grass[] = {{ 230, 230, 120 }};
		pmc_beach[] = {{ 236, 230, 149 }};
		pmc_dirt[] = {{ 226, 207, 129 }};
// etc...

mapLegend.png image can be located in P:\ root directory and then if you have two or more terrains you can leave out the directory from class legend and all your terrains will read this image from the same location, no need to duplicate same image with every terrain source dir.

arma3/terrain/layers.cfg.1507468911.txt.gz · Last modified: 2017-10-08 13:21 by snakeman