User Tools

Site Tools


arma:config_formatting

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.

arma/config_formatting.txt · Last modified: 2024/08/01 15:51 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.