Quantcast
Channel: Civilization Fanatics' Forums
Viewing all articles
Browse latest Browse all 12856

Unit stacking "classes". Where are they defined?

$
0
0
Hi there. For people used to previous Civ games, the new combat system in Civ5 with only 1 unit per tile is a big surprise. I won't discuss again what was already discussed plenty of times. All in all, i prefer 1 UPT than "Ultimate stacks of death" from previous games, but i find it's too restrictive, especially considering how Civ5 went even further than Civ4 with different unit roles.

I would like to be able to change stacking, but to do it in an "intelligent" way. Simple mods for 2 or more units per tile already exist, what i would like to do is design a (small) number of unit "classes" that could stack. I mean, units from different classes could occupy the same tile, while 2 units of the same class couldn't. You could for instance have AA units in a "support" class, so you could have one SAM unit on the same tile as an infantry, but not two infantries.

Actually, those "classes" already exist, as we can stack civilians with military, naval units with embarked units, and if the tile permits it (a city), we can stack 1 naval, 1 military and 1 civilian. Also air units have different stacking rules from normal units. Unfortunately, i have no idea where those classes are set. Are they in an XML/SQL database? Are they hard-coded in the game's C++ code? If so are they in an accessible part (using the SDK) or in a totally non-modable part of the code?

The simple approach is changing "PLOT_UNIT_LIMIT" from GlobalDefines.xml, but this allows stacking two (or more) of any units. I searched in the XML files but didn't found something that looks like a definition of those classes. Unit Domains are only Land, Air, See and a mysterious "Immobile" (nothing to tell 2 different "land" units apart).

Viewing all articles
Browse latest Browse all 12856

Trending Articles