[unit_name] determines the technical name of the unit, not its actual name.
So, in order to create a unit, you need two files at least: [unit_name].atom and army_[unit_name].atom. The first one stores all stats, abilities and battle model of the unit, while the 2nd stores the adventure map data of it.
In order to rename a unit, you have to extract eng_units.lng from either sessions\Addon\loc_ses.kfs or sessions\Orcs\orcs.kfs, if your own campaign is base upon Orcs on the March (if it basically has the stuff that's in it as well). In that file, you can find, for example, stuff like this:
cpn_horseman=Horseman
cpsn_horseman=Horsemen
This basically determines the unit's name. Now, to give your new unit a name, you first need to go into the units [unit_name].atom file and search for the features_label field under arena_params. Most possibly, your unit is also probably cloned from another unit (I'm gonna use Horseman as an example), so you have to change features_label=cpi_horseman_feat(_new)(there are 2 versions) to features_label=cpi_[unit_name]_feat.
After this, you can return to eng_units.lng and add this anywhere:
cpn_[unit_name]=[unit_actual_name]
cpsn_[unit_name]=[unit_actual_name_at_plural]
Regarding the unit portrait, you have to name it [unit_name].png for it to show up and you also need to have the right resolution.
If you're interested in this as well, here's how to create new unit model with new textures (you can find the models in either data.kfs or in sessions .kfs archives). First of all download a hex file editor like HxD. We are gonna use the Horseman's model as reference, horseman.bma. Now,clone it and call it anything you'd like. Open it with HxD, and use ctrl-f function to search for "dds". This will lead you to the model's texture names. After finding all texture names, you can extract them from textures.kfs or a session's .kfs file. Edit the textures as you like (you can convert them to png easily by searching for dds2png, and back to dds by searching png2dds). However, you have to rename them so that they will have the same amount of characters as the name of the previous texture (it won't work if you don't). After finishing the textures, you can go back to the model's file. Search again for "dds" and type your texture's names instead. You can save and close the file. Now, go back to your own new unit. In the model field under main, replace horseman.bma with [your model's name].bma. Save the file and close it. Do the same for both [unit_name].atom and army_[unit_name].atom. Now you should have what you could call a brand new model. Sadly, you can't edit the 3D models themselves unless you have some tools which only the original developers had.
|