Files

76 lines
2.4 KiB
ReStructuredText
Raw Permalink Normal View History

2016-09-18 12:53:25 +01:00
***********************
Metadata File Structure
***********************
The root of a metadata file is a key-value map. LOOT will recognise the following keys, none of which are required. Other keys may also be present, but are not processed by LOOT.
2021-08-05 17:26:07 +01:00
.. describe:: prelude
The prelude can have any value, but if a masterlist prelude path is provided when loading metadata, the masterlist's ``prelude`` value will be replaced by the parsed content of the masterlist prelude file. The prelude exists so that metadata that is common across different masterlists can be shared without duplication.
Note that prelude replacement is only supported when using YAML's block style and an unquoted ``prelude`` key that is not preceded by a mapping key indicator and that is immediately followed by a colon separator, i.e. ``prelude:``.
2016-09-18 12:53:25 +01:00
.. describe:: bash_tags
string list
2021-08-05 17:26:07 +01:00
A list of Bash Tags that are supported by the game. These Bash Tags are used to provide autocomplete suggestions in LOOT's metadata editor.
2016-09-18 12:53:25 +01:00
.. describe:: globals
message list
A list of message data structures for messages that are displayed independently of any plugin.
2018-02-21 17:33:25 +00:00
.. describe:: groups
group set
A set of group data structures that represent the groups that plugins can belong to.
2016-09-18 12:53:25 +01:00
.. describe:: plugins
plugin list *and* plugin set
2018-10-27 17:00:22 +01:00
The plugin data structures that hold all the plugin metadata within the file. It is a mixture of a list and a set because **no non-regex plugin value may be equal to any other non-regex plugin value** , but there may be any number of equal regex plugin values, and non-regex plugin values may be equal to regex plugin values. If multiple plugin values match a single plugin, their metadata is merged in the order the values are listed, and as defined in :ref:`plugin-merging`.
2016-09-18 12:53:25 +01:00
The message and plugin data structures are detailed in the next section.
Example
=======
.. code-block:: yaml
2021-08-05 17:26:07 +01:00
prelude:
- &thanksForUsing
type: say
content: 'Thanks for using LOOT!'
2016-09-18 12:53:25 +01:00
bash_tags:
- 'C.Climate'
- 'Relev'
2018-02-21 17:33:25 +00:00
2016-09-18 12:53:25 +01:00
globals:
2021-08-05 17:26:07 +01:00
- *thanksForUsing
2018-02-21 17:33:25 +00:00
groups:
- name: 'Map Markers'
after:
- 'default'
plugins:
- name: 'Armamentarium.esm'
tag:
- Relev
- name: 'ArmamentariumFran.esm'
tag:
- Relev
- name: 'Beautiful People 2ch-Ed.esm'
tag:
- Eyes
- Graphics
- Hair
- R.Relations
- name: 'More Map Markers.esp'
group: 'Map Markers'