Mysteryman5150 wrote:a)Why no { before class CfgPatches?
Because its the start of the config, the first class.
b)why the empty space after the { between CfgPatches and the Class TAG_MySounds and then between My_Sounds and units []? Is this just for keeping the text clean looking?
Yes. Indentation. New class is always begun with new tab.
a)Why is there nothing between the [] and why and/or when would you need to place text in there?
Hmm actually never thought about it that way, not sure if MyArray [] = {}; would work, hmm. Good question.
I've always written them as MyArray[] = {};
b)Same question about the Units [] ={} - Why is there nothing between the {} and why and/or when would you need to place text in there?
Indentation.
c)I am assuming the ; is a sort of stop text command and does this get placed at the end of every line of text? I see it used after each line but also after the last two } sybols, please explain if possible?
It tells the compiler where the config line ends. All lines end with ;, or rather all config values end with ;.
For example
requiredAddons[] = { "This", "That" };
or
requiredAddons[] =
{
"This",
"That"
};
Would both end at the ;, but not necessarily "all LINES"
a)How to figure out which are required from vanilla game as there are sometimes more than one config.bin file in a PBO or more than 1 PBO for, let's say weapons or wheeled vehicles, How to know which one to use to fing the addon name?
You need to define all required addons what your addon will use. How to determine that, well take the cfgPatches name of the addon where are you inheriting from or using models/textures/data etc.
b)I have seen this line before- requiredAddons[] = {}; - That does not specify an addon but it works in the game. Does this just mean it covers all available addons, and when can it be used vs. having to specify specific addons?
Well, "its just how it works" basically.
4) Why did you use "" around the statement and what are the numbers in the end defining (maybe this is available in wiki where you find the class names and such)?
Not sure about that, but its just how I write them, I know the values work without them but I always use them.
What the numbers are at the end, well sound volume things, not 100% sure exactly.
5) I have found some mods where you may see this -something = "";- (something would be whatever text it is) what does the "" do in this situation (may be difficult to answer without knowing the mod)?
Hehe sort of, I mean I guess it just empties the value, not sure exactly.
6) What does- /*extern*/ -mean and why would this line of text be used?
I never use that comment, its from cpbo or perhaps from BIS original config comments etc.
7) I am guessing the // is for the program to not read the statement behind it while allowing the author to explain his intentions, am I correct?
Its a comment.
/*
This
is
a
comment.
*/
// and this is a comment.
Once again, I thank you and I appologize for this being so long. However, I feel like a complete idiot
Yep no problems. All I could say after the initial questions is that "don't worry too much", get the config/addon working ingame first, then try to tweak it etc. You don't have to understand every little thing the first day into config editing, copy paste from original BIS or other user configs and try to get your addon working in game first.