aexmenus files
An aexmenus/*.tdf file adds units after a builder's last button, with no page or button numbers.
An aexmenus/ file is AEX's own way to add units to a builder's build menu.
You name the builder and the units; AEX puts each after the builder's last
button. TA does not read these files, so a pack that must also work in TA
uses a download record instead.
The worked example
aexmenus/my-unit-pack.tdf from the add-a-unit example:
// AEX build options: each unit goes after the builder's last button.
[ARMALAB]
{
buildoption1=MYUNIT;
}
Several builders and several units:
[ARMLAB]
{
buildoption1=MYUNIT;
buildoption2=MYSCOUT;
}
[CORLAB]
{
buildoption1=MYUNIT;
}
The format
- The file is a TDF:
[BUILDER] { buildoption1=UNIT; ... }, any number of builder sections. Names are not case-sensitive. - Each section is one builder, by unit name.
buildoption1,buildoption2, ... are read in order and stop at the first missing number:buildoption3with nobuildoption2is never read.- Every
.tdfinaexmenus/is read, in file-name order, after the GUI pages and download records.
Where the buttons go
Each unit takes the next free button after the builder's last occupied one,
on that page's grid. When the menu runs out, a new page opens, shaped like
the side's download page (ARMDL.GUI, CORDL.GUI), or AEX's own 2x3 grid
when the side has none. A builder with no menu at all gets one this way.
A unit already on the builder's menu, from a GUI page, a download record or
an earlier aexmenus/ entry, is not added again.
AEX's own file
AEX ships one: aexmenus/riftgates.tdf puts the rift gates on the advanced
construction kbots and vehicles of both sides. The build menu hides them,
and the game refuses them, unless the match's rift gates rule is on. A mod's
file of the same name replaces AEX's, so name yours after your mod.
What goes wrong
The log line counts what was added:
BuildMenuRegistry: appended 1 AEX content build option(s) from 2 aexmenus/*.tdf file(s)
AEX's own file counts as one of the files.
- A unit is missing and the count is lower than expected: a section's builder, or a unit, is not loaded. Such an entry is skipped with no button and no warning; check both names against their FBI files.
- A later unit is missing: a
buildoptionNnumber was skipped, so the list ended there. - The unit shows on another page than you expected: it goes after the last occupied button, which may be on the builder's last page, not the first gap.
Next
Layouts: how the pages are shown to the player.