by scenario_t_c- Red texts are basic steps.
- Blue texts are actions that should be taken in the showcase example.
In order to prepare for making a whole new unit, you should decompress the game database, read the data and convert them into text with GeniEd first.1. The first step to create a whole new unit is to select an existing one as a base and get its unit ID. For example, if I choose to duplicate the militia and modify it further to make a whole new unit, I should find its unit ID: 74.2. Knowing the unit ID, you can open the file "units.txt" (created by the "Convert Data to Text" command in GeniEd) under the "text" folder in "ged_data" directory. Then, you should copy all the lines beginning with "unit_[the unit ID of base unit]_" into "patches.txt". Continuing the above example, these are the lines you have to copy when using militia as the base unit:unit_74_exists: 1
unit_74_count: 7
unit_74_0_unknown01: 1
unit_74_0_unknown02: 0 0 0 7 0
unit_74_0_unknown03: -1 -1 -1 -1 -1 -1 -1
unit_74_0_unknown04: 0 0
unit_74_0_unknown05: 0
unit_74_0_unknown06: 1
unit_74_0_unknown07: 3
unit_74_0_unknown08: 1 1 1 0 0 0 5 0 0
unit_74_0_graphics: -1 -1 -1 -1 -1 -1
...
unit_74_6_unknown01: 1
unit_74_6_unknown02: 6 0 0 3 0
unit_74_6_unknown03: 13 -1 -1 -1 -1 -1 -1
unit_74_6_unknown04: 0 0
unit_74_6_unknown05: 1
unit_74_6_unknown06: 0
unit_74_6_unknown07: 0
unit_74_6_unknown08: 0 0 0 0 0 0 1 0 0
unit_74_6_graphics: -1 -1 -1 -1 -1 -1
3. Now, you should close "units.txt" and open another file in the "text" folder - "civ0units.txt". In this file, you have to copy another series of text lines again, this time beginning with "civ_0_unit_[the unit ID of base unit]_", to "patches.txt". In this case, the lines you need would be like the following:civ_0_unit_74_type: 70
civ_0_unit_74_name_length: 6
civ_0_unit_74_id1: 74
civ_0_unit_74_name_language: 5079
civ_0_unit_74_command_language: 6079
civ_0_unit_74_class: 6
civ_0_unit_74_graphic_stand01: 1102
civ_0_unit_74_graphic_stand02: -1
civ_0_unit_74_graphic_die01: 1099
civ_0_unit_74_graphic_die02: -1
...
civ_0_unit_74_attack_missile_duplication_amount01: 1
civ_0_unit_74_attack_missile_duplication_amount02: 1
civ_0_unit_74_attack_missile_duplication_unknown01: 1 1 1
civ_0_unit_74_attack_missile_duplication_unit: -1
civ_0_unit_74_attack_missile_duplication_graphic: -1
civ_0_unit_74_unknown35_12: 0
civ_0_unit_74_displayed_pierce_armour: 1
As you can see, these are also the data about different attributes of the unit, which you should alter in order to create a new unit instead of just a duplication of an old unit. You could either refer to the "Recent Study on AoK:TC Unit Structure in GeniEd" article to learn about how to alter these data, or use GeniEd2 to do this task later.4. After all those copying tasks, what you should do now is go back to the top of "patches.txt" and replace all "civ_0_" into "civ_*". This will make the lines containing the texts become variable patches.If you don't want to use variable patches, copy and paste all those lines beginning with "civ_0" for 18 times, while replacing all "civ_0_" in every duplication of them with "civ_1" to "civ_18" by t