ArmA 1 Config Formatting

ArmA 1 Forum, ArmA 1 Home, ArmA 1 Config, ArmA 1 Tools, ArmA 1 File Formats, ArmA 1 Missions, ArmA 1 3D Modeling, ArmA 1 Terrain, ArmA 1 Texturing, 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.