Put the unit on a build menu
Add the unit to a builder's menu with a download record, the TA way, or an aexmenus file, the AEX way.
A builder builds only what its build menu shows. If the pack's unit loaded but no builder offers it, give it a menu entry. Either file below works; the example ships both.
The worked example
A TA download record, download/MYUNIT.TDF, puts the unit on the Arm Kbot Lab's second page:
[MENUENTRY1]
{
UNITMENU=ARMLAB;
MENU=3;
BUTTON=5;
UNITNAME=MYUNIT;
}
An AEX build-menu file, aexmenus/my-unit-pack.tdf, adds it after the Arm Advanced Kbot Lab's last button:
[ARMALAB]
{
buildoption1=MYUNIT;
}
Put either file in the mod folder (the copy AEX plays) and restart AEX.
Which to use
download/ record |
aexmenus/ file |
|
|---|---|---|
| Read by | TA and AEX | AEX only |
| Where the button goes | The page and button you name | After the builder's last button, opening a new page when the menu is full |
| Good for | A pack that should also work in TA | Adding a unit without counting pages and buttons |
A download record is TA's own format, so a pack keeps working in TA. Its
MENU is one more than the page (MENU=3 is page 2), and BUTTON counts
that page's buttons from 0. A page the builder has no GUI file for uses the
side's download page (ARMDL.GUI, CORDL.GUI). Details:
download records.
An aexmenus/ file needs no page or button numbers. A unit already on the
builder's menu is not added twice. Details:
aexmenus files.
Name the builder by its unit name: ARMLAB (Arm Kbot Lab), ARMVP
(Arm Vehicle Plant), ARMCK (Arm Construction Kbot), CORLAB, CORVP
and so on.
What goes wrong
- The button is greyed. The record names a unit that did not load:
check
UNITNAMEagainst the unit's FBI file name. - Another unit vanished from that page. Two records named the same page
and button; the later one wins. Pick a free
BUTTON. BuildMenuRegistry: download entry MYUNIT for ARMLAB names button 5 that ARMDL.GUI does not havein the log: that page has no button 5. Use a lowerBUTTON.- Nothing from
aexmenus/. Anaexmenus/entry for a unit or builder that is not loaded is skipped, with no button and no warning. Check both names. The log lineBuildMenuRegistry: appended N AEX content build option(s) from M aexmenus/*.tdf file(s)counts what was added. - Your file is ignored. A file with the same name as another mod or AEX file replaces it. Name yours after your mod.
Next
Play it in multiplayer. How menus are made in full: a builder's pages.