Limit to amount of unique units for a Civ?

Warmaker said:
Is there a limit to the amount of unique units for a Civilization?

Yes, it's done in the CIV4UnitClasssInfos.xml file. Here is an example of an entry fro that file that limits the player to only 3 of the given unit:

Code:
		<UnitClassInfo>
			<Type>UNITCLASS_KNIGHT</Type>
			<Description>TXT_KEY_UNIT_KNIGHT</Description>
			<iMaxGlobalInstances>-1</iMaxGlobalInstances>
			<iMaxTeamInstances>-1</iMaxTeamInstances>
[b]			<iMaxPlayerInstances>3</iMaxPlayerInstances>[/b]
			<DefaultUnit>UNIT_KNIGHT</DefaultUnit>
		</UnitClassInfo>
 
I think he means how many Unique Units he can add to a (costom made) civ. I believe you can add as many uu as you want. Although I am not completly sure.
 
I think you can have as many as you want. Just keep listing them here:

<Units>
<Unit>
<UnitClassType>UNITCLASS_MARINE</UnitClassType>
<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_NEW</UnitClassType>
<UnitType>UNIT_NEW</UnitType>
</Unit>
</Units>
 
Yes, my question was as to how many types of Unique Units I can add to a Civ.

I now how to add Unique Units. I just didn't know if there was a hard cap to them, since all I see in vanilla Civ4 and mods that I've checked are 2 UU's / Civ.

(In a Montgomery Burns voice)
"Eeexxxcellent..."

Thanks for the help!
 
I think you can have a unique unit for every unit type in the game, therefore each civ can have all unique units. You could add new unit types as well, and fill them with a unique unit too.

Please correct me if I am wrong.
 
wotan321 said:
I think you can have a unique unit for every unit type in the game, therefore each civ can have all unique units. You could add new unit types as well, and fill them with a unique unit too.

Please correct me if I am wrong.

Assuming there isnt some upper limit to the amount of units the game can process you are correct.
 
The main question is since there are 18 Civs, if each Civ has a UU for every single unit there is, how long does the program take in loading all of this information into the computer? Is it playable? Now that we're able to do 3d models (yay!!!), we can have a complete mod for anything/everything we want to do within Civ 4 rules. Let's see how many Star Wars/Fantasy/Star Treks Mods pop up before we go into coniptions trying them out. I myself, would love a cartoon mod....
 
wotan321 said:
I think you can have a unique unit for every unit type in the game, therefore each civ can have all unique units. You could add new unit types as well, and fill them with a unique unit too.

Please correct me if I am wrong.

I hope you are not wrong, cause that is my ultimate plan (as soon as the modders fill in the blanks I'm missing)

I did it in C3C, My civ had different units than all the other civs. Made it easy to spot my units in a crowd.
 
Back
Top Bottom