Difference between revisions of "Cameo Sorting"
(No difference)
|
Revision as of 09:47, 7 January 2005
Cameo Sorting Order
The order in which the cameos on your sidebar are organized, is determined by these factors (Credit to ImmoMan, who posted them originally):
TechLevel - increasing from top to bottom, in other words TL=0 (yes, TL=0 works just fine) at the top, TL=10 at the bottom.
Cost - If there are two or more objects of the same TL, the cheaper one gets the priority.
[BuildingTypes] order - if two buildings of the same TL cost the same, the building that has the lower number in that list will go first.
Now that is all what determines the cameo order for infantry/vehicle tabs. Structure/armory tabs have one extra factor:
AIBasePlanningSide - takes priority over all other factors. The buildings with the same AI..Side= as your country's side (Allies - 0, Soviet - 1, Yuri - 2) all go first, depending on the other beforementioned factors. The buildings with other AI..Side= go next (regardless of which side they are, only thing that matters is the side is different from yours), and then the buildings which do not have any AI..Side= set at all.
What this means is that when playing as Soviet and getting both Allied and Yuri tech, all the AIBasePlanningSide=1 structures (which is effectively all the soviet structures) go first, and then Allied and Yuri structures go mixed together. Very annoying.
I have tested what happens when I comment out the AI..Side= tags. The results:
- All buildings are sorted the same way infantry and vehicles are.
- The AI likes to build other sides' powerplants and walls.
So I restored the AI..Side= on all three powerplants and walls, and now:
- The AI works perfectly (it obeys the Prerequisite= on buildings ! )
- The cameos are all sorted just the way I want it (all powerplants first, then all three refineries, barracks, etc..)
- And I still have TechLevel=s 5-10 unused. (I think I should have at least one structure of each TL, for AI triggers.)
I think the AI behaviour should be tested further.
Does anybody know what other problems arise when you remove AIBasePlanningSide= ? Besides all sides building the object if the Prerequisite=s are met?