====== ArmA 1 Config Formatting ======
[[https://www.pmctactical.org/forum/viewforum.php?f=42|ArmA 1 Forum]], [[:arma|ArmA 1 Home]], [[arma:config|ArmA 1 Config]], [[arma:tools|ArmA 1 Tools]], [[arma:file_formats|ArmA 1 File Formats]], [[arma:missions|ArmA 1 Missions]], [[arma:modeling|ArmA 1 3D Modeling]], [[arma:terrain|ArmA 1 Terrain]], [[arma:texturing|ArmA 1 Texturing]], [[arma:scripting|ArmA 1 Scripting]]
**ArmA 1** aka Armed Assault (ArmA)
**Config Formatting**
Configs can be quite intimidating to newbies and hard to read even for oldschool guys if they are written poorly. There is more addons written with poor format than with good ones, some are so hideous that it makes you just want to cry.
Examples of right and wrong config formatting.
Wrong:
magazines[] = {"VTE_FlareWhite_Rifle","VTE_FlareGreen_Rifle","VTE_FlareRed_Rifle","VTE_FlareYellow_Rifle"};
Right:
magazines[] =
{
"VTE_FlareWhite_Rifle",
"VTE_FlareGreen_Rifle",
"VTE_FlareRed_Rifle",
"VTE_FlareYellow_Rifle"
};
As you can see we use TAB intend after each { character and after classes. This makes very easy to read configs.
====== Notes ======
For complete newbies; in reality it doesn't matter which way its formatted for ArmA, however we are humans, not ArmA engine... when we edit the config files it matters to US if it looks nice or looks like computer cipher. So if you are a newbie, learn it from the start to write beautiful config format so its easy to read for everyone and especially for you.
Can you imagine that you actually learn faster to write configs when you write them with proper intend. Weird huh.