ArmA 3 Layers.cfg

ArmA 3 Forum, ArmA 3, ArmA 3 Config, ArmA 3 Missions, ArmA 3 3D Modeling, ArmA 3 Scripting, ArmA 3 Terrain, ArmA 3 Texturing, ArmA 3 Tools

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 tag_MyAddon\Source\ directory.

layers.cfg

class Layers
{
	// terrain types
	class tag_grass
	{
		// no need to specify actual texture file
		texture = "";
		material = "tag\tag_MyAddon\data\tag_grass.rvmat";
	};
 
	class tag_beach
	{
		texture = "";
		material = "tag\tag_MyAddon\data\tag_beach.rvmat";
	};
 
	class tag_dirt
	{
		texture = "";
		material = "tag\tag_MyAddon\data\tag_dirt.rvmat";
	};
	// etc...
};
class Legend
{
	// read from P:\ root directory
	picture = "mapLegend.png";
 
	class Colors
	{
		// RGB color values for terrain types (class layers)
		tag_grass[] = {{ 230, 230, 120 }};
		tag_beach[] = {{ 236, 230, 149 }};
		tag_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.