@Harrier:
I'm about to include a few new tags on the SVN.
1) bSeverelyRestricted - use on civilization infos for NPC civs we want to hand select what buildings and units are enabled. Everything not declared as enabled will be restricted.
2) EnabledCivilizationTypes - use on BuildingInfos and UnitInfos to declare that this type is ok for a severely restricted civilization. Syntax is:
Code:
<EnabledCivilizationTypes>
<EnabledCivilizationType>
<CivilizationType>CIVILIZATION_NPC_NEANDERTHAL</CivilizationType>
</EnabledCivilizationType>
</EnabledCivilizationTypes>
You can designate multiple civilizations with this tag but it's a little unusual in the syntax. It would be like this:
Code:
<EnabledCivilizationTypes>
<EnabledCivilizationType>
<CivilizationType>CIVILIZATION_NPC_NEANDERTHAL</CivilizationType>
</EnabledCivilizationType>
<EnabledCivilizationType>
<CivilizationType>CIVILIZATION_INSECTOID</CivilizationType>
</EnabledCivilizationType>
</EnabledCivilizationTypes>
This is the tag that unlocks the unit or building to be trainable or constructable and only unlocks them for civilizations that are bSeverelyRestricted.
So Neanderthals obviously need to be set to bSeverelyRestricted and then we need to go through all unit and building infos and simply copy in
Code:
<EnabledCivilizationTypes>
<EnabledCivilizationType>
<CivilizationType>CIVILIZATION_NPC_NEANDERTHAL</CivilizationType>
</EnabledCivilizationType>
</EnabledCivilizationTypes>
on buildings and units you feel they should be able to have.
For buildings, many would be fine I think but we should keep them somewhat basic impo.
One way to quickly go through 'all buildings' and 'all units' would be to use wingrep to find, for example, all files that utilize the term '<Civ4UnitInfos' in the assets folder. Then open them all in Notepad++. Then do a search for <Type> in all files and you'll get a complete unit list. Work your way up from the bottom through all files. You shouldn't need to go to each type entry since the type line that comes up in the search results will let you know what that item is so you simply have a list to read through and hand select from.
I'm thinking for units, some basic siege, canines, and the standard neanderthal units and possibly worker units would be sufficient. You may find more you think could/should be included. I'll let you be the judge.
It may not be as daunting as it seems and I promise not as much as it WOULD've been without these new tags!
They'll be on the SVN here in a few minutes.