you could actually do me a BIG favor if you are a quick learner of how to encode files (using a proprietary format). I want the editor to do a better job at recognizing tags that are meant to be info types. I am attaching the file you can work on/add too. It is relatively easy to do once you understand the syntax. Here is an explanation of how you can help me work on it:
As you edit/browse through the different tags in a file, make note of (or immediately add) any non-bold items that are meant to have an info type as their value. Here the syntax and how to add a reference in the attached file.
Sections in the file
Does not include the opening or the comments sections.
- ClassDefs: This section is for aliases that are used globally (except for text aliases). This includes prefixes, suffixes, or full-word aliases.
- Civ4GameText: This section is used for aliases specific to the TEXT class and files and includes additional markup syntax.
- ShortNames:This section is currently not being used. It reserved for when I find short names or nicknames that do not follow the traditional naming convention of simply removing the prefix or suffix. For example: the short name of a UnitInfo is Unit. When/If I or you find tags that are different then what should be expected you can enter them here using the following format: ShortName=LongName (no spaces).
- Sections for specific files: All remaining sections are used for tags that should only marked up within a specific file. When it is possible that the tag is not globally used in the same manner, it should be entered into a section named after the schema and class name for the file.
Important Syntax Rules
- NEVER use spaces around an equal sign. For example always use "Alias=ShortName" rather than "Alias = ShortName"
- Never use prefixes or suffixes in a section for a specific file. These should only be used in the ClassDefs section.
- Prefixes are words that commonly go before the short name in the tag such as the "Prereq" in "PrereqTech" and "PrereqBonus"
- Suffixes are the same as Prefixes except they follow the ShortName.
- DO NOT use the "class" key word for anything you add. This is a special key word used only in specific circumstances.
- Instead, use the format "Alias=ShortName" where the alias is the full tag name that is used and the ShortName is the short name of the info type it refers to.
- For example: FreeBonus=Bonus. "FreeBonus" is the tag that is found in the xml markup and "Bonus" is the shortened name of the Info class it refers too.
How to add a new section for a new file
Section names always have brackets around them. When you start doing aliases in a new file, put a blank line between the last section and the new one. The section name should be in the following format: [SchemaFileName::ClassName]
To make sure you have the right section name you can open the xml file in notepad. (I am using the CIV4BuildingInfos.xml file for my example).
The opening node (and only root node besides comments and the xml declaration) always looks something like this:
<Civ4BuildingInfos xmlns="x-schema:CIV4BuildingsSchema.xml">
The name of the schema is right there: "CIV4BuildingsSchema.xml". That will be the schema name. The class name is the name of the node that is repeated over and over for each info defined. For the BuildingInfos file the class name is "BuildingInfo"
So the section name in the alias file would be (and is): [CIV4BuildingsSchema.xml::BuildingInfo]