Optional fields
The optional mod.toml fields - credits, icon, title and HUD branding, menu style, texture filtering, build menu, base - and what happens to a bad value.
Every field past the required four is optional. Add them to describe the mod in the menus and to set the defaults its players start with.
The worked example
id = "example-unit-pack"
name = "Example Unit Pack"
short_name = "EUP"
version = "0.3.1"
aex_version = "0.2"
author = "Jane Doe"
credits = "Models by Sam Roe; tested by the Example clan"
description = "Adds three experimental arm units."
website = "https://example.invalid/example-unit-pack"
license = "MIT"
icon = "icon.png"
menu_style = "aex"
texture_filtering = "nearest"
build_menu = "2x6"
[ai_profiles]
units = "Unit Test"
debug = { name = "Debug", hidden = true }
icon.png must exist in the mod folder. Keep the tables ([ai_profiles]
and the others) last: keys after a table header belong to that table.
The fields
| Field | Type | Description |
|---|---|---|
short_name |
string | The mod's name where space is short: the lobby's AI PROFILE column shows <short_name>: <profile>. Absent: name. |
author |
string | Author or team. |
description |
string | One line shown in the menus. |
website |
string | Project URL. |
license |
string | SPDX identifier or free label. |
credits |
string | Who else made it (artists, testers, sources), shown on the mod's details page. |
icon |
string | The mod's square logo: a path inside the mod folder to a .png or .pcx. The menus draw it small beside the name; the AEX design's main menu and the in-game HUD draw it as the game's logo. Sizes: logo artwork guidance. |
title_name_mode |
string | How the AEX design's main menu shows the game's name beneath its logo: "font" (the name in text), "image" (the title_name_image picture instead) or "logo-only" (the logo alone). Absent: "font". Without a logo the name always shows; in image mode a missing or unreadable picture shows the name in text. |
title_name_font |
string | The theme font for that name, by role. The AEX design has "TitleNameArchivo", "TitleNameMichroma", "TitleNameOrbitron" and "TitleNameRajdhani". Absent, or a role the theme lacks: the theme's title font. |
title_name_image |
string | The name as a picture, used only in image mode: a relative path inside the mod, with / separators, to a .png, or to a .svg with its rendered .png beside it under the same name (AEX draws the PNG). Drawn no wider than the logo. |
hud_brand_mode |
string | How the in-game HUD (and the tactical overview and second screen) shows the game: "name" (the name only), "logo-and-name" or "logo-only". Absent: as the main menu does (the logo alone when title_name_mode = "logo-only", else logo and name). Without a logo the HUD shows the name. |
texture_filtering |
string | "nearest" or "smooth": the default for game textures. A player can override it in Options > Video > Texture Filtering. Full filtering and precedence rules: modding.md. |
build_menu |
string | The build menu layout the mod's players start with: "classic" (the GUI pages as they are; AEX's own 2x3 grid for a standalone game), or "2x4", "2x5", "2x6" (pages of 2 columns and that many rows). A player's choice in Options > Interface > Build Menu overrides it. Absent: Classic TA. Rules: modding.md. |
menu_style |
string | The menu style the mod's players start in: "ota" (TA's own screens) or "aex". A player's choice in Options > Interface > Menu Layout overrides it. Absent: TA's own screens. |
ai_profiles |
table | How the lobby names the mod's TA AI profile files: AI profile names. |
factions |
table | Each faction's display name and icon, as [factions.<side>] sections: Factions. |
adjacency |
array of tables | Buildings that earn an output bonus beside partners, as [[adjacency]] entries: Adjacency. The computer opponent places them to earn it. |
match |
table | The game's match profile: a built-in base and the mod's own rule defaults and locks, as [match]: Match profile. |
ai |
table | director: the mod's optional AI director, a .lua path inside the mod folder: AI director. |
base |
string | The game data the mod plays on: "ta" (Total Annihilation's own data, mounted beneath the mod) or "none" (a standalone AEX game). Required in a .aexmod package (aex-mod-package.md); optional in a mod folder. |
Bad values
- An optional field of the wrong type is ignored with a warning.
- An
iconthat is absolute, leaves the folder (..), is not.pngor.pcx, or does not exist is dropped with a warning; the mod shows without one. - A
menu_styleother than"ota"or"aex"is ignored with a warning. Only the active mod's value counts. - A
title_name_modeother than"font","image"or"logo-only"is ignored with a warning; the name shows in text. - A
title_name_imagethat is absolute, leaves the folder (..), contains\or:, or is not.pngor.svgis dropped with a warning. - A
hud_brand_modeother than"name","logo-and-name"or"logo-only"is ignored with a warning; the HUD does as the main menu does. - A
texture_filteringother than"nearest"or"smooth"is ignored with a warning. - A
build_menuother than"classic","2x4","2x5"or"2x6"is ignored with a warning. - A
baseother than"ta"or"none", or one that is not a string, is an error: the manifest is unusable. Only"ta"can be chosen until AEX ships a standalone game. - A
short_namethat is empty or not a string is ignored with a warning; the lobby showsname. - A
dependenciesentry is not resolved: the manifest loads with a warning and only the chosen mod is mounted.
What goes wrong
Each warning is logged to aex.log as [mods] <mod folder>: <problem>; the
mod still loads without that value. For example:
[mods] <mod folder>: field 'author' must be a string; ignored
[mods] <mod folder>: icon 'icon.png' does not exist; the mod shows without one
[mods] <mod folder>: icon='../logo.png' must stay inside the mod folder (no '..'); the mod shows without one
[mods] <mod folder>: menu_style='modern' is not "ota" or "aex"; the player's or TA's default menu style is used
[mods] <mod folder>: title_name_mode must be font, image or logo-only; using font
[mods] <mod folder>: title_name_image must be a relative PNG or SVG path inside the game
[mods] <mod folder>: Unrecognized hud_brand_mode; using the main menu identity
[mods] <mod folder>: texture_filtering='linear' is not "smooth" or "nearest"; ignored
[mods] <mod folder>: build_menu='3x3' is not "classic", "2x4", "2x5" or "2x6"; ignored
[mods] <mod folder>: field 'short_name' is empty; the lobby shows 'name'
[mods] <mod folder>: dependencies are not resolved by this engine yet; only this mod is mounted
A title_name_image that cannot be read logs [mods] title name image <file> could not be read and the name shows in text.
A bad base is an error and the mod cannot be chosen:
[mods] <mod folder>: base='ota' is not "ta" or "none"
Next
- Logo artwork guidance for the
icon. - AI profile names.