Native standalone games
A content pack with base = "none" and content/game.toml is a whole game with its own sides, starting units and playable units.
A native standalone game is an AEX content pack that
needs no TA data: its mod.toml says base = "none" and it has a
content/game.toml. Use it when you make a game of your own rather than a
mod of TA.
The worked example
The fixture examples/public/creator/studio-first-game/ is a complete one.
Its mod.toml:
id = "studio-first-game"
name = "Studio First Game"
version = "0.1.0"
aex_version = "0.2"
base = "none"
author = "AEX"
description = "Original production and turreted-vehicle combat proof."
menu_style = "aex"
icon = "icon.png"
texture_filtering = "nearest"
Native games declare sides and starting units in content/game.toml:
[[sides]]
name = "Foundry"
starting_unit = "forge"
Its starting unit, content/units/forge.toml, is a playable producer:
id = "forge"
name = "Forge"
description = "Original starting production platform with a self-contained proof economy."
side = "Foundry"
category = "BUILDING"
max_health = 2500
sight_distance = 600.0
is_commander = true
[assets]
model = "models/forge.gltf"
script = "scripts/forge.cob"
world_units_per_metre = 16.0
[footprint]
x = 4
z = 4
[cost]
metal = 200
energy = 300
build_time = 1000
[capabilities]
can_attack = false
can_move = false
is_builder = true
[movement]
type = "static"
speed = 0.0
turn_rate = 0.0
[production]
builds = ["studio-first-game.striker", "studio-first-game.constructor", "studio-first-game.extractor"]
build_group = "vehicles"
worker_time = 100
build_distance = 128
[production.menu]
page = 1
group = "vehicles"
slot = 1
[economy]
metal_make = 20.0
energy_make = 40.0
metal_storage = 1000.0
energy_storage = 1000.0
How to prepare and run it: the fixture's own README.md.
What a native game loads
Standalone games with base = "none" and content/game.toml load their
native units and weapons through the existing simulation normalizers in both
the engine and bridge. The initial runtime supports ground vehicles and
stationary production; air, hover and naval remain valid authoring
schema values but are rejected by this native runtime slice.
Each starting unit must exist in the pack. Playable unit files require explicit positive
health/footprint, capabilities/movement, and complete [assets] model, script
and positive world_units_per_metre bindings. Authoring drafts may omit these
fields and bind model and script in separate edits; schema validation accepts
missing draft fields, while runtime readiness rejects incomplete units. Producers
require positive worker time and build range. Native production menus use
production.builds directly in the existing AEX grid; no GUI or download TDF is
required. The source-to-runtime fixture lives in
examples/public/creator/studio-first-game/. Its authored BOS scripts compile
to original COB input for the existing VM; no TA script or asset is borrowed.
Maps
The game uses the native map format described in Native maps. Creator map metadata alone is not terrain data. The existing generic pack examples remain schema examples; adding a manifest alone does not make them complete standalone games.
What goes wrong
AEX refuses to start a native game that is not ready, with one of these messages (the unit id follows the colon):
Standalone native game requires content/game.toml
Native content/game.toml requires mod.toml base=none
Native starting unit is missing: forge
Native unit requires model and script assets: studio-first-game.forge
Native unit requires positive assets.world_units_per_metre: studio-first-game.forge
Native unit requires positive health/footprint and explicit capabilities/movement: studio-first-game.forge
Native runtime currently supports ground/static movement only: studio-first-game.forge
Native movement.type and capabilities.can_move disagree: studio-first-game.forge
Native producer requires positive worker_time and build_distance: studio-first-game.forge
A pack with loader errors is refused with Native content is invalid,
followed by each error's file and message.
Next
- Original game direction, the next creator topic.
- AEX content packs, the previous topic.
- Unit Schema, every unit field.