Check that the unit loaded
Read the log lines that say a unit and its build-menu entries loaded, and what a greyed button means.
AEX finds every unit by its units/*.fbi file when a game loads. This page
shows how to tell that yours was found, and why it may still be missing from
a build menu.
The worked example
Start a skirmish with the mod active, then open aex.log (its folder is on
the previous page) and search for your
unit's name:
Loaded MYUNIT from VFS: 12 pieces, 9 scripts
The unit loaded: its FBI, model and script were found. A unit AEX has seen
before may read Loaded MYUNIT from IR: ... instead; that is its cached copy
and is just as good.
Then search for the build menus:
BuildMenuRegistry: 196 builder menus from guis/ and 71 download entries (0 repeated unit button(s) dropped, 0 blank page(s) removed, 0 page(s) with no GUI file to show)
BuildMenuRegistry: appended 4 AEX content build option(s) from 2 aexmenus/*.tdf file(s)
The numbers differ by game. The first line counts the builders' TA menus and
the download/ records read; the second counts the units aexmenus/ files
added.
Found, but on no menu
A unit is built only from a builder's build menu. The FBI line
buildoption1=MYUNIT on a builder does not make a menu entry: TA never reads
it for menus, and neither does AEX. A menu entry comes from:
- the builder's GUI pages (
guis/<BUILDER>1.GUI,2, ...), - a
download/*.tdfrecord, the way TA unit packs add units, - an
aexmenus/*.tdffile, AEX's own way.
Most TA unit packs ship a download/ record inside their .ufo. If yours
does not, the next page adds one.
What goes wrong
- The button is there but greyed. A GUI button or
download/record names a unit that is not loaded. Check the name in the record against the FBI file's name, and look for a load warning for that unit. COB not found for MYUNIT (script: MYUNIT)in the log. The unit's script is missing: the pack is incomplete, or itsscript=names another file.- No
Loaded MYUNITline at all. AEX did not see the FBI. Check that the mod is active ([mods] active mod:) and that the FBI sits inunits/, in the archive or the mod folder. BuildMenuRegistry: download entry MYUNIT for ARMLAB names button 5 that ARMDL.GUI does not have. The record points at a button the page lacks. Pick aBUTTONthe page has (download records).