PMC websites shut down September 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond september 13th 2025 when yearly web hosting fees are due.

User Tools

Site Tools


arma3:terrain:config.cpp

Differences

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

Link to this comparison view

Next revision
Previous revision
arma3:terrain:config.cpp [2017/02/03 05:47] – created config.cpp initial page. snakemanarma3:terrain:config.cpp [2024/08/02 17:20] (current) – links added. snakeman
Line 1: Line 1:
 ====== ArmA 3 Terrain Config ====== ====== ArmA 3 Terrain Config ======
 +
 +[[https://www.pmctactical.org/forum/viewforum.php?f=68|ArmA 3 Forum]], [[:arma3|ArmA 3]], [[arma3:config|ArmA 3 Config]], [[arma3:missions|ArmA 3 Missions]], [[arma3:modeling|ArmA 3 3D Modeling]], [[arma3:scripting|ArmA 3 Scripting]], [[arma3:terrain|ArmA 3 Terrain]], [[arma3:texturing|ArmA 3 Texturing]], [[arma3:tools|ArmA 3 Tools]]
  
 **Everything you need to know about ArmA 3 Terrain WRP Config.cpp file** **Everything you need to know about ArmA 3 Terrain WRP Config.cpp file**
Line 7: Line 9:
  
 **Fully working config.cpp example** ready to be copy-pasted and used in your terrain, only thing you need to do is replace "tut_tutorial_terrain" class and directory path names obviously. **Fully working config.cpp example** ready to be copy-pasted and used in your terrain, only thing you need to do is replace "tut_tutorial_terrain" class and directory path names obviously.
 +
 +Important note: if you use pboProject later than v1.73 you must start the GUI, go to Setup and untick "-W warnings are errors" tick box. If you do not, this example config.cpp gives error and pboproject fails to pack a pbo. The error you would get is "warning:cfgSurfaces not defined" and "<namespace>\<addon>\config.cpp: there are clutter errors in the config".
  
 <code cpp> <code cpp>
Line 13: Line 17:
  class tut_tutorial_terrain  class tut_tutorial_terrain
  {  {
- units[] = + units[] = {};
- { +
- "tut_tutorial_terrain" +
- };+
  weapons[] = {};  weapons[] = {};
  requiredVersion = 1;  requiredVersion = 1;
Line 72: Line 73:
  vehicles[] = {};  vehicles[] = {};
  };  };
 +
 + minTreesInForestSquare = 2;
 + minRocksInRockSquare = 2;
  
  class Subdivision{};  class Subdivision{};
Line 82: Line 86:
 ====== Tips ====== ====== Tips ======
  
-Veteran tip: don't take config.cpp from altis, stratis, tanoa or user made terrains, dont take it from outdated random tutorials. Take it only from PMC Editing Wiki! //We'll take it from here...// huh? :)+Veteran tip: don't take config.cpp from altis, stratis, tanoa or user made terrains, dont take it from outdated random tutorials. Take it only from PMC Editing Wiki! //We'll take it from here...// huh? :-)
  
  
Line 101: Line 105:
 </code> </code>
  
-Units is list of unit classes that this addon brings to the game. This is the name of your terrain.+Units is list of unit classes that this addon brings to the game, **it is not used for terrains**.
 <code cpp> <code cpp>
-units[] = +units[] = { "name_of_my_character" };
-{ +
- "tut_tutorial_terrain" +
-};+
 </code> </code>
  
Line 165: Line 166:
 ===== Description ===== ===== Description =====
  
-Name of your terrain to be shown in mission editor etc.+Name of your terrain to be shown in mission editor etc. Mission editor terrain name length is 52 characters until it gets cut-off.
 <code cpp> <code cpp>
 description = "TUT Tutorial Terrain"; description = "TUT Tutorial Terrain";
Line 280: Line 281:
  };  };
 </code> </code>
 +
 +See also [[arma3:terrain:config-class-names-freeze|ArmA 3: Terrain config.cpp Class Names Freeze]].
 +
  
 ===== Clutter ===== ===== Clutter =====
Line 319: Line 323:
 ===== mapZone ===== ===== mapZone =====
  
-No idea, must be the UTM northing/easting zone stuff? +mapZone is obsolete, not used in ArmA 3.
-<code cpp> +
-mapZone = 35; +
-</code>+
  
 ===== mapArea[] ===== ===== mapArea[] =====
  
-Again no idea, must be UTM latitude / longitude coordinates on edges of terrain? +mapArea[] is obsoletenot used in ArmA 3.
-<code cpp> +
-mapArea[] = {25.011957,39.718452,25.481527,40.094578}; +
-</code>+
  
 ===== Lat / Lon ===== ===== Lat / Lon =====
Line 453: Line 451:
 minRocksInRockSquare = 3; minRocksInRockSquare = 3;
 </code> </code>
 +
arma3/terrain/config.cpp.1486100831.txt.gz · Last modified: 2017/02/03 05:47 by snakeman