Valkrionn
The Hamster King
What is this Rebuild, and why are we doing it?
Currently we're going through all of RifE's XML/Python, and searching for things that can be done better. Whether it's to fix bugs, reduce CPU usage, or make it more user-friendly and understandable.
Part of this is reordering the xml files. It will make it easier for modmodders, easier to find things in Worldbuilder, and easier for us as well.
When this was just Malakim+, I got in the habit of making additions to the bottom of files... Was easier to update. Now though, those additions can be up to a third of the file. Not a good system any more. 
For example (and the only one about done) PromotionInfos.xml is being reordered so it makes sense. Several subgroups are being made (Or updated, for most of them), and within them promotions are alphabetized. Race, Equipment, Triforce (Small group by itself, wanted it easy to see in the WorldBuilder), Gear (Master Building stuff), Effects (Promos you can't gain normally that don't fall in a different category) and finally, Promotions, everything that doesn't fit elsewhere. I'm changing a few things as I go through, getting rid of stuff we don't need, so on.
Now, the part where I ask for help:
It would be a HUGE help if some of you could reorder XML files like this. That would free me up to just looking for what could be better, rather than spend ages organizing.
For example: Units. Sure, you could have them in just alphabetical order... But what I'd prefer is a section for Equipment units up top (Treasure Chests come first, as they do already), followed by Heroes, then Great People, then standard units. Sorted by UnitCLASS, so the Warrior is followed by all UU's which replace him. That setup is already in place, we just need to reorder everything that has been added.
Or Civics would be grouped by civicoption, and Improvements could be grouped into UF, Unique (Requires a certain civ), and regular.
How do you do this? To use the UnitInfos file as an example:
The EASIEST way I've found is to download NotePad++, open the file, and press [Alt + 3]. This should collapse each unit entry without collapsing any subentries, which would cause cut/paste issues otherwise.
The vast majority of entries will have a comment on the line they are now collapsed to, letting you see what they are. Looks like this: <!-- Healer -->. Any entries that don't have a comment should have one added, just copy/paste one and change the name. Have to expand the entry to see what it is, of course.
Once that is done, just sort them alphabetically. If the file has groupings already, stick to them (UnitInfos does, as will most others). If you aren't sure how to group the file, or have an idea for a new grouping that would make it easier to read or to search in Worldbuilder, just post in this thread and I'll answer.
Once the file is organized, all you need to do is zip it and upload it to this thread. I'll grab it from there.
EDIT: Alright, PromotionInfos is done. Uploading it here as an example. You can see that all promotions have a name comment, so when collapsed you can see what they are. Each group is separated by about 4 lines, makes it very clear when each group ends. View attachment CIV4PromotionInfos.7z
Another way you could help:
Concept sections for new civilizations. It's something I plan to do, but it can take 2-3 hours for each civ... More if you aren't familiar with them, which I'm not with some of the FF civs.
Details about how to do this were posted a while back in the Download thread, but I'll repost:
This is very true. If someone wanted to make new concept sections, I'd be more than willing to use them. Would go over it to make sure everything is there, but that's still faster than it would be otherwise as I can do that off the top of my head, really.
All that's needed is an entry in Assets/XML/BasicInfos/BasicInfos.xml.... Posted a dummy below, it's four lines.
After that, it's just a text entry. A rather involved text entry to get the formatting, but text nonetheless. An example of my formatting is in XML/Text/MalakimPlus, under TXT_KEY_CONCEPT_MALAKIM_PLUS_PEDIA. Sticking to that basic formatting would be appreciated.
Included a list of basic formatting commands (These are all that I used in the malakim+ entry). If there are paired tags, the text effected must be placed between them. If the tag is NOT paired, then it either affects everything after it or is a one-time effect.
Currently we're going through all of RifE's XML/Python, and searching for things that can be done better. Whether it's to fix bugs, reduce CPU usage, or make it more user-friendly and understandable.
Part of this is reordering the xml files. It will make it easier for modmodders, easier to find things in Worldbuilder, and easier for us as well.


