so the different tanks can in theory be built by all civs ? They are different units (i.e. different stats) and not just civ specific art of e.g. a light / medium / heavy tank ?
Interesting
PS I hope you get around to uploading your tanks soon, there seem to be quite a few (I checked the WWII mod units for ones I thought were new)
For everything except ships and artillery (each civ has unique ship classes like in standard BTS if they have any, and artillery just uses civ-specific art), each unit is coded very specifically.
Here's how units work, I don't think I've run through this all the way in a while.
1. Each unit (plane, tank, or armored car) is its own complete unit class with specific attributes
2. Each unit is differentiated to different civs through the CivilizationInfos.XML file. You can either build the unit, or you can't. This is to keep a third party from trading your designs to your enemy and thus from building your equipment. Think of it as though Sweden was taking British/French designs and passing them along to Germany - bad juju!
3. The unit class is restricted further by resources (here called designs). Designs are provided by a civs defense industry building - only certain civs can build these, and they only provide so many designs that can be traded
4. The art for the unit is civ-specific through the CIV4UnitArtStyleTypeInfos.XML file. This means that once the Ottoman Empire is traded some German designs, they can build German fighters, though they have Ottoman markings on them.
I've divided civs up as follows:
1st Class - Has unique units and attributes, has a defense industry and can trade designs
-Britain
-Germany
-France
-Russia
-Austria-Hungary
-Italy
2nd Class - Has full ability to construct all units, may have unique units, but lacks designs. Can only use designs from allies (Central Powers or Triple Entente)
-Ottoman Empire
-Belgium
3rd Class - Limited construction rights for units, and lacks designs. Heavily reliant on 1st and 2nd class civs for survival. Can use designs from either Central Powers or Triple Entente, but depended on civ and unit type.
-Serbia, Bulgaria, Romania, Greece, etc
Hope this helps clear up the unit question a bit. It's kinda complicated and a bit confusing, but the AI seems to understand it, which is good. I do expect some kinks to need to be fixed during testing, but nothing too drastic.
As for the WW2 tanks, I've made something special. Over a period of a couple months I researched a tank that would be appropriate for every civ that you can play in standard BTS. I've completely re-made old models and started from scratch from quite a few. The tank pack has a couple stragglers that I need to finish up, otherwise its ready for release. Overall it includes 20 different tank models, and upwards of 40 unique skins (it has options for more than one type of tank per civ).
My ultimate goal was to make it so that mods didn't have to think about which tank to use for their civ - there are so many unit makers out there of various skill level that a lot of mods I see have some excellent artwork along side some not-so-excellent artwork. This really got on my nerves, so I decided to fix it. Ultimately I plan to do a unit pack for every type of vehicle in BTS.
-Smitty