This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
arma3:terrain:config.cpp [2018-01-10 06:15] snakeman added coding define true/false. |
arma3:terrain:config.cpp [2018-06-10 15:47] snakeman added note about clutter config.pp |
||
---|---|---|---|
Line 7: | Line 7: | ||
**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 75: | Line 77: | ||
vehicles[] = {}; | vehicles[] = {}; | ||
}; | }; | ||
+ | |||
+ | minTreesInForestSquare = 2; | ||
+ | minRocksInRockSquare = 2; | ||
class Subdivision{}; | class Subdivision{}; | ||
Line 85: | Line 90: | ||
====== 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? :-) |