Genie civilization
From GenieWiki
The civilization data structure used by Genie is as follows:
struct genie_civilization
{
char one; //always 1
char name1[20];
short resource_length;
short techtree; //CHUN4 id
/* only in version 5.7+ */
short teambonus;
/* only in version 5.9 */
char name2[20];
short unknown03[4];
float resource_data[resource_length];
char graphicsset;
short unit_count;
long unit_offsets[unit_count];
};
Immediately following the structure are the unit structures for the civilization.
Contents |
name1
This is an internal name for the civilization, though in Age of Empires II it is the same as the language name used in-game (with the exception of the Teutons, which are called "Germans"). The property containing the language file ID has not been located as of writing.
resource_length
This is the number of resources defined for this civilization.
techtree
The technology tree for a civilization is stored in a CHUN4 tech effect structure. This member contains the index of the effect.
teambonus
This is the CHUN4 ID that contains the effects used as a team bonus.
unit_count
This number of units defined for this civilization.
unit_offsets
The file offset of each unit structure. Units that do not exist, have an offset of zero.
AOK Civilization IDs
- 0 Gaia
- 1 Britons
- 2 Franks
- 3 Goths
- 4 Tuetons
- 5 Japanese
- 6 Chinese
- 7 Byzantines
- 8 Persians
- 9 Saracens
- 10 Turks
- 11 Vikings
- 12 Mongols
- 13 Celts
- 14 Spanish
- 15 Aztecs
- 16 Mayans
- 17 Huns
- 18 Koreans