For example (and the only one about done) PromotionInfos.xml is being reordered so it makes sense. Several subgroups are being made (Or updated, for most of them), and within them promotions are alphabetized. Race, Equipment, Triforce (Small group by itself, wanted it easy to see in the WorldBuilder), Gear (Master Building stuff), Effects (Promos you can't gain normally that don't fall in a different category) and finally, Promotions, everything that doesn't fit elsewhere. I'm changing a few things as I go through, getting rid of stuff we don't need, so on.
Now, the part where I ask for help:
It would be a HUGE help if some of you could reorder XML files like this. That would free me up to just looking for what could be better, rather than spend ages organizing.
For example: Units. Sure, you could have them in just alphabetical order... But what I'd prefer is a section for Equipment units up top (Treasure Chests come first, as they do already), followed by Heroes, then Great People, then standard units. Sorted by UnitCLASS, so the Warrior is followed by all UU's which replace him. That setup is already in place, we just need to reorder everything that has been added.
Or Civics would be grouped by civicoption, and Improvements could be grouped into UF, Unique (Requires a certain civ), and regular.
How do you do this? To use the UnitInfos file as an example:
The EASIEST way I've found is to download NotePad++, open the file, and press [Alt + 3]. This should collapse each unit entry without collapsing any subentries, which would cause cut/paste issues otherwise.
The vast majority of entries will have a comment on the line they are now collapsed to, letting you see what they are. Looks like this: <!-- Healer -->. Any entries that don't have a comment should have one added, just copy/paste one and change the name. Have to expand the entry to see what it is, of course.

Once that is done, just sort them alphabetically. If the file has groupings already, stick to them (UnitInfos does, as will most others). If you aren't sure how to group the file, or have an idea for a new grouping that would make it easier to read or to search in Worldbuilder, just post in this thread and I'll answer.

Once the file is organized, all you need to do is zip it and upload it to this thread. I'll grab it from there.

EDIT: Alright, PromotionInfos is done. Uploading it here as an example. You can see that all promotions have a name comment, so when collapsed you can see what they are. Each group is separated by about 4 lines, makes it very clear when each group ends. View attachment CIV4PromotionInfos.7z
Another way you could help:
Concept sections for new civilizations. It's something I plan to do, but it can take 2-3 hours for each civ... More if you aren't familiar with them, which I'm not with some of the FF civs.

Details about how to do this were posted a while back in the Download thread, but I'll repost:
This is very true. If someone wanted to make new concept sections, I'd be more than willing to use them. Would go over it to make sure everything is there, but that's still faster than it would be otherwise as I can do that off the top of my head, really.

All that's needed is an entry in Assets/XML/BasicInfos/BasicInfos.xml.... Posted a dummy below, it's four lines.
After that, it's just a text entry. A rather involved text entry to get the formatting, but text nonetheless. An example of my formatting is in XML/Text/MalakimPlus, under TXT_KEY_CONCEPT_MALAKIM_PLUS_PEDIA. Sticking to that basic formatting would be appreciated.

Included a list of basic formatting commands (These are all that I used in the malakim+ entry). If there are paired tags, the text effected must be placed between them. If the tag is NOT paired, then it either affects everything after it or is a one-time effect.
Spoiler BasicInfos Code :
Code:
<ConceptInfo>
<Type>CONCEPT_MALAKIM_PLUS</Type>
<Description>TXT_KEY_CONCEPT_MALAKIM_PLUS</Description>
<Civilopedia>TXT_KEY_CONCEPT_MALAKIM_PLUS_PEDIA</Civilopedia>
</ConceptInfo>
Spoiler Format Commands :
-
[\H1] - Creates a Header. Look at the entry in game to see what I mean, but it centers/bolds/up sizes whatever text is within the tag.
[*][PARAGRAPH:2] - Forces the next text to be a few lines down. The 2 means two lines... As far as I can tell, at least. May well be for different formats of paragraphs, but 2 works.
[*] [BOLD][\BOLD] - Self explanatory.
[*][LINK=SPELL_SCORCH][\LINK] - Makes the text within the tags a link to whatever pedia entry is specified in the tag (The SPELL_SCORCH). Just use the xml entry for whatever you want it linked to. Leader, Spell, Promotion, Building, Unit, whatever... If it shows in the pedia, it works.
[*][NEWLINE] - Goes to the next line. If you want a blank line, use two of these.
[*][ITALIC][\ITALIC] - Self explanatory.
[*][ICON_BULLET] - Makes a bullet, and indents the text.
[*]:):):):):) - Indents text.