Manifest reference
Every plugin folder contains a plugin.toml. Unknown keys are logged and ignored, so new
fields can be added without breaking older Anvil versions.
id = "eu4-startup-boost" # [a-z0-9-]+, max 64 characters, uniquename = "EU4 Startup Boost"version = "0.1.0" # SemVerauthors = ["Happy Dwarf Team"]description = "Faster game start-up."api = 1 # Anvil plugin API major versionentry = "eu4_startup_boost.dll" # DLL file name inside the plugin folderphase = "early" # "early" or "main"affects_gameplay = false # true if the plugin may change the simulationload_after = [] # ordering only, not a dependencygame_builds = ["eu4-1.37.5-steam-win64"] # or ["*"] when no game addresses are used
[[dependencies]] # zero or moreid = "anvil-ui"version = ">=1.2.0, <2"optional = falseFields
Section titled “Fields”| Field | Required | Meaning |
|---|---|---|
id |
yes | Unique id, lowercase letters, digits and -, up to 64 characters. Also the folder name under anvil/data/. |
name |
yes | Display name. |
version |
yes | Plugin version, SemVer. |
authors |
no | List of authors. |
description |
no | One sentence about the plugin. |
api |
yes | Major version of the Anvil plugin API the plugin was built against. Currently 1. |
entry |
yes | File name of the plugin DLL inside the plugin folder. |
phase |
yes | early or main; see Writing plugins. |
affects_gameplay |
yes | true if the plugin may change the game simulation. Players see this as a multiplayer and Ironman warning. |
load_after |
no | Plugin ids to load before this one, if present. Ordering only. |
game_builds |
yes | Supported game builds, or ["*"] if the plugin does not use game addresses. |
dependencies |
no | Plugins this one needs. |
Dependencies
Section titled “Dependencies”Each [[dependencies]] entry has an id, a SemVer version range and an optional
flag. Ranges are comparators joined by commas; ^, ~, =, >, >=, <, <= and *
are supported.
- A required dependency that is missing or out of range skips the plugin, and every plugin that depends on it.
- An optional dependency is loaded first when present and is never required.
- Plugins are ordered by dependencies within each phase, then by id. A dependency cycle,
or an
earlyplugin depending on amainplugin, skips the plugins involved.
