Pages

Examples

The example mods under examples/public/creator/ and what each one shows.

The repository carries small example mods to copy from. Start from the one closest to what you are making and change it.

The worked example

ui-reskin is a whole mod in two files. Its mod.toml:

id          = "ui-reskin"
name        = "UI Reskin"
version     = "0.1.0"
aex_version = "0.2"

author      = "AEX Creator Platform"
description = "A minimal AEX mod that adds one example UI theme: dark-accent."
license     = "MIT"

and content/themes/dark-accent.toml:

id          = "dark-accent"
name        = "Dark Accent"
description = "A minimal example UI theme used by the ui-reskin example."

accent_color = "#7a5cff"
button_style = "rounded"
font_family  = "Inter"

The loader validates the theme record; it does not change how AEX looks (theme records).

The examples

Under examples/public/creator/:

  • hello-world-mod: a mod.toml and nothing else.
  • unit-pack: units, weapons, a builder, armor categories, a cloaking unit, a paralyzer weapon.
  • uh-sample-pack: a TA-style pack using every schema; the loader tests run against it.
  • map-pack: one map.
  • ui-reskin: one content/themes/ file.
  • escalation-director: an example AI director that steers the AEX AI to Escalation's tier 4 (AI_DIRECTOR.md).

What goes wrong

An example copied without its mod.toml is not a content pack; the loader reports:

mod.toml not found at pack root

Next