The first few lines are always the same:
#building block data file
<BlockVersion>
1
</BlockVersion>
#Write the version number just in case...
<Version>
MAM0
</Version>
The next few lines are pretty self explanatory:
<UnitType>
Tank
</UnitType>
<Name>
LRM Carrier
</Name>
<Model>
(3055)
</Model>
<Tonnage>
60
</Tonnage>
<cruiseMP>
2
</cruiseMP>
<Armor>
14
14
14
12
</Armor>
UnitType needs to be "VTOL" for VTOLs, "Tank" for normal vehicles,
"SupportTank" for Support Vehicles, "SupportVTOL" for Support VTOLs,
"LargeSupportTank" for large support vehicle.
Name, Model, Tonnage and cruise MP are self explanatory.
The armor values are each location's armor values, in this order:
For Tanks: Front, Left, Right, Rear, and if the unit has a Turret, Turret.
For VTOLs: Front, Left, Right, Rear, Rotor
For Large Support Tanks: Front, Front Right, Front Left, Rear Right, Rear Left,
Rear, and if the unit has a Turret, Turret.
Then you have an entry for each location that mounts equipment.
<Front Equipment>
ISLRM20
ISArtemisIV
ISLRM20
ISArtemisIV
ISLRM20
ISArtemisIV
</Front Equipment>
<Body Equipment>
ISLRM20 Ammo Artemis-capable
ISLRM20 Ammo Artemis-capable
ISLRM20 Ammo Artemis-capable
ISLRM20 Ammo Artemis-capable
ISLRM20 Ammo Artemis-capable
ISLRM20 Ammo Artemis-capable
ISC3SlaveUnit
</Body Equipment>
"<Front Equipment>" for equipment mounted in the front, "<Rear Equipment>" for
rear, "<Body Equipment>" for the body, etc.
For large support tank, the side ones become "Front Left Equipment" etc.
Then comes the <type> entry:
<type>
IS Level 2
</type>
The entry depends on the unit't techlevel, the following values are what needs
to be used:
"IS Level 1"
intro box set
"IS Level 2"
IS TW
"IS Level 3"
advanced tech
"IS Level 4"
experimental tech
"IS Level 5"
IS unofficial/old tech (you probably won't need this.
"Clan Level 2"
Clan TW
"Clan Level 3"
clan advanced
"Clan Level 4"
clan experimental
"Clan Level 5"
clan unofficial/old tech (you probably won't need this.
For mixed tech, these are used:
Mixed (IS Chassis)
Mixed (IS Chassis) Experimental
Mixed (IS Chassis) Unofficial
Mixed (Clan Chassis)
Mixed (Clan Chassis) Experimental
Mixed (Clan Chassis) Unofficial
next is the entry for the year this unit originated in:
<year>
3055
</year>
then we set the internal structure, armor and engine type:
<internal_type>
0
</internal_type>
<armor_type>
1
</armor_type>
<engine_type>
1
</engine_type>
For Internal Structure, 0 means standard, 1 means endo steel, 2 means endo-steel
prototype, 3 means reinforced, 4 means composite.
The armor values are 0 standard, 1 ferro-fib, 2 reactive, 3 reflective, 4
hardened, 5 light ferro, 6 heavy ferro, 8 stealth, 9 ferro-fib prototype, 10
commercial, 14 industrial, 15 heavy industrial (some of these might not apply
for tanks, but i'm not sure which right now)
For the engine types, the following codes apply:
Fusion: 0
ICE: 1
XL: 2
XXL: 3
LIGHT: 4
COMPACT: 5
Fuel Cell: 6
Fission: 7
For support Tanks, you'll also need an entry named "barrating" to set the BAR
rating, we do not yet automatically set that based on the armor type set earlier.
So you'll need something like this:
<barrating>
5
</barrating>
on those units.
Next up is the motion type of the tank:
<motion_type>
Tracked
</motion_type>
The values are
Tracked
Wheeled
Hover
VTOL
Naval
Hydrofoil
Submarine
WiGE
For OmniTanks, you'll need to add these lines:
<omni>
1
</omni>
For tanks that have infantry bays, you'll need an entry along these lines:
<transporters>
TroopSpace:3
</transporters>
This example would give the unit a 3 ton infantry bay.