senses:sense.toml
Differences
This shows you the differences between two versions of the page.
senses:sense.toml [2025/07/27 21:47] – created flash | senses:sense.toml [2025/07/27 22:19] (current) – explanatio flash | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== sense.toml ====== | ====== sense.toml ====== | ||
- | The sense.toml file contains all important meta data of a given Sense. As you can probably glean from the file extension, these files are in the [[https:// | + | The sense.toml file contains all important meta data of a given Sense. As you can probably glean from the file extension, these files are in the [[https:// |
+ | |||
+ | The values in this file can be read out during runtime in the '' | ||
===== Sections ===== | ===== Sections ===== | ||
Line 8: | Line 10: | ||
==== version ==== | ==== version ==== | ||
+ | |||
+ | This field is **required**! Versions are formatted according to the [[https:// | ||
+ | |||
+ | Remember to change these values if you make changes to a Sense. For fixing bugs increment PATCH, if you added a feature without disrupting existing functionality increment MINOR, and if you think your change overhauled things significantly enough, or changed the way the Sense was previously interacted with entirely, increment MAJOR! | ||
+ | |||
+ | This field is most important for library Senses but it is good practice to keep it maintained anyway, this value is used by the dependency resolver and the runtime loader can also set version constraints. | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Value used by the '' | ||
+ | |||
+ | version = " | ||
==== description ==== | ==== description ==== | ||
+ | |||
+ | The description field is a string containing a short summary explaining what this Sense package does. | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Value used by the '' | ||
+ | |||
+ | description = "The command that allows you to roll the dice." | ||
==== authors ==== | ==== authors ==== | ||
+ | |||
+ | The authors field is an array containing the authors of a Sense. | ||
+ | |||
+ | You can just specify a name like '' | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Value used by the '' | ||
+ | |||
+ | authors = [ | ||
+ | " | ||
+ | " | ||
+ | ] | ||
==== sources ==== | ==== sources ==== | ||
+ | |||
+ | The sources field is an array containing the paths to all Lua scripts that should be executed, in the order specified. | ||
+ | |||
+ | Paths are relative to the Sense package directory, however you should NEVER traverse the directory structure upwards! | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Value used by the '' | ||
+ | |||
+ | sources = [ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
==== [depends] ==== | ==== [depends] ==== | ||
+ | |||
+ | This table contains the list of dependencies this Sense package has on other Sense packages. | ||
+ | |||
+ | Each key/value pair, both strings, is interpreted a Sense library name as the key and the value containing the accepted range of versions. The format of these ranges works as described on [[https:// | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Value used by the '' | ||
+ | |||
+ | [depends] | ||
+ | strexts = " | ||
senses/sense.toml.1753652827.txt.gz · Last modified: by flash