Quote Originally Posted by Alexander the Pretty Good
Got a new question:

I've been trying to add a new unit for the Greek culture - "Greek militia." I only care about it for the Greek Cities, so I haven't bothered fixing different skins and unit cards for the other Greek culture factions.

I want them to be (for now) exactly the same as Greek Peltasts except have different text and a different texture. I've figured out how to do unit cards, but not the new skin and text. For the text, I get the "unlocalized placement text" message for the hover-over description (not the actual unit description, that works). For the skin, I get the old Peltast skin no matter what I do. I've modified the descr_model_battle and export_descr_unit files, to no avail.
Check the scriptorium for loads of tutorials on this sort of thing. Otherwise, the basic pattern for copying a unit and changing its texture is: 1. Copy the descr model battle entry for peltasts and change the dictionary entry to your_unit (whatever it is (but it must be the same from now on) ). Then put in the file path for your new unit's texture next to the texture entry. Save obviously.
2. In export descr unit copy the peltast entry and rename the greek peltast entry next to unit name to your unit, and the greek_peltast entry next to dictionary to your_unit (it is now referenced in descr model battle). Now monkey with attack values to your hearts content. save.
3. In descr unit enums.txt, find
greek_peltast
greek_peltast_descr
greek_peltast_descr_short
- and replace with -
your_unit
your_unit_descr
your_unit_descr_short
Im assuming you had troubles with descriptions because of this file.
4. Make entries in text/export_units.txt to match the files referenced in unit enums.txt, look at the peltasts' entry for the format.
5. Save your unit cards as #your_unit.tga, or dont, the game will use the peasant card by default. Done. Hope this wasn't untimely, that is, after you'd already figured this out.