Pages

Make the unit pack a mod

Put a TA unit pack in a folder of its own, with a short mod.toml, so AEX can play it.

A unit from another pack reaches AEX as a mod: a folder holding the pack as it ships for TA. This page makes that folder. The next page installs it.

The worked example

Download the add-a-unit example and put the pack's archive beside its mod.toml:

my-unit-pack/
├── mod.toml                    the mod's identity (optional, recommended)
├── myunit.ufo                  the unit pack, exactly as it ships for TA
├── download/MYUNIT.TDF         optional: a build-menu entry
└── aexmenus/my-unit-pack.tdf   optional: an AEX build-menu entry

The mod.toml:

id          = "my-unit-pack"
name        = "My Unit Pack"
version     = "0.1.0"
aex_version = "0.2"
base        = "ta"

author      = "Your Name"
description = "One extra unit for stock Total Annihilation."

MYUNIT stands for your unit's name: the name of its file in units/ without .fbi. Change it in both .tdf files.

Why a folder, not the TA folder

TA plays every .ufo in its own folder. AEX does not: it plays from its own clean copy of Cavedog's files (ta-base in the AEX data folder), checked against the known releases, and never mounts the TA install itself. A .ufo dropped into the TA folder is never read, so the unit does not appear. This keeps every player's base game identical, which multiplayer needs.

A mod folder is mounted over that clean copy. The mod wins every file it ships and uses every TA file it does not replace.

What the folder may hold

  • Archives: .ufo, .hpi, .ccx, .gpf and .gp3, any number.
  • Loose TA folders: units/, objects3d/, scripts/, unitpics/, anims/, weapons/, sounds/, download/, guis/ and the rest. A loose file wins over the same file in an archive.
  • mod.toml: the mod's identity. Without it AEX still plays the folder, as a legacy mod named after the folder.

The fields of mod.toml are in the mod manifest. Give id a name of your own and never change it between releases.

What goes wrong

  • The pack is a .zip or .rar, not a .ufo. You can install the archive itself with ADD MOD... (next page); AEX unpacks it. If the zip holds a .ufo, the .ufo is the pack.
  • An installer .exe. AEX does not run installers. Find the .ufo it would install, or a copy of the pack without the installer.
  • Two units with one name. The first layer holding units/MYUNIT.fbi wins. A pack unit with the same name as a stock unit replaces the stock one.

Next

Install it and set it active.