User Tools

Site Tools


arma3:terrain:layers.cfg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arma3:terrain:layers.cfg [2017-10-08 13:21]
snakeman created initial page.
arma3:terrain:layers.cfg [2017-10-08 13:33] (current)
snakeman tag and };
Line 3: Line 3:
 The layers.cfg file is where we configure our terrain types (concrete, grass, sand etc). The [[arma3:​terrain:​satellite-mask-image|satellite mask image]] file RGB color values reflect where our terrain types are located on the terrain. The layers.cfg file is where we configure our terrain types (concrete, grass, sand etc). The [[arma3:​terrain:​satellite-mask-image|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 is placed in tag_MyAddon\Source\ directory.
  
 **layers.cfg** **layers.cfg**
Line 10: Line 10:
 { {
  // terrain types  // terrain types
- class ​pmc_grass+ class ​tag_grass
  {  {
  // no need to specify actual texture file  // no need to specify actual texture file
  texture = "";​  texture = "";​
- material = "pmc\pmc_terrain_data\data\pmc_grass.rvmat";​+ material = "tag\tag_MyAddon\data\tag_grass.rvmat";​
  };  };
  
- class ​pmc_beach+ class ​tag_beach
  {  {
  texture = "";​  texture = "";​
- material = "pmc\pmc_terrain_data\data\pmc_beach.rvmat";​+ material = "tag\tag_MyAddon\data\tag_beach.rvmat";​
  };  };
  
- class ​pmc_dirt+ class ​tag_dirt
  {  {
  texture = "";​  texture = "";​
- material = "pmc\pmc_terrain_data\data\pmc_dirt.rvmat";​+ material = "tag\tag_MyAddon\data\tag_dirt.rvmat";​
  };  };
-// etc...+ // etc... 
 +};
 class Legend class Legend
 { {
Line 37: Line 38:
  {  {
  // RGB color values for terrain types (class layers)  // RGB color values for terrain types (class layers)
- pmc_grass[] = {{ 230, 230, 120 }}; + tag_grass[] = {{ 230, 230, 120 }}; 
- pmc_beach[] = {{ 236, 230, 149 }}; + tag_beach[] = {{ 236, 230, 149 }}; 
- pmc_dirt[] = {{ 226, 207, 129 }}; + tag_dirt[] = {{ 226, 207, 129 }}; 
-// etc...+ // etc... 
 + }; 
 +};
 </​code>​ </​code>​
  
 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. 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